arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.06746cs.CVcs.AI
收藏

ButterflyViT: 354倍专家压缩用于边缘视觉变换器

ButterflyViT: 354$\times$ Expert Compression for Edge Vision Transformers

Indian Institute of Information Technology, Nagpur(印度纳格浦信息科技学院)

Aryan Karmore

AI总结:

ButterflyViT通过几何参数化实现354倍内存压缩,使边缘设备上高效运行视觉变换器。

摘要:

在部署稀疏专家混合(MoE)视觉变换器时,由于线性专家内存扩展性问题仍是一个挑战。线性内存扩展性存储N个独立的专家权重矩阵,需要O(N_E·d²)的内存,这超出了边缘设备的内存预算。当前压缩方法如量化、剪枝和低秩因子分解只能减少常数因子,但无法解决扩展瓶颈。我们引入了ButterflyViT,该方法将专家不视为独立的权重矩阵,而是作为统一共享量化基质的几何重新定向。专家之间的多样性来自于对共享容量的不同视角,而不是冗余存储。通过将学习到的旋转应用于共享的三元原型,每个专家产生的内存为O(d_model·d_ff + N_E·n_ℓ·d),这在专家数量上是亚线性的。为了解决视觉任务的特殊挑战,引入了一个空间平滑正则化器,该正则化器惩罚相邻补丁标记之间的路由不规则性,将补丁相关性转化为训练信号。在CIFAR-100图像分类任务中,ButterflyViT在64个专家上实现了354倍的内存减少,同时精度损失可忽略不计。ButterflyViT使多个专家能够适应边缘受限设备,证明了几何参数化打破了线性扩展。

英文摘要:

Deploying sparse Mixture of Experts(MoE) Vision Transformers remains a challenge due to linear expert memory scaling. Linear memory scaling stores $N$ independent expert weight matrices requiring $\mathcal{O}(N_E \cdot d^2)$ memory, which exceeds edge devices memory budget. Current compression methods like quantization, pruning and low-rank factorization reduce constant factors but leave the scaling bottleneck unresolved. We introduce ButterflyViT, a method that treats experts not as independent weight matrices but as geometric reorientations of a unified shared quantized substrate. Diversity among experts arises from viewing different angles of shared capacity, not from redundant storage. By applying learned rotations to a shared ternary prototype, each expert yields $\mathcal{O}(d_{\text{model}} \cdot d_{\text{ff}} + N_E \cdot n_\ell \cdot d)$ memory which is sub-linear in the number of experts. To address the unique challenges of vision, a spatial smoothness regulariser is introduced that penalises routing irregularities between adjacent patch tokens, turning patch correlation into a training signal. Across image classification tasks on CIFAR-100, ButterflyViT achieves 354$\times$ memory reduction at 64 experts with negligible accuracy loss. ButterflyViT allows multiple experts to fit on edge-constrained devices showing that geometric parameterization breaks linear scaling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑