Muon Optimizer for Large Language Model Training: Principles, Advances, and Practical Guidance

    Muon combines momentum with matrix orthogonalization to offer a different approach to large language model optimization. This article traces the progression from gradient descent and momentum to Adam, explains Muon’s update mechanism and geometric intuition, and outlines practical considerations for hybrid optimizer configurations and learning rate scheduling.

    1. Why Optimizers Deserve Attention

    Model architecture, data composition, and compute budgets often dominate discussions of large language model training. Yet the optimizer is also critical to whether training succeeds. The recent adoption of Muon in a new generation of frontier-model training has renewed interest in a broader question: how can optimization evolve beyond Adam?

    An optimizer acts like a navigation system for deep learning. Imagine walking downhill blindfolded: the loss function tells you your current elevation, or error; the gradient indicates the local slope; and the optimizer determines how to move—both the direction and the size of the next step.

    Understanding Muon starts with the challenges optimizers address and the ideas that preceded it.

    2. Three Core Challenges in Optimization

    Adapting Step Sizes

    Learning rate control determines how far the optimizer moves at each step. An excessively large step can overshoot the valley floor and cause oscillation rather than convergence. An excessively small step makes training inefficient.

    Adaptive optimizers scale updates according to gradient statistics. For example, second-moment estimates allow different parameters to receive different effective step sizes. The general goal is to make progress without taking destabilizing steps.

    Moving Through Local Minima and Flat Regions

    The loss landscape contains local minima, saddle points, and relatively flat regions. Relying only on the current gradient can slow progress or leave an optimizer stuck in an unproductive region.

    Momentum introduces inertia: accumulated movement can help carry optimization through shallow depressions and sustain progress when the immediate gradient is weak.

    Navigating Narrow Valleys

    High-dimensional loss landscapes often resemble narrow valleys, with steep curvature in some directions and much gentler slopes in others. An optimizer may oscillate across the steep directions while advancing slowly along the valley.

    This mismatch is a central motivation for both momentum-based and adaptive optimization methods.

    3. From Gradient Descent to the Heavy-Ball Method

    The foundations of gradient descent date back to Cauchy’s work on optimization in the 19th century. Stochastic gradient descent, or SGD, later brought the gradient-based approach to settings where updates use sampled data.

    A useful analogy for basic gradient descent is a particle with no inertia: its movement responds entirely to the current slope, without retaining its previous velocity. In a narrow valley, this can produce repeated side-to-side movement and slow convergence.

    In 1964, Boris Polyak introduced the heavy-ball method, which adds momentum to the update:

    1. v = beta * v - lr * gradient
    2. w = w + v

    Here, v accumulates velocity. Gradients that consistently point in the same direction reinforce one another, while alternating components tend to cancel out. This can accelerate progress along a valley while reducing oscillation across it.

    Momentum became a foundational idea in optimization, alongside later methods such as Nesterov accelerated gradient.

    4. Adam: Combining Momentum with Adaptive Scaling

    Adam builds on momentum with two running estimates:

    • First moment: An exponential moving average of gradients that tracks direction.
    • Second moment: An exponential moving average of squared gradients that tracks magnitude.

    Adam normalizes the first-moment estimate element by element using the second-moment estimate, effectively giving each parameter its own adaptive learning rate.

    Together with techniques such as weight decay, learning rate warmup, and cosine decay, the Adam family has become a standard choice for large language model training.

    However, elementwise normalization has limitations. It treats individual parameter entries separately rather than explicitly accounting for the directional structure of an entire weight matrix. As a result, the shape of the update may not align well with the matrix’s optimization geometry. Second-moment estimation can also present challenges in high-dimensional, large-batch training.

    These limitations motivate approaches that operate on matrices more directly.

    5. Muon’s Core Idea: Orthogonalizing Momentum

    Muon can be understood as momentum plus matrix orthogonalization. Its core update follows three steps:

    1. Maintain a momentum buffer for each eligible parameter matrix.
    2. Approximately orthogonalize the accumulated momentum matrix.
    3. Scale the orthogonalized result and use it to update the weights.

    Singular value decomposition provides a way to understand the orthogonalization step. In practical implementations, Newton–Schulz iterations can approximate the desired transformation without explicitly computing an SVD.

    What Orthogonalization Changes

    A momentum matrix can have very different magnitudes along its singular directions. Some directions may dominate the update, while others contribute relatively little.

    Orthogonalization makes the update magnitudes more uniform across those directions. Instead of allowing a few dominant singular directions to determine most of the step, it distributes the update more evenly.

    This connects to steepest descent under a spectral-norm constraint. From that matrix-geometric perspective, an orthogonalized update provides a steepest-descent direction. The important distinction from Adam is that Muon transforms the update as a matrix rather than normalizing each entry independently.

    Illustrative Update

    1. # Illustrative Muon-style update
    2. buf = momentum * buf + grad # Accumulate momentum
    3. u = orthogonalize(buf) # Approximate orthogonalization, e.g., NS iterations
    4. w = w - lr * scale * u # Apply the scaled update

    This pseudocode illustrates the central mechanism rather than a complete training implementation.

    Hybrid Optimizer Configurations

    Muon is typically applied to two-dimensional hidden-layer weight matrices. Embeddings, output heads, and other parameters are often handled by an Adam-family optimizer.

    This hybrid strategy uses Muon for the main matrix parameters while retaining a familiar adaptive optimizer for parameter groups with different characteristics.

    6. Practical Lessons for Optimizer Selection

    No Optimizer Is Universally Best

    Muon has shown promise for training efficiency and convergence in large-scale Transformers. However, the Adam family remains mature in terms of hyperparameter robustness and ecosystem compatibility.

    Optimizer selection should reflect the training workload rather than assume that one method is always superior.

    Hybrid Optimization Is a Practical Approach

    Different parameter groups do not necessarily need the same optimizer. Selecting an optimizer according to parameter type and dimensional structure is an increasingly common engineering approach in large-model training.

    Muon’s use alongside Adam-family methods illustrates this principle.

    Learning Rate Schedules Still Matter

    A different update rule does not eliminate the need for careful scheduling. Warmup, learning rate decay, and their interaction with batch size remain important to training stability and final results.

    Geometric Intuition Helps Explain the Updates

    From the heavy-ball method to momentum orthogonalization, a recurring theme is the search for updates that better reflect the structure of the optimization problem.

    Momentum uses an analogy to physical inertia. Muon emphasizes matrix geometry. Understanding these ideas is more useful than memorizing update equations alone.

    Conclusion

    From the gradient descent ideas of 1847 to Polyak’s heavy-ball method in 1964 and today’s orthogonalized momentum updates, optimizer development has continually refined how models move through complex loss landscapes.

    Muon extends this progression by treating matrix structure as a central part of the update rule. For developers training large language models, its main lessons are both practical and conceptual: match optimizers to parameter groups, continue to tune learning rate schedules carefully, and consider the geometry behind each update—not just its elementwise magnitude.