Introduction
Large-scale training of deep neural networks, particularly Large Language Models (LLMs), often faces challenges related to the conditioning of momentum matrices. These matrices, which track the moving average of gradients, frequently become ill-conditioned, causing gradient updates to be dominated by a few principal directions. This phenomenon leads to slow convergence or training instability. While structure-aware optimizers like Muon attempt to mitigate this through aggressive matrix orthogonalization, they often suffer from training crashes and poor compatibility with models pre-trained using standard AdamW.
The REG Optimizer
Researchers from Huawei Noah’s Ark Lab have proposed REG (Regularized Gradient Descent with Momentum), a novel optimizer designed to stabilize training dynamics through gentle regularization. The core of REG is the Row-and-Column-Scaling (RACS) operator.
Row-and-Column-Scaling (RACS)
Unlike previous structure-aware optimizers that force all singular values to unity via complex Singular Value Decomposition (SVD) or iterative methods, REG employs a simpler approach. It scales the rows or columns of the momentum matrix to ensure a uniform norm (typically the $\ell_2$-norm). This technique is grounded in "matrix equilibration," a classical numerical analysis method used to minimize matrix ill-conditioning. Because RACS only involves diagonal matrix multiplications, it is computationally much cheaper than iterative orthogonalization methods.
Implementation and Stability
REG incorporates several key features to ensure robust performance:
- RMS-based Rescaling: The final update matrix is rescaled to maintain a target Root Mean Square (RMS) value (typically between 0.2 and 0.4), preventing gradient explosion or vanishing.
- $\ell_2$-Norm Preference: Empirically, the authors found that the Euclidean ($\ell_2$) norm outperforms the theoretically "optimal" $\ell_1$ or $\ell_\infty$ norms in deep learning contexts, highlighting a unique characteristic of modern neural network dynamics.
- Hybrid Architecture Support: REG is applied to dense weight matrices, while standard AdamW updates are retained for sparse structures like embedding layers to maintain stability.
Experimental Evaluation
The efficacy of REG was evaluated across diverse domains, including mathematical reasoning, optimization modeling, and computer vision.
Mathematical Reasoning and Optimization
In Supervised Fine-Tuning (SFT) tasks, REG demonstrated significant improvements over both AdamW and Muon. On the MATH500 benchmark, REG achieved 64.8% accuracy, compared to 61.8% for AdamW and 58.6% for Muon. The performance gap was even more pronounced in optimization modeling; on the OptMATH-Bench, REG reached 11.40% accuracy, more than doubling the performance of both AdamW (4.15%) and Muon (5.18%).
Vision Tasks and Convergence
REG's impact on training dynamics is clearly visible in computer vision benchmarks. When training ResNet architectures from scratch on CIFAR-100, REG consistently showed the fastest convergence in both loss reduction and accuracy improvement compared to standard optimizers like SGD, Adam, and Newtonian Gradient Descent (NGD).
Discussion and Conclusion
REG offers a "middle ground" in the landscape of structure-aware optimization. By replacing aggressive orthogonalization with gentle row-and-column scaling, it achieves superior stability and compatibility with existing pre-trained models. Unlike Muon, which showed performance degradation on certain tasks like GSM8K, REG remained robust across all tested benchmarks.
Future work will focus on validating REG's performance in full-scale pre-training runs to establish its scaling laws and investigating the theoretical reasons behind the empirical success of the $\ell_2$-norm in matrix balancing for neural networks.
Summary updated