arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.28743cs.LG
收藏

重新思考在可转移超球优化下的语言模型扩展

Rethinking Language Model Scaling under Transferable Hypersphere Optimization

Microsoft(微软)

Liliang Ren, Yang Liu, Yelong Shen, Weizhu Chen

AI总结:

本文提出HyperP框架,通过Frobenius球约束和Muon优化器,在模型宽度、深度、训练token和MoE粒度间转移最优学习率,实现更稳定的扩展,同时引入SqrtGate机制提升MoE粒度扩展性能。

摘要:

大型语言模型的扩展定律严重依赖于优化器和参数化。现有的超参数转移定律主要针对一阶优化器,无法在大规模训练中防止训练不稳定。最近的超球优化方法将权重矩阵限制在固定范数的超球体上,提供了一种更稳定的扩展替代方案。我们引入HyperP(超球参数化),这是首个在Frobenius球约束下跨模型宽度、深度、训练token和混合专家(MoE)粒度转移最优学习率的框架。我们证明权重衰减在Frobenius球上是一阶无操作,显示Depth-μP仍有必要,并发现最优学习率遵循与AdamW之前观察到的“魔法指数”0.32相同的数据扩展幂律。在HyperP中,一个在最小尺度调优的基学习率可以跨所有计算预算转移,实现6×10^21 FLOPs基准下的1.58倍计算效率。此外,HyperP提供可转移的稳定性:所有监控的不稳定指标,包括Z值、输出RMS和激活异常值,在训练FLOPs扩展下保持有界且非递增。我们还提出SqrtGate,一种从超球约束派生的MoE门控机制,通过在不同MoE粒度间保持输出RMS提升粒度扩展性能,并展示超球优化使辅助负载平衡权重显著增大,实现强性能和良好的专家平衡。我们发布训练代码库于https://github.com/microsoft/ArchScale。

英文摘要:

Scaling laws for large language models depend critically on the optimizer and parameterization. Existing hyperparameter transfer laws are mainly developed for first-order optimizers, and they do not structurally prevent training instability at scale. Recent hypersphere optimization methods constrain weight matrices to a fixed-norm hypersphere, offering a promising alternative for more stable scaling. We introduce HyperP (Hypersphere Parameterization), the first framework for transferring optimal learning rates across model width, depth, training tokens, and Mixture-of-Experts (MoE) granularity under the Frobenius-sphere constraint with the Muon optimizer. We prove that weight decay is a first-order no-op on the Frobenius sphere, show that Depth-$μ$P remains necessary, and find that the optimal learning rate follows the same data-scaling power law with the "magic exponent" 0.32 previously observed for AdamW. A single base learning rate tuned at the smallest scale transfers across all compute budgets under HyperP, yielding $1.58\times$ compute efficiency over a strong Muon baseline at $6\times10^{21}$ FLOPs. Moreover, HyperP delivers transferable stability: all monitored instability indicators, including $Z$-values, output RMS, and activation outliers, remain bounded and non-increasing under training FLOPs scaling. We also propose SqrtGate, an MoE gating mechanism derived from the hypersphere constraint that preserves output RMS across MoE granularities for improved granularity scaling, and show that hypersphere optimization enables substantially larger auxiliary load-balancing weights, yielding both strong performance and good expert balance. We release our training codebase at https://github.com/microsoft/ArchScale.

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

↑