On the Stability of Second-Order Gradient Descent for Time-Varying Convex Functions
Abstract
Traditional optimization algorithms like Nesterov’s accelerated gradient descent are designed for static environments, often prioritizing convergence rates over stability. In real-time machine learning (RTML) applications, such as autonomous vehicle control or adaptive signal processing, the objective function is inherently time-varying. This paper introduces a streamlined stability analysis for second-order gradient descent methods, termed High-order Tuners (HT), using control-theoretic Lyapunov techniques. We demonstrate that by appropriately parameterizing the momentum terms, these methods can maintain stability and robustly track moving optima even when function curvature changes abruptly, overcoming the inherent instabilities of standard accelerated methods in non-stationary settings.
Introduction
In standard machine learning, the goal is typically to minimize a static loss function over a fixed dataset. Performance is measured by convergence rates or regret bounds. However, Real-Time Machine Learning (RTML) involves systems that must adapt to environments that change on the fly. For safety-critical systems like aircraft or self-driving cars, convergence is secondary to stability. If an optimization algorithm oscillates or diverges due to a sudden change in the environment, the consequences can be catastrophic.
Existing accelerated methods, such as Nesterov’s Accelerated Gradient Descent (NAGD), often rely on learning rates or momentum parameters that grow over time to achieve optimal convergence. While effective for static functions, this growth can lead to instability when the function's minimum moves or its smoothness changes. This paper addresses this gap by providing stability guarantees for a class of second-order optimization dynamics in time-varying environments.
Methods
The authors focus on the High-order Tuner (HT), a gradient descent variant with second-order dynamics. To facilitate analysis, they provide a discrete-time parameterization that aligns with "Nesterov Form II," making it easier to implement and analyze within a control-theoretic framework.
The core of the stability proof relies on Lyapunov analysis. By constructing a "generalized energy" function (a Lyapunov function), the authors show that the optimization system's energy remains bounded under certain conditions. Specifically, they analyze the influence of the momentum-related parameter $\gamma_t$ on the stability coefficients of the system.
As shown in the figure above, the stability criteria (represented by coefficients like $c_5$ and the discriminant $4c_5c_7 - c_6^2$) are sensitive to the choice of $\gamma_t$. The analysis reveals that stability is preserved as long as $\gamma_t$ remains within a specific bound, typically $\gamma_t < 2$. Unlike previous work that required fixed, overly conservative settings, this approach allows for hyper-parameters that can change on the fly.
Results
The HT framework was tested against standard Gradient Descent (GD) and Nesterov’s Accelerated Gradient Descent (NAGD) using synthetic benchmarks designed to simulate non-stationary environments, such as shifting optima and abrupt changes in function smoothness.
In the tracking experiment shown above, the objective function's minimum jumps at $t=50$. While GD is slow to adapt, and NAGD exhibits significant oscillations before settling, the HT variants (represented by the grey and black lines) demonstrate superior tracking capabilities. Notably, HT remains stable even when the environment changes abruptly, whereas standard accelerated methods can become unstable if their internal parameters are not carefully constrained.
Key Insights
- The Nesterov Paradox: The mechanism that gives NAGD its $O(1/k^2)$ rate in static settings—an unbounded growth of $\gamma_t$—is what makes it dangerous in time-varying settings. Capping $\gamma_t$ is essential for stability.
- Regret vs. Stability: Algorithms like Adam or Adagrad, which decay learning rates to minimize regret, eventually lose the ability to track moving targets as their effective learning rate approaches zero. HT maintains a consistent ability to track new optima over time.
- Robustness to Smoothness Changes: The HT framework is particularly robust to changes in function smoothness. By using the proposed normalization and Lyapunov-based bounds, the algorithm avoids the "blow-up" behavior seen in standard GD when curvature increases unexpectedly.
Conclusion
This work bridges the gap between optimization theory and control theory for real-time applications. By providing clear stability bounds for second-order gradient methods, the authors enable the use of accelerated optimization in safety-critical, non-stationary environments. Future work will look to extend these deterministic Lyapunov techniques to stochastic settings (SGD) and explore more complex, continuously moving targets.
Summary updated