From Heavy Ball to Orthogonalized Updates: The Evolution of Deep Learning Optimizers

    This article explains the role of optimizers in neural network training and traces the evolution from plain gradient descent and the Heavy Ball Method to Nesterov momentum, adaptive methods such as Adam, and newer orthogonalized update strategies. It covers step-size control, escaping local minima and saddle points, direction stability, key update equations, and practical engineering guidance for evaluating optimizer changes. Readers will gain a structured understanding of the motivations behind major optimizer designs and the trade-offs to consider when adopting a new optimizer.

    1. Where Optimizers Fit in Training

    When training a neural network, the loss function measures the gap between predictions and targets. The loss function provides the “elevation” at the current position, while backpropagation provides the gradient for each parameter direction—the local slope. The optimizer converts these two pieces of information into concrete parameter updates: which direction to move and how far to move.

    Training can be compared to finding the lowest valley in a mountain range. The loss function is like an altimeter, and the gradient is like the tilt underfoot. The optimizer is the strategy that decides the next step. With the same gradient information, different strategies can produce very different training trajectories: some converge quickly, some oscillate repeatedly, and some stall halfway down the slope.

    2. Three Classes of Problems Optimizers Must Solve

    2.1 Step-Size Control

    The learning rate determines the distance moved at each step. If the step is too large, parameters may overshoot the valley bottom and land on the opposite slope, causing the loss to jump back and forth and preventing convergence. If the step is too small, each step yields limited improvement and training takes a very long time.

    A fixed learning rate can hardly handle both situations at once. Flat regions need a larger step to make faster progress, while steep regions near the valley bottom need a smaller step. Learning rate schedules (such as warmup followed by decay) and adaptive learning rate methods are both intended to resolve this tension.

    2.2 Escaping Local Optima and Saddle Points

    High-dimensional loss surfaces contain many local minima and saddle points. At a saddle point, the gradient is zero in some directions, and plain gradient descent may stagnate. In practice, randomness (such as gradient noise from mini-batch sampling) and momentum terms can both help parameters escape these regions.

    2.3 Direction Stability

    In a narrow “ravine” landscape, curvature is large in one direction and small in another. Standard gradient descent bounces back and forth in the steep direction while making slow progress in the flat direction. This phenomenon shows that the update direction needs to incorporate historical information rather than relying only on the current gradient.

    3. From Plain Gradient Descent to Momentum Methods

    3.1 Basic Form

    The update rule for plain gradient descent is:

    1. θ_{t+1} = θ_t - η · ∇L(θ_t)

    Here θ represents parameters, η represents the learning rate, and ∇L represents the gradient of the loss function. This update has no memory; each step looks only at the slope at the current position.

    3.2 The Heavy Ball Method

    In 1964, the Soviet mathematician Boris Polyak proposed the Heavy Ball Method. It treats parameters as a small ball with mass, introduces a velocity variable v, and accumulates historical gradients:

    1. v_t = β · v_{t-1} + ∇L(θ_t)
    2. θ_{t+1} = θ_t - η · v_t

    The hyperparameter β is usually set close to 1, for example 0.9. The velocity term accelerates the ball in a consistent direction and cancels out oscillations in directions that alternate, allowing steadier progress in ravine-like landscapes.

    The following quadratic function illustrates the difference between the two methods. Its curvature differs by a factor of 50 between the two directions, simulating a narrow ravine:

    1. import numpy as np
    2. A = np.diag([1.0, 50.0]) # Curvature difference between the two directions
    3. def grad(x):
    4. return A @ x # Gradient of f(x) = 0.5 * x^T A x
    5. x_gd = np.array([10.0, 1.0]) # Plain gradient descent
    6. x_hb = x_gd.copy() # Heavy Ball Method
    7. v = np.zeros(2)
    8. lr, beta = 0.035, 0.9
    9. for _ in range(100):
    10. x_gd = x_gd - lr * grad(x_gd)
    11. v = beta * v + grad(x_hb)
    12. x_hb = x_hb - lr * v

    After running this code, you can compare the distance of the two trajectories from the optimum. Such experiments provide an intuitive demonstration of how momentum suppresses oscillation.

    3.3 The Idea Behind Nesterov Acceleration

    Building on the Heavy Ball Method, Nesterov proposed in 1983 taking a look-ahead step along the historical momentum direction before computing the gradient. This “look before you move” approach can reduce overshooting and has better convergence bounds in convex optimization theory. The Nesterov momentum option commonly found in deep learning frameworks originates from this idea.

    4. Adaptive Methods: From Per-Parameter Scaling to Adam

    Momentum methods treat all parameters uniformly, but gradients for different parameters can differ greatly in magnitude. Adaptive methods adjust the step size for each parameter individually: parameters with large gradients receive relatively smaller steps, and parameters with small gradients receive relatively larger steps.

    The Adam method (Kingma and Ba, 2014) maintains estimates of both the first and second moments of the gradient:

    1. m_t = β1 · m_{t-1} + (1 - β1) · g_t
    2. v_t = β2 · v_{t-1} + (1 - β2) · g_t²
    3. m̂_t = m_t / (1 - β1^t)
    4. v̂_t = v_t / (1 - β2^t)
    5. θ_{t+1} = θ_t - η · m̂_t / (√v̂_t + ε)

    Here m approximates the mean of the gradient (momentum), v approximates the second moment of the gradient (scale), and the bias-correction terms mitigate underestimated values early in training. Adam’s advantage is that it is not very sensitive to the learning rate and is suitable as a default starting point for most tasks. However, there are also discussions about its generalization and memory overhead, which need to be judged in the context of the task.

    5. A New Update Direction Based on Orthogonalization

    Recently, a class of new optimizers has attracted considerable attention. The core idea is: for weight matrices in neural networks, instead of directly using the raw momentum, first approximately map the momentum matrix to an orthogonal matrix, and then use it for parameter updates.

    The motivation can be understood through the singular value decomposition of a matrix. The singular values of the raw momentum matrix are often unevenly distributed: a few directions dominate the update, while information in most directions is overwhelmed. Approximate orthogonalization brings the update magnitudes across singular directions closer together, so that each direction receives relatively balanced progress.

    Because exact singular value decomposition is costly, iterative methods are often used in practice for approximation, such as Newton-Schulz iteration. These iterations contain only matrix multiplications, making them efficient to execute on accelerators.

    It is important to emphasize that the actual benefit of this idea depends on model architecture, scale, and training setup. Before adoption, controlled experiments should be run on the target task, comparing training stability, convergence speed, and additional computational overhead. Conclusions should not be drawn from theoretical intuition alone.

    6. Engineering Practice Recommendations

    1. Establish a baseline first. Before rolling out a new optimizer, run the pipeline with a validated default configuration (such as Adam or stochastic gradient descent with momentum), and record loss curves and validation metrics as a reference.

    2. Learning rate and warmup. Large-batch training usually requires learning rate warmup to avoid drastic parameter changes early in training. The learning rate decay strategy should match the total number of training steps.

    3. Monitor gradient norms. A sudden increase in gradient norm often signals training instability. Gradient clipping can be configured as a safeguard, and this metric should be continuously logged.

    4. Evaluate additional overhead. Adaptive methods and orthogonalization methods both increase memory usage or computation. In resource-constrained settings, training gains need to be compared against costs.

    5. Control variables. When changing the optimizer, keep the data, model architecture, and random seed fixed, and change only optimizer-related parameters. This is the only way to accurately attribute experimental differences.

    7. Summary

    The essence of an optimizer is to transform gradient information into a stable and efficient parameter update strategy. From momentum methods to adaptive methods and then to orthogonalized updates based on matrix structure, the main line of design has consistently centered on three problems: step-size control, direction stability, and escaping poor regions. Understanding these motivations is more helpful for making sound judgments in real projects than memorizing a particular formula.