Large Model Optimizers: From Momentum to Muon
This article traces the evolution of optimizers for large models. It covers gradient descent, momentum, and adaptive learning rates, then explains how Muon's matrix-based update approach differs from them. It also includes practical guidance for teams considering Muon in their own training runs.
A recently published training document from a new-generation large model has brought attention to Muon, a new optimizer. Optimizers are often mentioned only briefly in textbooks, but they determine training efficiency, stability, and ultimately the ceiling on a model’s final performance. This article uses that context to walk through the full history of optimizer techniques, from basic gradient descent to momentum and adaptive learning rates, and then to the second-order, matrix-based update approach represented by Muon.
1. What an Optimizer Does: The Navigator of Training
Before covering specific algorithms, it helps to have a clear mental model. Training a neural network means searching a very high-dimensional parameter space for a “low-altitude” position. The downhill analogy shows how each component contributes:
- Loss function: Like an altimeter, it tells you how high your current position is, meaning how large the model’s current error is.
- Gradient: Computed through backpropagation, it works like probing the ground around you with your feet. It shows which direction slopes downward.
- Optimizer: It is your strategy for moving forward. It decides which direction to step, how far to step, and how to adjust your pace on rough terrain.
The gradient only tells you which way to go. The optimizer answers three deeper questions: how large the step should be, how the direction should be corrected, and how to avoid being misled by the terrain. These three questions map to the three main threads in the evolution of optimizer techniques.
2. The Starting Point of Gradient Descent: A “Massless Particle”
The first problem an optimizer must solve is learning rate control, which means deciding how far to step each time. A step that is too large can jump over the valley floor and land on the opposite slope, causing the loss to oscillate or diverge. A step that is too small makes training unacceptably slow. An ideal optimizer moves quickly across flat regions and slowly across steep regions near the valley floor.
The earliest answer to this problem is stochastic gradient descent (SGD), whose origins trace back to the gradient descent method proposed by the French mathematician Cauchy in 1847. The SGD rule is very simple: step in the direction opposite the gradient, using a fixed learning rate.
From a physical perspective, however, standard gradient descent carries a counterintuitive hidden assumption. It models a massless particle that can instantly reach top speed and stop instantly, with no inertia at all. This assumption works well on most terrain, but one common type of terrain exposes a serious flaw.
3. Polyak’s Breakthrough: Giving the Particle Mass and Inertia
In 1964, the Soviet mathematician Boris Polyak was studying optimization theory and noticed the problem of narrow ravines. When the loss surface is a long, narrow trough, the gradient points almost perpendicular to the trough’s direction. Standard gradient descent then bounces back and forth between the two walls, and makes very little effective progress along the trough toward the valley floor.
Polyak asked a question grounded in physical intuition: What would happen if this particle had mass and inertia? His answer was the Heavy Ball Method. Its core update rule is:
v_t = β · v_{t-1} + ∇L(θ_t)θ_{t+1} = θ_t - lr · v_t
Here, v_t is the velocity term, and β is the momentum coefficient, typically around 0.9. A heavy ball with inertia rolling into a ravine suppresses oscillation perpendicular to the trough, because the back-and-forth components cancel out. Meanwhile, gradient signals along the trough keep accumulating. In effect, the effective direction receives extra acceleration, and the oscillating direction gets damping.
This idea has had a lasting influence. It establishes a core principle of optimizer design: use historical gradient information in a structured way. Nearly every later optimizer refines the answer to the question of how to use that history within this same framework.
4. Adaptive Learning Rates: From Global Step Size to Per-Parameter Step Size
Momentum addresses directional oscillation, but another dimension remains unsolved: the optimal step size can differ greatly across parameters. Parameters tied to sparse features receive large gradients only occasionally, while parameters tied to dense features receive frequent, gentle gradients. Using one learning rate for both is clearly unreasonable.
This led to the family of adaptive learning rate optimizers. Their core idea is to maintain running statistics of squared gradients for each parameter and use the historical gradient magnitude to scale that parameter’s learning rate automatically. Parameters with consistently large gradients take smaller steps, and parameters with consistently small gradients take larger steps. Later optimizers combined momentum (first-moment estimation) with adaptive scaling (second-moment estimation). For nearly a decade, these methods were the default choice in deep learning, and they remain the baseline for many training tasks.
These methods also have costs. First, each parameter requires two additional state tensors of the same size as the parameters themselves. For models with hundreds of billions of parameters, the optimizer state alone can take several times more memory than the model weights. Second, element-wise scaling is a “diagonal approximation.” It assumes parameters are independent of each other and ignores correlations between parameter dimensions. That ignored information holds substantial room for optimization.
5. Muon’s Core Idea: Orthogonalizing the Update
Muon targets the limitation of that diagonal approximation. Its starting point is that most parameters in a neural network are two-dimensional weight matrices, and the natural language of matrices is linear algebra, not element-wise statistics.
The Muon update process has two steps:
- Momentum accumulation: As in classical momentum, the method computes an exponential moving average of gradients, producing a directional update matrix with inertia.
- Orthogonalization: The momentum matrix is approximately orthogonalized, often computed with several Newton-Schulz iterations in practice, so that the singular values of the final update matrix become more uniform.
Intuitively, an unprocessed momentum matrix is often dominated by a few leading singular directions, so updates concentrate on a small number of directions. Orthogonalization redistributes the update’s energy across directions, so every direction in parameter space receives meaningful exploration. This brings several practical benefits:
- More stable update scale: The spectral norm of the update matrix is effectively controlled, so training becomes less sensitive to the learning rate, which reduces tuning effort.
- Better parameter efficiency: Balanced updates use model capacity more fully, which can produce lower loss for the same amount of data.
- Natural fit with modern large model architectures: Two-dimensional weight matrices make up the bulk of attention and feed-forward layers. Muon can act directly on these matrices, while scalar parameters such as biases and normalization coefficients can still be handled by traditional adaptive optimizers. This forms a hybrid optimization strategy.
6. Practical Recommendations for Engineering
Developers who want to try this kind of method in their own training tasks can start with these points:
- Use optimizers by layer: A common and reliable approach is to assign two-dimensional matrix parameters to a matrix-based optimizer, and keep classical adaptive optimizers for one-dimensional parameters (such as biases and LayerNorm gains) and the embedding layer.
- Recalibrate the learning rate: Orthogonalization changes the numerical scale of updates, so learning rates tuned for the previous optimizer cannot be transferred directly. A small-scale sweep is usually needed.
- Control orthogonalization overhead: Newton-Schulz iterations add extra matrix multiplications. Because they operate on weight matrices rather than activations, their cost is typically a small percentage of total training compute, which makes them cost-effective.
- Account for memory carefully: The memory footprint of matrix-based optimizers differs from traditional approaches. When planning memory budgets for distributed training, include optimizer state in the overall estimate.
7. Conclusion
Looking back at this technical lineage: Cauchy established the basic rule of descending along the steepest direction. Polyak corrected the physical distortion of the “massless particle” by adding mass and inertia. Adaptive optimizers addressed differences in step size through per-parameter statistics. Muon goes further by moving updates from an element-wise, diagonal view into the spectral world of matrices. Each generation of optimizers has advanced by using gradient information more fully and in a more structured way.
For engineers working in the era of large models, understanding optimizers is no longer just a matter of tuning tricks. It is a foundational skill for understanding training efficiency bottlenecks and judging whether a new training approach is feasible. Improving the geometry of update directions, handling parameter correlations, and making optimizer state more memory-efficient will likely remain important frontiers in the evolution of training techniques.
