From Gradient Descent to Muon: How Optimizer Design Is Evolving in Large Model Training
Muon, the momentum-based optimizer with Newton-Schulz orthogonalization, has drawn attention after a new open-source large model adopted it. This article traces the evolution of optimizers from SGD to Adam, explains how Muon's geometry-aware matrix updates work, and offers practical guidance for teams evaluating it.
A new-generation preview of an open-source large model family was recently released alongside its open-source weights, and its ultra-long context capability and training details have sparked wide discussion in the developer community. Among the technical highlights, the most attention-grabbing is not the model architecture itself, but the novel optimizer used during training: Muon. Optimizers sit “behind the scenes” of the training pipeline, yet they directly determine convergence speed, stability, and the ultimate performance ceiling. This article uses that development as an opportunity to systematically review the evolution of optimizers and take a deep dive into Muon’s design philosophy and engineering significance.
Optimizers: The “Navigation System” of Deep Learning Training
The most intuitive way to understand optimizers is the classic “descending a mountain” analogy. Imagine being blindfolded and dropped into a rolling mountain range, with the goal of reaching the deepest valley. You have only two sources of information:
- The loss function: tells you your current altitude;
- The gradient: computed via backpropagation, roughly equivalent to probing the slope of the ground around you with your foot, indicating which direction leads downhill.
The optimizer is the strategy system in your brain that decides “where to step next and how far.” It typically has to solve three core problems:
First, controlling the update step size — learning rate management. Steps that are too large may overshoot the valley bottom and land on the opposite slope, showing up as oscillating loss and failure to converge. Steps that are too small make training slow and waste compute. A good optimizer should speed up on flat terrain and automatically slow down on steep slopes near the valley floor.
Second, escaping local optima. Real loss surfaces are full of “small pits halfway down the mountain,” and naive descent strategies easily get stuck in them.
Third, improving convergence efficiency and generalization. Under the same compute budget, a better optimizer drives the model to a lower loss and often yields better generalization.
From Gradient Descent to Momentum: Introducing Physical Intuition
The most basic optimization method is stochastic gradient descent (SGD), whose roots trace back to the method of steepest descent proposed by Cauchy in 1847. But standard gradient descent essentially simulates a “massless particle” — it can accelerate and stop instantly, which defies physical intuition.
This limitation is exposed in “narrow canyon” terrain: gradients are large across the canyon walls and small along the valley floor, causing parameter updates to oscillate back and forth while making slow forward progress. In 1964, the mathematician Polyak proposed the famous Heavy Ball Method: give the particle “mass” and “inertia,” letting historical gradient directions accumulate as momentum. This idea later evolved into the momentum SGD widely used in deep learning, with the update form:
v = beta * v - lr * grad # accumulate momentumparam = param + v # update parameters
The momentum term acts like a heavy ball rolling downhill: oscillations across the canyon cancel out, while velocity accumulates along the direction of travel, significantly accelerating convergence.
Afterward, adaptive learning rate methods took the stage. Methods represented by AdaGrad and RMSProp maintain an independent learning rate for each parameter, scaled by the sum of squared historical gradients. Adam then combined momentum (first-moment estimation) with adaptive learning rates (second-moment estimation), and thanks to its robustness out of the box, it became the de facto standard for large model training over the past decade:
m = beta1 * m + (1 - beta1) * grad # first momentv = beta2 * v + (1 - beta2) * grad ** 2 # second momentparam -= lr * m_hat / (sqrt(v_hat) + eps)
Muon: Geometry-Aware Updates for Matrix Parameters
Adam is general-purpose, but it treats parameters as “a pile of independent scalars,” ignoring the structural fact that neural network weights are inherently matrices. Muon (MomentUm Orthogonalized by Newton-Schulz) starts precisely from this insight.
Muon’s core idea can be summarized in two steps:
- Keep the momentum: accumulate gradients into momentum to obtain a smoothed update direction;
- Orthogonalize the update matrix: use Newton-Schulz iteration to approximately orthogonalize the momentum matrix so that its singular values become roughly uniform, then apply it to the parameters.
Illustrative pseudocode:
def newton_schulz(G, steps=5, eps=1e-7):# approximately compute G @ (G^T G)^(-1/2) to orthogonalizea, b, c = (3.4445, -4.7750, 2.0315)X = G / (G.norm() + eps)for _ in range(steps):A = X @ X.TB = b * A + c * A @ AX = a * X + B @ Xreturn Xmomentum = beta * momentum + gradupdate = newton_schulz(momentum)param -= lr * update * scale
Why does orthogonalization help? A naive gradient update matrix often has a large condition number — singular values in a few directions are far larger than in the rest, so updates are “hijacked” by dominant directions and much of the useful information is wasted. Orthogonalization effectively flattens the singular value spectrum of the update matrix, giving every direction a balanced update magnitude. Geometrically, this is equivalent to steepest descent in the spectral norm sense, rather than the per-coordinate scale normalization that Adam corresponds to.
Muon’s Engineering Value and Boundaries
Based on public training practices and community reproductions, Muon shows several advantages in large-scale model training:
- Higher sample efficiency: reaching the same loss requires noticeably fewer training steps and tokens, which translates directly into compute cost savings;
- More stable training: after orthogonalization, update magnitudes are more controllable and less sensitive to the learning rate, which is especially beneficial for large-batch training;
- Manageable memory overhead: unlike Adam, which maintains two momentum states, Muon keeps only one momentum buffer, nearly halving optimizer state memory usage.
Its boundaries should also be noted: Muon is designed primarily for two-dimensional matrix parameters (i.e., the weights of various linear layers). One-dimensional or special parameters such as the embedding layer, output head, and LayerNorm are usually still handled by Adam-family optimizers. In practice, the common approach is therefore “hybrid optimization” — automatically grouping parameters by dimension and routing them to different optimizers. In addition, the Newton-Schulz iteration adds a small amount of extra computation, but this is usually negligible compared with the overall cost of matrix multiplications.
Practical Advice for Developers
For teams that want to try novel optimizers in their own training workloads, the following path is recommended:
- Establish a reliable baseline first: run the training pipeline with a well-tuned Adam configuration, and record loss curves and throughput metrics;
- Run small-scale ablations: compare convergence speed on a scaled-down model, focusing on the shape of the loss curve rather than single-point values;
- Pay attention to hyperparameter transfer rules: the optimal learning rate for orthogonalization-style optimizers differs significantly from Adam’s, and they tend to be more sensitive to weight decay settings, so a fresh sweep is needed;
- Leverage infrastructure: when running large-scale training in the cloud, combine container platforms, distributed storage, and monitoring/alerting capabilities to build a reproducible, observable training environment. For example, compute scheduling and training acceleration offerings such as those from Baidu AI Cloud can help teams quickly validate optimizer-level improvements.
Conclusion
From Cauchy’s steepest descent, to Polyak’s heavy ball method, to Adam and now Muon, every step in the evolution of optimizers has come from a deeper understanding of the problem’s structure: from a “massless particle” to a “ball with inertia,” and finally to “updates that respect matrix geometry.” The adoption of Muon by a new-generation open-source large model signals that optimizers are moving from “general-purpose tools” toward “structure-aware customization.” For developers, understanding these underlying principles is far more valuable in the long run than chasing the release of any single model.
