From Gradient Descent to Next-Generation Optimizers: The Evolution of Optimization for Large Model Training
This article traces the evolution of optimization methods used in deep learning and large model training—from basic gradient descent and momentum to adaptive optimizers and newer approaches based on matrix orthogonalization. It explains how each method addresses learning-rate control, local optima, saddle points, oscillation, and training stability, followed by practical guidance for selecting, evaluating, and monitoring optimizers.
1. Optimizers: The Navigation System of Deep Learning Training
If model training is like descending a mountain while blindfolded—with the goal of reaching the deepest valley, or the minimum loss—the training system has three central components:
- Loss function: Tells you the current “altitude,” or the gap between the model’s predictions and the target.
- Gradient: Computed through backpropagation, it indicates the local slope and shows which direction the parameters should move to reduce the loss.
- Optimizer: Defines the movement strategy, including the direction and size of the next step.
The loss function and gradient provide the raw information. The optimizer determines how that information is used, and its strategy can strongly influence whether training succeeds.
A good optimizer typically addresses three major challenges.
Step-Size Control: The Art of the Learning Rate
If the steps are too large, the optimizer may jump over the valley and climb the opposite slope, causing the loss to oscillate or even diverge. If the steps are too small, training becomes extremely slow. For large models, this can translate into enormous amounts of wasted compute.
Advanced optimizers adjust their effective step sizes automatically: they move faster across flat regions and slow down in steep areas or near a minimum. In practice, they are also commonly combined with learning-rate schedules such as warmup and cosine decay, which help stabilize the early stages of training and enable finer updates later.
Escaping Local Minima and Saddle Points
High-dimensional loss surfaces contain many shallow local minima and saddle points. Relying only on local gradient information can cause a basic method to become trapped. In addition, deep neural network loss surfaces often resemble long, narrow valleys: some directions are extremely steep while others are nearly flat. This creates additional demands for the optimizer.
Reducing Oscillation for Stable Convergence
In a narrow valley, basic gradient descent may repeatedly collide with the steep valley walls. Much of its progress is consumed by lateral oscillation instead of movement along the valley floor.
Suppressing this sideways motion while amplifying progress in the useful direction is one of the central goals of optimizer design.
2. From Basic Gradient Descent to Momentum: Adding Inertia
The most fundamental optimization approach is stochastic gradient descent (SGD), whose underlying ideas can be traced back to optimization research in the 19th century. Mathematically, standard gradient descent is similar to simulating a “massless particle” sliding across a loss surface. It can instantly accelerate from rest and stop just as quickly, which is physically unrealistic and inefficient in narrow valleys.
A major improvement came from a simple physical intuition: give the particle mass and inertia. This idea appeared in the Heavy Ball Method proposed in 1964 and corresponds to what is commonly called classical momentum today:
# Basic gradient descentv = -lr * gtheta = theta + v# Momentum: velocity is an exponentially weighted accumulation of past gradientsv = beta * v - lr * gtheta = theta + v
The momentum term acts like an exponentially weighted average of gradients from previous steps. Its effects include:
- Consistently aligned gradient components accumulate and become stronger, allowing the particle to accelerate along the valley floor.
- Gradient components that repeatedly change direction cancel one another, naturally reducing lateral oscillation.
As a result, momentum can be much faster than basic gradient descent in narrow valleys. It also gives the optimization process enough inertia to move through shallow local minima.
3. Adaptive Methods: Giving Each Parameter Its Own Learning Rate
Momentum reduces oscillation, but it still uses a global learning rate shared by all parameters. In deep networks, however, gradient scales can vary significantly across different components. Embedding layers, attention weights, and output layers may all require different step sizes.
The central idea behind adaptive methods is to maintain an independent effective learning rate for each parameter. This is commonly achieved by scaling updates according to the accumulated second moment of the gradients—the moving average of squared gradients:
# Typical adaptive optimizer update logicm = beta1 * m + (1 - beta1) * g # First moment: gradient mean (momentum)v = beta2 * v + (1 - beta2) * g ** 2 # Second moment: moving average of squared gradientstheta = theta - lr * m / (sqrt(v) + eps)
For parameters with consistently large gradients, the denominator becomes larger and the effective step size is reduced. For parameters with sparse or small gradients, the step size is relatively increased.
This ability to adjust updates according to the local geometry of each parameter has made adaptive optimizers a mainstream choice in deep learning, particularly for large model training. Techniques such as decoupled weight decay and bias correction have also been developed to further improve training stability and generalization.
4. Exploring New Optimizers: Orthogonalization and Unified Perspectives
In recent years, researchers have begun examining a more fundamental question: Is Adam’s reliance on element-wise scaling always optimal?
Theoretical convergence guarantees for gradient descent are based on the assumption that the update direction remains aligned with the gradient direction. Adam’s element-wise division by the second moment can weaken this alignment.
One class of newer optimizers takes a different approach: first orthogonalize the gradient or update—for example, by applying a transformation similar to a polar decomposition to the update matrix—and then apply a momentum framework.
Intuitively, the question is no longer simply, “How quickly should each parameter move?” Instead, it becomes, “How can the update preserve an optimal direction at the matrix level?”
These methods have shown promising training efficiency for matrix-shaped parameters, such as the weight matrices in attention and feed-forward layers. Some experiments have reported improved loss-decrease curves under comparable compute budgets, which has attracted considerable attention in large model training.
However, the stability of newer optimizers at scale, their hyperparameter robustness, and their compatibility with techniques such as mixed-precision training, gradient clipping, and learning-rate scheduling still require careful validation for specific tasks. Newer does not automatically mean better, so optimizer selection should not be driven by novelty alone.
5. Practical Recommendations
Based on this evolution, the following general guidelines are useful:
- Start with a reliable baseline: Use a mature momentum-based adaptive method first, establish a working training pipeline, and create a reliable loss curve for comparison.
- Treat scheduling as a first-class concern: Warmup combined with a decay schedule often delivers more significant gains than switching optimizers.
- Validate at small scale before scaling up: Test a new optimizer on a smaller model to evaluate convergence and hyperparameter sensitivity before applying it to a large model.
- Monitor gradient health: Track gradient-norm distributions and the ratio between update magnitudes and parameter magnitudes. Abnormal values may indicate an unsuitable learning rate or numerical instability.
- Record configurations for reproducibility: Maintaining complete records of optimizer states, random seeds, and scheduling configurations is essential for reproducible training.
Conclusion
The evolution of optimizers—from “massless particles” to the Heavy Ball Method, from a global learning rate to per-parameter adaptation, and finally to newer techniques based on matrix orthogonalization—reflects increasingly sophisticated mathematical and physical perspectives on how to descend a loss surface.
Understanding this progression helps practitioners interpret optimization techniques described in large model training reports and make more informed choices about optimizer selection and hyperparameter tuning in their own training workloads.
