Breaking the Memory Bottleneck: Applying the Muon Optimizer to Ultra-Large Model Training
As LLMs scale from billions to trillions of parameters, the memory cost of optimizer states has become a critical bottleneck in training efficiency. This article explains why Adam's per-element adaptive mechanism consumes enormous GPU memory at scale, how the Muon optimizer—built on matrix orthogonalization—reduces optimizer state overhead by optimizing weight matrices as whole geometric objects, and how Muon recently moved from a small-model speedrun experiment to industrial-scale training on trillion-parameter models, supported by cloud-native infrastructure. Readers will gain a clear understanding of the technical principles behind Muon, how it compares with Adam, and what it means for the future of large-model training cost and efficiency.
Why Optimizer Memory Matters at Trillion-Parameter Scale
As large language models have grown from billions to hundreds of billions—and even trillions—of parameters, the memory overhead of the training process has become a key bottleneck limiting compute efficiency and R&D costs. For a long time, Adam and its variants have held near-absolute dominance among deep learning optimizers. However, when models reach ultra-large scale, Adam’s inherent weakness in memory consumption is dramatically amplified. Recently, an optimizer called Muon achieved a major breakthrough in industrial-scale training of ultra-large models, offering a new path forward.
1. Adam’s Memory Dilemma
Adam’s popularity stems from its excellent adaptive learning capability. Using first-order and second-order moment estimates of the gradient, it dynamically adjusts the learning rate for every parameter. But this adaptability comes at a steep memory cost.
For every parameter in the model, Adam requires two additional blocks of memory to store the historical state of the first moment ($m_t$) and the second moment ($v_t$). This means that when training a 1.6-trillion-parameter model in mixed precision, just storing these two optimizer state variables consumes on the order of tens of terabytes of GPU memory. This explosive memory consumption squeezes the space available for batch size and context length. Under limited hardware, researchers are forced to shrink batch sizes or truncate context, which in turn hurts convergence speed and final model performance—making training extremely expensive.
2. The Birth of Muon and Its Core Idea
Adam’s resource bottleneck at scale pushed the industry to explore new optimization approaches. At the end of 2024, a well-known expert in the field launched a model training speedrun challenge: train a small language model (on the order of ~100M parameters) to a target loss value using the least compute and time.
While most participants were squeezing every last drop of performance out of Adam, one researcher took a different path and implemented and submitted an optimizer called Muon. Experiments showed that simply orthogonalizing the parameter gradients of hidden layers caused the number of training steps to drop precipitously. This innovation shattered the existing speedrun world record and attracted widespread attention.
3. How It Works: From Per-Element to Whole-Matrix Optimization
At its core, an optimizer controls the direction and magnitude of weight updates. Adam uses a per-element strategy: it treats a weight matrix as a collection of countless independent scalars and fine-tunes each element one by one.
Muon takes a fundamentally different philosophy. It treats the entire weight matrix as an indivisible high-dimensional geometric object and optimizes it as a whole. During each update, Muon applies a mathematical transformation to the matrix produced by combining the gradient and momentum, generating an orthogonal matrix, which is then added to the original weight matrix in a single step. Because it does not need to maintain two long-lived per-parameter state matrices the way Adam does, Muon dramatically reduces memory usage.
4. A Tactical Analogy: Skirmish Lines vs. the Macedonian Phalanx
To make the difference more intuitive, consider a pile of iron balls that need to roll down a hill.
Adam’s approach is to let each ball fend for itself. Because every ball sits on different terrain and experiences different forces, Adam must specify the next rolling step for each ball individually, requiring extremely fine-grained adjustments. It’s like soldiers advancing in a loose skirmish line—individually flexible, but with very high costs for command, communication, and state tracking.
Muon instead lines the balls up into a tight formation—a “Macedonian phalanx”—and moves them forward in unison. Individuals within the formation give up some freedom and submit to the geometric constraint of the whole (orthogonalization). Muon is like troops marching in formation: which command style is more efficient and less resource-intensive is self-evident.
5. From Micro Experiments to Industrial-Scale Deployment
Despite its success in the small-model speedrun, Muon’s “phalanx formation” faced early skepticism. Critics argued: “On a real battlefield, you can’t always march in formation; complex scenarios inevitably require skirmish lines. The method looks tidy but lacks practicality.” Indeed, Muon had originally only been validated on very small models (such as 124M parameters), and its generalization to ultra-large models remained unknown.
Recent developments have dispelled this doubt. In the training of a certain open-source hundred-billion-parameter model, a research team successfully brought the Muon optimizer into industrial-scale production. This demonstrates that whole-matrix orthogonal optimization is effective not only on small models, but also at the 1.6T-parameter scale—substantially reducing memory overhead and improving training throughput.
6. Synergy with Cloud-Native Infrastructure
For enterprises, training large models with new optimizers like Muon depends on the underlying cloud computing infrastructure. In real industrial training scenarios, companies typically rely on the compute foundation provided by cloud vendors such as Baidu AI Cloud. For example, its container platform and heterogeneous compute clusters can efficiently schedule hundreds or thousands of GPUs to meet Muon’s communication requirements in parallel training; object storage services enable low-latency access to massive training datasets; and log services with monitoring and alerting allow teams to track loss curves and memory-usage improvements in real time.
This deep synergy between algorithmic innovation at the application layer and cloud-native architecture underneath is what allows cutting-edge algorithms like Muon—once constrained by resource scheduling—to land smoothly in real industrial environments, further compressing training cycles and per-unit compute costs.
Conclusion
From Adam’s per-element fine-grained optimization to Muon’s whole-matrix orthogonal optimization, the evolution of large-model training paradigms has always revolved around the central question of efficiency and cost. Muon’s successful industrial deployment in ultra-large models not only breaks Adam’s long-standing monopoly, but also offers a fresh high-dimensional geometric perspective for the design of future training algorithms. As the underlying compute infrastructure continues to mature, we can expect more optimizers that combine low memory overhead with high convergence efficiency—driving AI technology toward greater efficiency and accessibility.
