How Optimizers for Large Language Model Training Evolved: From Momentum to Muon

    A clear technical guide to how optimization algorithms for training large models have evolved—from plain gradient descent and momentum methods to Adam and the matrix-aware Muon optimizer—and what these changes mean for engineering practice.

    How Optimizers for Large Language Model Training Evolved: From Momentum to Muon

    Why the Optimizer Is the “Navigation System” of Deep Learning

    Before discussing any new optimizer, it helps to establish a shared mental model: what role does an optimizer actually play in neural network training?

    A classic analogy makes this concrete. Imagine you are blindfolded and dropped somewhere in a range of rolling hills, with the goal of reaching the deepest valley. You have two sources of information:

    • The loss function: like an altimeter, it tells you your current elevation—how far the model’s predictions are from the true labels.
    • The gradient: like probing the slope of the ground with your feet. Backpropagation computes the direction in which the loss increases fastest; its opposite points “downhill.”

    The optimizer is the part of your brain that decides how to walk: which direction to step, how far to step, and whether to factor in momentum from previous steps. This “strategy” may look like a simple parameter update rule, but it directly determines three critical outcomes: whether the model converges, how good the final solution is, and how much compute and time training consumes.

    In the era of large models, a single training run can cost millions of dollars in compute. Every efficiency gain in the optimizer translates into real savings. That’s why, whenever a new large model’s training details are published, the choice of optimizer becomes a focal point for the technical community.

    Three Core Problems an Optimizer Must Solve

    1. Learning Rate Control: The Art of Step Size

    An optimizer’s first job is deciding the size of each parameter update—the learning rate. Returning to the downhill analogy:

    • Too large a step: you may leap across the valley floor and land on the opposite slope, then oscillate back and forth without ever settling at the lowest point—the training equivalent of a loss that keeps bouncing and never converges.
    • Too small a step: you descend steadily, but reaching the valley bottom takes an enormous number of steps—slow convergence and wasted compute.

    Modern optimizers adapt the step size dynamically: moving faster across flat regions and taking smaller, more careful steps on steep terrain near the optimum.

    2. Escaping Local Optima: Avoiding Dead Ends

    The loss landscape is rarely a smooth bowl; it is full of small dips. A strategy that only follows the steepest descent at the current point can easily get trapped in a shallow local minimum partway down the hill, mistaking it for the global optimum.

    Optimizers use momentum, stochasticity, and path smoothing to help the update trajectory “roll over” these shallow dips and find deeper minima.

    3. Handling Ill-Conditioned Curvature: The Canyon Problem

    Real neural network loss surfaces often resemble a long, narrow canyon—extremely steep in some directions and very flat in others. Naive gradient descent in such terrain bounces back and forth between the canyon walls, zigzagging slowly toward the bottom with poor convergence efficiency. Solving this problem led to one of the most important breakthroughs in optimizer history.

    Momentum: From a “Massless Particle” to a Heavy Ball

    The Limits of Plain Gradient Descent

    The most basic algorithm is stochastic gradient descent (SGD), whose mathematical roots trace back to the method of steepest descent proposed by the French mathematician Cauchy in 1847. For over a century afterward, standard gradient descent embedded a physically counterintuitive assumption: the parameter point is a massless particle—it can accelerate from zero to any speed instantly, and brake or turn on a dime.

    This makes it perform poorly in canyon terrain: the gradient direction flips back and forth, and the update path oscillates violently in a zigzag pattern.

    Polyak’s Physical Intuition

    In 1964, the Soviet mathematician Boris Polyak asked a highly physical question while studying optimization theory: what happens if we give this sliding particle mass and inertia?

    The result was the Heavy Ball Method, where the parameter update depends not only on the current gradient but also retains a fraction of the previous velocity:

    1. # Momentum-based parameter update (illustrative)
    2. velocity = momentum * velocity - learning_rate * gradient
    3. parameter = parameter + velocity

    With inertia, oscillations across the canyon walls decay as repeated directional flips cancel each other out, while velocity along the valley floor keeps accumulating—like a heavy ball rolling down the valley, the path becomes smooth and efficient. This idea later evolved into SGD with momentum and Nesterov accelerated gradient, both of which remain foundational choices in training practice today.

    The Adaptive Learning Rate Era: Adam and Its Successors

    Momentum solved the “directional oscillation” problem, but “how large a step should each individual parameter take” remained difficult. The gradient environments of a model’s billions of parameters vary enormously: some see sparse, violent gradients; others see gentle, steady ones. Applying a single global learning rate to all parameters is clearly suboptimal.

    Adaptive optimizers emerged to address this. Their core idea: maintain per-parameter statistics of historical gradients (such as second-moment estimates) and automatically scale each parameter’s update magnitude—shrinking steps for parameters with consistently large gradients and enlarging them for sparse ones. The most widely used method in this family is Adam, which combines momentum (first moment) with adaptive scaling (second moment) and has been the de facto default for deep learning training over the past decade.

    But Adam has costs. It maintains two additional sets of optimizer state, each the same size as the parameters themselves. In training models with hundreds of billions of parameters, this state consumes enormous GPU memory, and the per-parameter adaptive scaling can introduce noise and instability at very large training scales. This left room for a new generation of optimizers to improve.

    Muon: A New Approach Built Around Matrix Structure

    Recently, with training details of several frontier large models surfacing, a new optimizer called Muon has drawn significant attention. Its core insight: most parameters in a neural network are two-dimensional weight matrices, yet traditional optimizers treat these matrices as flattened vectors, discarding the structural information inherent to matrices.

    Muon’s approach can be summarized in three layers:

    Updating Matrices According to Their Nature

    Muon orthogonalizes the momentum gradients of weight matrices (mathematically, this can be understood as approximately computing the matrix polar decomposition via methods such as Newton–Schulz iteration), so that each update is “uniform” in the spectral norm sense—matrix singular directions receive corrections of similar magnitude rather than being dominated by a few large singular values. This yields better condition number control and more stable behavior in large-scale training.

    Division of Labor, Not Replacement

    Muon does not attempt to replace Adam-family methods for all parameters. In practice, a hybrid strategy is typically used: large two-dimensional weight matrices in hidden layers use Muon, while biases, normalization layer parameters, embeddings, and other one-dimensional or non-matrix parameters remain with Adam-style optimizers. This “right tool for the right job” design is a pragmatic engineering choice.

    Memory and Efficiency Gains

    Because Muon’s momentum buffer design is lean, its optimizer state typically occupies less memory than a fully configured Adam. For large model training, where memory is extremely tight, this is a tangible benefit—and its value grows further when ultra-long-context training puts additional pressure on memory.

    1. # Pseudocode for Muon's hybrid optimization strategy
    2. for param in model.parameters():
    3. if is_hidden_weight_matrix(param): # 2D hidden-layer weight
    4. update = orthogonalize(momentum_buffer(param))
    5. else: # all other parameters
    6. update = adam_style_update(param)
    7. param -= learning_rate * update

    Implications for Engineering Practice

    From SGD to momentum, to Adam, and now to Muon, the logic of optimizer evolution is clear: continuously injecting more knowledge about problem structure into the update rule—first the physical structure of inertia, then the statistical structure of per-parameter adaptivity, and now the geometric structure of matrix spectral properties.

    For engineering teams, the practical takeaways include:

    1. Match optimizer choice to task scale: Adam remains a solid baseline for small- and mid-scale training; for very large-scale pretraining, evaluate the benefits of matrix-aware optimizers.
    2. Prefer hybrid strategies: don’t expect a single optimizer to handle everything; configuring update rules per parameter structure group often works better.
    3. Watch the memory ledger: optimizer state is often the largest share of training memory; low-state designs free up space for larger batches or longer sequences.
    4. Pair with infrastructure: in large-scale distributed training, optimizer efficiency must be combined with robust scheduling, logging, and monitoring systems to convert theoretical gains into real training throughput improvements.

    Conclusion

    An optimizer may look like just one component of the training pipeline, but it is in fact the critical hub connecting mathematical theory and compute engineering. The emergence of new methods like Muon shows that even on the nearly 180-year-old problem of gradient descent, digging deeper into problem structure can still unlock new efficiency gains. Understanding this evolutionary trajectory is more valuable in the long run than memorizing any single algorithm.