Next-Generation Optimizers for LLM Training: Engineering Practice with Orthogonalized Gradient Updates

    This article explains why the optimizer has become a hidden bottleneck in large model training, especially in memory use. It reviews the memory cost of adaptive moment estimation methods and traces how an approach based on orthogonalized gradient updates emerged from a small-model training competition. It compares element-wise and whole-matrix views of optimization, discusses open questions about scaling the method, and offers practical guidance for engineering teams, including parameter grouping, approximation methods, learning rate calibration, distributed training, and monitoring with fallback paths.

    1. Introduction: Why the Optimizer Has Become a Hidden Bottleneck in Large Model Training

    When training very large models, people usually treat compute, data, and architecture as the three core factors. The optimizer, a seemingly secondary component, is easy to overlook. In fact, the optimizer determines not only how fast and how well a model converges, but also how memory is consumed during training. As parameter counts reach the trillion scale, the memory used by optimizer states can exceed that of the model parameters themselves, becoming a key constraint on training scale and cost.

    In recent years, a new optimization method based on gradient orthogonalization has moved from academic research into industrial use. It treats an entire weight matrix as the object of optimization, departing from the traditional element-wise adaptive update pattern. It significantly reduces memory usage while maintaining strong convergence performance. This article reviews the technical background, core principles, and engineering practice of this method.

    2. The Memory Problem of Traditional Adaptive Optimizers

    For a long time, adaptive moment estimation methods have been the de facto standard for deep learning training. Their core idea is to maintain, for each parameter, a first moment (momentum) and a second moment (a moving average of squared gradients). This enables per-parameter adaptive learning rate adjustment.

    This design worked nearly perfectly in the era of small models. In the era of large models, however, it exposes a serious memory cost:

    • Doubled state overhead: Each trainable parameter requires two additional floating-point states with the same shape. Take a model with 1.6 trillion parameters. Even with mixed-precision training, the optimizer states alone can consume more than ten terabytes of memory.
    • Squeezed configuration space: Optimizer states take up memory that could otherwise support larger batch sizes and longer context lengths. Teams must then trade off throughput against memory.
    • Rising cost: When memory runs short, teams must adopt more aggressive sharding strategies and cross-device communication. This lowers hardware utilization, and total training cost rises steeply.

    Against this background, designing an optimizer that is both efficient and memory-saving has become a central question in the industry.

    3. Origins of the New Approach: A Training Competition

    The origin of this method is somewhat dramatic. It traces back to a training competition for small language models. Participants had to train a compact generative language model to a target loss value within a limited amount of compute and time.

    Most participants tried to squeeze the last bit of performance out of classic adaptive optimizers. One researcher took a different path and proposed orthogonalizing the gradients of hidden-layer parameters. The results were striking. The number of training steps needed to reach the same loss dropped sharply, setting a new record for the competition at the time.

    The community then widely reproduced and improved the result. It gradually grew into a complete optimizer implementation and was eventually adopted for industrial-scale training of very large models. The method moved from a “toy experiment” to a “production-grade solution.”

    4. Core Principle: From Element-wise to Whole-Matrix Optimization

    To understand the method, we first need to clarify the basic difference between the two optimization approaches.

    Traditional approach: element-wise view. Classic adaptive optimizers treat a weight matrix as a collection of independent scalars. For a 1000×1000 weight matrix, they compute an adaptive step size for each of its one million elements. This is like commanding a million independent soldiers, each needing separate marching orders. The approach is precise, but coordinating it is very costly.

    New approach: whole-matrix view. The new method treats a weight matrix as an indivisible high-dimensional geometric object. Its update procedure works roughly as follows:

    1. 1. Compute the current gradient G, and combine it with the momentum term to get the update direction M
    2. 2. Orthogonalize M (typically using matrix decomposition or iterative approximation methods)
    3. 3. Add the orthogonalized matrix to the weight matrix in a single step

    The intuition behind orthogonalization is to regularize the update direction into a matrix where step sizes are roughly equal across directions and rows and columns are approximately orthogonal. This keeps the update from being dominated by a few singular directions with very large values. It brings two direct benefits:

    1. Substantial memory savings: Orthogonalized updates no longer need to keep second-moment state for each parameter. The momentum storage and computation are also more compact, so overall optimizer memory drops noticeably.
    2. Improved convergence efficiency: The regularized update direction has better geometric properties in parameter space. It often reaches the same loss level in fewer steps.

    Using the marching analogy again: traditional methods are like soldiers each finding their own way down a mountain. The new method first lines them up in an orderly formation and then moves them forward together. The second approach is clearly easier to direct.

    5. Questions and Responses: Can Small-Model Results Scale Up?

    Any new paradigm faces skepticism. The most common criticism when the method first appeared was this: orthogonal, matrix-style updates look tidy on toy tasks, but real loss landscapes are complex and changing. Is such a rigid update really practical?

    The concern is reasonable. The method was first validated only on models below the 100-million parameter scale, and history contains many techniques that worked on small models but failed on large ones. Subsequent research and engineering practice have responded on several fronts:

    • Layer-wise applicability: Research shows that orthogonalized updates mainly suit two-dimensional weight matrices, such as projection matrices in attention and fully connected layers. Biases, normalization parameters, and embedding layers are still better handled with traditional element-wise methods. As a result, practical deployments usually adopt a hybrid optimization strategy rather than applying one method everywhere.
    • Validation at scale: As training curves from medium- and large-scale models have been made public, the evidence for convergence stability and final quality has grown stronger.
    • Hyperparameter transferability: Engineering practice suggests that suitable learning rate and weight decay settings transfer to some degree across model sizes. This lowers the trial-and-error cost of large-scale tuning.

    6. Key Practices for Engineering Deployment

    Teams that want to introduce this kind of method into their own training pipelines should consider the following points:

    1. Parameter grouping: Clearly separate matrix-shaped parameters from non-matrix parameters. The former use orthogonalized updates, and the latter keep traditional adaptive optimization. The two optimizers run in parallel.
    2. Choosing an orthogonalization approximation: Exact matrix decomposition is too expensive, so engineering implementations typically use numerical approximations with a few iterations, such as Newton-Schulz iteration. This balances accuracy and overhead, and it can take advantage of the matrix compute units on the hardware.
    3. Learning rate calibration: The effective step size of orthogonalized updates depends on matrix shape. The learning rate needs to be normalized by dimension, so that matrices of different shapes do not receive mismatched update magnitudes.
    4. Distributed adaptation: In data-parallel and tensor-parallel settings, make sure the full gradient matrix that orthogonalization depends on is aggregated on the correct devices. Otherwise, sharding can break orthogonality.
    5. Monitoring and fallback: In the early stage of deployment, monitor gradient norms and the singular value distribution of update matrices. Keep a fallback path that can switch back to the traditional optimizer at any time.

    Teams without large in-house compute can also use general-purpose cloud infrastructure, such as container platforms, distributed storage, and monitoring and alerting services, to build training and experiment environments. This lowers the entry cost of validating the method.

    7. Summary and Outlook

    Orthogonalized gradient update methods have challenged the long-standing dominance of element-wise adaptive optimizers. By replacing the scalar, element-wise view with a whole-matrix geometric view, they improve both memory usage and convergence efficiency. Successful training of industrial-scale large models has also demonstrated their scalability.

    Optimizer innovation still has room to grow. Promising directions include more efficient orthogonalization approximations, deeper integration with mixed-precision and parallelism strategies, and adaptation to multimodal and sparse architectures. For large model training teams, the optimizer is no longer just a default configuration item. It is becoming an important technical lever for reducing cost and improving efficiency.