Ultra-Large Model Training: How Optimizers Shift from Element-Wise Adaptation to Matrix-Level Orthogonalization
As large language models scale to trillions of parameters, the memory overhead of element-wise adaptive optimizers becomes a critical bottleneck. This article explores an alternative optimization paradigm that treats weight matrices as whole geometric objects and applies orthogonalized updates. We analyze the technical principles, memory advantages, and key engineering challenges of implementing matrix-level orthogonalization in industrial-scale training environments.
I. Why Optimizers Became the “Memory Hogs” of Large Model Training
For a long time in deep learning, adaptive optimizers have been the default choice for training large models. They are called “adaptive” because they maintain independent statistics for every parameter in the model: the first moment (the exponential moving average of the gradient, describing the update direction) and the second moment (the exponential moving average of the squared gradient, describing the update magnitude). The training framework dynamically scales each element based on these statistics, achieving an effect of “small steps for large gradients, large steps for small gradients.”
However, this mechanism carries a hidden cost: every trainable parameter requires an additional two equally sized memory spaces to store these two state variables. Taking typical mixed-precision training as an example, the memory consumption can be roughly estimated as follows:
Parameters (fp16/bf16): 2 bytes/paramGradients (fp16/bf16): 2 bytes/paramOptimizer 1st moment (fp32): 4 bytes/paramOptimizer 2nd moment (fp32): 4 bytes/paramMaster weight copy (fp32): 4 bytes/param
This means that the optimizer states plus the master weight copy alone can account for 6 to 8 times the byte size of the parameters themselves. For ultra-large models with trillions of parameters (e.g., around 1.6T), these state variables will easily consume over a dozen terabytes of VRAM. Even with optimizer state partitioning and multi-GPU parallelism to distribute the load, the available “headroom” per GPU remains extremely tight.
When memory is squeezed by state variables, what is sacrificed first? Batch size and context length. These two factors are crucial for determining training throughput and model capability limits. To maintain training stability, engineering teams are often forced to introduce more complex parallel strategies (stacking pipeline parallelism, tensor parallelism, and expert parallelism), which increases communication overhead and pipeline bubbles, causing training costs to spike exponentially.
Therefore, reducing the memory footprint of the optimizer states themselves is an optimization direction with extremely clear returns in ultra-large-scale training.
II. An Alternative Technical Path: Optimizing the Weight Matrix as a Whole
While most researchers are squeezing the last drop of performance out of mainstream adaptive optimizers, a different technical path is gradually emerging: orthogonalizing the gradients of hidden layer weight matrices and then applying the update holistically. This path was first validated in small-scale benchmark experiments—where it significantly reduced the number of training steps required to reach a target loss in compute-constrained speed tasks, breaking records at the time and attracting widespread industry attention.
Its core idea can be summarized in one sentence: Instead of fine-tuning element by element, treat the entire weight matrix as an indivisible high-dimensional geometric object and apply a one-time, structured update.
Specifically, this type of method performs the following steps during each update:
- Calculates the gradient of the current weight matrix and merges it with the momentum term to obtain a “direction matrix to be updated”;
- Orthogonalizes this direction matrix through matrix decomposition (usually approximated by Newton-Schulz iteration), flattening its singular values to prevent updates from being too large or too small in certain directions;
- Applies this orthogonalized update matrix to the weight matrix all at once with a unified learning rate.
Mathematically, orthogonalization is equivalent to uniformly distributing the update energy across all singular directions. Intuitively, it suppresses “abnormally dominant directions” in the gradient, preventing individual directions from dominating the entire update. This makes the training trajectory smoother and significantly reduces the number of steps required for convergence.
In terms of memory, this type of method usually only needs to maintain one momentum state per parameter matrix, without requiring the second moment. Compared to the previous overhead of 16 bytes/param, state memory usage can be reduced by more than half. Furthermore, no additional scaling statistics are needed, meaning the freed-up space can be directly converted into larger batch sizes and longer context windows.
III. An Intuitive Analogy: Scattered Troops vs. Marching Phalanx
To understand the difference between the two optimization paradigms, we can use a classic analogy:
Element-wise adaptive update is like “a group of independent iron balls rolling downhill”: Each iron ball (each parameter element) has its own independent speed and magnitude records, and the optimizer must plan the rolling direction and step size for each ball individually. It is precise, but the management cost is extremely high, and the balls do not communicate with each other.
Matrix-level orthogonalization update is like “a marching phalanx”: First, all the iron balls are arranged into a neat square formation (orthogonalization), and then they advance as a whole with a uniform pace. The command efficiency is high, the formation is stable, and the overall rhythm will not be disrupted by individual balls “running off course.”
Of course, the phalanx method naturally invites skepticism: “Do you really march in a phalanx in combat? Don’t you still need to advance in a skirmish line?” The technical fact corresponding to this skepticism is that these methods were initially only run on very small-scale models (such as validation experiments under the 10-billion parameter level), and their universality in large-scale, heterogeneous structures (e.g., embedding layers, output heads, and various mixed-precision scenarios) was long in doubt.
IV. Key Engineering Challenges for Industrial Deployment
To truly apply matrix orthogonalization methods to industrial training of trillion-level models, several practical issues must be resolved:
Divide and Conquer. The computational cost of orthogonalizing ultra-large matrices is prohibitively high. The standard engineering practice is to divide the large matrix into several sub-matrices and orthogonalize each sub-matrix independently, keeping the computational load of a single iteration within an acceptable range.
Iteration Precision Trade-off. Orthogonalization is typically implemented using the Newton-Schulz iteration approximation. More iterations mean higher precision but greater computational cost. In practice, around 5 iterations are usually sufficient to meet training needs. The extra computational overhead is worth it compared to the saved memory and communication—and these computations can be executed asynchronously or distributedly.
Layer-Specific Adaptation. Not all layers are suitable for holistic updates. An empirical approach is to use orthogonalized updates for the 2D weight matrices of hidden layers, while special structures like embedding layers and output projection layers continue to use traditional element-wise optimizers, forming a hybrid optimization strategy.
Learning Rate Recalibration. The update matrix norm is stable after orthogonalization, and its effective learning rate has a different scale than element-wise methods. You cannot directly copy hyperparameters when migrating; a new search is required.
Stability Verification. Systematic ablation experiments are needed to verify compatibility with weight decay, compatibility with learning rate warmup/annealing schedulers, and whether new numerical instabilities are introduced during long-context training.
V. Selection Guide and Conclusion
| Dimension | Element-Wise Adaptive Optimizer | Matrix Orthogonalization Optimizer |
|---|---|---|
| Optimizer State | 1st + 2nd moment (~8-12 bytes/param) | Usually only momentum (~4 bytes/param) |
| Update Granularity | Element-wise adaptive scaling | Matrix-level holistic update |
| Convergence Characteristics | More steps but cheaper per step | Significantly fewer steps, slightly higher compute per step |
| Maturity | Mature ecosystem, rich hyperparameter experience | Large-scale practices still rapidly accumulating |
In summary, the evolution of the optimizer paradigm essentially answers one question: At what “granularity” should parameter updates be coordinated? Element-wise methods trade memory for precision, while matrix-level methods trade structural priors for efficiency. For ultra-large-scale training with extremely tight memory budgets, the terabyte-level space released by the orthogonalization path can be directly translated into larger batch sizes, longer sequence contexts, and more streamlined parallel topologies—this is the core driving force behind its transition from academic experiments to industrial applications. For small and medium-scale training, the mature element-wise approach remains the safe choice; however, when model scale crosses into the hundreds of billions or trillion-level, evaluating the end-to-end benefits of matrix-level optimization schemes has become an engineering topic worth serious investment.
