LLM Training Optimizer Evolution: What Makes Muon Stand Out
This article explains how training optimizers shape large language model performance, tracing the progression from stochastic gradient descent to momentum-based methods, element-wise adaptive optimizers, and matrix-based orthogonal updates such as Muon. It covers the three core responsibilities of an optimizer, the tradeoffs of each approach, practical guidance for benchmarking and selecting one, and common misconceptions to avoid.
1. Why API Capabilities Are Backed by Optimizer Progress
When a class of LLM API capabilities is upgraded, outside observers tend to focus on call formats, parameter shapes, and response quality. What actually determines model performance, however, is search efficiency and stability during training. Training can be abstracted as searching for the lowest point in complex terrain: the loss function reports the current altitude, the gradient reports the slope underfoot, and the optimizer decides where to step next and how far. The more complex the terrain and the larger the parameter count, the more critical optimizer quality becomes.
Think of the training task as descending a mountain blindfolded: you can only sense the local slope, and the goal is to reach the global minimum. The terrain is full of narrow valleys, plateaus, and plenty of small pits halfway up the slope. A competent optimizer must solve at least three things: controlling step size, accumulating a useful direction of motion, and staying stable under noise and ill-conditioned curvature. Together, these three determine convergence speed and final accuracy.
2. The Three Core Responsibilities of an Optimizer
2.1 Step Size Control: Neither Overshooting Nor Spinning in Place
When the step is too large, parameters oscillate back and forth across the valley floor, the loss curve turns jagged, and training may even diverge. When the step is too small, training becomes extremely slow and compute is wasted. The ideal strategy is adaptive: accelerate in flat regions, decelerate on steep slopes or near the valley floor. Modern approaches typically introduce second-order gradient statistics, suppressing high-frequency update directions and amplifying long-term sparse ones.
2.2 Escaping Local Optima and Saddle Points
The most naive early approach was stochastic gradient descent, an idea traceable to research on solving for extrema in the nineteenth century. Its weakness is that it treats parameter updates as a massless particle sliding around: it can start instantly and stop instantly, with no inertia, so in a long narrow canyon it repeatedly collides with the walls on both sides, which is highly inefficient. Adding inertia makes the update direction retain historical information, so it passes through small pits and saddle regions more easily.
2.3 Suppressing Noise and Improving Stability
Small-batch sampling introduces gradient noise, and an overly large learning rate amplifies it. In practice, gradient clipping, warmup, decay, and normalization are commonly used to keep update magnitudes within a controllable range. Illustrative code:
# Pseudocode: generic training loop skeletonfor step, batch in enumerate(loader):loss = model(batch)loss.backward()clip_grad_norm_(model.parameters(), max_norm=1.0)optimizer.step() # momentum/adaptive/matrix updates happen herescheduler.step() # warmup and decayoptimizer.zero_grad()
3. From Momentum to Adaptive Methods: A Clear Technical Lineage
Around 1964, researchers working on optimization theory proposed the heavy ball method, whose core idea is to add mass and inertia to the update process: the current velocity is the decayed historical velocity plus the current gradient. This is equivalent to rolling a damped ball through parameter space, and it noticeably reduces oscillation in canyon-like terrain.
The adaptive route then became mainstream: use a first-order momentum estimate to smooth the gradient direction, and a second-order momentum estimate to gauge the gradient scale of each dimension, with the ratio between the two determining the effective step size. Its advantages are low sensitivity to the learning rate and friendliness to sparse features. The cost is maintaining extra state variables, with memory overhead several times the parameter count, and in large-scale training the update direction can become distorted by element-wise rescaling.
4. Why Muon-Style Optimizers Attract Attention
Muon, which has drawn considerable industry discussion recently, follows a matrix-based update idea: treat the gradient of a given layer as a matrix, orthogonalize it or apply an approximate orthogonalization, so that update scales are more balanced across directions, then multiply by the learning rate and write back to the parameters. The intuitive effect is to prevent updates from being dominated by a few large singular-value directions, yielding smoother convergence curves on deep networks.
The key points come down to four:
- The target is two-dimensional weight matrices; it typically does not cover one-dimensional parameters such as embedding layers, normalization layers, and biases.
- Orthogonalization requires matrix decomposition or iterative approximation, and engineering practice often uses low-precision iterations to reduce overhead.
- Compared with element-wise adaptive methods, it uses less state memory, but adds more computation per iteration.
- It remains sensitive to the learning rate and warmup strategy, and needs to be tuned together with a scheduler.
It is worth stressing that this class of methods is not a universal replacement. Whether it pays off depends on model architecture, data distribution, parallelism and sharding strategy, and where the compute bottleneck sits. It must be validated with small-scale controlled experiments rather than adopted directly on the basis of leaderboard results.
5. Engineering Adoption and Selection Guidance
- Establish a baseline first. Run an end-to-end pipeline with a mature adaptive optimizer, and record loss curves, gradient norms, and throughput as a reference.
- Validate in small steps. Run A/B comparisons on a reduced-scale model, observing convergence quality and peak memory under the same compute budget.
- Check parallelism compatibility. Matrix-based updates require extra communication and sharding handling under tensor parallelism and pipeline parallelism, so confirm framework support.
- Improve observability. Feed learning rate, gradient norm, update norm, and loss spikes into logging services and monitoring alerts, with automatic load shedding or checkpoint rollback on anomalies.
- Keep costs controlled. Training data and checkpoints are best placed in object storage, with elastic compute carried by a container platform, so that state variables and intermediate artifacts do not crowd local disks.
6. Common Misconceptions
- Assuming a new optimizer is always faster: most gains come from structural fit rather than absolute algorithmic superiority.
- Ignoring state overhead: the extra state of adaptive methods is not negligible at large parameter counts.
- Skipping warmup and clipping: any optimizer can destabilize under large early gradients.
- Looking only at final metrics: without intermediate curves, it is hard to tell whether a failure comes from data, initialization, or the optimizer.
7. Summary
The optimizer is the navigation system of the training stack. From plain gradient descent, to the momentum-based heavy ball method, to element-wise adaptive and matrix-based orthogonal updates, the throughline has always been estimating a trustworthy descent direction more accurately and controlling step size more robustly. For developers, the rational approach is to treat the optimizer as a swappable module: anchor on a baseline, rely on controlled experiments, and back it with an observability system before deciding whether to adopt a new method. If you use Baidu AI Cloud capabilities, you can combine experiment management, logging and monitoring, object storage, and a containerized training environment into a reproducible, rollback-capable training pipeline.
