SAGA with Arbitrary Sampling

Xun Qian, Zheng Qu, Peter Richtárik

TL;DR

This paper introduces SAGA-AS, a generalized version of the SAGA optimization algorithm that can handle arbitrary data sampling strategies, including minibatching and importance sampling. This advancement offers theoretical guarantees for faster convergence in training large-scale machine learning models, particularly in scenarios where data is not uniformly distributed.

What Problem Does This Paper Address?

Training modern machine learning models often involves minimizing a sum of a vast number of individual loss functions (e.g., for each data point in a large dataset). Algorithms like Stochastic Gradient Descent (SGD) and its variants are crucial for this, but many existing methods rely on specific sampling schemes (how data points are chosen for updates) that limit their flexibility. The SAGA algorithm is a powerful variance-reduced method for this "finite-sum" optimization problem, but a version that works with any sampling strategy (arbitrary sampling) has been missing. This lack of generality hinders its application in scenarios with non-uniform data distributions or when leveraging advanced sampling techniques for efficiency. This paper aims to fill this gap by proposing and analyzing SAGA-AS, a SAGA variant that embraces arbitrary sampling.

Methods

The core contribution is the development and theoretical analysis of SAGA-AS (SAGA with Arbitrary Sampling). The authors introduce novel stochastic Lyapunov functions to analyze the algorithm's convergence. Key methodological advancements include:

  • Arbitrary Sampling Paradigm: Generalizing existing SAGA analyses to accommodate any "proper" sampling strategy, where each data point has a non-zero probability of being selected.
  • Bias-Correcting Random Vector (BCRV): A new concept to handle the unbiasedness requirement for the gradient estimator in SAGA-AS, which is crucial for theoretical analysis.
  • Iteration Complexity Analysis: Deriving theoretical bounds on the number of steps required for SAGA-AS to converge, both in the smooth and non-smooth (but convex) settings. This includes rates for strongly convex objectives and under a quadratic functional growth condition (a weaker assumption than strong convexity).
  • Comparison with Quartz: The proposed algorithm's rates are shown to match those of the primal-dual method Quartz, which already supports arbitrary sampling, suggesting SAGA-AS is a competitive alternative.

Datasets

The paper uses standard datasets for evaluating optimization algorithms:

  • ijcnn1
  • w8a
  • a9a

These are common benchmarks for logistic regression problems, used to test the performance of SAGA-AS against other methods.

Key Insights and Ideas

  • Unified Framework for SAGA: The paper provides a single, flexible framework for SAGA that can handle a wide range of sampling strategies, unifying previous specialized analyses.
  • Arbitrary Sampling is Powerful: The theoretical results demonstrate that SAGA can achieve optimal convergence rates even with arbitrary sampling, not just carefully designed importance sampling schemes.
  • New Analytical Tools: The development of novel stochastic Lyapunov functions was essential for analyzing the algorithm's behavior under arbitrary sampling, pushing the boundaries of optimization theory.
  • Bridging the Gap: SAGA-AS achieves convergence rates comparable to existing arbitrary sampling methods like Quartz, but without requiring the strong convexity of the regularizer (which Quartz often needs). This makes SAGA-AS more broadly applicable.
  • Practical Implications: The ability to handle arbitrary sampling means SAGA-AS can be more efficient in practice, especially when data distributions are skewed or when using minibatching strategies that don't perfectly balance gradients.

Key Results

  • Linear Convergence Rates: SAGA-AS is shown to achieve linear convergence rates in both the smooth and strongly convex regime, and under a quadratic functional growth condition.
  • Matching State-of-the-Art: The derived iteration complexity bounds match those of the primal-dual method Quartz, which is known for its arbitrary sampling analysis.
  • Efficiency with Minibatches: Experiments show that increasing minibatch size (τ) with SAGA-AS leads to only a modest increase in epochs, indicating significant speedup potential with parallel computation.
  • Importance Sampling Benefits: For some datasets, importance sampling with SAGA-AS provides a notable speedup compared to uniform sampling, sometimes even outperforming serial uniform sampling.
  • Competitive with Coordinate Descent: In unregularized settings, SAGA-AS exhibits linear convergence without needing to know the strong convexity parameter, making it competitive with deterministic methods like Coordinate Descent, especially when the number of data points (n) is much larger than the dimensionality (d).

Limitations and Future Work

  • Parameter Tuning: While SAGA-AS offers theoretical advantages, practical performance can still depend on tuning parameters like the step size and the choice of the bias-correcting random vector.
  • Non-Strongly Convex Regularizers: The analysis for non-strongly convex regularizers relies on a quadratic functional growth condition, which is a specific type of convexity. Extending the analysis to more general non-convex settings could be a future direction.
  • Adaptive Strategies: The paper mentions that adaptive strategies for SVRG exist to avoid guessing constants. Developing similar adaptive strategies for SAGA-AS could further enhance its practical usability.
  • Exploiting Data Sparsity: The paper hints at how SAGA-AS can leverage data sparsity, particularly in composite optimization settings, which could be explored further.

Summary updated

BibTeX
@inproceedings{qian2019saga,
  author = {Xun Qian and Zheng Qu and Peter Richtárik},
  title = {{SAGA with Arbitrary Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HJNsKiZd-H},
}
Figure