Optimizer Evolution in Large Model Training: From SGD to Muon

    Explore how optimizers shape large language model training, why AdamW-style adaptive methods dominate, and how Muon introduces momentum and matrix-aware structured updates for more efficient training.

    In large model training, the optimizer is far more than a simple component that “nudges parameters down.” It determines how gradients are converted into parameter updates, directly affecting training speed, convergence stability, memory consumption, and final model quality. Once data, model architecture, and hardware are largely fixed, the optimizer is often one of the key factors determining the efficiency ceiling of a training run.

    Recent public discussions have highlighted a class of optimization approaches that go beyond traditional adaptive optimizers by introducing stronger momentum mechanisms, more principled geometric handling of the parameter space, and structured update methods designed specifically for matrix-shaped parameters. Muon is a representative example of this technical direction worth studying. One caveat: optimizer performance depends heavily on model architecture, batch size, learning rate, weight decay, mixed-precision strategy, and training phase, so优劣 judgments cannot be made in isolation from a concrete experimental setup. No single optimizer can be judged superior without reference to a specific experimental context.

    1. What Problem Does an Optimizer Actually Solve?

    The goal of neural network training is usually to minimize a loss function. Given model parameters ( \theta ) and loss function (L(\theta)), backpropagation produces the gradient:

    [
    gt=\nabla\theta L(\theta_t)
    ]

    The most basic gradient descent update is:

    [
    \theta_{t+1}=\theta_t-\eta g_t
    ]

    where (\eta) is the learning rate. The formula looks straightforward, but real training is far more complicated. Model parameters may sit in a high-dimensional, non-convex loss landscape with widely varying scales, and curvature along different directions can differ by orders of magnitude.

    A useful analogy is searching for the lowest point in a complex mountainous terrain:

    • The loss function reflects the “altitude” at the current position;
    • The gradient describes the steepest uphill direction;
    • The negative gradient gives the local downhill direction;
    • The optimizer decides whether to accelerate or decelerate, whether to accumulate historical direction information, and how to handle scale differences across parameter dimensions.

    An optimizer therefore typically needs to solve four classes of problems.

    1.1 Controlling the Update Step Size

    If the learning rate is too large, parameter updates may overshoot the valid region, causing the loss to oscillate or even diverge. If it is too small, training takes too long and may fail to reach a good result within the available compute budget.

    In practice, the learning rate is rarely fixed. It is usually paired with warmup, decay, or staged schedules. Warmup reduces the risk of large stochastic gradients early in training, while decay helps the model make finer parameter adjustments in later stages.

    1.2 Suppressing Gradient Noise

    Large model training typically computes gradients on mini-batches. A batch is only an approximation of the full dataset, so the gradient contains stochastic noise. If updates rely entirely on the current batch gradient, the update direction may change frequently and the training trajectory becomes visibly jittery.

    Optimizers can leverage historical gradients to form a smoother direction estimate, reducing the impact of short-term noise on parameter updates.

    1.3 Handling Narrow Loss Valleys

    In some parameter directions, the loss changes rapidly; in others, it changes very slowly. The loss surface may then form a narrow, elongated valley. Plain gradient descent tends to oscillate back and forth across the valley walls while making slow progress along its length.

    This is one reason momentum methods have remained effective: they accumulate movement along stable directions while dampening oscillations caused by frequently changing directions.

    1.4 Dealing with Parameter Scale Differences

    Different layers, different parameter matrices, and even different dimensions within the same matrix can have dramatically different gradient magnitudes. If all parameters use exactly the same update scale, some parameters may update too fast while others barely change at all.

    Adaptive methods adjust the effective step size for each parameter based on historical gradient statistics, improving training stability.

    2. From SGD to Adaptive Optimizers

    Stochastic gradient descent (SGD) is one of the most fundamental practical optimization methods. It uses only the current batch gradient for updates. Its advantages are simplicity, minimal extra state, and low memory overhead, but it tends to oscillate on complex loss surfaces and is sensitive to the learning rate.

    Momentum methods later introduced a notion of “velocity” into the update process. A typical form is:

    [
    vt=\beta v{t-1}+g_t
    ]

    [
    \theta_{t+1}=\theta_t-\eta v_t
    ]

    Here, (v_t) is the accumulated direction and (\beta) controls how much historical information is retained. Intuitively, parameters are no longer driven solely by the current gradient but carry a degree of inertia. If gradients from several consecutive batches point in the same direction, updates gradually accelerate; if a direction is merely transient noise, its influence is weakened by the historical trend.

    Adaptive optimizers went further by maintaining a moving average of squared gradients, for example:

    [
    st=\beta_2s{t-1}+(1-\beta_2)g_t^2
    ]

    and then updating with a normalized gradient:

    [
    \theta_{t+1}=\theta_t-\eta \frac{m_t}{\sqrt{s_t}+\epsilon}
    ]

    Here (m_t) is the first moment, (s_t) is the second-order statistic, and (\epsilon) prevents division by zero. The core idea: reduce the effective step size in directions with large gradients, while preserving relatively larger update capacity in directions with small gradients.

    Such methods generally offer good out-of-the-box stability, especially for tasks with large parameter scale differences and high uncertainty early in training. However, they also introduce extra state variables. For models with enormous parameter counts, optimizer states can consume substantial GPU memory—sometimes more than the model parameters themselves—forcing the training system to demand more device memory and communication bandwidth.

    3. The Core Design Ideas Behind Muon

    Muon’s focus is not merely “how to scale gradients,” but the matrix structure of parameter updates. For many neural network layers, parameters are not simple one-dimensional vectors but two-dimensional or higher-dimensional tensors. Flattening matrix parameters and applying element-wise updates may fail to exploit their structural information.

    Muon-style methods can be summarized in three key ideas.

    3.1 Using Momentum to Improve Update Direction

    Muon typically retains momentum information, giving the update direction a degree of historical continuity. This helps reduce directional jitter caused by mini-batch stochasticity and improves progress through narrow loss regions.

    Unlike simply raising the learning rate, momentum does not blindly amplify each step. Instead, it accumulates effects based on directional consistency across consecutive training steps. When the direction is stable, momentum reinforces effective progress; when the direction fluctuates, historical information partially cancels out.

    3.2 Structured Processing for Matrix Parameters

    Matrix parameters have row spaces and column spaces. Some update schemes orthogonalize or approximately orthogonalize the gradient matrix, so that the update direction is less likely to be dominated by a few unusually large singular values.

    From a linear algebra perspective, a matrix can be expressed via singular value decomposition:

    [
    G=U\Sigma V^\top
    ]

    where (\Sigma) describes the scale along different directions. If the raw matrix (G) is used directly, updates may concentrate excessively on a few high-magnitude directions. Structured processing attempts to retain more stable directional information while mitigating the effects of extreme scale imbalance.

    This does not mean all parameters must undergo the same matrix transformation. Scalars, vectors, and certain parameter types usually require different handling. In practice, optimizers typically distinguish between matrix parameters and non-matrix parameters.

    3.3 Balancing Efficiency and Expressiveness

    More complex update rules usually mean higher computational cost. Performing high-precision decompositions on large matrices at every step would degrade training throughput. For this reason, real implementations do not pursue mathematically exact transformations; they rely on iterative approximations, low-cost matrix operations, or computation patterns suited to parallel hardware.

    This reflects the practical constraints of optimizer design for large models: theoretical convergence properties are only the starting point. Computational complexity, memory access patterns, inter-device communication, mixed-precision error, and distributed synchronization costs all matter in the end.

    4. Muon vs. Traditional Adaptive Methods

    The comparison is not a matter of one method completely replacing the other—they simply emphasize different things.

    Traditional adaptive methods emphasize per-element scale adjustment, dynamically changing effective step sizes based on each parameter’s gradient statistics. They are highly adaptable and broadly applicable. The cost is storing both first- and second-moment states, resulting in relatively high memory usage.

    Muon-style methods focus more on momentum direction and matrix structure, aiming to make updates to matrix parameters more coordinated. They may reduce some per-element statistics but add matrix computation and implementation complexity.

    A common practical strategy is parameter grouping:

    • Apply structured updates to the main matrix parameters;
    • Use simpler update rules for biases, normalization parameters, and vector parameters;
    • Set different learning rates and weight decay values for different modules;
    • Use more conservative configurations early in training, then increase update aggressiveness once the state is stable.

    More parameter groups do not automatically mean better configuration. Excessive grouping increases tuning difficulty and may cause optimization rhythms across modules to fall out of sync.

    5. Evaluating an Optimizer Requires More Than Watching the Loss Drop

    To judge whether an optimizer is effective, at least the following metrics should be observed.

    5.1 Convergence Speed

    Under identical training steps, data, and hardware budgets, compare how quickly training and validation losses decrease. Note that a faster drop in training loss does not necessarily imply better generalization.

    5.2 Numerical Stability

    Watch for sudden loss spikes, gradient overflow, abnormally growing parameters, or frequent skipped updates under mixed precision. An unstable optimizer is hard to use for long training runs, even if it descends quickly during certain phases.

    5.3 Memory and Communication Overhead

    Optimizer states, temporary matrices, and gradient buffers all consume memory. In distributed settings, state synchronization adds extra communication. Evaluate actual per-step throughput rather than theoretical per-update complexity alone.

    5.4 Sensitivity to Hyperparameters

    If an optimizer only works within a very narrow learning rate range, its engineering cost is high. A better solution should tolerate a reasonably wide parameter range and run stably with warmup and decay schedules.

    6. Practical Considerations for Real-World Deployment

    First, do not copy a single optimizer configuration across all models. Model scale, normalization architecture, batch size, and data distribution all influence the optimal hyperparameters.

    Second, be clear about which parameters suit structured updates. Matrix operations generally fit linear transformation parameters, but biases and normalization parameters may not benefit from the same treatment.

    Third, pay attention to the coupling between learning rate and weight decay. After switching optimizers, the original learning rate, momentum coefficients, and decay strength usually need re-validation.

    Finally, establish reproducible controlled experiments. Keep at least the following conditions identical:

    1. The same random seed or randomness control strategy;
    2. The same data order and batch size;
    3. The same learning rate schedule;
    4. The same mixed-precision and gradient clipping settings;
    5. The same evaluation interval and validation data.

    Only by comparing under controlled variables can you determine whether the gains come from the optimizer itself or from differences in training configuration.

    Conclusion

    The optimizer is the core link between “gradient computation” and “parameter update.” From SGD’s direct descent, to the inertia mechanism of momentum methods, to the per-element scale adjustment of adaptive optimizers, optimizer development has always revolved around three goals: making the update direction more reliable, making step-size control more sensible, and using training resources more efficiently.

    The structured optimization approach represented by Muon offers a further reminder: for large models, parameters are not independent numbers—matrix shape and spatial structure are worth exploiting too. Future optimizer design will likely continue balancing mathematical stability, matrix structure, hardware parallelism, and distributed training costs.

    For developers, understanding optimizers is not about memorizing formulas or names, but about grasping the underlying problem awareness: is the current training bottleneck caused by an inappropriate step size, excessive gradient noise, imbalanced parameter scales, or matrix updates that fail to exploit structural information? Only by locating the problem first and then choosing the right optimization mechanism can you achieve training gains that are stable, explainable, and reproducible.