Muon Optimizer for Large-Scale Training: Advantages and Trade-offs

    This article explains why optimizer state becomes a bottleneck in trillion-parameter training, how the Muon-style matrix-level orthogonalized optimizer differs from element-wise adaptive methods like Adam, where its memory savings come from, and what it takes to move from small-scale speedrun experiments to industrial-scale training. It also includes a practical checklist for deciding when the approach is worth trying.

    1. The Starting Problem: Optimizer State Blocks Hundred-Billion-Parameter Training

    Before discussing any new optimizer, it helps to state the conflict clearly. For years, adaptive moment estimation methods (Adam being the representative case) have been the default choice for training workloads, for straightforward reasons: they are relatively insensitive to the learning rate, hyperparameter transfer is comparatively easy, and the engineering implementations are mature. The cost is equally clear — adaptivity comes from maintaining a first moment and a second moment for every parameter, meaning two extra statistics per weight element.

    Scale that up and the bill becomes hard to ignore. Take a dense model in the trillion-parameter range: under mixed-precision training, weights and gradients already consume a large amount of GPU memory, and stacking two state tensors of the same length as the parameter count pushes optimizer state alone into the tens of terabytes (the actual per-device load varies with the parallelization scheme, but the total magnitude does not change). The consequences cascade: less room for activations, a lower achievable batch size, limited context length, more aggressive parallelism, a higher communication share, lower end-to-end throughput, and higher training cost.

    So the real question is not whether Adam is good, but whether, once parameter count crosses a certain threshold, the benefit of element-wise adaptivity still justifies its memory and bandwidth overhead.

    2. Principle Comparison: Element-Wise Updates vs. Matrix-Level Updates

    Understanding matrix-level orthogonalized optimizers (commonly referred to in the industry as Muon and methods of this class) starts with accepting that the two families define “a parameter” differently.

    The element-wise view treats a weight tensor as a pile of mutually independent scalars. Gradient descent picks a step size for each scalar on its own, and the second moment performs local curvature normalization per scalar. The implicit assumption is that dimensions can be handled in a decoupled way.

    The matrix-level view treats a hidden layer’s weight as a complete linear map — a high-dimensional geometric object. An update first fuses the gradient with momentum into a matrix, then orthogonalizes that matrix (in practice, a Newton–Schulz iteration approximates the orthogonal factor, avoiding a direct and expensive decomposition), and finally adds the resulting orthogonal matrix to the weights as a whole. Intuitively, orthogonalization does one thing: it stretches all singular directions to a similar scale so the update moves at a consistent pace in every direction, preventing a few large-singular-value directions from dominating the update and skewing the effective learning rate.

    A memorable analogy: element-wise optimization is like a group of people descending a mountain separately, each judging their own footing — flexible, but requiring a separately computed rhythm for every individual. Matrix-level optimization is like forming those people into a square formation and advancing as one, with a unified direction and low instruction overhead. The controversy about the formation sits exactly here — real terrain is rugged, so does moving in neat rows actually mean efficiency? That was the core of the early skepticism.

    3. Why It Saves Memory: It Saves State, Not Just Numerical Precision

    The source of the benefit needs precise wording to avoid overstatement. The memory advantage of matrix-level orthogonalized methods comes mainly from two points:

    1. Smaller state footprint. It mainly maintains a momentum term and no longer stores an independent second moment per element, reducing state tensors from two to roughly one, and the space freed up can be reinvested in batch size and sequence length.
    2. The update computation happens in place. Orthogonalization is an iterative operation on the existing matrix and does not require an extra per-element adaptive statistics buffer.

    A schematic update skeleton (pseudocode, structure only):

    1. # g: current gradient; buf: momentum buffer; lr: learning rate
    2. buf = beta * buf + (1 - beta) * g # momentum fusion, a single state only
    3. u = newton_schulz(buf) # orthogonalization approximation, yields an approximately orthogonal matrix
    4. w = w - lr * u # add the update to the weights as a whole

    Compared with the element-wise adaptive approach, the state tensors drop from two to one — that is where the difference in the memory ledger comes from. Note that the orthogonalization iterations add compute overhead, so what it saves is memory and memory-access pressure, not a free lunch.

    4. From Speedrun Experiments to Industrial-Scale Training: Three Hurdles to Clear

    Methods of this class were first validated on small models and in training speedrun settings: on models with only hundreds of millions of parameters or fewer, the number of steps needed to reach a target loss dropped noticeably. But working at small scale does not mean it is usable at large scale; scaling up requires clearing three hurdles.

    The first is the applicability boundary. Parameters are not homogeneous: embedding layers, output heads, normalization parameters, and biases have very different statistical properties from hidden layer matrices. The mainstream engineering practice is layered handling — hidden layer weight matrices go through orthogonalized updates while the remaining parameters stay with an adaptive optimizer, forming a hybrid optimization strategy. This is not a compromise but respect for the geometric properties of the parameters.

    The second is numerical stability. Orthogonalization iterations risk overflow and precision loss at very low precision, so this step is usually performed at higher precision and then converted back to the training precision. A reasonable update magnitude scaling is also needed (commonly a scale normalization based on matrix shape), otherwise the effective step size drifts between layers and the training curve shows spikes.

    The third is distributed engineering. Trillion-parameter models must rely on a combination of tensor parallelism, pipeline parallelism, and data parallelism, and both optimizer state and update computation have to follow the sharding. Matrix-level updates are sensitive to whether a matrix is complete, so after sharding, orthogonalization must be completed within a suitable communication group, and orchestrating communication and computation is more complex than in the element-wise approach. This is also why adoption has lagged behind the theoretical results.

    5. Practical Guidance: When It Is Worth Trying

    A decision checklist for engineering teams:

    • Scale first: the benefit is clearest when parameter count is above a hundred billion and optimizer state has become the main memory consumer.
    • Clear structure: models built mainly from standard dense or sparse feed-forward structures with regular hidden layer weights are more likely to see stable gains.
    • Hybrid strategy: keep an adaptive optimizer for non-matrix parameters and apply orthogonalization only to hidden layer matrices.
    • Small-scale extrapolation validation: first align loss curves and stability on a small model at around 1% of the parameter count, then scale up, rather than trial-and-error on the full model.
    • Observability support: use logging services and monitoring alerts to track gradient norms, update norms, and loss spikes, and roll back to a checkpoint quickly when something goes wrong.
    • Elastic resources: training and evaluation jobs can run on a container platform, with object storage holding checkpoints, to lower the cost of trial and error.

    If a team prefers managed training capabilities, general compute and storage plus monitoring cloud products from Baidu AI Cloud can serve as the infrastructure for the workflow above, while the optimizer choice itself should still be driven by model structure and scale.

    6. Conclusion

    The value of matrix-level orthogonalized optimizers is not about replacing anyone. It is that when parameter scale turns element-wise adaptive state into a bottleneck, they offer a way to update weight matrices as whole geometric objects: lower state overhead, more balanced update directions, and fewer steps to reach a target loss. Adoption depends on three things being in place at once — a layered hybrid strategy, numerical stability handling, and parallel orchestration. For teams aiming at larger-scale training, it is worth introducing gradually after strict small-scale validation rather than betting everything in one shot.