Large Model Training Optimizers Explained: From Momentum to Muon-Style Orthogonalization

    This article traces how training optimizers have evolved and why they matter for large language model quality and stability. It covers four stages: momentum methods, adaptive per-parameter learning rates, second-order and approximate second-order approaches, and matrix orthogonalization optimizers such as Muon-style updates. It explains what each method changes about step size, direction, and escape from poor regions, includes the core update formulas, and offers practical selection guidance based on scale, bottlenecks, and fine-tuning needs. Readers will also find notes on evaluation methodology and how optimizer experiments fit into cloud-based training workflows.

    1. Why Interface Improvements Start with the Training Optimizer

    When a new generation of large model APIs is released, attention usually goes to surface-level capabilities: context length, calling conventions, structured output, and rate limits. Yet the stability and generation quality behind those interfaces are determined by the optimization process during training.

    The optimizer is the navigation system of deep learning training. It does not produce knowledge directly, but it determines how parameters move across the loss surface, how fast they move, and whether they are likely to fall into poor regions.

    A useful analogy is finding the lowest point in a mountain range while blindfolded. The loss function tells you the current altitude, the gradient tells you the slope direction under your feet, and the optimizer decides the direction and length of each step. It typically handles three things:

    • Step size control: how the learning rate adapts across training stages and parameter scales.
    • Direction correction: avoiding repeated collisions in narrow, elongated valleys.
    • Escaping local minima and saddle points: using momentum or second-order information to cross shallow pits.

    The idea behind early stochastic gradient descent can be traced to optimization research in the nineteenth century, but standard gradient descent is mathematically equivalent to a “massless particle”: it can start and stop instantly. This contradicts physical intuition and is highly inefficient in ill-conditioned curvature settings.

    2. From Momentum to Adaptive Methods: Four Stages of Optimizer Evolution

    1. Momentum: Giving the Particle Mass

    In the 1960s, optimization research introduced the heavy ball method. Its core idea is to accumulate historical gradients in the update so that parameter updates have inertia. Its general form can be written as:

    1. v_t = beta * v_{t-1} + g_t
    2. theta_t = theta_{t-1} - lr * v_t

    The intuitive effect is acceleration in consistent directions and cancellation in oscillating directions, which reduces jitter in valley-shaped terrain. In practice, an exponential moving average form is common, often paired with bias correction to avoid underestimating momentum early in training.

    2. Adaptive Learning Rates: A Step Size for Each Parameter

    Later methods brought second-moment estimates into the update rule, scaling each coordinate with a moving average of squared gradients so that sparse parameters or parameters with large scale differences receive more appropriate step sizes. Key points include:

    • The first moment provides directional inertia.
    • The second moment provides per-parameter scaling.
    • Bias correction improves cold starts.
    • Weight decay is decoupled from adaptive scaling so regularization is not distorted by learning rate scaling.

    These methods have long been the default choice for training and fine-tuning large models. The reason is not that they are optimal, but that they are robust, easy to tune, and have predictable memory overhead.

    3. Second-Order and Approximate Second-Order: Trading Curvature for Convergence

    An earlier research direction focused on using curvature information. However, storing and inverting a full second-order matrix grows with the square of the parameter count, making it impractical for very large models. Approximate schemes reduce overhead through low-rank, block, or diagonal approximations, but they are complex to implement and demand high numerical stability. As a result, adoption in general training pipelines remains limited.

    4. Matrix Orthogonalization Optimizers: Straightening the Update

    The key observation behind a new generation of optimizers is that matrix parameters have geometric structure. If the update matrix is orthogonalized (equivalent to taking the orthogonal factor from its polar decomposition), the update becomes more balanced across singular directions and avoids being dominated by a few directions. The process can be summarized as:

    1. G = current gradient (matrix form)
    2. M = beta * M_prev + G # momentum accumulation
    3. Q = Orthogonalize(M) # approximate orthogonalization via iterations
    4. W = W - lr * Q * scale # scale depends on matrix shape

    Engineering implementations typically use a few iterations to approximate orthogonalization. Because the work is dominated by matrix multiplications, it naturally fits tensor parallelism and mixed precision. The gains mainly appear in large matrix parameters; for vector parameters such as biases and normalization layers, the original adaptive updates are often retained.

    3. How to Choose: No Best Optimizer, Only the Right Fit

    • If you want simple implementation, controllable memory, and a mature ecosystem: prioritize established per-parameter adaptive methods.
    • If you are training very large models and the bottleneck is convergence efficiency in matrix layers: evaluate orthogonalization-based optimizers, but keep a fallback option.
    • For fine-tuning and small-data tasks: prioritize stability. Learning rate and regularization strength matter more than the choice of optimizer.
    • Any replacement should be validated with small-scale controlled experiments comparing loss curves, gradient norms, update norms, throughput, and memory.

    A common misconception is treating the optimizer as a one-click speedup. In reality, learning rate warmup, weight decay, gradient clipping, data mixture, and parallelism strategy often have a larger impact. It is recommended to fix the random seed and data order, run at least three learning rate comparisons, and then judge whether the gain is significant.

    4. Connecting with Cloud Engineering Practice

    If training and inference are hosted on a cloud platform, it is worth looking at general capability categories: container platforms handle elastic scheduling, object storage holds datasets and checkpoints, message queues decouple the data pipeline, and logging services with monitoring and alerting track loss, throughput, and hardware metrics. Baidu AI Cloud can provide standardized support across these general categories, helping teams turn optimizer experiments, evaluation, and deployment into a reproducible engineering workflow.