From Adam to Muon: How Optimizer Memory Became the Bottleneck in Large-Model Training

    Adam’s two momentum states impose a heavy memory tax that grows with parameter count. Muon treats weight matrices as geometric objects, orthogonalizes updates, and drops per-parameter second moments—cutting optimizer memory while raising new questions about scale, stability, and production training.

    1. Why the Optimizer Is a Hidden Cost Center in Large-Model Training

    In large-model training, optimizer choice is often treated as a default setting. In practice, it strongly shapes both training cost and how far a run can scale. For a long time, Adam and its variants dominated the deep-learning optimizer landscape. Adaptive learning rates made training stable and fast across many model types, and Adam became the de facto industry standard.

    Adam has one hard-to-ignore built-in flaw: a large memory footprint.

    At its core, Adam keeps two statistics for every parameter: a first moment (an exponential moving average of the gradient) and a second moment (an exponential moving average of the squared gradient). In mixed-precision training, that means optimizer state uses about twice the parameter count in extra memory, on top of the model weights and gradients themselves. The larger the model, the more striking that extra bill becomes:

    • When training a model with tens of billions of parameters, optimizer state alone can occupy memory on the order of several terabytes.
    • As models move toward a trillion parameters, optimizer-state memory can swell further into the tens of terabytes.
    • That overhead directly squeezes the room left for batch size and context length, forcing teams to trade off training efficiency, sequence length, and hardware spend.

    In other words, Adam’s adaptive behavior is paid for with a steep memory tax. Once model scale enters a new range, that tax becomes a major driver of exponentially rising training cost. It is easy to see why the industry started looking seriously at the next generation of optimizers.

    2. How Muon Appeared: From a Geek Challenge to a Record

    In late 2024, a well-known deep-learning researcher launched a challenge: train a mini GPT-2-scale language model to a target loss with as little compute and time as possible. Many researchers joined, and most of the effort went into fine-tuning Adam—learning-rate schedules, warmup, and hyperparameter search—trying to squeeze the last gains out of the existing framework.

    One participant took a different path. Instead of polishing Adam further, they implemented and submitted a new optimizer, Muon, in their own code repository. The core finding was that orthogonalizing the gradients of hidden-layer parameters produced a sharp drop in the number of steps needed to reach the same loss. That result broke the challenge record at the time and brought Muon into wider view.

    Muon’s first success, though, was validated only on very small models, on the order of 124 million parameters. An optimizer that looks excellent on a toy model still has to answer a harder question: can it support industrial training at trillion-parameter scale? That became the main doubt it had to face.

    3. The Core Idea: Element-Wise Updates vs. Matrix-Level Updates

    To see why Muon matters, start from what an optimizer actually does: it decides how weights are updated.

    3.1 Adam: Element-Wise Tuning

    Adam treats a weight matrix as a collection of independent parameters. For each element it computes momentum and an adaptive learning rate, then adjusts the update size one entry at a time. The approach is flexible, but it requires a separate state for every parameter, so memory grows strictly with parameter count.

    3.2 Muon: The Matrix as a Whole

    Muon treats the weight matrix as one indivisible object in a high-dimensional geometric space. The update flow is roughly:

    1. Blend the gradient with momentum into a single update matrix.
    2. Orthogonalize that matrix—for example with Newton–Schulz iteration, approximating orthogonalization with a few matrix multiplications instead of an explicit SVD.
    3. Add the resulting orthogonal matrix to the weights in one step, at a shared scale.

    Illustrative pseudocode:

    1. # Muon single-step update (illustrative)
    2. momentum = beta * momentum + (1 - beta) * grad # blend momentum
    3. update = orthogonalize(momentum) # approximate orthogonalization
    4. weight -= lr * update * scale_factor # apply a matrix-level update

    Because Muon does not keep a second moment for every parameter, it avoids that part of the memory cost. The advantage grows sharply in large-scale training.

    3.3 An Intuitive Analogy: Iron Balls Rolling Downhill

    Think of optimization as a crowd of iron balls rolling down a hill:

    • Adam: each ball moves on its own. A commander has to plan a route and a pace for every ball and adjust them one by one. The more balls there are, the larger the command system (the two state variables in memory) and the higher the coordination cost.
    • Muon: the balls first form a neat block, then advance together with one shared pace. The commander issues a single order, the formation moves as a unit, and management cost drops.

    One style is individual dispatch; the other is a coordinated formation. On a battlefield of hundreds of billions or trillions of parameters, the efficiency gap in “command” is obvious.

    4. Doubt and Verification: From Parade Formation to a Real Battlefield

    A formation like that invites skepticism. The objection is simple: nobody marches in a parade block on a real battlefield; combat still means a loose skirmish line. A method that looks tidy on a toy model may not be practical in real large-scale training.

    That doubt is fair. There is a wide gap between small-scale checks and industrial use:

    • Numerical stability: Is orthogonalization numerically well behaved on extremely large matrices?
    • Fit with existing training pipelines: Sharding in distributed training, mixed precision, and gradient accumulation all need to be adapted.
    • Quality of convergence: Faster loss decrease does not automatically mean the final model is equally strong.
    • Long-run reliability: Over training runs of trillions of tokens, are there unknown failure modes?

    Those questions can only be settled step by step: careful ablations, medium-scale checks, then full-scale training. That is the path the field has been following—from community reproductions and medium-scale alignment experiments to formal use in very large training runs—before a new optimizer truly crosses from a geek challenge to industrial practice.

    5. What This Means for Practitioners

    Whichever optimizer a team adopts, this shift suggests a few general lessons:

    1. Memory is one of the core bottlenecks in large-scale training. Optimizer state, activation caching, and gradient communication each deserve a dedicated look. Memory tactics such as state sharding, recomputation, and low-precision state storage should be planned together with optimizer choice.
    2. The optimizer is not an immovable default. Adam succeeded because of history and ecosystem, not because it is optimal at every scale. When the problem scale changes, revisiting assumptions in basic components often opens large efficiency gains.
    3. The move from element-wise to structured updates can travel. Treating parameters as a geometric whole is relevant not only to optimizers, but also to compression, low-rank adaptation, and initialization.
    4. Mature cloud training infrastructure can shorten the path from idea to evidence. Containerized distributed training, high-throughput object storage, and solid monitoring and logging lower the cost of iterating on large experiments so teams can spend more time on the algorithm itself.

    Closing

    The path from Adam to Muon is a snapshot of deep learning moving from a pure “scale dividend” toward a dividend that comes from systems engineering and algorithms working together. As parameter counts head toward the trillion range, the hidden cost of any default component is magnified without limit. Pieces that once seemed “good enough” are becoming the next battleground for lower cost and higher efficiency. For engineers who train at scale, understanding the memory economics and geometric intuition behind optimizers has shifted from a nice-to-have to required knowledge.