Stochastic Second-Order Methods Improve Best-Known Sample Complexity of SGD for Gradient-Dominated Functions

Saeed Masiha, Saber Salehkaleybar, Niao He, Negar Kiyavash, Patrick Thiran

Introduction

In non-convex optimization, algorithms typically aim to find a "stationary point" where the gradient is zero. However, this point might just be a local minimum or a pesky saddle point. Fortunately, certain functions satisfy a gradient dominance property (such as the Polyak-Łojasiewicz condition), which guarantees that any local stationary point is actually a global optimum. This property is frequently found in Reinforcement Learning (RL) and specific neural network architectures.

While Stochastic Gradient Descent (SGD) can solve these problems, its "sample complexity"—the number of data points needed to reach a target accuracy ($\epsilon$)—can be prohibitively high, especially when the function is poorly behaved. This paper investigates whether using second-order curvature information (the Hessian) allows an algorithm to take smarter, larger steps toward the global optimum, thereby significantly reducing the required number of samples.

The SCRN Approach

The authors analyze Stochastic Cubic Regularized Newton (SCRN), a second-order optimization method. Unlike standard Newton's method, which can be unstable, SCRN adds a "cubic" penalty term to the local quadratic model of the function. This penalty acts as a regularizer, preventing the algorithm from taking overconfidently large steps when the local approximation is unreliable.

Key technical contributions of the paper include:

  • Generalized Analysis: The authors analyze SCRN across a range of gradient dominance values ($1 \le \alpha \le 2$), covering everything from standard PL conditions to the "weaker" versions commonly found in RL.
  • Variance Reduction: They introduce an adaptation of SCRN that utilizes variance reduction and time-varying batch sizes to further decrease the number of samples needed.
  • Inexact Solvers: They prove that the algorithm remains effective even if the complex cubic sub-problem is only solved approximately, which is vital for making the method computationally feasible in practice.

Key Insights and Theoretical Results

A major advantage of SCRN is its ability to escape "flat plateaus" where gradients are nearly zero. While SGD might crawl through these regions, SCRN uses Hessian information to recognize the flat surface and traverse it more efficiently.

This theoretical advantage translates into significant improvements in sample complexity compared to SGD.

Sample Complexity Comparison

As shown in the comparison, the most significant improvement occurs when $\alpha=1$, a condition satisfied by many policy-based RL problems. For this case, SCRN achieves a sample complexity of $\mathcal{O}(\epsilon^{-2.5})$, beating the previous best for first-order methods ($\mathcal{O}(\epsilon^{-3})$) by a factor of $\mathcal{O}(\epsilon^{-0.5})$. Furthermore, by incorporating variance reduction, the authors pushed the average sample complexity down to $\mathcal{O}(\epsilon^{-2})$ for $\alpha=1$.

While second-order methods require more computational work per iteration (computing Hessians), they require far fewer total samples from the environment. In many real-world scenarios, such as robotics, acquiring a physical sample is vastly more expensive than performing additional computations.

Empirical Performance

The paper evaluates the algorithm using standard Reinforcement Learning benchmarks rather than static datasets, including discrete control tasks (Cliff Walking, Random Mazes) and continuous control tasks via MuJoCo (HalfCheetah, Humanoid, Walker, Reacher).

In "Cliff Walking" experiments, SCRN found the optimal path significantly faster than REINFORCE or Stochastic Policy Gradient (SPG). In complex MuJoCo tasks like "Humanoid," SCRN reached higher reward levels with fewer system probes compared to state-of-the-art variance-reduced first-order methods.

Limitations and Future Work

Despite the impressive sample complexity improvements, SCRN faces practical challenges:

  • Hessian Overhead: Computing the Hessian matrix is traditionally $\mathcal{O}(d^2)$, which is expensive for high-dimensional models. While using Hessian-vector products reduces this to $\mathcal{O}(d)$, the constant factors remain higher than those of first-order methods.
  • Sub-problem Solving: Each step of SCRN requires solving a cubic sub-optimization problem. Although approximate solvers work, this adds an extra layer of algorithmic complexity.
  • Global vs. Local Dominance: The theoretical analysis assumes the gradient dominance property holds globally. In many deep learning tasks, this property might only hold locally or under specific conditions, highlighting an area for broader empirical validation.

Summary updated

BibTeX
@inproceedings{masiha2022stochastic,
  author = {Saeed Masiha and Saber Salehkaleybar and Niao He and Negar Kiyavash and Patrick Thiran},
  title = {{Stochastic Second-Order Methods Improve Best-Known Sample Complexity of SGD for Gradient-Dominated Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=McjGUq1H-mm},
}
Figure