From Adam to Orthogonalized Optimization: Optimizer Evolution and Selection in Large-Scale Model Training
This article examines why optimizer state has become a major memory bottleneck in large-scale model training and how matrix orthogonalization offers an alternative to element-wise adaptive methods. It compares the two design philosophies, estimates the state overhead at trillion-parameter scale, reviews validation and hybrid deployment strategies, and provides practical guidance for evaluating optimizers in large training systems.
1. The Starting Point: The Optimizer as an Overlooked Bottleneck
In discussions of large model training, attention usually goes to model architecture, data quality, and distributed parallelism. The optimizer is often treated as a solved problem. Since deep learning entered industrial-scale training, adaptive gradient optimizers have dominated the default configurations of mainstream training frameworks. They converge reliably, tolerate hyperparameter choices, and have created a strong path dependency among engineers.
Once model parameter counts reach hundreds of billions or trillions, however, the cost of this default choice becomes difficult to sustain. This article starts with the memory bill and then breaks down a newer class of optimization methods based on matrix orthogonalization. It explains why these methods can significantly reduce cost in large-scale training and how teams should evaluate and deploy them in practice.
2. The Memory Bill of Traditional Adaptive Optimizers
2.1 Where the State Variables Come From
Consider the adaptive moment estimation optimizers widely used in industry. Their core mechanism maintains two additional state variables for every parameter:
- First moment (momentum): an exponential moving average of the gradient, used to smooth the update direction.
- Second moment: an exponential moving average of the squared gradient, used to estimate an adaptive step size for each parameter.
This means that for every trained parameter, the optimizer allocates two additional buffers of the same size in memory. With mixed-precision training, the parameters themselves may be stored in half precision, but these two states usually need high precision, such as 32-bit floating point, to avoid numerical instability. This further increases overhead.
2.2 Order-of-Magnitude Estimate at Trillion-Parameter Scale
A rough order-of-magnitude estimate: assume a model has 1.6 trillion parameters (1.6T). If each parameter maintains two additional 32-bit state variables, optimizer state alone requires:
1.6e12 × 2 × 4 bytes ≈ 12.8 TB
Add the parameters themselves, gradients, activations, and communication buffers, and memory pressure quickly approaches the ceiling of the cluster. More importantly, this overhead trades off directly against batch size and context length. Once optimizer state consumes memory, engineers are forced to reduce batch size or shorten sequences, and both affect throughput efficiency and training stability. The result is that training cost does not fall but rises, and it worsens dramatically as scale increases.
2.3 Traditional Mitigations and Their Limits
The engineering community already has mature methods for memory bottlenecks: state quantization and compression, distributed state sharding across devices, gradient checkpointing, and similar techniques. These methods are effective, but they are patches. They do not change the memory complexity of the optimizer itself; they merely defer payment of the bill. A fundamental solution requires rethinking the mathematical form of the optimizer.
3. A Different View of the Optimizer: Element-Wise vs. Whole-Matrix
3.1 Two Different Worldviews
Traditional adaptive optimizers adopt an element-wise worldview. They break a weight matrix into 100 million independent scalars, each with its own momentum and step size. This fine-grained adaptivity is powerful, but the cost is that the number of state variables is strictly proportional to the number of parameters.
Orthogonalized optimizers adopt a whole-matrix worldview. They treat an n×n weight matrix not as a collection of unrelated scalars but as an object in an inseparable high-dimensional geometric space. Updating the matrix is not a matter of element-by-element refinement. Instead, the optimizer first combines the gradient with momentum, then applies orthogonalization to the result, mathematically equivalent to a special projection that makes the forces in different directions more uniform, and finally adds the orthogonal matrix to the weights in one step.
3.2 An Intuitive Analogy: Scattered Soldiers vs. a Square Formation
A classic analogy helps illustrate the difference:
- Traditional optimizers resemble soldiers fighting individually. The commander must issue a separate marching instruction to each soldier, which requires a huge amount of information, corresponding to a large number of state variables.
- Orthogonalized optimizers first organize the troops into a square formation and then advance them with a unified rhythm. The command information is greatly simplified, and the formation does not fall apart because one member drifts off course.
The efficiency advantage of marching in formation has rigorous mathematical support in high-dimensional parameter spaces. Orthogonalization normalizes the components of the update direction along different singular directions, avoiding ill-conditioned updates caused by extremely large gradients in some directions and extremely small gradients in others. As a result, each step is of higher quality.
3.3 A Fundamental Improvement in Memory Complexity
Another key advantage of the orthogonalization approach is that the optimizer only needs to store one momentum matrix, which can often use lower precision than the parameters, and the second moment is eliminated at the whole-matrix level. As a rough estimate, optimizer state overhead for a trillion-parameter model can be reduced from the order of more than ten terabytes to a fraction of that. The freed memory can be returned to batch size, context length, or pipeline parallelism, creating a positive cycle for training efficiency.
4. Origins and Validation Path of the Orthogonalization Approach
This idea first emerged from a public community challenge. Participants were asked to train a small language model to a target loss with as little compute and time as possible. While most people focused on hyperparameter tuning around traditional optimizers, some developers took a different route and introduced gradient orthogonalization on hidden-layer parameters. The number of training steps required dropped sharply, directly setting a new record at the time.
In its early days, however, the technique faced reasonable skepticism. It had initially been validated only on very small models. “If a method works on small models, does it still hold at hundred-billion-parameter scale?” This is the classic question for any training technique. The core concern was whether the strong constraint imposed by orthogonalization on updates would hurt expressiveness in large-scale, long-training, and complex-data-distribution settings, similar to the question of who would march in a square formation on a battlefield.
Subsequent practice gradually provided an answer. With a sensible hybrid strategy, such as continuing to use traditional optimizers for embedding and output layers while enabling orthogonalization only on hidden-layer weight matrices, and adapting normalization-layer design to this isotropic update style, the approach maintained training stability at larger scales. This kind of divide-and-conquer hybrid optimization has become a new paradigm worth serious evaluation in current large model training.
4.1 Illustrative Pseudocode
The following simplified pseudocode illustrates the core flow. It is for illustration only, not a production implementation:
# Traditional adaptive optimizer (element-wise; maintains m and v)m = beta1 * m + (1 - beta1) * gradv = beta2 * v + (1 - beta2) * grad**2update = lr * m / (sqrt(v) + eps) # state: 2 × parameter count# Orthogonalized optimizer (whole-matrix; maintains only momentum)buf = beta * buf + grad # state: 1 × parameter counto = buf.T @ buf # construct an intermediate matrix much smaller than the originalo = newton_schulz_inverse_sqrt(o) # approximate orthogonalizationupdate = lr * buf @ o # apply the update to weights in one stepw -= update
As shown, the main additional computation in orthogonalization is a few small matrix multiplications and an iterative inverse-square-root calculation. This trades controllable compute overhead for savings in both memory and training steps. In modern training clusters where communication and memory are far more expensive than compute, this is a favorable trade.
5. Engineering Selection Recommendations
For teams planning large-scale pretraining or continued training, the following path is recommended when evaluating optimizer choices:
- Calculate the memory bill first: Under the chosen parameter scale and precision strategy, estimate the optimizer state share precisely. If it exceeds 20% to 30% of total memory, it is worth considering low-state-overhead optimization methods.
- Validate at small scale first: Run equal-compute comparison experiments on models one to two orders of magnitude smaller, and observe loss curves under the same token budget rather than only single-step loss.
- Use a hybrid strategy: Keep traditional optimizers for special structures such as embedding layers and output heads, and enable orthogonalization only for stacked hidden-layer matrices to balance stability and benefit.
- Coordinate with distributed methods: Low state overhead can be combined with state sharding, parameter offloading, and other techniques to further reduce non-compute resource usage.
- Monitor update norms: After orthogonalization, the meaning of the “length” of each update step changes, and the dimensions of learning rate and weight decay need to be recalibrated. Introducing update-norm monitoring is recommended to avoid implicit explosion.
6. Conclusion
The history of optimizer evolution is essentially a history of repeated rebalancing between fine-grained control and scale cost. Element-wise adaptive methods exchange double the state space for convergence robustness, a correct trade-off in the small-to-medium-scale era. As parameter counts cross the trillion threshold, whole-matrix update approaches such as matrix orthogonalization use a more elegant mathematical structure to achieve a better balance among memory, step count, and stability. For engineers, the important thing is not to bet on one specific method, but to understand the geometric intuition and memory economics behind these methods, and to make rational technical choices at every scale upgrade.
