The Evolution of LLM Training Optimizers: From SGD to Muon
This article explains why optimizers are a core part of the LLM training foundation, using a blindfolded-descent analogy to cover step-size control, escaping local minima, and update direction quality. It traces the technical progression from SGD to Polyak's heavy-ball momentum and adaptive Adam-style methods, then examines Muon's matrix-level update regularization, its expected benefits and overhead, a practical evaluation framework, and common misconceptions about adopting new optimizers.
1. Why Optimizers Deserve a Separate Discussion
When a family of LLM APIs goes through a version upgrade, the first changes people notice are usually the calling conventions, parameter structures, and response formats. What actually determines the ceiling of model capability, however, is the technology built during training. The most direct—and most easily underestimated—part of that foundation is the optimizer.
Think of training as descending a mountain blindfolded. The loss function tells you your current altitude in real time. The gradient, obtained through backpropagation, works like probing the slope of the ground with your feet, telling you which side leads downhill. The optimizer is the navigation strategy in your head: it decides which direction to step and how large that step should be. Different strategies lead to very different speeds and stability in reaching the valley floor.
A mature optimizer has to solve at least three problems:
- Step-size control (learning rate scheduling): Steps that are too large jump straight over the valley and oscillate between its sides, so training never converges. Steps that are too small converge extremely slowly and waste a large amount of compute. Ideally, you move fast on flat ground and slow down on steep slopes and near the valley floor.
- Escaping local optima: Real loss surfaces contain many small pits halfway up the mountain. Relying only on local downhill judgments easily traps you in one, mistaking a local optimum for the global one.
- Update direction quality: In long, narrow canyon terrain, the choice of direction determines whether you repeatedly slam into the canyon walls, which directly affects convergence efficiency.
2. Technical Lineage: From a Massless Particle to Momentum and Adaptivity
The plainest form of stochastic gradient descent (SGD) can be traced back to Cauchy’s work on optimization methods in the mid-nineteenth century. Its physical picture is “a massless particle sliding on a surface”: it can instantly reach top speed and instantly stop, which clearly contradicts physical intuition.
The Soviet mathematician Boris Polyak broke that assumption. In 1964, while studying optimization theory, he noticed that in long, narrow canyon terrain, standard gradient descent bounces back and forth between the walls with very low efficiency. He introduced the physical intuition of “mass” and “inertia” and proposed the Heavy Ball Method, the early form of the momentum idea widely used today.
Its update logic can be abstracted as:
v_t = beta * v_{t-1} + grad_t # accumulate "inertia"theta_t = theta_{t-1} - lr * v_t # step along the inertia direction
The benefit of momentum is that oscillations perpendicular to the valley floor cancel each other out, while speed keeps accumulating along the valley floor, letting the optimizer “charge” through flat regions and suppress jitter.
After that, optimizers entered the adaptive era. Adam-style methods, centered on second-moment estimation, maintain both a first moment and a second moment for each parameter and use a moving average of squared gradients to scale each coordinate independently. This gives parameters with different scales and different sparsity levels an appropriate step size. Their engineering friendliness made them the default choice for LLM training for a long time, and precisely for that reason they are often presented as the final piece of the “gradient problem toolbox.”
3. What Makes Muon Different: From Per-Coordinate Updates to Matrix Structure
A newer optimizer that has drawn considerable attention in recent training practice takes an approach clearly different from classic per-coordinate methods. Instead of treating a parameter matrix as a pile of mutually independent scalars, it treats the weight matrix as a single object and constrains and regularizes the structure of the “update matrix.”
The core intuition is this: matrix multiplication is the main body of LLM computation, and if the “direction distribution” of a weight matrix is too ill-conditioned (with vastly different scales across directions), effective learning gets dominated by a few directions. By orthogonalizing or regularizing the update matrix at the spectral level, this class of methods makes update magnitudes more balanced across singular directions, which:
- Improves the condition number and reduces oscillation in canyon-like terrain;
- Produces a more stable convergence curve under the same compute budget;
- Fits naturally with matrix-based parallelism (tensor parallelism, sharding) and reduces the memory and communication pressure caused by per-parameter state.
Illustrative pseudocode (structure only, not any specific implementation):
G = backward(loss) # gradient matrixM = beta * M + G # momentum accumulationU = orthogonalize(M) # regularize the update structureW = W - lr * U # update with a unified step size
It is worth stressing that orthogonalization itself introduces extra computation, so in engineering practice the ratio of “extra overhead to convergence gain” is what matters. It is typically combined with a layered strategy—for example, applying matrix-based updates only to two-dimensional hidden-layer weights while keeping adaptive per-coordinate methods for biases, normalization parameters, and embedding layers.
4. Selection and Adoption: A Practical Evaluation Framework
With a new optimizer, the safest approach is not a wholesale replacement but a measurable evaluation loop:
- Small-scale proxy experiments: Fix the data and initialization, then compare loss curves, gradient norms, update norms, and the distribution of effective learning rates.
- Stability metrics: Watch for spikes, how often gradient clipping is triggered, and overflow under mixed precision.
- Cost metrics: Time per step, peak memory, and communication volume—especially the extra operator overhead introduced by orthogonalization.
- Generalization checks: Confirm on downstream tasks that the model is not “faster on the training set but worse on the validation set.”
On a general-purpose cloud platform, this loop can be built entirely from standard capabilities: a container platform to host distributed training and elastic scaling; object storage to hold datasets and checkpoints; a logging service to collect training metrics and exception traces; and monitoring and alerting to set threshold notifications for loss spikes, memory overflow, and node failures. This forms a reproducible, auditable training engineering system without binding to any proprietary interface.
5. Common Misconceptions
- Misconception 1: A new optimizer is always faster. The actual gain depends heavily on model architecture, data mixture, and parallelism strategy.
- Misconception 2: You can reuse the old learning rate. Matrix-based updates change the scale of the effective step size, so you must redo the learning rate and warmup search.
- Misconception 3: Ignoring numerical stability. Under mixed precision, both orthogonalization and second-moment estimation are more sensitive to numerical range and need suitable clipping and precision strategies.
6. Conclusion
The optimizer is the navigation system of deep learning. From SGD to momentum, and from adaptive methods to matrix-structured updates, the main thread of this evolution has always been the same: estimate direction more accurately, allocate step size more reasonably, and use compute more efficiently. Understanding that thread, together with standardized experimentation and monitoring engineering, is what enables well-grounded technical choices at a time when API capabilities keep being upgraded.
