Orthogonalized Optimizers for Training Very Large Models: A Technical Deep Dive

    Optimizer states have quietly become one of the biggest consumers of GPU memory in large model training. This article explains how orthogonalized optimizers—first popularized by a community speedrun challenge—reduce optimizer memory by keeping a single momentum buffer instead of two adaptive states, why matrix-wide orthogonal updates fit modern architectures like RMSNorm, and what engineering practices matter when adopting them at scale, including parameter grouping, Newton–Schulz approximation tuning, and learning rate recalibration.

    1. Background: The Optimizer Memory Problem in Large-Scale Training

    Open-source models have been iterating rapidly, and rumored next-generation trillion-parameter releases have pushed a long-neglected problem into the spotlight: the optimizer itself is becoming a memory hog. This is no longer just an engineering efficiency issue—it directly affects training cost and the upper bound on model design.

    In mainstream mixed-precision training, adaptive optimizers maintain two extra states per trainable parameter: the first moment and the second moment. Using the well-known first- and second-moment estimation methods as an example, each parameter carries two additional 32-bit floats (roughly 8 bytes per parameter) in memory. A rough estimate:

    • Suppose the model has 1.6T trainable parameters;
    • Both states are stored at higher precision (e.g., 32-bit floats), about 8 bytes per parameter;
    • Optimizer states alone consume roughly 1.6T × 8B ≈ 12.8TB of memory.

    Add the master weights, gradients, and per-layer activations, and total memory requirements become even more staggering. The knock-on effects include:

    1. Reduced batch size: Less room for activations per device forces smaller global batches, hurting throughput and convergence stability;
    2. Limited context length: Activation memory for long-sequence training grows quickly with sequence length, and optimizer states further squeeze the feasibility of long-context training;
    3. Higher parallelism and communication cost: Sharding optimizer states across devices often requires more parallelism strategies, pushing up communication volume and system complexity.

    Against this backdrop, the community has turned its attention to an entirely new optimization paradigm: update methods that orthogonalize the entire gradient matrix.

    2. Origin: A Community Speedrun Breakthrough

    The success of these methods did not come from top-down planning at a large institution. It emerged from a spontaneous community efficiency challenge. A well-known researcher had issued a public geek challenge: train a small model of just over one hundred million parameters to a target loss value under constrained compute and wall-clock time—essentially a triathlon for optimization algorithms, hyperparameters, and learning rate schedules.

    Most contestants squeezed the last drops out of classic adaptive optimizers—tuning warmup, tweaking weight decay, swapping schedulers—with increasingly marginal gains. Then one participant took a different path: orthogonalizing the gradient matrix of hidden-layer parameters before applying the update. The result was startling—the number of training steps required dropped dramatically, shattering the speedrun record.

    The lesson for the industry: when everyone pursues incremental improvements within the same paradigm, breakthroughs at the paradigm level come from re-examining the nature of the problem itself.

    3. Core Principle: From Element-Wise to Geometric Updates

    3.1 Two Fundamentally Different Update Paradigms

    Classic Adam-style optimizers work element-wise: they treat a weight matrix as a pile of independent scalars and compute an adaptive step size for each element. This design offers fine-grained expressiveness, but the cost is two state variables per element—exactly the source of the memory problem.

    Orthogonalized optimizers instead treat the weight matrix as an inseparable high-dimensional geometric object. Consider a 1000×1000 weight matrix: it is not “a million independent knobs,” but a single entity with intrinsic geometric structure living in a high-dimensional space. The update process can be summarized as:

    1. Maintain a momentum buffer matrix (note: only one buffer, not two states);
    2. Orthogonalize the momentum matrix to produce an orthogonal matrix;
    3. Scale the orthogonal matrix by a uniform learning rate and add it to the weight matrix.

    Illustrative pseudocode:

    1. # Simplified update logic (illustrative)
    2. momentum_buf = momentum_buf * beta + grad
    3. U, S, Vh = svd(momentum_buf) # Singular value decomposition
    4. ortho_update = U @ Vh # Near-orthogonalization
    5. w = w - lr * ortho_update

    Mathematically, orthogonalization flattens the scale differences across directions in the gradient matrix—no matter which direction dominates the raw gradient, the update covers all singular directions uniformly. It acts as a “direction equalizer” during optimization, preventing a few large-magnitude directions from drowning out the signal of smaller but important ones.

    3.2 An Analogy: Skirmishers vs. a Phalanx

    A helpful intuition is “iron balls rolling downhill”:

    • The element-wise paradigm deals with a swarm of independently rolling balls, each needing its own rolling direction, velocity, and acceleration records—this is where the two state variables come from. It’s like letting every soldier wander the battlefield alone: maximum freedom, but enormous command and information overhead.
    • The orthogonalized paradigm first lines the balls up into a geometrically neat phalanx, then advances in unison. The matrix moves as a whole, with no per-element bookkeeping—memory overhead drops sharply, and command efficiency improves.

    Of course, this analogy invites the classic objection: “Real battlefields use skirmish lines, not phalanxes, don’t they?” That leads to the question of applicability discussed next.

    4. Addressing the Skepticism: Why a Phalanx Can Fight

    When orthogonalized optimizers were first proposed, skepticism centered on one point: they had only been validated on very small models, on the order of a hundred million parameters. At the time, no one could prove the approach holds for industrial-scale training with hundreds of billions of parameters. Scaling to the trillion-parameter tier raises at least three questions:

    1. Numerical stability: Do frequent matrix factorizations (e.g., SVD) accumulate numerical errors on low-precision hardware over long training runs?
    2. Hyperparameter transfer: According to what规律 should learning rates and momentum coefficients tuned on small models transfer to large models without failing?

    3. Compatibility with non-matrix structures: Embedding layers, output heads, and scalar parameters are unsuitable for matrix-wide orthogonalization and must fall back to traditional updates—the correctness of this hybrid strategy is critical.

    Based on public practice, large-scale validation succeeded because orthogonalized updates preserve directional information from gradients while reshaping their scale information—naturally aligning with architectural trends such as the latest techniques and RMSNorm that increasingly rely on norm-based stabilization. Every layer in such architectures performs scale re-normalization, and orthogonalized updates likewise “respect geometric structure and equalize direction scales”—the two philosophies are consistent. Moreover, the polar decomposition used in orthogonalization can be accelerated with efficient approximation algorithms (such as Newton–Schulz iterations), avoiding a full SVD on every update and keeping compute overhead within acceptable bounds.

    5. Engineering Practices

    If your team plans to adopt these optimizers in a training pipeline, here are some general recommendations:

    1. Separate parameter types: Route two-dimensional hidden-layer matrix parameters through orthogonalized updates; keep embeddings, biases, and other scalar parameters on conventional element-wise updates, with clear isolation between the two groups in the optimizer’s parameter groups.
    2. Adapt the number of approximation iterations: The iteration count of Newton–Schulz-style iterations directly affects accuracy and speed—too few yields insufficient orthogonality and unstable training; too many wastes compute. Typically, settle on a reasonable fixed value as training progresses.
    3. Recalibrate learning rate schedules: After orthogonalization, the matrix’s spectral norm is constant and the effective step size is decoupled from gradient magnitude. Classic scheduling heuristics cannot be applied directly; small-scale calibration experiments are recommended.
    4. Turn memory savings into global planning: The memory freed from optimizer states should be deliberately reinvested into larger batch sizes or longer contexts, rather than simply stacking a bigger model—this is where the method delivers the greatest value for overall training economics.

    6. Conclusion

    Optimizer technology is undergoing a paradigm shift in the era of large models: from “keeping books per scalar” to “driving matrices as geometric wholes.” If the new generation of open-source models does adopt orthogonalized optimizers at scale, it will mark the transition of these methods from community competitions to the industrial mainstream. For researchers and engineers, understanding the geometric intuition, memory economics, and practical implementation details behind them will be a foundational skill for competing in large model training.