Finding Approximate Local Minima Faster than Gradient Descent

Naman Agarwal, Zeyuan Allen-Zhu, Brian Bullins, Elad Hazan, Tengyu Ma

Abstract

We design a non-convex second-order optimization algorithm that is guaranteed to return an approximate local minimum in time which scales linearly in the underlying dimension and the number of training examples. The time complexity of our algorithm to find an approximate local minimum is even faster than that of gradient descent to find a critical point. Our algorithm applies to a general class of optimization problems including training a neural network and other non-convex objectives arising in machine learning.

Introduction

In the landscape of deep learning, optimization typically involves navigating complex non-convex functions. Standard first-order methods, such as Gradient Descent (GD), are effective at identifying critical points where the gradient vanishes. However, these methods frequently struggle with saddle points—regions where the gradient is zero but the Hessian has both positive and negative eigenvalues. While empirical evidence suggests that reaching a local minimum is often sufficient for neural network training, theoretically ensuring convergence to such a point has historically been computationally expensive.

This paper introduces FastCubic, a second-order optimization algorithm designed to find approximate local minima with high efficiency. By approximating Cubic Regularization using only Hessian-vector products, the authors demonstrate that it is possible to break the $1/\epsilon^2$ efficiency bottleneck that has long characterized high-dimensional non-convex optimization.

The Challenge of Saddle Points

In high-dimensional spaces, saddle points are significantly more prevalent than local maxima. A first-order method like GD can spend an exponential amount of time near a saddle point. Second-order methods, which utilize curvature information from the Hessian matrix, can escape these points by following directions of negative curvature. However, traditional second-order methods often require computing or inverting the Hessian matrix, leading to a computational complexity of $O(d^3)$ or $O(d^2)$ per iteration, where $d$ is the number of parameters. For modern machine learning models where $d$ is in the millions, this is prohibitive.

Methodology: The FastCubic Algorithm

The core of the proposed approach is an efficient implementation of Cubic Regularization. Instead of a simple linear approximation of the objective function, Cubic Regularization fits a cubic polynomial locally. The "FastCubic" algorithm achieves linear time complexity ($O(d)$) through several key technical innovations:

  1. Inexact Sub-problem Solving: The algorithm proves that an exact solution to the cubic sub-problem is unnecessary. A sufficiently accurate approximation maintains the desired convergence guarantees.
  2. Structural Exploitation: The optimal step is shown to be a linear combination of a shifted Newton step and the direction of most negative curvature.
  3. Hessian-Vector Products: By utilizing Hessian-vector products instead of the full Hessian, the algorithm maintains a per-iteration cost proportional to backpropagation ($O(d)$).
  4. Adaptive Parameter Search: A binary search mechanism is employed to find the optimal shift parameter ($\lambda$), ensuring numerical stability and efficient sub-problem resolution.
  5. Efficient Subroutines: The framework integrates modern fast solvers, such as Accelerated Gradient Descent (AGD) and Stochastic Variance Reduced Gradient (SVRG), to optimize internal matrix-vector operations.

Theoretical Complexity and Results

The primary contribution of this work is a rigorous time complexity analysis showing that FastCubic outperforms first-order methods in reaching second-order stationary points.

Comparison of convergence rates and second-order guarantees across various optimization algorithms.

As shown in the table above, while Gradient Descent requires $O(nd/\epsilon^2)$ time to find a first-order critical point (with no second-order guarantee), FastCubic achieves an $\epsilon$-approximate local minimum in $\tilde{O}(nd/\epsilon^{1.5} + n^{3/4}d/\epsilon^{1.75})$ time. This represents a significant theoretical breakthrough: for the first time, an algorithm can find a local minimum faster than GD can find a simple critical point as the precision requirement $\epsilon$ becomes more stringent.

Discussion and Limitations

While FastCubic offers superior theoretical guarantees, several practical considerations remain:

  • Smoothness Assumptions: The convergence proofs require the objective function to be "second-order smooth" (Lipschitz continuous gradients and Hessians). This may require modifications for architectures using non-smooth activations like ReLU.
  • Constant Factors: The "Big-O" notation hides constant factors that may be large in practice. Initial implementations may require careful hyperparameter tuning to realize the theoretical speedups.
  • Implementation Complexity: The algorithm is significantly more complex to implement than SGD, involving nested loops for binary searches and eigenvalue approximations.

Conclusion

FastCubic demonstrates that second-order information can be harnessed to accelerate non-convex optimization without incurring the prohibitive costs typically associated with Hessian-based methods. By achieving a convergence rate of roughly $1/\epsilon^{1.75}$ for local minima, this work challenges the long-held belief that $1/\epsilon^2$ is the fundamental limit for efficient high-dimensional optimization.

Summary updated

BibTeX
@inproceedings{agarwal2016finding,
  author = {Naman Agarwal and Zeyuan Allen-Zhu and Brian Bullins and Elad Hazan and Tengyu Ma},
  title = {{Finding Approximate Local Minima Faster than Gradient Descent}},
  booktitle = {STOC},
  year = {2016},
}
Figure