Optimizer Evolution in Large Model Training: A Breakdown of Muon-Style Methods
This article traces how training optimizers evolved from plain gradient descent to momentum, adaptive second-moment methods, and matrix-orthogonalized updates such as Muon. It explains the intuition behind step-size control, escaping local minima, and per-parameter scaling, then covers practical guidance on grouped optimizers, learning-rate and batch-size coupling, monitoring, and cost trade-offs.
1. Why Optimizers Are the Navigation System of Large Model Training
In large-scale model training, the information we actually get is limited: a loss value that tells you where you are, and a gradient that tells you which direction is steeper. What really determines the course of training is the optimizer — it decides which way to go at each step, how far to go, and whether to correct along the historical direction.
A classic analogy is “descending a mountain blindfolded”: you are placed in a rolling mountain range, and the goal is the valley at the lowest point.
- The loss function tells you your current altitude;
- The gradient (computed by backpropagation) is like probing the slope with your feet, pointing in the downhill direction;
- The optimizer is the strategy in your head, deciding the direction and length of each step.
This strategy usually has to solve three things at once: whether the step size is reasonable, whether it can escape small pits halfway up the mountain (local optima), and whether it is efficient in “canyon-shaped” terrain. These three things correspond exactly to the three main threads of optimizer evolution.
2. First Weapon: Learning Rate and Step Size Control
If the step is too large, you leap straight across the valley and up the opposite slope, showing up as loss oscillation and failure to converge. If the step is too small, training becomes unacceptably slow. So the learning rate is not a constant; it needs a control mechanism.
Common engineering practices include:
- Warmup: use a smaller learning rate early in training to avoid the huge gradients from random initialization pushing parameters out of range;
- Decay: gradually lower the learning rate as training progresses, so parameters converge finely in the later stage;
- Adaptive scaling: use historical gradient statistics per parameter to give different parameter layers different effective step sizes.
Illustrative pseudocode:
for step in range(total_steps):lr = base_lr * warmup(step) * decay(step)grads = backward(loss)params = optimizer.step(params, grads, lr)
3. Second Weapon: Momentum and Escaping Local Optima
The earliest, simplest stochastic gradient descent traces back to mathematical optimization research from the mid-nineteenth century. But it carries an assumption that defies physical intuition: the particle has no mass and can start or stop instantly. As a result, in long, narrow canyon terrain, parameters bounce back and forth between the two walls, which is extremely inefficient.
The idea that broke this assumption is the “heavy ball” approach: give the particle mass and inertia. In 1964, a Soviet mathematician studying optimization theory proposed that accumulating historical gradients into the update creates inertia, so the method accelerates along consistent directions and cancels out along oscillating ones.
Its general form can be written as:
m_t = beta * m_{t-1} + (1 - beta) * g_ttheta_t = theta_{t-1} - lr * m_t
Here beta controls how long historical information is remembered. The benefits of momentum are twofold: it suppresses lateral oscillation in the canyon, and it gives parameters the kinetic energy to “carry through small pits,” reducing the chance of getting stuck in local optima. Many later improvements (such as momentum variants with correction terms) are essentially bias corrections built on this framework.
4. Third Weapon: Adaptivity and Second-Order Geometric Information
When gradient scales differ enormously across parameter dimensions (very common in deep networks and sparse features), a single learning rate is necessarily inefficient. The core idea of adaptive optimizers is to maintain a moving average of squared gradients per parameter and use it to normalize the step size, which is equivalent to a diagonal-approximation first-order geometric preconditioning of the parameter space.
v_t = beta2 * v_{t-1} + (1 - beta2) * g_t * g_ttheta_t = theta_{t-1} - lr * m_t / (sqrt(v_t) + eps)
Three points must be handled carefully in engineering: eps prevents division by zero, beta2 sets the time scale of the second-order statistics, and the coupling between weight decay and the regularization term matters. In practice, many “training instability” problems trace back to the interaction of these hyperparameters.
5. Matrix Orthogonalization: The Highlight of a New Generation of Optimizer Ideas
A class of new optimizers widely discussed recently in large-scale model training makes a key breakthrough: instead of treating a parameter matrix as a pile of independent scalars handled one by one, it treats each layer’s weights as a matrix as a whole and orthogonalizes the update (normalization in the matrix-factorization sense), making the update closer to an “equal-scale, isotropic” direction in parameter space.
Intuitively, this is like applying an isotropic coordinate transform to the “terrain” of blindfolded descent first: a canyon that was originally stretched is compressed into an approximately circular shape, and even the simplest descent can reach the valley efficiently. Its technical highlights can be summarized as:
- Structure awareness: it uses the 2D structure of the weight matrix rather than relying only on element-wise statistics;
- Controllable update scale: orthogonalization naturally constrains the magnitude of the update, reducing sensitivity to extreme learning-rate values;
- Combined with momentum: it keeps inertia while improving direction quality, balancing stability and speed;
- Extra overhead to weigh: matrix factorization brings computation and memory costs, usually requiring low-precision computation and blocking strategies.
It is worth emphasizing that this class of methods is not a “replacement for everything.” It is better suited to layers with large parameter counts and clear matrix structure; for 1D tensors such as biases and normalization parameters, adaptive methods are still often the fallback. Modern training frameworks therefore often adopt a “grouped optimizer” strategy:
opt_matrix = OrthogonalizedOptimizer(params_2d, lr=..., momentum=...)opt_vector = AdaptiveOptimizer(params_1d, lr=...)
6. Practical Advice and Common Pitfalls
- Run small-scale alignment experiments first: compare convergence curves of different optimizers on the same data and the same random seed, then scale up to full training.
- Couple learning rate with batch size: when batch size changes, the learning rate must be adjusted accordingly, otherwise the time scales of momentum and second-order statistics become mismatched.
- Monitor more than the loss: watching gradient norm, update norm, and per-layer effective learning rate at the same time helps detect signs of divergence earlier.
- Prioritize stability over peak metrics: mid-training spikes often destroy days of compute, so introduce gradient clipping and update clipping when necessary.
- Account for total cost: the convergence speedup from an optimizer must be evaluated for real benefit after subtracting its extra computation and memory overhead.
If the training job runs on a cloud platform, you can combine it with a container platform for elastic scaling, use object storage to hold checkpoints and datasets, and use logging and monitoring/alerting to track loss and resource metrics, turning optimizer experiments into a reproducible, rollback-capable engineering workflow.
7. Summary
The history of optimizer evolution is essentially a history of “how to use limited gradient information more intelligently”: from plain descent, to the heavy-ball method with inertia, to adaptive second-order statistics, and then to orthogonalizing the weight matrix as a whole. Understanding the intuition behind each thread is more valuable than memorizing a specific name — because as interfaces and implementations keep iterating, judgment is the transferable capability.
