TL;DR
NVIDIA researchers have successfully scaled higher-order, structure-aware optimizers (SOAP and Muon) to multi-billion parameter Large Language Models (LLMs) trained on trillions of tokens. By mitigating critical numerical instabilities at large batch sizes and introducing a novel layer-wise distributed training strategy for Megatron-LM, they demonstrate that these advanced optimizers consistently outperform standard AdamW—maintaining stable convergence at extreme global batch sizes up to 100M tokens where AdamW degrades.
What Problem Does This Paper Address?
Standard deep learning optimization relies heavily on first-order methods like AdamW. While computationally simple and infinitely shardable across distributed systems, AdamW treats every weight element independently. It completely ignores the structural matrix or tensor correlations inherent in neural network layers.
Higher-order optimizers (such as Shampoo, SOAP, and Muon) attempt to exploit this geometry by using preconditioning or orthogonalization to accelerate convergence. However, scaling them to frontier LLMs has historically faced three massive hurdles:
- Numerical Instability: At large batch sizes, these methods frequently suffer from catastrophic loss spikes.
- Memory Overhead: Storing full preconditioner matrices demands significantly more memory than element-wise scalar states.
- Distributed Sharding Incompatibility: Standard distributed frameworks (like ZeRO or FSDP) shard tensors element-wise, which breaks the intact 2D matrix structure required for higher-order matrix mathematics.
This paper tackles these challenges to make higher-order optimization practical for large-scale production LLM pretraining.
Methods
The authors introduce several algorithmic and system-level innovations to stabilize and parallelize these optimizers:
- KL-SOAP: To fix severe early-training instabilities ("slingshot" effects) in the standard SOAP optimizer, the authors enforce per-step QR orthogonalization using real-time gradient statistics. They also integrate a Kullback-Leibler (KL) divergence-based covariance estimation method to accumulate Kronecker factors, dramatically improving numerical stability.
- Update-RMS Matching: To ensure a fair, apples-to-apples comparison between structurally different optimizers, the authors utilize a framework that matches the root-mean-square (RMS) norm of the parameter updates, allowing stable learning rate transfer without exhaustive hyperparameter tuning.
- Layer-Wise Distributed Optimizer: Instead of flattening and slicing individual tensors across GPUs (which destroys matrix structure), this new Megatron-LM-compatible implementation sorts entire parameter matrices by size and distributes them across Data Parallel (DP) ranks in a round-robin sequence. Parameter synchronization is chunked and overlapped with the forward pass using variable-sized
allgather-Vcollectives, effectively hiding communication latency.
Datasets
The models were pretrained on 1-trillion (1T) and 3-trillion (3T) token subsets of the Nemotron-3 dataset.
To evaluate downstream performance, the authors tested the models across a comprehensive suite of standard benchmarks:
- General Knowledge: MMLU, MMLU Pro CoT
- Coding: HumanEval, HumanEval+, MBPP, MBPP+
- Math: Math 500, GSM8k CoT
- Commonsense Reasoning: Race, ARC Challenge, Winogrande, Hellaswag
The architectural configurations of the evaluated models span dense and sparse Mixture-of-Experts (MoE) variants, detailed in the paper's structural overviews:
Key Insights and Ideas
- The "Slingshot" Instability Diagnosed: The authors discovered that updating the optimizer's eigenbasis infrequently (e.g., every 10 steps) to save compute creates a "stale preconditioner" effect. In large-batch regimes, this lag causes the optimization trajectory to violently oscillate, triggering loss spikes. Computing updates in real-time completely dampens these oscillations.
- Condition Number Halving: By tracking singular values rather than raw covariance, the KL-Shampoo covariance update mathematically reduces the condition number of the Kronecker factor matrices to the square root of the standard formulation ($\kappa_{KL} = \sqrt{\kappa_{Shampoo}}$). This makes the matrix inversions highly resilient to floating-point noise.
- Architectural Sensitivity: Higher-order optimization is not a one-size-fits-all solution. The authors noted that applying Muon to Mamba2's localized
conv1Dfilters actually degraded accuracy. Restricting matrix optimizers to dense linear projections and falling back to AdamW for convolutional weights yielded the best convergence.
Key Results
- Superior Large-Batch Scaling: At extreme global batch sizes (up to 100M tokens), both Muon and SOAP maintained robust token-efficient convergence and stability, whereas AdamW hit a critical batch size ceiling and degraded.
- KL-SOAP Takes the Lead: In direct comparative testing on MoE architectures, KL-SOAP maintained a consistent, albeit slight, edge over Muon in cross-entropy loss.
- Downstream Gains: As shown in the downstream evaluations, Muon at 2x and 3x batch sizes consistently matched or outperformed the AdamW baseline, showing particularly pronounced improvements in coding and commonsense reasoning tasks.
Limitations and Future Work
- Epsilon Tuning: The authors did not systematically tune the epsilon ($\epsilon$) hyperparameter, which plays a distinct structural role in both optimizers (flooring preconditioned adaptive moments in SOAP vs. lower-bounding the Frobenius norm for matrix normalization in Muon).
- The BF16 Noise Floor: Muon’s Newton-Schulz iterations are executed in BF16, which introduces a coarser precision floor ($2^{-7}$). For very large matrices with heavy-tailed small singular values, this can mistake informative signals for numerical noise.
- Distributed Extensions: The current layer-wise distributed optimizer does not natively support Tensor Parallelism (TP) for SOAP or handle fused tensors (like split QKV projections) optimally, leaving room for further engineering optimizations.
Summary updated