ButterflyMoE: 通过结构化的蝴蝶轨道实现子线性三次专家
ButterflyMoE: Compression-Scalable Ternary Experts via Structured Butterfly Orbits
AI总结:
ButterflyMoE通过结构化的蝴蝶轨道实现子线性三次专家,有效降低内存消耗并保持精度。
摘要:
线性内存扩展存储N个独立专家权重矩阵,需要O(N·d²)的内存,这超过了边缘设备的内存预算。当前压缩方法如量化、剪枝和低秩分解只能减少常数因子,但未解决扩展瓶颈。我们介绍了ButterflyMoE,一种将专家视为几何重新定向的统一共享量化基质的统一共享量化基质的方法。专家之间的多样性来自于对共享容量的不同视角,而不是冗余存储。通过将学习到的旋转应用到共享的三次原型上,每个专家的内存为O(d² + N·d log d),在专家数量上是子线性的。关键见解:通过量化训练这些旋转可以减少激活异常值并稳定极端低比特训练,其中静态方法会崩溃。在语言建模基准上,ButterflyMoE在256个专家时实现了150倍的内存减少,同时精度损失可忽略不计。ButterflyMoE使多个专家能够适应边缘受限设备,表明几何参数化打破了线性扩展。
英文摘要:
In current Mixture of Experts (MoE) architectures, linear memory scaling is present, the memory grows as the number of experts increases. $N$ independent expert weight matrices require $\mathcal{O}(N \cdot d^2)$ memory which exceeds the memory budget of edge devices. Current compression methods like quantization, pruning, and low-rank factorization reduce constant factors, but the scaling bottleneck is still unresolved. We introduce ButterflyMoE, a method which treats experts not as independent matrices but as geometric reorientations of a shared quantized substrate. Diversity amongst the experts arises from viewing different angles of the shared capacity and not from redundant storage. Learned rotations are applied to a shared ternary prototype. With this, each expert yields $\mathcal{O}(d^2 + N \cdot d \log d)$ memory-reducing per-expert cost from $\mathcal{O}(d^2)$ to $\mathcal{O}(d \log d)$. The key insight is that training these rotations with quantization reduces activation outliers and stabilizes extreme low-bit training where other static methods collapse. Across language modeling benchmarks, ButterflyMoE achieves 80$\times$ memory reduction at 8 experts with a highly favorable memory-accuracy tradeoff.At this 80x compression ButterflyMoE outperforms an equal memory dense baseline, showing that orbital parameterization extracts fundamentally more utility per byte. When scaled up to 256 experts, ButterflyMoE asymptotically compresses the memory by 150 $\times$. ButterflyMoE reduces the constant factor of linear scaling with compression ratio growing with the expert count.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。