ProxSARAH: An Efficient Algorithmic Framework for Stochastic Composite Nonconvex Optimization

Nhan H. Pham, Lam M. Nguyen, Dzung T. Phan, Quoc Tran-Dinh

In the world of machine learning, we are almost always trying to minimize a "loss function." Often, these functions are nonconvex (full of hills and valleys) and composite (consisting of a smooth part and a potentially "pointy" or nonsmooth part, like a regularizer). While stochastic gradient descent (SGD) is the workhorse of the field, it often struggles with efficiency and requires painstakingly tuned, diminishing learning rates.

TL;DR

The paper introduces ProxSARAH, a new algorithmic framework for stochastic composite nonconvex optimization that achieves state-of-the-art convergence rates. By combining a biased recursive gradient estimator (SARAH) with a unique averaging step, the authors enable the use of much larger step-sizes than previous methods, significantly boosting practical performance on tasks like neural network training and principal component analysis.

What Problem Does This Paper Address?

The authors target the challenge of solving optimization problems of the form: $$\min_{w} \{ f(w) + \psi(w) \}$$ where $f(w)$ is a smooth but nonconvex function (like the loss of a deep neural network) and $\psi(w)$ is a convex, possibly nonsmooth function (like an $L_1$ penalty used to encourage sparsity).

The main hurdles in this sub-field are:

  1. Complexity Gaps: There has been a persistent gap between the theoretical "worst-case" lower bounds and the actual performance of existing algorithms.
  2. Tiny Step-sizes: Popular variance-reduction methods like ProxSVRG often require extremely small step-sizes (learning rates) to guarantee convergence, making them slow in practice.
  3. Rigid Mini-batching: Many state-of-the-art methods require specific, large mini-batch sizes to work, offering little flexibility for different hardware or dataset constraints.

Methods

ProxSARAH stands out through two main technical innovations:

  1. The SARAH Estimator: Instead of using the standard unbiased gradient estimator found in SVRG, ProxSARAH uses the Stochastic Recursive Gradient Algorithm (SARAH) estimator. While SARAH is biased, it is highly effective at reducing variance recursively, allowing the algorithm to "track" the true gradient more accurately as iterations progress.
  2. The Proximal-Averaging Step: Standard algorithms typically perform a proximal gradient step and move on. ProxSARAH adds a second step: it takes the result of the proximal step and averages it with the previous iterate. This is inspired by "averaged fixed-point" schemes and helps stabilize the trajectory of the algorithm.

Crucially, the framework supports both constant step-sizes (which are significantly larger than those in ProxSVRG) and adaptive step-sizes that can actually increase over time—a departure from the traditional "diminishing" learning rate schedules.

Datasets

The authors evaluated ProxSARAH across a wide range of standard benchmarks:

  • Small/Medium Datasets: mnist, rcv1-binary, real-sim, epsilon.
  • Large Datasets: url_combined, news20.binary, avazu-app, kddb-raw.
  • Computer Vision: mnist_fashion (Fashion-MNIST).

These were used to test three specific problems: Nonnegative Principal Component Analysis (NN-PCA), sparse binary classification with nonconvex losses, and feedforward neural network training.

Key Insights and Ideas

  • Bias is a Feature, Not a Bug: In nonconvex optimization, a biased estimator that reduces variance quickly (like SARAH) can be more powerful than an unbiased one (like SVRG). It allows the algorithm to achieve the "best-known" complexity bounds ($O(n + n^{1/2}\epsilon^{-2})$ for finite-sum problems).
  • Larger Learning Rates: By incorporating the averaging step, the authors proved that they could use a step-size roughly $\sqrt{n}$ times larger than ProxSVRG in the single-sample case. This is a massive practical advantage.
  • Adaptive Schedules Work: The paper provides a rigorous analysis for an adaptive step-size rule. In experiments, this adaptive version often outperformed the constant step-size version, showing that the algorithm can "speed up" as it gains more information about the local geometry of the loss surface.

Key Results

  • Theoretical Optimality: ProxSARAH matches the theoretical lower bounds for nonconvex finite-sum optimization up to a constant factor, making it "nearly optimal."
  • Empirical Dominance: In NN-PCA and sparse classification tests, ProxSARAH variants (especially the adaptive ones) consistently reached lower loss values much faster than ProxSVRG, ProxSGD, and standard ProxGD.
  • Neural Network Performance: On MNIST and Fashion-MNIST, ProxSARAH was competitive with or better than SpiderBoost and ProxSGD, showing less oscillation in the gradient mapping norm (a measure of how close you are to a stationary point).

Limitations and Future Work

While ProxSARAH shows impressive results, the authors note a few areas for improvement:

  • Constant Optimization: The constants in the complexity bounds haven't been fully optimized yet; refining these could lead to even tighter theoretical guarantees.
  • Architectural Scope: The neural network experiments focused on fully connected layers. Testing the framework on more complex architectures like CNNs or Transformers remains a task for future research.
  • Assumptions: The proof relies on an "average smoothness" assumption. While standard, exploring performance when this assumption is violated would be valuable.

Summary updated

BibTeX
@article{pham2020proxsarah,
  author = {Nhan H. Pham and Lam M. Nguyen and Dzung T. Phan and Quoc Tran-Dinh},
  title = {{ProxSARAH: An Efficient Algorithmic Framework for Stochastic Composite Nonconvex Optimization}},
  journal = {JMLR},
  year = {2020},
}
Figure