On the Convergence of SARAH and Beyond

Bingcong Li, Meng Ma, Georgios B. Giannakis

Introduction

Machine learning training typically involves Empirical Risk Minimization (ERM). While Stochastic Gradient Descent (SGD) is the workhorse of large-scale optimization, its high variance often slows down convergence. Variance reduction methods like SVRG, SAGA, and SARAH have been developed to address this, but SARAH specifically faces theoretical gaps in convex settings, poor generalization in deep learning, and difficulties with last-iteration convergence proofs.

LoopLess SARAH (L2S)

The paper introduces LoopLess SARAH (L2S), which simplifies the traditional double-loop structure of variance reduction algorithms. Instead of a fixed inner loop, L2S employs a randomized snapshot schedule. At each iteration, a full gradient is computed with a small probability $1/m$; otherwise, a recursive stochastic update is performed.

Algorithm 3: L2S-SC pseudocode showing the randomized snapshot mechanism.

This randomized approach allows for a "backward" probabilistic analysis, enabling stronger theoretical guarantees without the restrictive assumptions required by the original SARAH analysis. The authors also introduce variants like L2S-SC for strongly convex problems and D2S (Data Dependent SARAH) for importance sampling based on individual smoothness constants.

Key Insights: Generalization and Flat Minima

A significant contribution of this work is explaining why L2S generalizes better than traditional variance reduction methods in non-convex landscapes, such as those found in deep learning. Variance reduction often traps models in "sharp" local minima that generalize poorly. The randomness in L2S's snapshot schedule acts as a form of controlled exploration, allowing the algorithm to escape these sharp valleys and find "flat" minima, which are associated with better generalization on unseen data.

Comparison of flat and sharp minima in the loss landscape $F(x)$.

Theoretical and Empirical Results

The authors demonstrate that L2S achieves optimal convergence rates across several problem classes:

  • Strongly Convex: $\mathcal{O}((n + \kappa) \ln(1/\epsilon))$ operations.
  • Convex: $\mathcal{O}(n + n/\epsilon)$ operations using a fast, $n$-independent step size.
  • Non-convex: $\mathcal{O}(n + \sqrt{n}/\epsilon)$ operations, nearly matching theoretical lower bounds for non-convex ERM.

Empirically, L2S matches or exceeds the performance of state-of-the-art optimizers on benchmark datasets like MNIST and various LIBSVM tasks. Notably, in neural network training, L2S exhibits behavior indicative of escaping poor local minima to achieve superior test accuracy, bridging the performance gap between SGD and variance-reduced methods.

Conclusion

L2S provides a robust, theoretically sound, and practically efficient alternative to traditional SARAH. By replacing rigid loops with a randomized schedule, it bridges the gap between fast convergence and strong generalization. Future work remains to extend these recursive gradient estimators to the purely stochastic (infinite-stream) setting, where data points cannot be revisited.

Summary updated

BibTeX
@inproceedings{li2020convergence,
  author = {Bingcong Li and Meng Ma and Georgios B. Giannakis},
  title = {{On the Convergence of SARAH and Beyond}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=o5MbaGaBxg},
}
Figure