arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.21135cs.LG
收藏

DynaMo: 用于MoE的运行时可切换量化与跨数据集适应

DynaMo: Runtime Switchable Quantization for MoE with Cross-Dataset Adaptation

School of Computer Science Peking University Beijing, China(计算机科学学院 首都大学 中国北京);School of Integrated Circuits Peking University Beijing, China(集成电路学院 首都大学 中国北京)

Zihao Zheng, Xiuping Cui, Size Zheng, Maoliang Li, Jiayu Chen, Yun Liang, Xiang Chen

AI总结:

DynaMo通过多级分析揭示MoE动态,提出可切换量化框架,实现跨数据集适应并提升模型性能与效率。

摘要:

随着混合专家(MoE)架构在大模型中增加参数数量,对模型量化的需求也相应增加。然而,现有的量化方法忽略了MoE在多个数据集中的专家动态。此外,现有的静态量化无法将MoE适应于各种数据变化场景。在本文中,我们进行了多级分析,揭示MoE动态并定义每个通道/每个专家的重要性。基于分析结果,我们提出了DynaMo,一种端到端的MoE量化框架。DynaMo采用专家级混合精度基线量化策略,确保量化后的MoE兼容多种现有数据集。此外,DynaMo结合了通道级动态切换机制,使这些量化后的MoE模型适应于新数据集。实验显示,DynaMo在各种数据集上实现了2.78~4.54 PPL下降和1.85%~3.77%的准确率提升,同时具有约3倍的推理加速和可忽略的开销。

英文摘要:

As the Mix-of-Experts (MoE) architecture increases the number of parameters in large models, there is an even greater need for model quantization. However, existing quantization methods overlook the expert dynamics of MoE across multiple datasets. Moreover, the existing static quantization cannot adapt MoE to various data change scenarios. In this paper, we perform a multi-level analysis to reveal MoE dynamics and define the significance of each channel/each expert. Based on the analysis results, we propose \textit{DynaMo}, an end-to-end MoE quantization framework. DynaMo adopts an expert-level mixed-precision baseline quantization strategy, which ensures the quantized MoEs are compatible with multiple existing datasets. Furthermore, DynaMo incorporates a channel-level dynamic switching mechanism to adapt these quantized MoE models to novel datasets. Experiments show that DynaMo achieves a 2.78~4.54 PPL decrease and a 1.85%~3.77% accuracy improvement in various datasets, with ~3x inference speedup and negligible overhead.

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

↑