From Gradient Descent to Muon: The Evolution of Optimizers for Large Model Training
Large model training relies on optimizers to navigate the high-dimensional loss landscape, balancing step size, escaping plateaus, and managing memory overhead. This article traces the evolution from steepest descent and momentum methods to adaptive learning-rate algorithms like Adam, and finally to Muon—an optimizer that applies orthogonalization to matrix-valued weights. It explains the core mechanisms, applicable scenarios, memory trade-offs, and practical considerations for adopting Muon in mixed-optimizer LLM training setups.
The Optimizer’s Task: Three Challenges in the Dark
Deep learning training can be viewed as finding the minimum of a loss function in a high-dimensional parameter space. At each step, the optimizer decides the direction and magnitude of the parameter update. The loss function reports the current elevation, the gradient indicates the steepest upward direction locally, and the optimizer determines the next move based on this information.
A practical optimizer must simultaneously address three issues.
First, step-size control. If the step is too large, parameters may overshoot the valley floor and oscillate between the slopes, preventing the loss from decreasing steadily. If the step is too small, training time increases substantially. The learning rate therefore needs to adapt to the training phase and the state of the parameters.
Second, local minima and flat regions. The real loss surface contains numerous saddle points and shallow basins. Updates relying solely on the current gradient tend to stall in these areas.
Third, compute and memory overhead. Optimizers must maintain their own state variables, such as momentum buffers and second-moment estimates. The larger the model, the more memory these states consume, driving up training costs.
From Steepest Descent to the Heavy Ball Method: Origins of Momentum
In 1847, French mathematician Augustin-Louis Cauchy introduced steepest descent, which moves in the direction of the negative gradient at each step. This is the mathematical starting point of stochastic gradient descent (SGD). Pure gradient descent only considers the current gradient and has no memory. In narrow ravines, parameters bounce back and forth between the walls, making progress slow.
In 1964, Soviet mathematician Boris Polyak proposed the Heavy Ball Method to address this issue. In addition to the current gradient, the update retains a portion of the previous update direction—this historical component is called momentum. Intuitively, components along the ravine direction accumulate, while oscillating components cancel out, resulting in faster convergence. Momentum also allows the optimization process to push through shallow local basins.
Around 1983, Nesterov introduced the accelerated gradient method (NAG). It first takes a provisional step in the momentum direction, then computes the gradient at that lookahead position to correct the update direction. For convex and smooth problems, this improves the convergence rate from O(1/k) to O(1/k²). It is important to note that this result holds under specific theoretical assumptions; on the non-convex loss surfaces of deep networks, its effectiveness requires experimental validation.
Adaptive Learning Rates: Per-Parameter Step Adjustment
Momentum addresses the direction problem, but step size remains difficult. In deep networks, gradient scales vary widely across parameters. Gradients for parameters near the output layer tend to be larger, while those near the input layer can be much smaller. A single global learning rate struggles to accommodate all parameters simultaneously.
Adaptive methods such as AdaGrad, RMSProp, and Adam scale the learning rate for each parameter based on its historical gradient statistics. Parameters with persistently large gradients receive more conservative step sizes, while those with smaller gradients get relatively larger steps. Adam maintains both a first moment (the moving average of gradients) and a second moment (the moving average of squared gradients), with bias correction to reduce the underestimated values early in training.
The cost is clear: Adam stores two state entries per parameter, making optimizer state memory roughly twice the size of the parameters themselves. Even with bias correction, choices such as learning rate warmup, the numerical stability term epsilon, and the second-moment decay factor β2 significantly influence training outcomes. Training failures stem from various causes and cannot be uniformly attributed to the optimizer.
Muon: Orthogonalized Updates for Matrix Parameters
Muon is an optimizer that has drawn attention in the large-model training community in recent years. It targets the weight matrices in neural network hidden layers, and its design philosophy differs from the methods discussed above. The following is based on the design description publicly shared by Keller Jordan in 2024, the Moonshot team’s 2025 paper Muon is Scalable for LLM Training, and its open-source implementation.
Core Idea: Momentum First, Then Orthogonalization
One point needs clarification upfront: Muon does not use second-order momentum. Its momentum is first-order—an exponential moving average of historical gradients. What distinguishes Muon is that the momentum matrix is approximately replaced by an orthogonal matrix before being applied as an update.
Given a weight matrix’s momentum M, its singular value decomposition is M = UΣVᵀ. Setting all singular values to 1 yields UVᵀ, which is called the orthogonal factor of M. Muon’s update direction approximates this UVᵀ term, moving parameters along that direction. Intuitively, this makes the update magnitude more uniform across the matrix’s singular directions, preventing a few dominant directions from monopolizing the update.
Computing a full SVD is expensive, especially for large matrices. Muon’s implementation therefore approximates UVᵀ using the Newton-Schulz iteration, a polynomial iteration requiring only matrix multiplications, which is efficient on GPUs. Public implementations typically run about five iterations using tuned polynomial coefficients that push singular values quickly toward 1. The result is an approximation, not an exact SVD.
Scope: Limited to 2D Hidden-Layer Weights
Muon’s orthogonalization targets 2D weight matrices, such as attention’s Q, K, V, output projections, and linear layers in MLPs. The following parameter types are generally not suitable for Muon and are typically handled by AdamW instead: word embeddings, the LM head, bias terms, and normalization layer scale parameters. In practice, training often mixes both optimizers, so it is essential to specify which parameters are assigned to which optimizer.
Public implementations also commonly include a scaling factor designed to roughly match the update magnitude of Muon with that of AdamW, so both parameter groups can share similar learning-rate settings. The scaling method varies by implementation; when reproducing results, follow the defaults in the codebase you use.
What Orthogonalization Can and Cannot Guarantee
Orthogonalization may improve the condition number of the matrix, making updates more uniform across directions and improving training stability. However, it does not guarantee faster convergence or better final results. The benefits reported in the paper depend on model scale, data volume, batch size, and learning-rate settings, and cannot be directly extrapolated to other tasks.
Distributed training introduces additional complications. The Newton-Schulz iteration requires the full matrix, but in large-model training, parameters are typically sharded across multiple devices. How to gather the shards and minimize communication is a key engineering challenge, and different open-source frameworks handle it differently. Additionally, the per-step iterative computation adds compute overhead that must be weighed against communication and memory savings.
Memory: One State Buffer Plus Temporary Overhead
In Muon, each 2D weight matrix requires only one momentum buffer. Adam requires two states (first and second moments). For the same matrix parameters, Muon’s optimizer state is approximately half that of Adam.
However, this does not necessarily mean total memory is halved. The Newton-Schulz iteration requires temporary matrices during execution, increasing peak memory. The overall benefit depends on the proportion of 2D parameters in the model, the data types of parameters and gradients (e.g., bf16 or fp32), and whether non-matrix parameters are assigned to AdamW. Evaluation should rely on the actual memory profile of the training run, not a blanket “saves half” assumption.
Comparison and Selection: A Practical Overview
The table below summarizes the optimizers discussed, their state requirements, applicable scope, and key considerations.
| Optimizer | State per Parameter | Suitable for | Key Notes |
|---|---|---|---|
| SGD + Momentum | One momentum buffer | General baseline | Simple to implement; sensitive to learning rate |
| Adam / AdamW | Two states (first + second moments) | General default for LLM training | Relatively tolerant of hyperparameters; AdamW decouples weight decay from gradient updates |
| Muon + AdamW Mix | One buffer for matrix params; two for others | Hidden-layer weight matrices (Muon) + rest (AdamW) | Two separate learning rates; watch for orthogonalization iteration details |
If there is no clear throughput or memory bottleneck, AdamW is a reasonable baseline. Only consider switching to Muon when the baseline is stable and there is evidence of measurable benefit.
Troubleshooting Order for Common Training Issues
When loss oscillates, first check whether the learning rate is too high, then verify gradient clipping is enabled, and finally examine whether the batch size is too small, leading to noisy gradients. Adjusting the momentum coefficient is one option, but it should not be treated as a universal remedy.
When convergence stalls, first confirm that the learning-rate warmup and decay schedule are appropriate, then check whether the data pipeline is functioning correctly, whether parameters are grouped properly, and whether some parameters are barely updating due to overly low learning rates.
When encountering out-of-memory (OOM), distinguish between optimizer state and activations. In large-batch training, activations often dominate memory; reducing batch size, enabling activation recomputation, or using more aggressive sharding is usually more effective than switching optimizers. When optimizer state is the primary consumer, consider sharding (e.g., ZeRO-style methods) or switching to an optimizer with lighter state.
Pre-Deployment Checklist
First, verify algorithm details against the original paper or official open-source implementation, especially coefficients, scaling methods, and parameter grouping rules. Second, run ablation experiments on a small-scale model, comparing against an AdamW baseline under the same token budget and learning-rate search. Third, record full hyperparameters, random seeds, and hardware environment to ensure reproducibility. Fourth, maintain a fallback plan—if instability arises, be able to quickly switch back to AdamW. Fifth, monitor peak memory and per-step wall-clock time, not just the final loss.
Conclusion
The evolution of optimizers can be summarized along three threads: momentum methods give updates a directional memory; adaptive methods grant each parameter its own step size; and Muon imposes an orthogonalization constraint on the update direction at the matrix level. Each addresses a different problem and has its own applicability boundary. Muon’s value must be confirmed through controlled experiments rather than judged by concept alone. Understanding the assumptions, state overhead, and implementation details of each method is what makes it possible to make sound choices in real-world training.
