[论文解读] ButterflyViT: 354$ imes$ Expert Compression for Edge Vision Transformers
ButterflyViT 将 ViT MoE 专家表示为在共享三元底座上的旋转,实现在亚线性内存扩展,并在64个专家下以可比准确率于 CIFAR-100 取得 354× 压缩。
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_{ ext{model}} \cdot d_{ ext{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$ imes$ 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.
研究动机与目标
- 在边缘设备上动机稀疏 MoE Vision Transformer 的内存瓶颈。
- 提出一个参数化,使 N 个专家是对称底座的轨道旋转以实现亚线性内存增长。
- 引入包含空间平滑性的特定于视觉的训练损失,以利用补丁相关性。
- 在 CIFAR-100 的边缘约束下量化内存、准确率与部署可行性。
提出的方法
- 将每个专家 W_i 定义为 W_i ≈ B(φ_i) · W_base · B(θ_i)^T,其中 W_base 为 {-1,0,+1}。
- 将 B(·) 参数化为蝴蝶矩阵,参数量为 O(d log d),每个专家旋转的 FLOPs 为 O(n_ℓ · d)。
- 通过 AbsMean 比例缩放将 W_base 量化为每权重 1.58 位,并通过 STE 进行训练以传播梯度。
- 对每个专家应用输入/输出旋转以分布激活并抑制离群值。
- 使用结合交叉熵、负载均衡和空间平滑正则化的损失训练,以鼓励多样而稳定的路由。

实验结果
研究问题
- RQ1专家参数数量是否可从 O(N_E · d_model · d_ff) 降至亚线性规模,同时保持准确率?
- RQ2共享底座和轨道旋转是否能为视觉任务提供足够的专家多样性?
- RQ3空间平滑正则是否提升邻近图像补丁之间 MoE 路由的连续性?
- RQ4在边缘设备上实际的内存、能耗和部署影响是什么?
主要发现
- 在 CIFAR-100 上,相对于标准 MoE,在 64 个专家时实现 354× 的内存压缩。
- ButterflyViT 的内存尺度为 O(d_model·d_ff) + N_E·O(n_ℓ·d),使得许多专家可以在边缘设备上容纳。
- 在 64 个专家下,ButterflyViT 使用 0.379 MB,而基线为 939 MB,且与标准 MoE 相当的准确率。
- Dense FFN 在 CIFAR-100 上的准确率更高(59.35%)而 ButterflyViT(56.24%),但 ButterflyViT 使边缘部署成为独立参数不可实现的场景成为可能。
- 实际部署分析表明 ButterflyViT 可以在微控制器或较小的边缘设备上部署,而标准 MoE 不具备此能力,同时在 DRAM 模型下可实现大幅度的能源节省(高达约 99.5% 的内存带宽能耗降低)。
- 专家相似性分析显示 ButterflyViT 产生的专家流形比标准 MoE 拥有更高的跨专家相似性,反映共享底座的多样性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。