Dion3:全栈正交更新
观点分析 · 2026/08/17
Muon优化器因其三次时间复杂度的Newton-Schulz正交化步骤而产生显著开销。当权重分片时,通信开销进一步加剧计算成本,削弱了Muon在许多场景中的优势。我们提出Dion3,这是Muon的一个修订版,旨在堆栈的每一层解决这一开销。我们的Gram Newton-Schulz算法降低了正交化的FLOP成本,我们的CuteDSL内核通过利用对称性加速它,而我们的megabatching策略减少了通信开销。此外,我们提出对更新规则的简单更改,进一步降低成本:每一步仅选择动量矩阵的一部分行进行正交化。该更新规则在速度和性能上都优于Dion(Muon的另一种“压缩”版本)。总体而言,Dion3在损失上匹配或优于Muon,但将优化器步进时间减少了最多6倍。Dion3可通过dion包(https://github.com/microsoft/dion)作为Muon的直接替代品使用。
该文章提出了一种对Muon优化器的改进方法,显著降低了计算和通信开销,同时保持或提升性能,对于大规模深度学习训练具有实际意义,且提供了开源实现,值得关注。
The Muon optimizer incurs a significant overhead cost due to its cubic-time Newton-Schulz orthogonalization step. When weights are sharded, communication overhead compounds this computational cost, eroding the benefits of Muon in many settings. We present Dion3, a revision of Muon that targets this overhead at every level of the stack. Our Gram Newton-Schulz algorithm reduces the FLOP cost of orthogonalization, our CuteDSL kernels accelerate it by exploiting symmetry, and our megabatching strategy reduces communication overhead. Moreover, we propose a simple change to the update rule that cuts costs even further: selecting only a fraction of the momentum matrix's rows to orthogonalize at each step. This update rule improves on Dion (another "compressed" version of Muon), in both speed and performance. Overall, Dion3 matches or improves on the loss achieved by Muon but reduces optimizer step time by up to 6x. Dion3 is available via the dion package (https://github.com/microsoft/dion) as a drop-in replacement for Muon.