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

One Method to Rule Them All: Variance Reduction for Data, Parameters and Many New Methods

Filip Hanzely, Peter RichtárikarXiv 2019

TL;DR

This paper introduces a single, unified algorithmic framework called Generalized Jacobian Sketching (GJS) that elegantly unifies a wide array of existing variance-reduced stochastic optimization methods (like SAGA, LSVRG, SEGA) and introduces many new ones. The key innovation is a flexible sketching mechanism that allows for a single theoretical analysis to cover diverse optimization scenarios, from large datasets to high-dimensional models.

What Problem Does This Paper Address?

The paper tackles the challenge of efficiently solving large-scale regularized empirical risk minimization (ERM) problems. These problems are ubiquitous in machine learning and arise when we want to minimize a sum of loss functions over a dataset, plus a regularization term to prevent overfitting. The core difficulty lies in the sheer scale: either the number of data points ($n$) is massive ("big data"), or the number of parameters ($d$) is huge ("big model"), or both.

Traditional methods like gradient descent become computationally prohibitive in these scenarios. Stochastic gradient descent (SGD) methods offer a way out by approximating the full gradient using only a subset of data or parameters. However, standard SGD suffers from variance in its gradient estimates, which can lead to slow convergence or even prevent convergence to the true optimum, especially when dealing with non-strongly convex objectives or when the noise in the gradient estimates doesn't vanish.

While many specialized variance-reduced methods have been developed to address this, they often rely on different intuitions and require separate theoretical analyses. This fragmentation makes it hard to understand their relationships and to systematically develop new, improved algorithms. The paper aims to bridge this gap by providing a single, unifying framework that encompasses many existing methods and offers a clear path to new ones.

Methods

The paper's central contribution is the Generalized Jacobian Sketching (GJS) algorithm. GJS is a meta-algorithm designed to unify various variance-reduced stochastic optimization techniques. The core idea is to maintain an estimate of the full gradient (or its Jacobian) and iteratively update this estimate using "sketches" of the true gradient.

Here's a breakdown of the key components:

  • Jacobian Sketching: The algorithm works with the Jacobian matrix $G(x) = [\nabla f_1(x), \dots, \nabla f_n(x)]$, where $f_j$ are the individual loss functions. Instead of computing the full gradient $\nabla f(x) = \frac{1}{n} G(x)e$, GJS uses random linear operators (sketches) to approximate parts of the Jacobian or gradient.
  • Iterative Jacobian Update: GJS maintains an estimate of the Jacobian, $J_k$, which is updated in each iteration. This update involves a "sketch" of the current Jacobian $G(x_k)$ and a projection step. The goal is for $J_k$ to converge to the true Jacobian $G(x^*)$ at the optimum.
  • Gradient Estimator: A novel gradient estimator $g_k$ is constructed using the current iterate $x_k$, the estimated Jacobian $J_k$, and an unbiased sketching operator $U$. This estimator is designed to have reduced variance compared to standard SGD.
  • Unified Framework: The GJS algorithm is parameterized by choices of sketching operators $S$ and $U$. By selecting different types of sketches (e.g., right sketches, left sketches, Bernoulli sampling), GJS can recover many existing algorithms like SAGA, LSVRG, SEGA, and JacSketch, as well as generate new ones.
  • Single Convergence Theorem: A significant theoretical contribution is a single theorem that establishes linear convergence for GJS under standard assumptions (smoothness and quasi strong convexity). This theorem provides a unified analysis for all special cases of GJS, recovering or improving upon the best-known rates for existing methods.

The paper also explores extensions to strong growth conditions, providing a more general convergence guarantee.

Datasets

The paper uses standard datasets for evaluation, specifically from the LibSVM library [2]. The experiments in Section 7 and Appendix D utilize datasets such as:

  • a9a
  • w8a
  • wla
  • gisette_scale
  • madelon
  • phishing
  • mushrooms

These are common benchmarks for logistic regression problems in machine learning. No new datasets or benchmarks were introduced in this paper.

Key Insights and Ideas

  • Unification is Powerful: The most striking insight is that a wide variety of seemingly disparate variance-reduced optimization algorithms can be unified under a single algorithmic framework (GJS). This suggests a deeper underlying structure and simplifies the landscape of stochastic optimization.
  • Jacobian Sketching as a General Tool: The paper demonstrates that sketching the Jacobian matrix, rather than just the gradient, is a flexible and powerful technique for constructing variance-reduced estimators. This approach allows for more sophisticated gradient approximations.
  • Single Theory for Many Algorithms: The ability to provide a single theoretical analysis that covers numerous algorithms is a major achievement. This unified theory simplifies understanding and allows for direct comparison of rates and properties.
  • New Algorithms Emerge Naturally: By exploring different choices of sketching operators within the GJS framework, the authors systematically derive many novel algorithms with potentially interesting properties, expanding the toolkit for optimization practitioners.
  • Variance Reduction is Key for Convergence: The paper reinforces the critical role of variance reduction techniques in achieving convergence guarantees for stochastic optimization, especially in scenarios where standard SGD might fail.

Key Results

  • Unified Framework: The paper introduces the Generalized Jacobian Sketching (GJS) algorithm, a single method that unifies many existing variance-reduced stochastic optimization algorithms (SAGA, LSVRG, SEGA, JacSketch, ISEGA) and generates new ones.
  • Linear Convergence Guarantee: A single theorem establishes linear convergence for GJS under standard smoothness and quasi strong convexity assumptions. This theorem recovers or improves upon the best-known convergence rates for many existing methods.
  • New Algorithms: The paper proposes and analyzes 10 new specific algorithms derived from the GJS framework, some with intriguing properties.
  • Experimental Validation: Numerical experiments on LibSVM datasets demonstrate the effectiveness of GJS variants, showing that importance sampling strategies often outperform uniform sampling and that LSVRG can be superior to SAGA in certain settings. For example, Figure 2 shows that SEGA-IS and SVRCD-IS generally outperform SEGA and PGD. Figure 5 and 6 show LSVRG with importance sampling being faster than SAGA.

Limitations and Future Work

  • Focus on Linear Convergence: The primary theoretical result focuses on linear convergence rates under strong convexity or strong growth conditions. The paper does not consider non-convex settings, where different theoretical tools and algorithms are typically required.
  • Fixed Stepsize Assumption: The analysis is primarily for methods with a fixed stepsize. While this simplifies the theory, adaptive stepsize strategies are often crucial for practical performance.
  • No New Benchmarks: The paper uses existing LibSVM datasets for evaluation, and does not introduce new benchmarks.
  • Future Work: The authors suggest that their framework can be extended to handle more general settings, such as non-convex optimization, and to develop more sophisticated adaptive stepsize strategies. The paper also hints at further exploration of the newly proposed algorithms and their specific properties.

Summary updated

BibTeX
@misc{hanzely2019one,
  author = {Filip Hanzely and Peter Richtárik},
  title = {{One Method to Rule Them All: Variance Reduction for Data, Parameters and Many New Methods}},
  year = {2019},
  eprint = {1905.11266},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.11266},
}
Figure