Non-Uniform Smoothness for Gradient Descent

Albert S. Berahas, Lindon Roberts, Fred Roosta

Standard convergence analyses for Gradient Descent (GD) typically rely on the assumption that the objective function’s gradient is globally Lipschitz continuous. This implies the existence of a single constant, $L$, that bounds the rate of change for the gradient across the entire domain. However, in practice, this "one-size-fits-all" approach often leads to significant inefficiencies. This paper, published in the Transactions on Machine Learning Research (02/2024), introduces a new framework for adaptive gradient descent that leverages local geometry to overcome the limitations of global smoothness constants.

The Limitations of Global Lipschitz Assumptions

In traditional optimization theory, the stepsize of gradient descent is usually set to $1/L$. This approach suffers from two primary drawbacks:

  1. The Pessimism Gap: The global constant $L$ is determined by the "sharpest" point in the function's domain. If a function is highly curved in one small region but smooth elsewhere, GD is forced to use a tiny, conservative stepsize everywhere, resulting in unnecessarily slow progress in the smooth regions.
  2. The Tuning Tax: The value of $L$ is rarely known a priori for complex models. Consequently, practitioners must invest substantial computational resources into hyperparameter tuning to find a stepsize that is large enough to be efficient but small enough to prevent divergence.

These challenges are particularly acute for functions with "flat minima," such as $f(x) = x^4$. Near such minima, the gradient vanishes so rapidly that standard GD with a constant stepsize exhibits sublinear convergence, effectively crawling toward the solution.

The Local First-Order Smoothness Oracle (LFSO)

To address these issues, the authors propose the Local First-Order Smoothness Oracle (LFSO). Rather than relying on a global constant, the LFSO provides a local bound, $L(x, R)$, which is valid only within a ball of radius $R$ centered at the current iterate $x$.

Algorithm: GD with LFSO

The proposed algorithm utilizes the LFSO to adaptively determine the stepsize at each iteration:

  • Oracle Query: The algorithm queries the LFSO for the local smoothness estimate based on the current position and a proposed radius.
  • Safety Check: It calculates a "look-ahead" radius. If the proposed step would move the iterate outside the region where the local smoothness bound is guaranteed, the algorithm increases the radius and re-evaluates the bound.
  • Adaptive Step: The algorithm takes a step with a size inversely proportional to the local smoothness estimate ($1/L(x, R)$).

Unlike traditional backtracking line search, which reacts to changes in the function value, the LFSO-based approach proactively sets the stepsize using explicit local curvature information (often derived from the Hessian).

Empirical and Theoretical Insights

The paper validates this framework using a variety of high-dimensional mathematical functions, including compositional functions ($f(x) = \|x\|_2^{2p}$), linear regression with $L_p$ loss, and logistic regression.

Linear Convergence for "Flat" Problems

The most significant theoretical contribution is the proof that LFSO-based GD can achieve global linear convergence even on functions where standard GD is sublinear. For a function like $f(x) = x^4$, the LFSO allows the stepsize to grow as the gradient shrinks, perfectly compensating for the increasing flatness of the objective and maintaining a constant rate of progress on a logarithmic scale.

Computational Efficiency

The authors demonstrate that for many common machine learning tasks, such as logistic regression or $L_p$ regression, calculating the LFSO is computationally inexpensive. In many cases, the cost is comparable to a single gradient evaluation, ensuring that the adaptive stepsize does not introduce significant per-iteration overhead.

Future Directions

While the LFSO framework offers a powerful alternative to global smoothness assumptions, several avenues for future research remain:

  • Oracle Construction for Deep Learning: While explicit LFSOs are derived for regression and logistic models, creating a general-purpose LFSO for complex deep neural networks remains a challenge. The authors suggest that automatic differentiation (AD) could eventually be used to generate these oracles automatically.
  • Stochastic Settings: This work focuses on deterministic gradients. Extending the LFSO framework to Stochastic Gradient Descent (SGD) is a critical next step for its application to large-scale machine learning.
  • Radius Selection: Although the method is robust, the choice of the radius sequence $R_k$ still impacts performance. Developing a more systematic, automated method for radius selection would further enhance the "plug-and-play" nature of the algorithm.

Summary updated

BibTeX
@article{berahas2024non,
  author = {Albert S. Berahas and Lindon Roberts and Fred Roosta},
  title = {{Non-Uniform Smoothness for Gradient Descent}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure