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

Complete-muE:MoE模型的最优超参数迁移与缩放

Complete-muE: Optimal Hyperparameter Transfer and Scaling for MoE Models

Adobe Research(Adobe研究院)

Hongwu Peng, Ohiremen Dibua, Yuanjun Xiong, Yifan Gong, Jin Huang, Lantao Yu, Mamshad nayeem Rizve, Kevin Duarte, Siddharth Iyer, Jianming Zhang, Yan Kang

AI总结:

提出Complete-muE框架,通过双桥系统实现稠密FFN与混合专家(MoE)架构间的超参数迁移,支持MoE模型在激活专家数、总容量、粒度等方面的缩放,并验证了“一次调优稠密模型,迁移至所有MoE配置”的实用策略。

摘要:

我们提出Complete-muE,一个针对Transformer块中稠密FFN与任意混合专家(MoE)设置之间超参数迁移的框架。现有工具如$μ$P(要求固定架构)或SDE(要求固定每步token数)无法直接解决MoE设置中的超参数迁移问题,因为从稠密到MoE的迁移或MoE总专家数的缩放同时改变了架构和每个专家的token数。Complete-muE通过一个双桥系统解决了这一挑战:桥I通过带有归一化路由器尺度的有效宽度$μ$P在稠密FFN和稠密MoE之间映射。桥II通过激活专家缩放将稠密MoE映射到稀疏MoE,其中一阶SDE学习率/权重衰减校正相互抵消,而一个有限残差$σ_0$偏移保持不变。由此产生的迁移规则,我们称之为Complete muE,涵盖了MoE模型的激活专家数、总容量、粒度以及共享/组平衡混合的变化,以及通用Transformer模型的网络宽度/深度、批量大小和训练时长的变化。大量的语言模型和扩散模型预训练实验证实,complete-muE在不同模型架构和参数数量下产生了相对稳定的超参数最优值——仅存在与桥II非严格SDE行为一致的小幅偏移。在实践中,这种偏移足够小,以至于在单个稠密参考模型上调优的超参数可以接近最优地迁移到所有MoE配置——\emph{一次调优稠密模型,迁移至所有}是Complete-muE核心的实用策略。这使得MoE模型在扩展模型容量时,无需进行昂贵的超参数搜索即可实现比稠密模型更快的收敛速度提升。

英文摘要:

We propose Complete-muE, a framework which targets hyperparameter transfer across dense FFN and any Mixture-of-Experts (MoE) setups in transformer blocks. Existing tools such as $μ$P (requires fixed architectue) or SDE (requires fixed per-step token count) cannot directly solve the hyperparameter transfer problem in MoE setups because Dense to MoE transfer or MoE total experts scaling changes both architecture and tokens per expert. Complete-muE solves this challenge with a two-bridge system: Bridge~I maps between dense FFN and Dense MoE by active-width $μ$P with a normalized router scale. Bridge~II maps between Dense MoE and sparse MoE by activated-expert scaling, where the first-order SDE LR/WD correction cancels while a bounded residual $σ_0$ shift remains. The resulting transfer rule, which we term as Complete muE, covers changes in activated experts, total capacity, granularity, and shared/group-balanced hybrids for MoE models as well as network width/depth, batch size, and duration changes for general Transformer models. Extensive language model and diffusion model pretraining experiments confirm that complete-muE yields relatively stable hyperparameter optima across model architectures and parameter counts -- with only minor drift consistent with the non-strict SDE behavior of Bridge~II. In practice this drift is small enough that hyperparameters tuned on a single dense reference transfer near-optimally to all MoE configurations -- \emph{tune dense once, transfer to all} is the practical recipe at the core of Complete-muE. This enables MoE models to achieve accelerated convergence speedup over dense models when scaling model capacity without costly hyperparameter search.

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

↑