From Classic Gradient Descent to Orthogonalized Optimizers: How Deep Learning Optimizers Evolved

    A tour through the evolution of deep learning optimizers—from SGD and momentum to Adam and the new wave of gradient-orthogonalization methods. This article explains the three core problems every optimizer must solve, why Adam dominates yet falls short, and how orthogonalized updates deliver better sample efficiency and lower memory usage in large model training.

    Optimizers: The Navigation System of Deep Learning Training

    In deep learning training, the optimizer plays a decisive role. If the loss function tells you “how far you are from the goal,” and backpropagation tells you “which direction to adjust,” then the optimizer is the core strategy that decides “how to take each step, and how far.”

    The classic analogy helps: training is like being blindfolded and dropped into a mountain range, with the goal of reaching the deepest valley. In this picture:

    • The loss function is the altimeter, telling you how “good” your current position is;
    • The gradient is like probing the ground with your foot to sense which way slopes downhill;
    • The optimizer is the brain’s navigation strategy, combining all of this information to decide the next direction and step size.

    An optimizer typically has to solve three core problems: step-size control, direction correction, and escaping bad regions. This article walks through the history of optimizers to see how each problem was addressed—and where the latest breakthroughs lie.

    The Three Problems Every Optimizer Must Solve

    1. Step-Size Control: The Art of the Learning Rate

    If the step is too large, you may leap right over the valley floor and oscillate back and forth on the opposite slope, never converging. If it is too small, training is painfully slow, burning compute for little gain.

    Advanced optimizers adapt their step size automatically: taking large strides in flat regions of the parameter space, and small, careful steps on steep terrain near the valley floor. The Adam family achieves this by maintaining exponential moving averages of the first moment (mean) and second moment (variance) of the gradients, computing an effective step size dynamically for each parameter.

    2. Direction Correction: Inertia and Momentum

    Standard stochastic gradient descent (SGD) traces back to the steepest descent method proposed by the French mathematician Cauchy in the 19th century. But classical gradient descent is mathematically equivalent to a “massless particle” sliding on a surface—it can reach top speed instantly and brake to a stop instantly. That violates physical intuition and causes real problems.

    On narrow, canyon-shaped loss surfaces (where curvature differs drastically across directions), gradient descent bounces between the canyon walls, making very slow net progress along the valley floor.

    In 1964, the Soviet mathematician Boris Polyak proposed the famous heavy-ball method while studying optimization theory: give the sliding particle “mass” and “inertia.” The update rule is:

    1. # Momentum pseudocode
    2. v = beta * v + gradient # accumulate historical velocity
    3. param = param - lr * v # update along the accumulated velocity

    Intuitively, oscillating gradient components cancel out over the accumulated history, while components consistently pointing toward the valley floor reinforce each other. This is why momentum dramatically accelerates convergence in canyon-like terrain. The idea remains a standard component of nearly every mainstream optimizer today.

    3. Escaping Local Minima and Saddle Points

    High-dimensional non-convex loss surfaces are littered with local minima and vast numbers of saddle points. The “stochasticity” in SGD—the gradient noise introduced by mini-batch sampling—is a double-edged sword: it makes the trajectory jittery, but also provides the “kick” needed to escape local traps. Combined with momentum, this noise means modern optimizers rarely get truly stuck in high-dimensional spaces.

    Adaptive Methods: Adam’s Dominance and Its Limits

    Introduced in 2014, Adam combined momentum with adaptive learning rates and has long dominated large model training. But it is not without weaknesses:

    1. Weak theoretical guarantees: Adam does not guarantee convergence on certain convex optimization problems; the later AdamW improved generalization by decoupling weight decay;
    2. High memory overhead: it maintains two moving-average states per parameter, consuming roughly three times the memory of the parameters themselves;
    3. Scale sensitivity: per-parameter normalization is robust, but it can also flatten genuine differences in importance between parameters.

    These limitations left room for optimizer innovation in the era of large models.

    The New Breakthrough: Orthogonalization-Based Optimizers

    A new class of optimizers gaining attention in large model training can be summarized in one sentence: stop trusting the gradient itself, and trust the geometric structure of the gradient update matrix instead.

    1. Core Idea: “Straightening Out” the Update Direction

    These methods (an approach widely discussed in the community, based on orthogonalizing the hidden-layer update matrices of neural networks) work as follows: extract the principal directional information from each layer’s gradient update matrix, then use matrix factorization to convert it into an orthogonal matrix that serves as the actual update direction.

    1. # Simplified orthogonalization sketch
    2. # G: current gradient update matrix after momentum
    3. U, S, Vh = svd(G) # singular value decomposition
    4. update = U @ Vh # discard singular values, keep only orthogonal directions
    5. param = param - lr * update

    Why does this work? In neural networks, parameters naturally differ in scale, and gradient norms vary widely across layers. Traditional Adam balances this with element-wise variance, but orthogonalization goes further: every direction receives the same “step budget.” Only the “where to go” information is kept; the “how large the gradient is” signal is discarded. The benefits:

    • Updates across layers are more balanced, preventing a few large-gradient directions from dominating training;
    • Sensitivity to the learning rate decreases, making hyperparameters easier to transfer and reuse;
    • Theoretically, it connects to the steepest descent direction on the matrix manifold, giving it a solid geometric interpretation.

    2. Engineering Elegance: Exactness Is Not Required

    Exact matrix orthogonalization (via Newton iteration or full SVD) is expensive. In practice, these methods use approximate orthogonalization schemes—for example, a few Newton iteration steps, or expansion via specific matrix polynomials—keeping the extra compute on the same order as a forward pass. This compromise of “mathematically elegant, engineering-affordable” is exactly what makes the approach viable in real large-scale training.

    3. Practical Benefits

    According to publicly reported industry experience, these optimizers show several notable properties in large language model training:

    • Better sample efficiency: under the same compute budget, they often reach comparable loss levels in fewer training steps;
    • Lower memory usage: instead of Adam’s two state matrices, some implementations maintain only a single momentum state, significantly reducing optimizer-state memory;
    • More stable hyperparameters: a wider tolerance range for the learning rate reduces the cost of large-scale tuning.

    Of course, it is not a universal replacement. For small-scale tasks, scenarios requiring fine-grained learning rate schedules, or architectures sensitive to update directions, AdamW remains the robust default. Hybrid strategies—such as using different optimizers for different layers—are also an active research direction.

    Lessons from the Evolution of Optimizers

    Looking back at this evolution, three patterns stand out:

    1. Physical intuition drives innovation: from a “massless particle” to a “heavy ball,” to “giving every direction equal weight”—breakthroughs often come from physically reimagining the optimization process;
    2. Information selection is the core: SGD keeps the direction, Adam keeps normalized statistics, orthogonalization keeps only the directional structure—each step is a choice about “which parts of the gradient to trust”;
    3. Theoretical gains must be traded for engineering feasibility: no matter how elegant a mathematical scheme is, it only enters the mainstream of large-scale training once its compute and memory costs are brought under control.

    For practitioners, the practical advice is: use mature adaptive methods like AdamW as the default; when training budget is tight, when higher sample efficiency matters, or when optimizer memory becomes the bottleneck, consider experimenting with these orthogonalization-based optimizers, validated together with standard stabilization techniques such as learning rate warmup and gradient clipping.

    The evolution of optimizers is far from over. But every breakthrough reminds us that progress in deep learning comes not only from model architectures and data scale, but equally from this底层 wisdom—well, from this fundamental wisdom about “how to take each step.”