Skip to main content
QUICK REVIEW

[Paper Review] Fast Variance Reduction Method with Stochastic Batch Size

Xuanqing Liu, Cho‐Jui Hsieh|arXiv (Cornell University)|Aug 7, 2018
Stochastic Gradient Optimization TechniquesComputer Science6 citations
TL;DR

This paper proposes SAGA++, a variance reduction algorithm that dynamically optimizes batch size to minimize running time by accounting for memory hierarchy and I/O costs. Unlike standard SAGA, which minimizes data accesses, SAGA++ achieves faster convergence in practice by favoring sequential over random memory access, outperforming SAGA, SVRG, and LIBLINEAR on real datasets through adaptive batch size selection and frequent control variate updates.

ABSTRACT

In this paper we study a family of variance reduction methods with randomized batch size---at each step, the algorithm first randomly chooses the batch size and then selects a batch of samples to conduct a variance-reduced stochastic update. We give the linear convergence rate for this framework for composite functions, and show that the optimal strategy to achieve the optimal convergence rate per data access is to always choose batch size of 1, which is equivalent to the SAGA algorithm. However, due to the presence of cache/disk IO effect in computer architecture, the number of data access cannot reflect the running time because of 1) random memory access is much slower than sequential access, 2) when data is too big to fit into memory, disk seeking takes even longer time. After taking these into account, choosing batch size of $1$ is no longer optimal, so we propose a new algorithm called SAGA++ and show how to calculate the optimal average batch size theoretically. Our algorithm outperforms SAGA and other existing batched and stochastic solvers on real datasets. In addition, we also conduct a precise analysis to compare different update rules for variance reduction methods, showing that SAGA++ converges faster than SVRG in theory.

Motivation & Objective

  • To analyze the impact of stochastic batch size on variance reduction convergence rates in finite-sum optimization.
  • To identify the optimal batch size strategy when considering real-world computational costs like cache and disk I/O.
  • To develop a practical algorithm that outperforms existing solvers by balancing convergence speed and hardware-aware efficiency.
  • To theoretically and empirically compare SAGA++, SVRG, and SAGA under realistic memory access constraints.
  • To demonstrate that frequent control variate updates and sequential access patterns yield faster running times than minimal data access.

Proposed method

  • The algorithm uses a unified framework for variance reduction with randomized batch sizes, where at each step the batch size is stochastically selected before gradient computation.
  • It proves linear convergence for composite, strongly convex problems with any batch size distribution, showing that batch size 1 (SAGA) minimizes data access count.
  • The method incorporates hardware-aware cost modeling to account for sequential vs. random memory access and disk I/O overhead.
  • SAGA++ dynamically computes the optimal average batch size to minimize running time, not just data access count.
  • It implements lazy updates for ℓ₁-regularized problems to accelerate convergence, improving efficiency over standard SAGA and SVRG.
  • The algorithm combines the benefits of SVRG’s sequential access with SAGA’s frequent control variate updates, reducing gradient variance.

Experimental results

Research questions

  • RQ1Does increasing batch size improve convergence speed in variance reduction methods when considering real hardware I/O costs?
  • RQ2What is the optimal batch size strategy that minimizes running time rather than data access count?
  • RQ3How does the choice of update rule (e.g., SAGA vs. SVRG) affect convergence speed under memory access constraints?
  • RQ4Can a hybrid approach combining sequential access and frequent control variate updates outperform existing methods?
  • RQ5How does the presence of cache and disk I/O effects invalidate the theoretical advantage of SAGA in practice?

Key findings

  • SAGA++ outperforms SAGA, SVRG, and LIBLINEAR in running time across all tested datasets, including kddb, avazu, and criteo.
  • Although SAGA minimizes data access count by using batch size 1, it is not optimal in practice due to random memory access overhead.
  • The optimal average batch size for SAGA++ is derived theoretically to minimize running time, accounting for sequential access speed and I/O costs.
  • SAGA++ achieves faster convergence than SVRG in theory due to more frequent control variate updates, which reduce gradient variance.
  • The lazy update technique significantly accelerates ℓ₁-regularized solvers, enabling SAGA++ to surpass even proximal Newton methods in LIBLINEAR.
  • On the kddb dataset, SAGA++ consistently outperforms competitors across different regularization parameters, demonstrating robustness and efficiency.

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.