A New Paradigm for Optimizers in Large-Scale Model Training
This article examines why optimizer state has become a major memory bottleneck in trillion-parameter training, and how matrix-level update methods offer an alternative to element-wise adaptive optimizers such as Adam. It explains the core differences between the two optimization philosophies, outlines the four key engineering challenges of industrial adoption—applicability boundaries, memory and communication, numerical stability, and hyperparameter transfer—and summarizes the trade-offs along with practical guidance on when to choose each approach.
1. The Starting Point: Optimizers Are Eating the Training Budget
In trillion-parameter pretraining, compute procurement is only part of the bill. The most consistently underestimated cost comes from optimizer state. Over the past decade, adaptive moment estimation methods have been the default choice for a simple reason: they are relatively insensitive to the learning rate, keep tuning costs manageable, and behave stably across both dense and sparse gradient scenarios. But the cost is equally clear—to maintain first- and second-order statistics for every parameter, two extra tensors of the same order as the parameter count must be kept in GPU memory.
A rough calculation makes the scale clear. Suppose the model has 1.6T parameters. Under mixed-precision training, parameters and gradients each take 2 bytes, while the two momentum states are typically stored in fp32, adding 8 bytes per parameter. The state alone is 1.6×10¹² × 8B ≈ 12.8TB, not counting gradients, activations, communication buffers, and fragmentation overhead. When state memory dominates, the room left for batch size and context length is severely compressed. Teams are often forced to reduce parallel efficiency or shorten sequences, which pushes up the cost per token.
Here is a general estimation formula for capacity planning:
State memory ≈ parameter count × (number of states × bytes per state)Adam-like: number of states = 2, bytes per state = 4 → about 8 bytes/paramFirst-order momentum + master weight copy: can drop to about 4–6 bytes/param
The conclusion is not radical: optimizer state is a structural overhead in the memory budget that can be optimized, not an untouchable constant.
2. Two Optimization Philosophies: Element-Wise Adaptation vs. Matrix-Level Updates
Adaptive methods are essentially element-wise decisions. They flatten a weight matrix into a collection of independent scalars, maintain a running statistic for each scalar, and scale the update step at that point accordingly. This design brings robustness, but also two consequences: the number of states is strictly linear in the parameter count, and the update direction lacks structural constraints, so neighboring elements may cancel each other out.
Matrix-level optimization takes a different view: an m×n weight matrix is treated as an indivisible high-dimensional geometric object. The update is obtained by fusing the gradient with momentum, then applying orthogonalization to produce an approximately orthogonal update matrix, which is added to the weights as a whole. Orthogonalization means the singular values of the update matrix are flattened to the same magnitude, so step sizes across directions become balanced and a few dominant directions no longer monopolize the update budget.
A memorable analogy: the element-wise approach is like letting each soldier decide their own stride and direction—flexible, but requiring a great deal of command overhead. The matrix-level approach first forms the troops into a square, then advances them on a unified command—orderly formation and high coordination efficiency. The cost is that the formation may not be optimal on complex terrain, so engineering measures are needed to compensate.
A general expression for orthogonalization:
G = momentum(∇W) # momentum fusionU = orthogonalize(G) # iterative orthogonalization, approximately UᵀU ≈ IW ← W - η · U # apply the update as a whole
Orthogonalization is usually approximated with a few iterations of a matrix iteration method, avoiding a direct and costly decomposition.
3. From Racing Benchmarks to Industrial Deployment: Where the Real Difficulty Lies
This class of matrix-level methods was first validated in small-scale model racing tasks: under a fixed compute budget, using matrix-level updates in hidden layers significantly reduced the number of training steps needed to reach a target loss, setting new efficiency records at the time. But holding on small models does not mean it can be used directly at trillion-parameter scale. The skepticism is direct: does a neat square formation that works on small models still hold up on irregular terrain?
The core industrial modifications concentrate on four points.
First, the applicability boundary. Matrix-level updates work clearly well for hidden-layer linear weights, but for structures such as embedding layers, output heads, normalization parameters, and biases, the original adaptive methods are usually retained, forming a hybrid optimizer. In practice, parameters are grouped by dimensionality and role: two-dimensional weights that participate in matrix multiplication take the matrix path, and the rest take the adaptive path.
Second, memory and communication. Matrix-level methods need to store only one copy of momentum, greatly reducing memory pressure. But orthogonalization is a matrix operation, and after tensor-parallel splitting each rank holds only a shard, so iterations must be completed on the shards and a small amount of statistical information exchanged when necessary. In engineering, the number of orthogonalization iterations is usually kept very small (commonly single digits), and the computation is overlapped with backpropagation to control the share of extra compute.
Third, numerical stability. Orthogonalization iterations are sensitive to matrix scale, so scale normalization is needed before the update, and in low-precision training this step should accumulate at higher precision to avoid divergence under half precision.
Fourth, hyperparameter transfer. Because the update is flattened to a uniform magnitude, the learning rate and the newly introduced iteration strength become key coupled parameters. A new small-scale sweep is needed, then extrapolation based on width-scaling experience, rather than reusing old configurations.
Illustrative grouping logic:
for name, p in model.named_parameters():if p.ndim == 2 and is_hidden_linear(name):opt.add_group(p, rule="matrix", lr=lr_matrix, orth_steps=5)else:opt.add_group(p, rule="adaptive", lr=lr_base)
4. Benefits, Costs, and Selection Guidance
The benefits are structural: state memory drops from about 8 bytes/param to roughly 4 bytes/param, allowing larger batches and longer sequences under the same memory budget, which in turn improves parallel efficiency and throughput. On some tasks, the number of steps required for convergence decreases, optimizing end-to-end cost.
The costs must also be counted: orthogonalization introduces extra matrix multiplications, and if parallel splitting is done poorly, communication and operator-launch overhead may cancel out the gains; implementation complexity rises, requiring integration with mixed precision, gradient accumulation, checkpoint resume, and other mechanisms; ecosystem tooling support is not as mature as for traditional methods, making troubleshooting more costly.
For selection, three practical judgments: the larger the parameter count and the higher the share of hidden layers, the more obvious the relative benefit of matrix-level updates; when memory has become the bottleneck and batch size or context is being forced down, prioritize evaluating state-compression approaches; for small models or short-cycle experiments, sticking with mature adaptive methods is usually more cost-effective.
For cloud deployment, container platforms can handle environment固化 and elastic scheduling, object storage can hold checkpoints and datasets, and monitoring, alerting, and logging services can track memory水位, throughput, and loss curves—turning the effect of the optimizer change into a continuously observable metric rather than a one-off experimental result.
