LLM Training Optimizers: Advantages and Engineering Limits of Matrix-Based Updates
This article examines how matrix-orthogonalized momentum updates differ from element-wise adaptive optimizers in large language model training. It explains where optimizer memory goes, why fewer optimizer states do not automatically lower total training cost, and what engineering issues arise in distributed training. It also outlines how to design controlled experiments that measure end-to-end results.
1. Evaluating LLM Advances Requires More Than Parameter Count
When discussing progress in large language models, parameter count, context length, and reasoning ability often get the most attention. However, these metrics do not fully capture the efficiency of a training system. For very large models, the way an optimizer organizes weight updates can directly affect memory requirements, training throughput, communication volume, and convergence behavior.
The optimizer decides how the parameters should change at each step, based on the gradients produced by the loss function. This involves both the mathematical update direction and engineering concerns such as state storage and compute scheduling. The same model architecture can train at different speeds and reach different final quality depending on the optimization method.
However, three different conclusions must be kept apart:
- Fewer optimizer states means that some persistent storage may decrease.
- Fewer steps to reach a target loss means that iteration efficiency improves under specific experimental conditions.
- Lower total cost to reach the same model quality is what actually indicates an improvement in end-to-end training efficiency.
These three are related, but they cannot be treated as equivalent. In particular, gains observed in small-scale experiments should not be assumed to carry over to very large-scale training without verification.
2. Why Element-Wise Adaptive Optimizers Consume So Much Memory
1. Adaptivity Depends on Historical Statistics
Common adaptive moment optimization methods store two types of historical information for each parameter.
The first moment describes the smoothed trend of gradients, and the second moment describes the smoothed trend of squared gradients. The basic form can be written as:
mt = β₁m{t-1} + (1 − β₁)g_t
vt = β₂v{t-1} + (1 − β₂)g_t²
Here, g_t is the current gradient, m_t and v_t are the two historical states, and β₁ and β₂ control how much past information is retained. The squaring operation is applied element by element.
After bias correction, the update is generally related to the following expression:
update ∝ corrected first moment ÷ (square root of corrected second moment + a stability term)
This mechanism gives each parameter its own effective step size, so it adapts well to gradients of inconsistent scale. Its advantage is not moving all parameters together. It adjusts step sizes based on how each parameter has changed over time.
2. Memory Cost Comes from the Number of States and Their Precision
Suppose a model has P parameters and each optimizer state element occupies s bytes. The storage for two full states is roughly:
optimizer state storage = 2 × P × s
If both states use 32-bit floating-point numbers, s is 4 bytes, so each parameter requires an additional 8 bytes.
As a purely illustrative order of magnitude, one trillion parameters would need about 8 trillion bytes for these two states alone. This estimate does not correspond to any specific model. It also excludes weights, gradients, activations, and other training buffers.
Mixed-precision training does not mean every state uses low precision. Some training setups keep optimizer states or master weights in high precision to maintain numerical stability. Memory planning therefore cannot consider only the data types used in the forward pass.
3. Large Total State Does Not Mean Every Device Stores All of It
In distributed training, weights, gradients, and optimizer states can be sharded, and some states can be offloaded to other storage tiers. The total state size and the actual per-device usage must be calculated separately.
Total training memory also includes:
- Model weights and any high-precision master weights;
- Current gradients and gradient accumulation buffers;
- Activations that must be saved for the forward pass;
- Communication buffers and temporary operator workspace;
- Fragmentation and reserved space from memory allocation.
Reducing optimizer states therefore does not necessarily reduce total memory by the same proportion. For long-context training, activations may become the main bottleneck. For heavily sharded training, communication and temporary buffers may deserve more attention.
3. What Matrix-Orthogonalized Updates Change
1. From Independent Elements to Matrix Structure
Many neural network parameters naturally take matrix form, such as the weights of linear projection layers. The rows, columns, and singular value structure of these matrices carry information beyond individual elements.
Matrix-orthogonalized momentum methods typically first form a momentum estimate of the gradient, then apply an approximate orthogonalization to the momentum matrix, and finally use the processed direction for the weight update.
The core idea is not “adding the whole matrix at once,” since conventional optimizers can also use efficient matrix or tensor operations. The real difference is whether the update direction is explicitly constructed from the matrix structure, and how the scales of different singular directions are handled.
2. Orthogonalization Is Not Simply Making All Element Step Sizes Equal
Suppose the momentum matrix can be written in singular value decomposition form:
M = UΣVᵀ
Here, the singular values in Σ describe the scale of different directions. Orthogonalized updates generally aim for a direction close to UVᵀ, which weakens the direct influence of the original singular value magnitudes on the update.
For rectangular matrices, this result is more accurately described as a matrix with semi-orthogonal properties, not a square orthogonal matrix in the usual sense. When the matrix is rank-deficient or approximate computation is used, numerical handling requires additional consideration.
Thus, describing this method as “all parameters lined up and moving forward at the same pace” is not sufficient. It concerns the organization of directions in matrix space, not giving every element the same update size.
3. Why Persistent State May Be Reduced
These methods typically keep a momentum state and do not maintain a full element-wise second moment state for the corresponding parameters. So on applicable parameters, persistent optimizer state has the potential to decrease.
This does not mean that the training process no longer needs extra memory. Approximate orthogonalization may create intermediate matrices, temporary workspace, and communication buffers.
A correct assessment should check:
- How much persistent state is reduced;
- How much the temporary peak of the update computation increases;
- Whether peak training memory actually decreases;
- Whether the extra computation offsets the storage savings.
4. Potential Advantages Need Separate Validation
1. Easing Optimizer State Pressure
If optimizer state was the main memory consumer, removing one full state may free a significant amount of space. That space can be used to increase micro-batch size, reduce offloading frequency, or lower the pressure of state sharding.
Whether the context length can also increase depends on the memory needs of activations and attention computation. “Reduced optimizer state” should not be presented as “substantially lower cost for long-context training.”
2. Improving the Scale Distribution of Update Directions
When a few singular directions of the momentum matrix have large magnitudes, matrix orthogonalization can change this scale distribution so that the update is not entirely dominated by the largest singular value
