NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inexact SARAH algorithm for stochastic optimization

Lam M. Nguyen, Katya Scheinberg, Martin TakácOptim. Methods Softw 2018

TL;DR

This paper introduces iSARAH, a new algorithm for stochastic optimization that avoids computing exact gradients, making it applicable to a broader range of problems. iSARAH achieves state-of-the-art convergence rates, particularly for non-strongly convex functions, by cleverly using mini-batch stochastic gradients to approximate the exact gradient needed in prior methods.

What Problem Does This Paper Address?

Many machine learning and optimization problems involve minimizing an objective function that is an expectation over a large or infinite number of data points (e.g., expected risk minimization). Traditional optimization methods often require computing the exact gradient of this objective function, which can be computationally prohibitive. Variance reduction techniques like SVRG and SARAH have been developed to address this by using stochastic gradients and reducing their variance. However, these methods still typically require an exact gradient computation at the start of each "outer loop" of the algorithm. This limits their applicability to problems where computing such an exact gradient is feasible, such as finite sum problems. This paper tackles the challenge of developing a variance-reduced stochastic optimization algorithm that doesn't require exact gradient computations at all, making it suitable for general expectation minimization problems.

Methods

The core contribution is the Inexact SARAH (iSARAH) algorithm. Unlike the original SARAH, which computes an exact gradient on each outer iteration, iSARAH replaces this step with a stochastic gradient computed on a mini-batch of data. The size of this mini-batch is crucial and is carefully chosen to ensure sufficient accuracy.

iSARAH combines two key ideas:

  1. Variance Reduction: Similar to SARAH, it uses a recursive update for the stochastic gradient estimate within an inner loop.
  2. Stochastic Gradient Approximation: Instead of an exact gradient, it uses a mini-batch stochastic gradient in the outer loop.

The paper analyzes iSARAH in both one-loop and multiple-loop settings, considering strongly convex and non-strongly convex objective functions. The analysis focuses on deriving convergence rates based on the number of stochastic gradient evaluations needed to reach a desired accuracy level.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithm development, not empirical evaluation on specific datasets.

Key Insights and Ideas

  • Eliminating Exact Gradients: The most significant insight is that by using a sufficiently large mini-batch for the outer loop gradient approximation, iSARAH can recover the convergence guarantees of SARAH without ever needing an exact gradient. This broadens the applicability of powerful variance-reduction techniques.
  • Sample Size Selection is Key: The analysis highlights that the effectiveness of iSARAH hinges on selecting an appropriate mini-batch size. This size is tailored to the problem's convexity properties (strongly convex vs. non-strongly convex) to ensure the stochastic gradient approximation is accurate enough.
  • State-of-the-Art Complexity: For non-strongly convex problems, iSARAH, under a reasonable additional assumption, achieves the best known sample complexity among stochastic methods that don't rely on exact gradient computations. This is a significant theoretical advancement.
  • One-Loop Convergence: The paper shows that even a one-loop version of iSARAH (where the inner loop runs for many iterations without additional outer loops) can achieve convergence, similar to stochastic gradient methods with momentum.

Key Results

The paper provides theoretical convergence guarantees for iSARAH under various assumptions:

  • Strongly Convex Case: iSARAH achieves convergence rates that are competitive with existing methods like SCSG, and in some cases, offer better dependence on the condition number (κ).
  • Non-Strongly Convex Case:
    • One-loop iSARAH: Achieves convergence rates comparable to general stochastic gradient methods.
  • Multiple-loop iSARAH: Under a mild assumption (Assumption 5, a relaxation of the Polyak-Łojasiewicz condition), iSARAH achieves the best known sample complexity of $O(1/\epsilon^2)$ for non-strongly convex problems. This is a significant theoretical achievement.

The complexity bounds are expressed in terms of the desired accuracy $\epsilon$, the smoothness parameter $L$, the condition number $\kappa$, and the variance of the gradient at the optimum $\sigma^2$.

Limitations and Future Work

  • Assumption 5: The best complexity results for the non-strongly convex case rely on Assumption 5, which states that $F(w_k) - F(w^*) < M\| \nabla F(\tilde{w}_k) \|^2 + N$ for outer iterations $\tilde{w}_k$. While argued to be reasonable and weaker than existing conditions, it's still an assumption that might not hold universally.
  • Theoretical Focus: The paper is primarily theoretical, focusing on convergence analysis and complexity bounds. Empirical validation on a wider range of problems and comparisons with other state-of-the-art methods would be valuable.
  • Practical Implementation: While the theory is strong, practical considerations like choosing the optimal mini-batch size and learning rate in real-world scenarios might require further investigation.

The authors suggest that iSARAH's ability to achieve optimal complexity without exact gradient computations makes it a promising direction for future research in large-scale optimization.

Summary updated

BibTeX
@inproceedings{nguyen2018inexact,
  author = {Lam M. Nguyen and Katya Scheinberg and Martin Takác},
  title = {{Inexact SARAH algorithm for stochastic optimization}},
  booktitle = {Optim. Methods Softw},
  year = {2018},
  url = {https://openreview.net/forum?id=HnFhggDX1vG},
}
Figure