Muon Optimizer: Reducing Optimizer Memory Overhead in Large Language Model Training

    Muon takes a matrix-level approach to optimization, using momentum and approximate orthogonalization instead of Adam’s two per-parameter state tensors. This article explains its memory-saving potential, how its updates differ from Adam’s, and the numerical, distributed-training, and validation challenges involved in deploying it at scale.

    Muon Optimizer: Reducing Optimizer Memory Overhead in Large Language Model Training

    1. The Memory Bottleneck at Trillion-Parameter Scale

    As large language models grow from tens of billions to trillions of parameters, training costs are increasing faster than hardware capabilities. Optimizer state is a major but easily overlooked contributor: unlike model weights, it is not immediately visible in the architecture, yet it can consume a substantial share of GPU memory.

    Adam, one of the most widely used optimizers, maintains two state tensors for every trainable parameter:

    • First moment: A moving average of gradients, commonly described as momentum.
    • Second moment: A moving average of squared gradients, used for adaptive scaling.

    Both tensors have the same shape as the corresponding parameters.

    Consider a model with 1.6 trillion parameters. In mixed-precision training, storing its weights in 16-bit floating point requires approximately 3.2 TB. If Adam’s optimizer states are stored in 32-bit floating point, the first and second moments together require another 12.8 TB.

    These figures exclude activations, gradient buffers, and communication overhead. They also do not represent the complete memory footprint of a mixed-precision training implementation.

    On clusters where each accelerator has only tens of gigabytes of memory, optimizer states must be distributed through sophisticated sharding strategies. That can introduce more communication, leave less room for larger batch sizes, and constrain context length.

    Adam’s adaptivity therefore comes with a significant memory cost. At sufficiently large model sizes, that cost becomes a structural training bottleneck rather than a routine overhead—one reason researchers and engineers are exploring alternatives.

    2. Adam’s Limitation: Element-Wise Updates

    To understand Muon, it helps to examine how optimizers treat neural network weights.

    Many weight tensors are matrices or can be reshaped into matrices. Adam, however, applies adaptive scaling element by element. Each parameter has its own moment estimates and its own scaled update.

    This approach has two important limitations.

    1. It does not explicitly exploit matrix structure. A 1,000 × 1,000 weight matrix is more than a collection of one million scalars: its entries jointly define a linear transformation with a high-dimensional geometric structure. Element-wise scaling does not directly account for that structure.

    2. Optimizer state grows linearly with parameter count. Adam maintains two state values per parameter. As the model grows, so does this memory requirement.

    The first point concerns the geometry of optimization; the second concerns its storage cost. Muon approaches both by changing how matrix-shaped updates are constructed.

    3. Muon’s Core Idea: Optimize Matrices as Matrices

    Muon treats a weight matrix as a structured object rather than simply a set of independently scaled parameters. Its update process can be summarized in three stages:

    1. Accumulate momentum. Maintain a moving average of gradients to obtain a momentum matrix.
    2. Approximately orthogonalize the momentum. Apply a numerical method such as Newton–Schulz iteration to produce an approximately orthogonal or semi-orthogonal update, bringing its singular values toward a common scale.
    3. Apply the matrix update. Scale the resulting matrix by a learning rate and apply it to the weights in the descent direction.

    The intuition behind orthogonalization is that a raw gradient or momentum matrix may have very different update magnitudes along different singular directions. Some directions can dominate while others receive relatively small updates.

    Approximate orthogonalization flattens these differences, producing a more balanced update across those directions. Importantly, it is the update matrix that is approximately orthogonalized—not the weight matrix itself.

    One analogy is the difference between issuing separate marching instructions to individual soldiers and first arranging them into a formation that moves under a shared command. The analogy illustrates the change from element-wise scaling to matrix-level geometry. The direct optimizer-state saving, however, comes specifically from eliminating Adam’s second-moment tensor.

    4. Memory and Efficiency: Potential Practical Benefits

    Muon’s engineering appeal centers on three areas.

    Lower Optimizer-State Memory

    Muon maintains a momentum tensor without Adam’s second-moment tensor. For parameters handled by Muon, and assuming the same state precision, this halves optimizer-state storage relative to Adam.

    At trillion-parameter scale, that can translate into terabytes of saved memory. The freed capacity may support larger batches, longer sequences, or simpler sharding arrangements.

    This is a reduction in optimizer-state memory, not a halving of total training memory. In a hybrid setup, the overall saving also depends on how many parameters remain under an Adam-style optimizer.

    Compute and Communication Efficiency

    Matrix-level orthogonalization aims to produce well-scaled updates and can potentially improve optimization behavior. Fewer stored optimizer states can also reduce state-management and sharding overhead in distributed training.

    These benefits are not automatic. Orthogonalization adds computation, and its interaction with distributed parameter layouts can introduce communication requirements. End-to-end efficiency depends on the implementation, hardware, and parallelization strategy.

    Likewise, learning-rate schedules remain important; a more structured update does not remove the need to tune them.

    Potentially Faster Convergence

    Public small-model training speed competitions have reported strong results from orthogonalized-update approaches, including reaching target losses in fewer training steps and setting efficiency records at the time.

    Such results suggest that matrix-level updates can offer more than a memory-saving compromise: their optimization trajectories may also be advantageous.

    However, gains observed in small-model benchmarks should not be assumed to transfer unchanged to much larger models or different training workloads.

    5. Challenges in Moving from Experiments to Production

    Like any new optimizer, Muon faces several hurdles on the path to large-scale deployment.

    Challenge 1: Validating Effectiveness at Scale

    Early experiments focused on relatively small models, ranging from tens to hundreds of millions of parameters. Success at those sizes does not by itself establish stability at hundreds of billions or trillions of parameters.

    Optimization behavior can change with scale. Establishing reliability requires controlled experiments and long training runs, rather than extrapolating from small-model results alone.

    Challenge 2: Numerical Stability and Hyperparameter Robustness

    Approximate orthogonalization is a numerical procedure. Its iteration count and arithmetic precision involve trade-offs between computational cost and approximation quality.

    In mixed-precision training, teams must assess whether low-precision errors affect stability. The efficiency of the required matrix operations on the target hardware also influences actual throughput.

    Challenge 3: Integration with Existing Training Stacks

    Production optimizers are tightly coupled to other training components, including:

    • Tensor, pipeline, and data parallelism
    • Gradient clipping
    • Learning-rate schedules
    • Weight decay

    Matrix-level updates create additional considerations when a weight matrix is partitioned across devices. Orthogonalizing an update for the full matrix may require coordinating its shards, changing communication patterns and potentially offsetting some savings elsewhere.

    The optimizer therefore needs to be evaluated as part of the complete distributed training stack, not as an isolated component.

    Challenge 4: Choosing Which Parameters to Optimize

    A practical compromise is a hybrid optimizer setup:

    • Apply Muon to matrix-shaped hidden-layer weights.
    • Use an Adam-style optimizer for embeddings, output layers, normalization parameters, and other one-dimensional or specially structured tensors.

    This approach seeks to combine the efficiency of matrix-level updates with established handling for parameter groups that are less suitable for Muon. It is a common practical direction for integrating the optimizer.

    6. Practical Takeaways for Developers

    For engineers and teams working on large-model training, Muon points to several useful practices.

    Treat Optimizer State as a First-Class Budget Item

    Training plans should account explicitly for optimizer-state memory, rather than focusing only on weights and activations.

    For teams building their own pretraining pipelines, evaluating lower-state optimizers—such as momentum-only approaches—or 8-bit optimizer-state quantization can reveal meaningful opportunities to reduce resource requirements.

    Look Beyond Element-Wise Optimization

    Element-wise updates are an established convention, not the only possible design.

    Matrices and tensors contain geometric structure that optimization methods can exploit. The same broader principle is relevant when considering initialization, sparsification, and low-rank adaptation: the structure of a parameter tensor may matter as much as its individual values.

    Validate Gradually

    A staged evaluation process reduces the risk of adopting a new optimizer:

    1. Run fast comparisons on small models.
    2. Conduct controlled experiments at an intermediate scale.
    3. Perform short-window stability tests at the intended large scale.

    This progression helps identify convergence and integration issues before committing to a full production run.

    Use Elastic Compute for Comparative Experiments

    Optimizer evaluation often involves many short training runs across several configurations. Elastic cloud GPU infrastructure can be useful for running these comparisons in parallel.

    Where suitable services are available, a cloud GPU and distributed-training environment can support experiments that compare convergence curves and memory consumption on the target architecture. Those results can then guide decisions about the main training pipeline.

    The key is to measure behavior on the intended workload rather than assume that a benchmark result will carry over.

    7. Conclusion

    The move from Adam-style element-wise scaling toward Muon’s matrix-level updates reflects a broader shift in large-model training: as scale becomes a dominant constraint, previously acceptable algorithmic overheads can become major bottlenecks.

    Muon revisits both the geometry and the storage cost of optimization. By approximately orthogonalizing momentum-based updates and avoiding a second-moment tensor, it offers a path toward lower optimizer-state memory and potentially better training efficiency.

    Its practical value still depends on numerical stability, parameter selection, distributed integration, and validation at the target scale. For engineers building large training systems, understanding these boundaries is just as important as understanding the algorithm itself.