Large Model Training Optimizers: Evolution and a Deep Dive into Muon
This article traces the evolution of training optimizers for large models and explains how a new class of matrix-based methods, represented by Muon, works in practice. It covers the core problems optimizers solve, the path from stochastic gradient descent to momentum and adaptive learning rates, the key ideas behind matrix-level orthogonalization, and the engineering trade-offs involved in adoption. Readers will find practical guidance on applicability, overhead, numerical stability, learning rate scheduling, observability, and a three-stage validation approach for evaluating new optimizers against a production baseline. The discussion stays at the level of general technical principles and does not depend on any specific vendor's interfaces or performance claims.
1. Introduction: What Really Changes Behind an API Upgrade
Whenever a class of large model APIs shows a clear jump in capability, the discussion usually centers on parameter count, context length, or how the model is called. From an engineering perspective, however, those perceivable improvements typically come from better stability and efficiency in the training pipeline, and the optimizer is the part that gets overlooked most easily while having the most far-reaching impact. This article uses optimizer technology as its main thread to discuss the problems optimizers solve, how they have evolved, and the value and practical caveats of a new generation of matrix-structure-based optimization methods when training large models.
One point deserves emphasis up front: this article covers only general industry principles and practices. It does not reference any specific vendor’s API names, parameters, or performance commitments. Readers can apply the methods here to their own training pipelines or to the general compute and storage capabilities of any cloud platform.
2. What Problem Does an Optimizer Actually Solve
Think of training as being blindfolded in dense fog, standing somewhere in a continuous mountain range, with the goal of reaching the lowest valley floor. Only two kinds of information are available:
- The loss value, which tells you the “altitude” of your current position.
- The gradient, a “slope direction” obtained through local probing that points toward the steepest descent nearby.
The optimizer is the navigation strategy in your head. It decides two things: which direction to step in, and how far that step should be. In engineering terms, it carries at least three responsibilities.
2.1 Dynamic Control of Step Size
Too large a step jumps straight over the valley floor and oscillates back and forth between the two sides, showing up as violent swings in the loss curve or even divergence. Too small a step converges extremely slowly and wastes a large amount of compute. The ideal strategy is large steps on flat ground and small steps on steep slopes and near the valley floor, which is exactly the shared goal of learning rate schedules and adaptive optimizers.
2.2 Escaping Local Minima and Saddle Points
Real loss surfaces contain many small pits halfway up the mountain (local minima) as well as flat regions (saddle points and plateaus). Moving only along the instantaneous gradient direction makes it easy to get stuck in these areas. Momentum-based methods accumulate historical information to build “inertia,” while randomness introduces noise through minibatch sampling, both of which help escape.
2.3 Balanced Updates Across Different Parameter Scales
Gradient magnitudes across different parameter layers can differ by several orders of magnitude. A single global learning rate leaves some layers barely moving while others oscillate repeatedly. Adaptive methods maintain second-order statistics of the gradients and use them to approximately normalize each parameter, producing more balanced effective step sizes.
3. The Evolution: From a Massless Particle to a Heavy Ball with Inertia
The most basic idea of stochastic gradient descent can be traced back to Cauchy’s mid-nineteenth-century work on optimization. For more than a century afterward, standard gradient descent was essentially a simulation of a “massless particle”: it can reach top speed instantly and stop instantly, which clearly defies physical intuition. On a long, narrow valley-shaped loss surface, it repeatedly slams into both walls and is extremely inefficient.
The assumption was broken by the Soviet mathematician Boris Polyak. In 1964, while studying optimization theory, he asked what would happen if this sliding particle were given “mass” and “inertia.” That produced the heavy ball method, the precursor of the momentum term used in deep learning today. Its general form can be written as:
# General illustration of the heavy ball / momentum method (not tied to any specific framework API)v = momentum * v + grad # accumulate historical direction to build inertiaparam -= lr * v # update along the inertia direction
Momentum delivers three benefits: it suppresses lateral oscillation in valley-shaped terrain, it accelerates progress through flat regions, and it smooths gradient noise to some degree.
Adaptive learning rate methods then became mainstream. By accumulating second-order information such as squared gradients, they construct an independent scaling factor for each parameter, giving sparse features and high-gradient layers a more appropriate effective step size. The common engineering practice is a combination of momentum, adaptive scaling, and learning rate warmup plus decay. This combination has long served as the default baseline for large model training.
4. The Core Idea of the New Generation of Matrix Optimizers
A class of optimization methods that has recently drawn wide attention differs in one key respect: instead of treating each parameter as an independent scalar to be scaled, it treats weights according to their matrix structure and applies orthogonalization or spectral-level processing to the matrix as a whole before deciding the update direction and magnitude.
The intuition is this: ordinary adaptive methods normalize element by element, which easily concentrates the update in a few directions. Matrix methods distribute the “energy” of the update more evenly across the singular directions, bringing it closer to the ideal descent direction. The typical flow can be summarized as:
- Compute the gradient matrix of the current parameter block.
- Maintain a matrix-form momentum term according to the momentum rule.
- Apply orthogonalization or approximate orthogonalization to the momentum matrix, usually via a polynomial approximation with a small number of iterations to avoid an expensive full decomposition.
- Complete the update with a uniform step size or one set per layer.
The pseudocode below is illustrative and only expresses the order of computation; it does not correspond to any real product API:
# One update step of a matrix optimizer (illustrative)m = beta * m + (1 - beta) * grad_matrix # matrix momentumu = orthogonalize_approx(m, steps=5) # approximate orthogonalization, iterations configurableweight -= step_size * u # update with a uniform step size
The potential gains are that on very large matrix-shaped weights the update is more balanced, which may reduce the number of steps needed for the same training objective, while the extra memory and compute cost of the orthogonalization process stays controllable.
5. Key Points for Engineering Adoption
- Applicability: the main gains are concentrated in weight matrices of two dimensions or more. For one-dimensional parameters (such as the scale and bias of normalization layers, and part of the embedding layer), momentum plus adaptive scaling is usually the safer choice.
- Cost trade-off: the number of orthogonalization iterations is the key knob balancing quality and speed. Too few means large approximation error; too many reduces throughput. Sensitivity experiments on a small-scale proxy task are recommended.
- Numerical stability: when matrix norms differ substantially, normalize first and then orthogonalize. Under mixed-precision training, watch for direction distortion introduced by low precision.
- Coordination with the learning rate schedule: keep the step size small during warmup to avoid unstable directions early on, then converge gradually during decay. Matrix methods have a different sensitivity to step size than the baseline, so existing configurations cannot be copied over directly.
- Observability: beyond the loss curve, monitor the ratio of gradient norm to update norm, the distribution of effective step sizes per layer, and the orthogonalization residual, so anomalies can be located quickly.
6. Selection Guidance and Validation Methods
Do not replace a production baseline just because a method is new. A three-stage validation is recommended:
- Proxy experiments: compare convergence speed, stability, and compute cost on models one to two orders of magnitude smaller in parameter count.
- Ablation analysis: toggle momentum, orthogonalization, and adaptive scaling separately to confirm where the gains come from.
- Scale validation: confirm at the target scale whether the gains hold, and evaluate end-to-end cost, including the overhead of general cloud capabilities such as compute, storage, and monitoring and alerting.
In conclusion, the main thread of optimizer evolution has always been making fuller use of historical information and allocating update magnitude more sensibly. Matrix methods push both threads down to the matrix-structure level and are worth including as a candidate in technical selection. They are not a universal silver bullet, however, and the final decision should rest on reproducible experimental data and total cost rather than on the concept itself.
