Skip to main content
QUICK REVIEW

[Paper Review] Don't Jump Through Hoops and Remove Those Loops: SVRG and Katyusha are Better Without the Outer Loop

Dmitry Kovalev, Samuel Horváth|arXiv (Cornell University)|Jan 24, 2019
Stochastic Gradient Optimization TechniquesComputer Science28 references11 citations
TL;DR

This paper proposes loopless variants of SVRG and Katyusha by replacing the outer loop with a stochastic coin flip that triggers full gradient computation with small probability. The new methods achieve the same theoretical convergence rates as their original counterparts without requiring knowledge of the condition number, and numerical experiments show superior and more robust practical performance.

ABSTRACT

The stochastic variance-reduced gradient method (SVRG) and its accelerated variant (Katyusha) have attracted enormous attention in the machine learning community in the last few years due to their superior theoretical properties and empirical behaviour on training supervised machine learning models via the empirical risk minimization paradigm. A key structural element in both of these methods is the inclusion of an outer loop at the beginning of which a full pass over the training data is made in order to compute the exact gradient, which is then used to construct a variance-reduced estimator of the gradient. In this work we design {\em loopless variants} of both of these methods. In particular, we remove the outer loop and replace its function by a coin flip performed in each iteration designed to trigger, with a small probability, the computation of the gradient. We prove that the new methods enjoy the same superior theoretical convergence properties as the original methods. However, we demonstrate through numerical experiments that our methods have substantially superior practical behavior.

Motivation & Objective

  • To eliminate the outer loop in SVRG and Katyusha, which traditionally requires full gradient computation at each iteration.
  • To design a stochastic mechanism—using a coin flip with small probability p—to trigger full gradient computation, replacing the deterministic outer loop.
  • To prove that the loopless variants maintain the same theoretical convergence rates as the original methods, even without prior knowledge of the condition number.
  • To demonstrate through experiments that the loopless methods are more robust and faster in practice than their loopy counterparts.
  • To provide a theoretical foundation for the optimal choice of the coin flip probability p, showing that p = 1/n yields the best rate without requiring condition number estimation.

Proposed method

  • Replace the deterministic outer loop of SVRG and Katyusha with a stochastic mechanism: in each iteration, with probability p, compute the full gradient and use it to construct a variance-reduced estimator.
  • Use the same variance-reduction mechanism as in original SVRG: g^k = ∇f_i(x^k) - ∇f_i(w^k) + ∇f(w^k), ensuring unbiasedness and decreasing variance over time.
  • Introduce a coin flip with probability p to trigger the full gradient computation, where p is chosen from the interval [1/n, μ/L] for well-conditioned problems.
  • Prove that the loopless SVRG achieves the same O((n + L/μ) log(1/ε)) iteration complexity as standard SVRG, with optimal performance when p = 1/n.
  • Extend the loopless design to Katyusha using negative momentum and show that the accelerated rate O((n + √(nL/μ)) log(1/ε)) is preserved.
  • Analyze the expected number of full gradient evaluations per iteration as O(1 + pn), and show that choosing p = Θ(1/n) leads to optimal total complexity.

Experimental results

Research questions

  • RQ1Can the outer loop in SVRG and Katyusha be removed without sacrificing convergence rate or robustness?
  • RQ2Does a stochastic mechanism—using a coin flip to trigger full gradient computation—achieve the same theoretical convergence as the original double-loop structure?
  • RQ3Can the loopless variants converge with the same rate as SVRG and Katyusha without requiring prior knowledge of the condition number?
  • RQ4How does the choice of the coin flip probability p affect the practical performance of the loopless methods?
  • RQ5Are the loopless variants more robust and faster in practice compared to their loopy counterparts across diverse datasets and regularization settings?

Key findings

  • The loopless SVRG achieves the same O((n + L/μ) log(1/ε)) iteration complexity as standard SVRG, even without knowing the condition number μ/L.
  • For loopless SVRG, the optimal rate is achieved when the coin flip probability is set to p = 1/n, which is the first such result without requiring condition number estimation.
  • The loopless Katyusha maintains the accelerated rate O((n + √(nL/μ)) log(1/ε)), matching the theoretical performance of the original method.
  • Numerical experiments show that L-SVRG consistently outperforms standard SVRG across multiple datasets, with speedups of several orders of magnitude in some cases.
  • L-Katyusha performs at least as well as standard Katyusha and is significantly faster in certain regimes, demonstrating robustness to the choice of p.
  • The loopless methods are more robust to hyperparameter choice: even the worst-performing loopless variant outperforms the best-performing loopy variant.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.