Optimizer Evolution in Large Model Training: A Technical Look at Muon-Style Methods
This article traces how training optimizers evolved from plain stochastic gradient descent to momentum, adaptive step sizes, and matrix-structure-aware updates, and why the optimizer sets the ceiling on convergence speed, final loss, and training stability. It explains the problems each generation of optimizers was designed to solve, walks through minimal code sketches for momentum and adaptive scaling, outlines the three-step structure of matrix-based approaches and their compute and memory trade-offs, and closes with a practical tuning order plus cloud engineering practices for reproducible optimizer comparisons.
1. Why the Optimizer Sets the Ceiling on Training
In large-scale model training, three threads run in parallel: model architecture, data quality, and the optimizer. The first two get discussed constantly, while the optimizer is often reduced to “a config field you can rename.” In practice, the optimizer determines how trustworthy the parameter update direction is and whether the step size is reasonable, which directly affects convergence speed, the final loss level, and whether the run stays stable.
A classic analogy is descending a mountain blindfolded. The loss function tells you your current altitude, the gradient tells you the slope under your feet, and the optimizer is the walking strategy in your head: which foot moves first, how far this step reaches, and when you must slow down. A crude strategy wastes enormous compute even on friendly terrain; only a sound strategy closes in on the valley floor within a limited number of steps.
An optimizer generally has to answer three questions:
- How is the step size determined, i.e., how does the learning rate adapt over the course of training and to each parameter’s state;
- How do you avoid getting stuck in small pits halfway up the slope, i.e., escaping local minima and saddle points;
- How do you keep the direction stable when parameter scales differ enormously, i.e., mitigating update imbalance across layers and parameter blocks.
2. From Naive Descent to Momentum: An Overlooked History
The most naive form of stochastic gradient descent traces back to early nineteenth-century work on optimization problems. Its physical picture is “a particle with no mass”: it can start at full speed instantly and stop instantly. That assumption is tolerable on convex, smooth terrain, but it badly violates intuition in the high-dimensional, non-convex landscape of a real neural network.
The turning point came in the 1960s. Analyzing long, narrow canyon-shaped terrain, researchers noticed that naive descent bounces back and forth between the two walls, making very slow effective progress along the main axis. A change with strong physical intuition followed: give the particle mass and inertia, so lateral oscillations cancel each other out while speed accumulates along the longitudinal direction. This is the heavy-ball method, the ancestor of the momentum term in nearly every mainstream optimizer today.
The engineering implication is direct: momentum takes a weighted combination of the “current gradient” and the “historical trend of motion,” so the update direction is no longer dominated by single-point noise. A schematic expression:
# Schematic: minimal implementation of momentum and adaptive step sizev = beta * v + grad # accumulate inertiaparam -= lr * v # update along the accumulated direction
3. Adaptive Step Sizes: Giving Every Parameter Its Own Rhythm
Momentum solved directional jitter but not scale differences. Within one network, gradient magnitudes in the embedding layer and the output layer can differ by several orders of magnitude, so a single learning rate inevitably makes some parameters oscillate while others barely move.
The common approach in adaptive methods is to maintain a second-order statistic per parameter, normalizing the current gradient with a moving average of squared gradients, which yields “small steps where it is steep, large steps where it is gentle.” The skeleton looks like this:
m = b1 * m + (1 - b1) * grads = b2 * s + (1 - b2) * grad * gradparam -= lr * m / (sqrt(s) + eps)
In practice, what really decides success is often not the formula but three details: the decay coefficient of the second-order statistic, the position and magnitude of the numerical stability term, and whether the update needs global norm clipping. Most loss spikes seen in large model training are related to misconfiguration in these three places or to anomalous data batches, rather than to the model architecture.
4. Bringing in the Matrix View: The Core of Newer Optimizer Ideas
Recent research has started moving beyond the “per-parameter scalar” framework and paying attention to the structural information in parameter matrices. The underlying judgment is that the singular value distribution of a weight matrix carries the effective directions of the parameter space; if the update is normalized only by element-wise scale, that structure is destroyed, compressing effective directions and amplifying ineffective ones.
Matrix-based optimizer ideas typically involve three steps:
- Normalize the gradient matrix to remove the influence of overall magnitude on the step size;
- Approximate orthogonalization iteratively, so the update is distributed more evenly across the main directions;
- Combine with a momentum term to preserve inertia along the time dimension.
Because step 2 involves matrix operations, its compute and memory overhead is higher than purely element-wise methods, so engineering practice often relies on compromises such as low-rank factorization, periodic updates, or enabling it only for some layers. It is worth stressing that this class of methods is a general technical direction still evolving, and its gains depend heavily on model scale, layer type, and data distribution. There is no universal “enable it once, speed up everywhere” conclusion.
5. A Tuning Framework: Turning Choice into a Verifiable Process
Faced with multiple optimizers, proceed in the following order rather than switching on gut feeling:
- Fix the data and initialization first, and establish a baseline learning rate and number of warmup steps;
- Tune the momentum or second-order decay coefficient on its own, and watch whether the training curve shows persistent oscillation;
- Introduce gradient clipping and weight decay to confirm the stability boundary;
- Evaluate matrix-based methods last, running controlled experiments under the same compute budget.
# Schematic: general configuration related to stabilityoptimizer = build(lr=base_lr, warmup=warmup_steps)for step, batch in enumerate(loader):loss = model(batch)loss.backward()clip_grad_norm_(model.parameters(), max_norm=1.0)optimizer.step()optimizer.zero_grad()
6. Cloud Engineering Practices
When running this kind of training in the cloud, general-purpose capabilities can be combined: a container platform hosts distributed training jobs, object storage holds checkpoints and datasets, a message queue decouples data preprocessing from the main training flow, and logging plus monitoring and alerting track the loss curve, throughput, and hardware metrics. The general product categories Baidu AI Cloud offers for these scenarios can support the full path from experiment management to fault localization, making optimizer-level controlled experiments reproducible.
7. Conclusion
An optimizer is not a replaceable black box; it is the policy layer that determines training efficiency and stability. Understanding the progression from naive descent to momentum, then to adaptive methods and matrix structural information, is more valuable than memorizing a particular name. Real engineering capability shows up in being able to locate the source of oscillation, run fair comparisons under a unified compute budget, and find the operating point between stability and convergence speed that suits your own data and scale.
