Skip to main content
QUICK REVIEW

[Paper Review] mS2GD: Mini-Batch Semi-Stochastic Gradient Descent in the Proximal Setting

Jakub Konečný, Jie Liu|arXiv (Cornell University)|Oct 17, 2014
Stochastic Gradient Optimization TechniquesComputer Science4 citations
TL;DR

This paper proposes mS2GD, a mini-batch variant of semi-stochastic gradient descent for minimizing strongly convex composite functions, combining variance reduction with mini-batching to achieve faster convergence. It proves that mini-batching enables more than linear speedup in gradient evaluations for a given accuracy, while also supporting efficient parallelization.

ABSTRACT

We propose a mini-batching scheme for improving the theoretical complexity and practical performance of semi-stochastic gradient descent applied to the problem of minimizing a strongly convex composite function represented as the sum of an average of a large number of smooth convex functions, and simple nonsmooth convex function. Our method first performs a deterministic step (computation of the gradient of the objective function at the starting point), followed by a large number of stochastic steps. The process is repeated a few times with the last iterate becoming the new starting point. The novelty of our method is in introduction of mini-batching into the computation of stochastic steps. In each step, instead of choosing a single function, we sample $b$ functions, compute their gradients, and compute the direction based on this. We analyze the complexity of the method and show that the method benefits from two speedup effects. First, we prove that as long as $b$ is below a certain threshold, we can reach predefined accuracy with less overall work than without mini-batching. Second, our mini-batching scheme admits a simple parallel implementation, and hence is suitable for further acceleration by parallelization.

Motivation & Objective

  • To develop a mini-batch extension of the S2GD algorithm that reduces gradient evaluation cost in large-scale optimization.
  • To analyze the theoretical complexity of mini-batched semi-stochastic gradient descent in the proximal setting.
  • To demonstrate that mini-batching provides a speedup beyond linear scaling in gradient evaluations for achieving a target accuracy.
  • To enable efficient parallel implementation by designing a mini-batch scheme compatible with high-performance computing.

Proposed method

  • The method performs a deterministic gradient computation at the initial point, followed by multiple stochastic steps using mini-batches of size $b$.
  • At each iteration, $b$ functions are sampled, their gradients computed, and a variance-reduced stochastic gradient is formed using a reference point from a previous iteration.
  • The algorithm uses a proximal update rule: $ y_{k+1} = \operatorname{prox}_{hR}(y_k - h v_k) $, where $ v_k $ is the mini-batch variance-reduced gradient estimate.
  • The stepsize $ h $ and inner loop length $ m $ are optimized to minimize total work while ensuring linear convergence.
  • The method introduces a novel mini-batch variance reduction term $ \alpha(b) = \frac{n-b}{b(n-1)} $, which controls the bias correction in the gradient estimate.
  • The algorithm is designed to be naturally parallelizable, as each gradient in the mini-batch can be computed independently.

Experimental results

Research questions

  • RQ1Can mini-batching be effectively combined with variance-reduced stochastic gradient methods in the proximal setting to reduce total work?
  • RQ2Does mini-batching provide more than linear speedup in gradient evaluations for achieving a given accuracy?
  • RQ3Can the mini-batch variant be efficiently parallelized without sacrificing convergence guarantees?
  • RQ4How does the optimal stepsize and inner loop length depend on the mini-batch size $ b $?

Key findings

  • The method achieves more than linear speedup in gradient evaluations for a fixed accuracy, as long as the mini-batch size $ b $ is below a certain threshold.
  • Theoretical analysis shows that the convergence rate $ \rho $ decreases with increasing $ b $, and $ m_*^b $ (optimal inner loop size) decreases faster than $ 1/b $, indicating reduced work.
  • For $ b=1 $, the convergence rate recovers the known rate of Prox-SVRG, validating the method's consistency with prior work.
  • The optimal stepsize $ h_*^b $ is derived as $ \tilde{h}^b = \sqrt{\left(\frac{1+\rho}{\rho\mu}\right)^2 + \frac{1}{4\mu\alpha(b)L}} - \frac{1+\rho}{\rho\mu} $, with a threshold condition $ \tilde{h}^b \leq \frac{1}{L} $.
  • Experiments on RCV1 show that mS2GD with $ b=8 $ achieves the same accuracy as S2GD with fewer gradient evaluations, approaching the ideal speedup of $ b $-fold reduction.
  • The method enables practical parallelization, with theoretical and empirical evidence of reduced clock time in HPC environments.

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.