How Matrix-Level Optimizers Reduce Memory Use in Large Language Model Training
This article explains why Adam’s optimizer states consume large amounts of GPU memory, how matrix-level optimizers such as Muon reduce that footprint, and what trade-offs and limitations teams should consider when applying them to large-scale training.
Several very large parameter language models have recently been open-sourced, including flagship models with trillion-level parameters and lighter models with hundred-billion-level parameters. Public descriptions mention improvements in long-context processing and training mechanisms, including the use of matrix-level optimizers during training. However, the original reports do not provide specific model names, technical reports, or reproducible experimental data. This article therefore does not directly adopt their conclusions. Instead, it explains three questions from first principles: why Adam consumes memory, how matrix-level optimizers save memory, and what boundaries matter in practice.
1. Why Adam Consumes Memory
Adam is one of the most commonly used optimizers in large language model training. It maintains two states for each parameter: the first moment, or momentum, which determines the update direction; and the second moment, a moving average of squared gradients, which adjusts the update step size.
For a model with 1.6 trillion (1.6T) parameters, if both states are stored in fp32—single-precision floating point, with 4 bytes per value—the total state size is:
1.6 × 10^12 × 2 × 4 bytes ≈ 12.8 TB
If the states are stored in bf16 instead, the size is about 6.4 TB. These numbers include only optimizer states, not model weights, gradients, activations, or communication buffers. In mixed-precision training, the fp32 master weight copy also takes additional space.
Sharding strategies such as ZeRO and FSDP can split optimizer states across multiple GPUs, so each GPU stores only a portion. However, the total volume does not change, and sharding increases inter-GPU communication. When memory is tight, training teams often have to reduce batch size or shorten context length, which leaves GPU compute underutilized.
2. What Matrix-Level Optimizers Are
One representative matrix-level optimizer is Muon. It was proposed by researcher Keller Jordan around 2024 and was first used in the NanoGPT training challenge. Such challenges require training a small model to a target loss with as little compute and time as possible.
Adam computes an adaptive step size for each parameter element individually. Muon works differently: it updates a weight matrix as a whole. The main steps are:
- Compute momentum for the gradient and store only this momentum buffer, without storing a second moment.
- Approximately orthogonalize the update matrix formed by the momentum. A common approach is Newton-Schulz iteration. Each round requires only a few matrix multiplications and can make the singular values of the update matrix close to 1.
- Scale the update by the learning rate and add it to the weights.
Orthogonalization helps balance update strength across different directions, preventing a small number of directions from dominating the entire update. When Muon is used only for matrix parameters, the optimizer state is roughly half that of Adam. For the earlier 1.6T model example, if all parameters stored only one fp32 momentum buffer, the state would be about 6.4 TB. This is only an intuitive estimate; actual benefits still require experimental validation.
3. Costs and Boundaries of Memory Savings
First, the applicable scope is limited. Muon is usually used only for two-dimensional weight matrices in hidden layers. Embedding layers, output layers, normalization layer parameters, and bias terms still require methods such as Adam or AdamW. As a result, the actual memory savings are lower than the “half the state” estimate.
Second, computational overhead increases. Each step requires orthogonalization iterations, and larger matrices incur more extra computation. This overhead needs to be measured on real hardware, not judged by memory alone.
Third, distributed training becomes more complex. Adam is an element-wise operation and is easy to shard across multiple GPUs. Matrix-level operations need to see the full matrix. When parameters are sharded, teams must either gather the full matrix or design distributed orthogonalization methods. This affects communication volume and engineering implementation.
Fourth, hyperparameters cannot be copied directly. Learning rate, weight decay, and update scaling values differ from those used with Adam, so they need to be retuned when migrating.
Fifth, public evidence at large scale remains limited. Based on the public materials that can be verified for this article, many experiments with matrix-level optimizers have concentrated on smaller-scale models.
