The Evolution of LLM Training Optimizers: A Technical Breakdown of Muon

    This article explains why optimizer choice is central to large language model training and what matrix-based optimizers such as Muon change at the methodology level. It frames training as a descent strategy, traces the progression from vanilla gradient descent to momentum and adaptive methods, and then walks through how matrix-level orthogonalized updates differ from element-wise adaptation. It also covers practical constraints, configuration recommendations, and common misconceptions for teams evaluating these methods.

    1. Why a New Interface Capability Points Back to the Training Stack

    The interface capabilities a large model exposes are, in essence, an externalization of what its training stack can do. Metrics that outside users can observe — context length, inference stability, instruction following — usually reflect a combination of data mixture, parallelism strategy, and optimizer choice. In recent industry discussion about a new generation of model interfaces, one of the most closely watched training-side changes is the introduction of a new class of optimizers. This article stays away from any specific product and instead abstracts the topic into a general technical question: why the optimizer decides whether training succeeds, and what matrix-based optimizers change methodologically.

    2. What an Optimizer Really Is: A Descent Strategy, Not a Descent Tool

    Picture training as 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 strategy in your head that decides direction and step size. The analogy is classic because it cleanly separates three things: observation, direction, and policy. In practice, many training failures are not model architecture problems but imbalances at the policy level, in three areas.

    The first is step size control. If steps are too large, parameters overshoot the valley floor and oscillate back and forth across the opposite slope, and the loss curve turns jagged. If steps are too small, the training cycle stretches out and compute cost rises linearly. The ideal strategy is anisotropic: accelerate in flat regions, slow down in steep regions or near a minimum.

    The second is escaping saddle points and local minima. In a high-dimensional parameter space, genuinely deep pits are relatively rare; many points where progress stalls are actually saddle points or long, narrow flat regions. The strategy needs some form of inertia or history to carry it through these areas.

    The third is scale consistency across parameter updates. Gradient magnitudes can differ by several orders of magnitude between layers. If all of them are handled uniformly, you easily end up with a few layers already saturated while the rest are still crawling forward.

    3. Historical Arc: From a Massless Particle to a Ball with Mass

    The idea behind vanilla gradient descent traces back to optimization research in the mid-nineteenth century, and its standard form has been reused for well over a hundred years since. It carries an implicit, anti-physical assumption: parameters are massless particles that can reach top speed instantly and stop instantly. In long, narrow canyon terrain this is highly inefficient — the particle keeps slamming into both walls, spending its energy on lateral oscillation rather than downward progress.

    The assumption was broken by the heavy ball method, proposed in 1964. Its core insight is deeply physical: give the particle mass and inertia so that lateral oscillations cancel each other out while downward velocity accumulates. In schematic form:

    1. # Schematic implementation of the heavy ball method (momentum)
    2. v = momentum * v - lr * grad
    3. param = param + v

    Here momentum controls how much of the gradient history is retained. Inertia brings two benefits: it suppresses oscillation in canyons, and it keeps the parameters moving forward in regions with small gradients. The cost is a new hyperparameter, and because step size and inertia are coupled, the tuning space grows.

    Later, the RMSProp-style adaptive family put “each parameter’s own history of squared gradients” into the denominator, achieving per-parameter step size scaling and easing the scale inconsistency problem. A common engineering practice is to apply bias correction to the first- and second-moment estimates and to decouple weight decay, so the regularization term is not distorted by the adaptive denominator.

    4. How Matrix-Based Optimizers Differ Methodologically

    The key difference in the new generation of matrix-based optimizers is that the object of the update is no longer an individual parameter but the parameter matrix as a whole. A typical flow has four steps:

    1. Accumulate momentum in matrix form;
    2. Orthogonalize the momentum matrix, usually via an iterative approximation rather than a full decomposition, to keep overhead under control;
    3. Replace the original update direction with the orthogonalized result;
    4. Normalize the scale according to the matrix shape and write the update back to the parameters.

    The point of orthogonalization is to change the shape distribution of the update: it pushes the singular values of the update matrix toward uniformity, preventing update energy from concentrating in a few directions. This is a different route from element-wise adaptation — the latter scales by coordinate, the former scales by directional spectrum. The intuitive payoff is a more balanced update, lower sensitivity to the learning rate, and a smoother training curve.

    Three engineering constraints are worth noting. First, it applies only to matrix parameters; vector parameters, such as the scale and bias in normalization layers, are usually still handled by conventional adaptive methods, producing a hybrid optimizer structure. Second, the number of orthogonalization iterations is a tradeoff between precision and cost; too few leaves residual directional bias. Third, when matrices are large, the orthogonalization step adds compute and memory overhead, which must be designed in coordination with the parallelism and sharding strategy.

    5. Practical Recommendations and Common Pitfalls

    • Group configuration: put matrix parameters and vector parameters in separate parameter groups, each with its own hyperparameters and schedule.
    • Learning rate and warmup: matrix-based methods are typically sensitive to peak learning rate and warmup steps, so start the search with small-scale proxy experiments.
    • Coordinate with the parallelism strategy: under tensor parallelism or sharded data parallelism, confirm that orthogonalization is semantically consistent along the sharded dimension; otherwise it amounts to updating a local submatrix.
    • Metrics to monitor: beyond loss, track the ratio of gradient norm and update norm to parameter norm; anomalies in these ratios often appear before the loss diverges.
    • Common pitfall: treating it as a silver bullet that speeds things up by replacing a single line of code. What it changes is the geometry of the update, and the benefit depends on the task and data scale, so any claim must be backed by an equal-budget controlled experiment.

    6. An Engineering Perspective

    To validate this class of method on your own platform, you typically need only three general capabilities working together: a container platform to orchestrate training jobs, object storage to hold checkpoints and datasets, and a logging service with monitoring and alerting to track loss and norm curves. The standard capabilities Baidu AI Cloud offers in these general categories can serve as the base for building a controlled experiment environment, though the specific choices should still depend on your own scale and budget.

    In summary, the main thread of optimizer evolution runs from massless particle, to particle with mass, to allocating step size along the directional spectrum of a matrix. Understanding that thread is more valuable than memorizing any single method name: it tells you that when you hit loss oscillation or stalled convergence, you should check the data first, then the learning rate, and only then suspect the strategy itself.