From SGD to Modern Optimizers: The Evolution of Deep Learning Optimization Strategies
This article traces the evolution of deep learning optimizers, from the foundational stochastic gradient descent (SGD) to momentum-based methods and modern adaptive optimizers like Adam. It explains the core challenges of learning-rate control and escaping local optima, highlights the key role of momentum in overcoming narrow canyon-shaped loss landscapes, and reviews emerging directions such as orthogonalized updates and low-cost second-order approximations. Practical guidance for choosing optimizers in large-scale model training is also provided.
From SGD to Modern Optimizers: The Evolution of Deep Learning Optimization Strategies
In deep learning training, the optimizer is often the component that beginners overlook most, yet it has a direct impact on training efficiency and final model performance. Recent renewed discussions around new optimizers in both academia and industry make this a good time to revisit the fundamentals and clarify the principles, history, and frontier progress of optimization methods.
What Is an Optimizer? A Navigation Strategy for Descending the Hill
The classic way to understand an optimizer is through the “blindfolded descent” thought experiment. Imagine you are blindfolded and placed in a mountain range, with the goal of reaching the lowest valley. You have two pieces of information:
- Loss function: tells you your current altitude, i.e., the model’s error at the current parameters.
- Gradient: computed via backpropagation, equivalent to feeling the slope and steepness of the ground around you.
The optimizer is your “walking strategy”—it determines which direction to step next and how large the step should be. More specifically, an optimizer must address two core issues.
1. Learning-Rate Control: The Art of Step Size
Taking too large a step may overshoot the valley floor and bounce up the opposite slope, causing the loss to oscillate and preventing convergence. Taking too small a step makes training extremely slow and can even stall. Therefore, advanced optimizers typically have adaptive adjustment capabilities:
- Use larger steps in flat, stable regions to accelerate progress.
- Automatically shrink steps in regions with dramatic gradient changes or near the valley floor to ensure stable convergence.
The evolution from fixed learning rates, to learning-rate decay schedules, and then to adaptive methods like AdaGrad, RMSProp, and Adam—all essentially refine the same theme of “step-size control.”
2. Escaping Local Optima: Avoiding Dead Ends
Real high-dimensional loss surfaces are not smooth plains but are filled with local minima and saddle points—akin to small pits on a hillside. If you rely only on the gradient at the current position to descend, the parameters can easily fall into a small pit and mistakenly assume they have reached the true valley.
Early optimizers used vanilla SGD (Stochastic Gradient Descent)—the simplest solution: update parameters along the negative gradient direction with a fixed policy. This idea can be traced back to the French mathematician Augustin-Louis Cauchy’s work on optimization problems in 1847. SGD is simple and efficient, but it simulates a “massless particle” sliding along the loss surface—it can instantly reach top speed from rest or brake abruptly. Although mathematically convenient, this behavior contradicts physical motion laws and leads to poor performance in narrow canyon-like terrains.
Introducing Momentum: Giving the Particle Inertia
The “massless particle” assumption was challenged by Soviet mathematician Boris Polyak. In 1964, while studying optimization theory, he noticed that in narrow “canyon” geometries, standard gradient descent oscillates back and forth between the canyon walls. The component perpendicular to the valley floor is repeatedly canceled, while the effective forward speed along the valley remains very slow, resulting in low convergence efficiency.
He proposed an intuitively physical idea: what if we give this sliding particle “mass” and “inertia”? This became the famous heavy-ball method, which we now know as momentum.
Its mathematical form is straightforward:
# Momentum pseudo-codev = beta * v + learning_rate * gradienttheta = theta - v
The parameter update is no longer purely based on the current gradient, but a weighted combination of the current gradient and the historical update direction (velocity). The practical effects include:
- Oscillation suppression: In canyon terrain, the vertical components that bounce against the canyon walls cancel out because their directions alternate, smoothing the path.
- Faster convergence: The consistent component along the valley floor accumulates, effectively “speeding up” over time.
- Momentum to jump over pits: When encountering a small local depression, accumulated velocity can help the parameters pass through rather than stopping immediately, which alleviates the local optima problem to some extent.
The impact of momentum is far-reaching. Almost all mainstream optimizers today—including Nesterov Accelerated Gradient (NAG), Adam, and many variants—incorporate first-order (and sometimes second-order) momentum estimates. Momentum was a key step from “naive gradient descent” to “modern adaptive optimizers.”
The Adaptive Era: From Adam to New Optimizers
In the 2010s, Adam used both first-order and second-order momentum estimates to achieve per-parameter adaptive step sizes, becoming the default choice for most scenarios. It combined momentum’s inertial smoothing with RMSProp-style gradient magnitude normalization, showing robust performance in practice.
However, Adam is not the end. In recent years, researchers have revisited the mathematical structure of optimizers, and several notable directions have emerged:
- Orthogonalized gradient updates: Some studies suggest that instead of precisely estimating gradient statistics, it may be more beneficial to apply near-orthogonalization to the update direction, making updates across parameter dimensions more balanced. This approach can yield better convergence in scenarios with large matrix parameters, such as attention-layer training. Recent new optimizers follow this line, showing potential for reduced memory overhead and improved sample efficiency in large model training.
- Low-cost approximations of second-order information: Traditional second-order methods are computationally expensive, but clever matrix factorization or block-wise approximations can exploit curvature information at acceptable overhead.
- Integration with training stability: Optimizer design is deeply coupled with techniques like gradient clipping, weight decay, and learning-rate warmup, collectively ensuring stable long-horizon training for large models.
Practical Recommendations: How to Choose an Optimizer
Based on the principles above, here are some general guidelines:
- Start with Adam-style adaptive optimizers as the default, combined with a proper learning-rate schedule (e.g., warmup plus cosine decay), suitable for most scenarios.
- For small models or theoretical analysis, consider SGD + momentum, which sometimes still offers better generalization in certain tasks.
- Monitor memory usage: Adaptive optimizers maintain additional state for each parameter. In large model training, optimizer states can consume significant GPU memory; consider generic optimization techniques such as state sharding or low-precision state storage.
- Understand, don’t blindly trust: If training oscillates during tuning, first review the learning rate and gradient scale before switching optimizers.
Conclusion
From Cauchy’s naive gradient descent, to Polyak giving particles “inertia,” to today’s ongoing exploration of orthogonalization and second-order information, the evolution of optimizers is essentially a history of “how to use gradient information more intelligently.” Understanding these principles not only helps us make better technical choices in large model training but also equips us to assess the underlying logic of emerging methods.
