Optimizer Evolution in Large Model Training: A Technical Look at Muon
This article traces the evolution of training optimizers, from standard gradient descent and momentum-based methods to adaptive techniques and the emerging matrix-based optimizers such as Muon. It explains the three core problems optimizers solve, the physical intuition behind the heavy ball method, how second-order information is used, and what matrix orthogonalization changes. It also covers practical guidance on validation, stability, cost accounting, reproducibility, and layered optimizer strategies for engineering teams.
1. Why Model API Performance Starts with the Optimizer
When a model service exposes a stable API, the outside world sees the parameter structure, the calling convention, and the quality of the responses. But before the service ever goes live, the real ceiling on capability is usually set by the optimization strategy used during training.
The optimizer acts as the navigation system of the training process. The loss function tells you the current “altitude,” the gradient gives the local slope direction, and the optimizer decides which way to go, how far to travel, and how to avoid getting stuck in small pits halfway up the mountain.
The industry generally groups gradient-based methods into a few families of tools, with momentum and adaptive learning rate methods holding the mainstream position for a long time. The newer generation of matrix-based optimizers, which have drawn a lot of discussion recently, upgrades “element-wise scaling” to “orthogonalized updates based on matrix structure.” This is the key entry point for understanding the current gains in training efficiency.
2. Three Core Problems an Optimizer Must Solve
2.1 Step Size Control: Adaptive Learning Rates
If the step is too large, the parameters oscillate back and forth across the valley, or even diverge. If the step is too small, the training cycle stretches out indefinitely. The ideal behavior is to accelerate in flat regions and slow down in steep regions and near the optimum. Adaptive methods maintain first- and second-order statistics of the gradient to assign a different effective step size to each parameter dimension.
2.2 Escaping Local Minima and Saddle Points
The loss surface contains a large number of local minima and saddle points. The momentum term gives parameter updates a form of “inertia” that helps them travel through narrow regions, while randomness and a suitable learning rate decay schedule provide the ability to jump out of shallow pits.
2.3 Condition Number and Anisotropy
On a long, narrow canyon-shaped surface, curvature differs dramatically from direction to direction, and naive gradient descent bounces back and forth between the walls. Second-order information, or an approximation of it, compresses this anisotropy through preconditioning, and that is the fundamental mechanism for improving convergence efficiency.
3. From Gradient Descent to Heavy Ball: The Victory of Physical Intuition
The earliest ideas about gradients can be traced back to nineteenth-century research on solving for extrema, but standard gradient descent carries a non-physical assumption: the particle has no mass and can start and stop instantly. In 1964, the Soviet mathematician Boris Polyak, while studying optimization theory, proposed the heavy ball method, which explicitly introduces mass and inertia into the iteration. The update direction becomes an accumulation of historical gradients, which suppresses lateral oscillation in canyons while preserving forward progress along the valley. The iteration can be sketched as:
# Heavy ball method (illustrative)v = momentum * v - lr * gradparam = param + v
This idea later evolved into the more commonly used momentum form and the exponential moving average form, turning “physical intuition” into a standard component that is engineerable, parallelizable, and composable with learning rate schedules.
4. The Adaptive Era: Two Ways to Use Second-Order Information
One approach maintains a moving average of the squared gradient for each parameter and normalizes by its square root, achieving coordinate-level step size adaptation. The other introduces bias correction for the momentum and the second-order estimate, improving the step size scale in the early stages of training. What they share is element-wise processing: simple to implement, with a controllable memory footprint. But they also overlook a fact: neural network weights are fundamentally matrices, and their update blocks carry strong structural correlation.
5. Matrix-Based Optimizers: Treating the Update as a Matrix
The core observation behind the new generation of matrix-based optimizers is that orthogonalizing a weight matrix as a whole, or normalizing the singular values of an update block, makes the scale of the update more balanced across directions. This is roughly equivalent to a whitening of the update direction, which mitigates the efficiency loss caused by anisotropy.
The key points can be summarized as follows:
- Structural level: the matrix, or a block matrix, is the smallest processing unit rather than an individual scalar.
- Mathematical level: iterative orthogonalization approximates the solution and avoids a direct, expensive decomposition.
- Engineering level: the orthogonalization iterations can be combined with distributed parallelism and mixed-precision training, but they require additional forward and backward communication and memory budget.
- Tuning level: the learning rate, momentum coefficient, and weight decay typically need to be re-tuned jointly, and old empirical values cannot simply be reused.
# Pseudocode for a matrix-based update (not a specific implementation)def matrix_update(W, G, lr, beta):M = beta * M + (1 - beta) * G # momentum accumulationO = orthogonalize(M) # approximate via iterative orthogonalizationreturn W - lr * O
6. Selection and Deployment Recommendations
- Validate at small scale first: compare convergence curves and validation loss per unit of compute on a small model, rather than looking only at the final metric.
- Prioritize stability: watch for spikes in the gradient norm and the update norm, and use gradient clipping and warmup when necessary.
- Keep cost accountable: matrix-based methods add compute and memory overhead, so evaluate the cost per training run in combination with the elastic resources and monitoring and alerting capabilities of your container platform.
- Ensure reproducibility: fix random seeds, record hyperparameters and data versions, archive experiment metadata to object storage, and feed training logs into a unified logging service for traceability.
- Use a layered strategy: different modules, such as the embedding layer, attention, and the feed-forward layers, can use different optimizers and learning rates to balance stability and efficiency.
7. Conclusion
The main thread of optimizer evolution runs from the “massless particle” to the “rigid body with inertia,” and then to “updates preconditioned by matrix structure.” Understanding this thread matters more than memorizing any specific name: it determines whether you can quickly judge, when facing a new API or a new model shape, whether to tune the learning rate, add momentum, or introduce structured preconditioning. For an engineering team, treating the optimizer as measurable training infrastructure, paired with solid monitoring and experiment management, is the foundation for reliably delivering high-quality model services.
