Orthogonalized Optimizers for Large Language Model Training: Reducing Optimizer State Memory

    Orthogonalized optimizers offer a matrix-level alternative to Adam for training large language models. By orthogonalizing momentum-based updates and maintaining fewer optimizer states, they can reduce memory pressure while improving convergence in suitable workloads. This article explains the underlying approach, its evolution from community experiments to large-scale training, and the numerical, computational, and distributed-systems considerations teams should evaluate before adoption.

    1. Why Optimizer State Has Become a Training Bottleneck

    As large language models grow from tens of billions toward trillions of parameters, optimizer memory has become increasingly difficult to ignore. Training trillion-parameter sparse models commonly combines mixture-of-experts architectures with mixed-precision computation. Discussions of GPU memory usually focus on model weights, gradients, and activations, but optimizer state can consume an equally consequential share.

    Adam, one of the most widely used adaptive optimizers, maintains two additional state tensors for every trainable parameter: a first-moment estimate and a second-moment estimate. These represent momentum and an exponential moving average of squared gradients. Both tensors have the same shape as the parameters they track.

    Consider a rough estimate for mixed-precision training, with model weights stored in FP16 or BF16 and optimizer states stored in FP32. For 1.6 trillion trainable parameters, Adam’s two state tensors alone require approximately 12.8 TB of memory. For a sparse model, this state footprint depends on the trainable parameters being maintained, not simply the subset activated for an individual token.

    Sharding optimizer states across many accelerators distributes the burden, but does not eliminate it. The resulting memory pressure can:

    1. Reduce the memory available for larger batches, potentially limiting training throughput.
    2. Restrict context-length expansion, an important direction in model development.
    3. Require additional nodes and communication capacity, increasing infrastructure costs.

    Optimizer state is therefore a structural concern in very large training runs, rather than a minor implementation detail.

    Against this backdrop, matrix-orthogonalization-based optimizers have attracted attention and have been used in newer open-model training efforts. Their adoption represents a notable departure from a landscape long dominated by Adam and its variants.

    2. From Community Efficiency Challenges to Large-Scale Training

    The recent development of these methods was shaped by open-source training-efficiency challenges.

    In late 2024, community participants competed to train small GPT-style models to a target loss within fixed compute and time budgets. These challenges turned the broad goal of “training efficiency” into measurable outcomes: optimization steps and wall-clock time.

    While many participants focused on tuning Adam, a community researcher introduced an optimizer with a different approach: orthogonalize updates for hidden-layer weight matrices before applying them.

    The implementation substantially reduced the number of steps needed to reach the target loss and set a new benchmark in the challenge.

    Subsequent work tested the approach at progressively larger scales, moving from small models to models with tens of billions of parameters and eventually into the main training of trillion-parameter systems. That progression—from a tightly constrained community experiment to large-scale deployment—offers useful lessons for teams evaluating alternatives to established optimizers.

    3. How It Works: From Elementwise Adaptation to Matrix-Level Updates

    The central difference lies in what the optimizer treats as its basic unit of operation.

    3.1 Adam: Adaptation for Individual Parameters

    Adam maintains first- and second-moment estimates for each scalar in a weight tensor. It uses that element’s gradient history to adjust its effective update size.

    This elementwise adaptation is a major source of Adam’s robustness. Parameters with different gradient scales can receive different effective step sizes.

    The trade-off is storage: Adam needs two full-size state tensors. Its adaptive scaling is also elementwise, rather than an explicit treatment of the weight matrix’s overall geometry.

    3.2 Orthogonalized Updates: Treating the Matrix as a Whole

    A matrix-based optimizer starts from a different perspective. A 1,000 × 1,000 weight matrix is not merely one million unrelated scalars; it is a structured object representing a linear transformation.

    Under this view, improving the geometry of the update can matter more than independently adjusting every element’s learning rate.

    A simplified update consists of three steps:

    1. Accumulate gradient momentum, much as in SGD with momentum.
    2. Approximately orthogonalize the momentum matrix, using a matrix decomposition or an iterative approximation.
    3. Apply the resulting matrix update with an appropriate learning rate and scaling rule.

    Singular value decomposition provides one way to understand the operation. Orthogonalization transforms the update so that its nonzero singular values are equalized, rather than allowing a few large singular directions to dominate. Practical implementations often approximate this transformation with iterative methods.

    The intended effect is to produce a more balanced update across singular directions, reducing the dominance of directions associated with large gradient magnitudes.

    This can be understood as improving the conditioning of the update. It should not, however, be interpreted as a guarantee that the loss surface itself becomes well-conditioned.

    The following pseudocode illustrates the core idea:

    1. # Orthogonalized momentum optimizer (simplified illustration)
    2. for param in model.parameters():
    3. g = param.grad
    4. buf = momentum * buf + g # Accumulate momentum
    5. o = orthogonalize(buf) # Orthogonalize the update matrix
    6. param -= lr * scale(o) # Apply the scaled update

    This is schematic rather than a complete implementation: momentum buffers must be maintained separately for each eligible parameter.

    Unlike Adam, the basic method needs only one persistent momentum buffer instead of both first- and second-moment buffers. That difference is the main source of its optimizer-state memory savings.

    4. An Intuitive Analogy: Independent Movement vs. Coordinated Formation

    Imagine the elements of a weight matrix as a collection of balls moving down a hillside toward a valley.

    With Adam, each ball receives its own adjustment based on its movement history. Some take larger steps, while others take smaller ones. This flexibility comes with a bookkeeping cost: the optimizer maintains two histories for every ball.

    With orthogonalized updates, the optimizer first organizes the collective movement, then advances the group using a coordinated matrix-level update.

    The analogy is imperfect, but it captures the trade-off:

    • Elementwise adaptation offers flexibility at the cost of more persistent state.
    • Matrix-level orthogonalization imposes structure on the update while reducing that state.

    The weights themselves are not necessarily being constrained to remain orthogonal. It is the update matrix that undergoes orthogonalization.

    Whether the coordinated approach works better depends on the training problem, the parameter type, and the implementation. A useful geometric idea still has to survive real training workloads.

    5. Practical Questions: Stability, Compute Cost, and Distributed Training

    Early results naturally prompted skepticism. Success on a small benchmark does not establish that an optimizer will remain stable or efficient at hundreds of billions or trillions of parameters.

    Three questions are particularly important.

    5.1 Does Orthogonalization Remain Numerically Stable at Scale?

    Large matrices introduce concerns about approximation error, numerical precision, and the behavior of iterative algorithms.

    Practical approaches use approximate orthogonalization rather than relying on an exact decomposition at every step. Methods based on Newton–Schulz iteration are one example.

    These approximations make the operation more practical, but numerical behavior still needs to be validated for the matrix shapes and precision settings used in the target workload. Small-model convergence alone is not sufficient evidence.

    5.2 Does the Extra Computation Cancel Out the Memory Savings?

    Orthogonalization adds matrix operations to the optimizer step. The relevant question is not whether this work is free, but whether its cost is justified by better convergence or improved memory utilization.

    Public reports and community implementations indicate that iterative approximations can keep this overhead to a small fraction of total training compute in suitable configurations.

    The additional work is largely computational, although intermediate calculations can still require temporary memory. The persistent-state savings come from removing Adam’s second-moment buffer, not from making the optimizer step memory-free.

    Freed memory may support a larger batch or a longer context window. Whether either change improves end-to-end throughput depends on the rest of the training system.

    5.3 How Does It Fit into Distributed Infrastructure?

    Distributed training introduces a separate integration challenge. Optimizer-state sharding, communication, and mixed precision must all work with the matrix operations required by orthogonalization.

    Large-scale implementations show that these requirements can be reconciled, and support has been emerging in distributed training tooling. However, compatibility is not automatic: the sharding layout and the orthogonalization computation must be designed together.

    An implementation that saves persistent state but introduces expensive communication may not deliver a net benefit. Teams should therefore evaluate the complete training step rather than the optimizer kernel in isolation.

    5.4 Not Every Parameter Should Use the Same Optimizer

    These methods are primarily recommended for two-dimensional hidden-layer weight matrices.

    Embeddings, output heads, and other parameter types are often left with a conventional optimizer. This hybrid approach applies matrix-level updates where their structure is useful without assuming that one rule is appropriate for every tensor.

    In terms of the earlier analogy, practical training combines coordinated formations with independently controlled units rather than forcing everything into the same arrangement.

    6. What Training Teams Can Learn

    The development of orthogonalized optimizers suggests several broader lessons.

    1. Treat the Optimizer as a Design Choice, Not a Fixed Default

    Adam’s popularity reflects its reliability across many settings. It does not establish that Adam is the best option for every model scale or memory budget.

    When optimizer state becomes a major share of GPU memory, revisiting that choice can be worthwhile.

    2. Use Constrained Benchmarks to Evaluate New Ideas

    Small-scale efficiency challenges provide a relatively inexpensive way to test changes under clear constraints.

    A fixed target loss, compute budget, and wall-clock measurement make it harder to confuse an attractive idea with an actual improvement. Internal experiments can use the same principle before committing resources to larger runs.

    3. Consider Matrix Geometry Alongside Elementwise Statistics

    Weight matrices have structure that elementwise adaptive rules do not explicitly exploit.

    Orthogonalized updates demonstrate the value of considering singular directions and conditioning when designing an optimizer. This is a useful perspective, not a universal claim that matrix-level methods always outperform elementwise adaptation.

    4. Migrate Incrementally

    Adoption should proceed through controlled comparisons on the team’s own training stack.

    Experiments at the tens-of-billions scale can help compare convergence curves, memory usage, and end-to-end throughput before the method is introduced into a main production run.

    A lower optimizer-state footprint is valuable, but the final decision should reflect the combined effect on training quality, runtime, and operational complexity.

    7. Conclusion

    Orthogonalized optimizers show how a change in update geometry can affect the resource requirements of large language model training.

    By replacing elementwise second-moment tracking with momentum-based matrix updates, they can reduce persistent optimizer-state memory while offering favorable convergence behavior in suitable workloads. Their progression from community efficiency experiments to large-scale training makes them worth serious evaluation.

    The practical approach is selective rather than absolute: use orthogonalized updates for appropriate weight matrices, retain conventional optimizers where needed, and measure performance across the full distributed system.

    For teams planning their next training infrastructure, optimizer selection deserves attention alongside model architecture and parallelization strategy. Algorithmic improvements can change the cost structure of training—not just the speed of an individual update.