The Evolution of LLM Training Optimizers: A Technical Look at Muon
This article traces the evolution of optimizers used in large model training, from stochastic gradient descent and momentum to adaptive methods, and explains how matrix-based optimizers such as Muon apply orthogonalization to weight updates. It covers why optimizers matter for the training foundation, the core problems of step size control, saddle point escape and parameter scale differences, the practical constraints of matrix optimizers, and recommendations for model selection, tuning and monitoring.
1. Why Optimizers Are Back in Focus
When a large model exposes its capabilities through API documentation, developers directly perceive the calling conventions, parameter structures and response formats. What actually determines whether those capabilities can be trained at all is every foundational component inside the training stack. The recent technical discussion is not happening at the API layer, but inside a long-underrated part of the training algorithm: the optimizer.
Outside attention has concentrated on the name and shape of a particular new optimizer. From an evolution standpoint, however, it is not a species that appeared out of nowhere. It is an extension of the gradient descent main line along the dimension of matrix structure priors. Understanding it requires going back to the fundamental problem an optimizer solves.
2. What an Optimizer Really Is: A Descent Strategy, Not Just a Formula
Training can be compared to searching for the lowest point in a continuous mountain range while blindfolded. Only two kinds of information are available:
- The loss value: it tells you the current altitude.
- The gradient: obtained through local probing, it indicates the slope direction and which side goes downhill.
The optimizer is the “stepping strategy.” It decides three things: which direction to move, how large this step should be, and how historical information influences the current decision. In engineering terms these correspond to direction construction, learning rate control and state accumulation.
2.1 Step Size Control: The Boundary Between Convergence and Oscillation
A step that is too large bounces back and forth across both sides of the valley floor, producing a jagged loss curve or even divergence. A step that is too small stretches out the training cycle and raises compute cost linearly. The ideal strategy is anisotropic: accelerate in flat regions, slow down in steep regions or near a minimum.
2.2 Escaping Local Minima and Saddle Points
In high-dimensional non-convex settings, the real “deep pits” are usually not the bottleneck. The real problem is the enormous number of saddle points and shallow local minima. The strategy needs to introduce some form of inertia or noise so parameters have a chance to cross the barrier.
2.3 Parameter Scale Differences
Gradient magnitudes across different parameter blocks can differ by several orders of magnitude. A uniform step size inevitably leaves some layers unable to learn while others keep shaking. This is the core contradiction adaptive methods address.
3. Evolution: From Steepest Descent to Heavy Ball, Then to Adaptive Methods
The earliest stochastic gradient descent idea can be traced to nineteenth-century mathematical formulations of optimization problems. Its limitation is that it simulates a “massless particle”: it can reach any speed instantly and stop instantly, which contradicts physical intuition. Under the elongated canyon-like curvature distributions, it repeatedly strikes both walls and is extremely inefficient.
In the mid-twentieth century, Soviet mathematicians working on optimization theory proposed attaching mass and inertia to the particle, known as the heavy ball method: the update direction is no longer determined by the current gradient alone, but by a weighted combination of the current gradient and historical velocity. This idea later evolved into the momentum mechanism widely used in deep learning. Its modern form is usually written as:
# Modern form of momentum (illustrative)v = beta * v + (1 - beta) * g # first moment: moving average of gradientstheta = theta - lr * v # update parameters with the smoothed direction
The closer beta is to 1, the larger the share of historical information, the smoother the direction, and the slower the response.
Adaptive methods came next: maintain a moving average of squared gradients for each parameter, and normalize the update by its square root, so the effective step size is automatically balanced across parameter blocks. Engineering implementations usually add first-order momentum and bias correction:
# General skeleton of adaptive optimizers (illustrative)m = b1 * m + (1 - b1) * gs = b2 * s + (1 - b2) * g * gm_hat = m / (1 - b1 ** t)s_hat = s / (1 - b2 ** t)theta = theta - lr * m_hat / (sqrt(s_hat) + eps)
These methods became the long-standing default because they are insensitive to hyperparameters, robust to both sparse and dense gradients, and work out of the box in engineering practice.
4. Where Matrix Optimizers Break New Ground
The key difference of the new generation of matrix optimizers (the industry often names them with a single letter; this article refers to them as matrix optimizers) is that they no longer treat parameter gradients as a flat vector processed element by element. Instead, they treat the weight matrix as a whole structure and impose an orthogonalization constraint on the update matrix.
The logic chain breaks into three steps:
- Use momentum to obtain a smoothed gradient matrix.
- Orthogonalize that matrix (in practice, an approximate iterative approach is often used instead of a full matrix decomposition, to control overhead).
- Update the weights with the orthogonalized direction scaled by the learning rate.
The direct effect: the singular values of the update matrix are flattened and step sizes across directions become nearly uniform, which is equivalent to a “condition number improvement” of the parameter space. This explains the stability advantage it shows in deep networks and large-scale training: updates are no longer dominated by a few principal directions.
The engineering constraints to emphasize:
- It mainly applies to two-dimensional weight matrices. Vector parameters (such as the scale and bias of normalization layers, and embeddings) are usually still handled by adaptive methods, forming a hybrid optimization strategy.
- Orthogonalization introduces extra compute and memory overhead, which must be traded off through the number of approximation iterations, blocking strategies and parallel partitioning schemes.
- The learning rate and momentum need to be recalibrated; old configurations cannot be swapped in directly.
# Illustrative structure of a hybrid optimization strategyfor name, p in model.named_parameters():if p.ndim == 2:use_matrix_optimizer(p) # matrix optimizer pathelse:use_adaptive_optimizer(p) # adaptive path
5. Practical Advice on Selection and Tuning
- Small-scale validation stage: use an adaptive method as the baseline and confirm the data pipeline, loss curves and evaluation metrics behave normally.
- When switching to a matrix method: fix momentum first and sweep only the learning rate, watching whether the gradient norm and update norm stay stable over the first few hundred steps.
- Recommended monitoring metrics: record loss, global gradient norm, update norm and parameter norm growth rate together. Divergence among the four usually means the step size or normalization is wrong.
- Under mixed precision, watch numerical stability: the tiny constants in the orthogonalization iterations and normalization terms need to be adjusted for the precision in use.
- If loss spikes appear during training, roll back to a checkpoint and lower the learning rate first, rather than blindly adding regularization.
6. Conclusion
Capability at the API layer is only the result; optimizer evolution on the training side is the cause. From steepest descent to heavy ball, from momentum to adaptive methods, and now to introducing matrix structure priors, the main line remains the same question: how to reach a more trustworthy minimum in fewer steps under ill-conditioned terrain with limited information. For developers, treating the optimizer as a schedulable system component rather than a fixed constant, together with thorough metric monitoring and checkpointing, is the key to keeping training stability in hand.
