Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mini-batch SVRG Optimization

Updated 7 May 2026
  • Mini-batch SVRG is an optimization algorithm that enhances standard SVRG by integrating mini-batch sampling for controlled variance and efficient, parallel computation.
  • It achieves improved convergence rates and reduced oracle complexity across strongly convex, nonconvex, and reinforcement learning scenarios.
  • Adaptive batch scheduling and accelerated variants further optimize performance by balancing computational cost with sample efficiency in practical implementations.

Mini-batch SVRG (Stochastic Variance Reduced Gradient) encompasses a family of algorithms that combine the variance reduction framework of SVRG with the efficiency and parallelism of mini-batch sampling. The central goal is to solve empirical risk minimization and related finite-sum optimization problems more efficiently by leveraging computational parallelism and reducing oracle complexity through systematic variance control in gradient estimates. This approach is foundational in modern large-scale machine learning for strongly convex, non-strongly convex, nonconvex, and even reinforcement learning scenarios.

1. Algorithmic Framework and Update Structure

In the standard SVRG framework, one considers minimization of the finite-sum objective

minxRdf(x)=1ni=1nfi(x)\min_{x\in\mathbb{R}^d} f(x) = \frac{1}{n} \sum_{i=1}^n f_i(x)

where each fif_i is LL-smooth (and possibly convex or nonconvex).

Canonical Mini-batch SVRG Update

At the start of each epoch, a reference point x~\tilde{x} is chosen, and the full gradient μ=f(x~)\mu = \nabla f(\tilde{x}) is computed (or approximated with a large batch). In the inner loop, for each step:

  • Sample a mini-batch BB of size bb.
  • Compute the variance-reduced gradient:

vt=1biB[fi(xt)fi(x~)]+μv_t = \frac{1}{b} \sum_{i \in B} \left[ \nabla f_i(x_t) - \nabla f_i(\tilde{x}) \right] + \mu

  • Take a step: xt+1=xtηvtx_{t+1} = x_t - \eta v_t.

This structure supports generalizations, including arbitrary mini-batch sampling laws and data-dependent batch size schedules (Konečný et al., 2015, Ji et al., 2019, Sebbouh et al., 2019).

2. Theoretical Guarantees and Complexity

Strongly Convex Case

Let ff be fif_i0-strongly convex. The mini-batch SVRG maintains linear convergence: fif_i1 where the contraction fif_i2 is a function of step size, inner batch size fif_i3, smoothness, and strong convexity parameters (Konečný et al., 2014, Konečný et al., 2015, Sebbouh et al., 2019). The optimal oracle complexity is

fif_i4

with mini-batch variance decremented by fif_i5.

Nonconvex and Proximal Settings

For nonconvex objectives with fif_i6-smoothness and bounded gradient variance,

fif_i7

for fif_i8 inner steps, and adaptive batch scheduling ensures worst-case complexity matches optimal SVRG rates, while often reducing total sample usage in practice (Ji et al., 2019).

In composite objectives (fif_i9), mini-batch SVRG is naturally extended to proximal variants, with provable guarantees under simple assumptions on the proximal map of LL0 (Konečný et al., 2014, Konečný et al., 2015).

Accelerated Mini-batch SVRG

Accelerated methods (e.g., AMSVRG, ASVRG, Katyusha) combine mini-batch SVRG with Nesterov-style acceleration:

Summary Table

Variant Strongly Convex Complexity Non-Strongly Convex Complexity
SVRG LL3
Mini-batch SVRG LL4
Accelerated mini-batch LL5 LL6

All asymptotic rates are realized for batch sizes up to a problem-dependent threshold; above this, gains plateau or reverse due to increased per-iteration work (Shang et al., 2018, Konečný et al., 2014).

3. Mini-batch Strategies and Adaptive Scheduling

Static and Dynamic Batch Schedules

Mini-batches can be used:

Hybrid approaches and fixed+random strategies have also been analyzed. Growing batch schedules (e.g., doubling per epoch) minimize early-epoch cost without degrading asymptotic rate (Babanezhad et al., 2015).

History-Driven Adaptive Batch Sizing (AbaSVRG)

AbaSVRG proposes automatic adaptation of the reference gradient batch size, leveraging

LL7

where LL8 is the averaged squared inner gradient norm in the previous epoch. This delivers substantial reductions in the total number of samples needed during early, high-variance epochs (Ji et al., 2019).

Parallelization

Mini-batch SVRG admits parallel implementation, as each gradient evaluation in the batch is independent. For LL9, the wall-clock speedup is nearly linear in x~\tilde{x}0 (Konečný et al., 2014, Konečný et al., 2015).

4. Parameter Selection and Mini-batch Trade-offs

  • Step Size: The allowable step size x~\tilde{x}1 scales inversely with an effective smoothness constant that depends on the mini-batch law.
  • Inner-loop Length: Optimal epoch length scales with x~\tilde{x}2 or the maximal data smoothness and is frequently set to x~\tilde{x}3 or x~\tilde{x}4 (Sebbouh et al., 2019).
  • Optimal mini-batch size: Derivable from explicit formulas; for large x~\tilde{x}5 relative to condition number x~\tilde{x}6, no mini-batching is optimal; otherwise, moderate mini-batching yields minimal total oracle calls (Sebbouh et al., 2019).
  • Thresholds: Empirical and theoretical work identifies a batch-size threshold (e.g., x~\tilde{x}7) beyond which further batch increases do not reduce total work (Konečný et al., 2014, Konečný et al., 2015).

5. Practical Implementations and Empirical Performance

  • Generalization: In deep learning, mini-batch SVRG and its variants can achieve competitive or superior generalization to SGD when coupled with batch-size schedules and learning rate decay. Specifically, BP-SVRG (with a sign switch in the control variate) attains flatter minima and smaller train-test loss gaps (Jin et al., 2019).
  • Empirical Speedup: Experimental results across logistic regression, SVMs, deep nets, and reinforcement learning show 2–5x speedups over fixed-batch SVRG in favorable regimes, especially when adaptive schemes like AbaSVRG are used (Ji et al., 2019, Konečný et al., 2015, Babanezhad et al., 2015).
  • Data-parallelism: With parallel hardware (e.g., multi-core CPUs/GPUs), per-iteration wall-clock time scales down essentially as x~\tilde{x}8 up to the threshold, enabling near-ideal utilization for moderate batch sizes (Konečný et al., 2014, Konečný et al., 2015).

6. Extensions, Accelerations, and Open Directions

  • Accelerated Proximal Mini-batch SVRG: Methods such as ASVRG and Katyusha extend mini-batch SVRG with acceleration and support for non-smooth regularizers and arbitrary sampling probabilities, attaining state-of-the-art theoretical rates (Shang et al., 2018, Nitanda, 2015).
  • Nonconvex and Reinforcement Learning: Adaptive mini-batch SVRG (e.g., AbaSVRG, AbaSPIDER) achieves optimal theoretical complexity for nonconvex objectives, with provable sample complexity and verified gains in reinforcement learning tasks (Ji et al., 2019).
  • Mini-batch SVRG in the Presence of Heterogeneous Data: Importance sampling and fixed+random mini-batch strategies target scenarios with high variability in data smoothness, allowing the focus on high-x~\tilde{x}9 components for efficiency (Babanezhad et al., 2015, Sebbouh et al., 2019).

7. Comparative Summary and Recommendations

  • Mini-batch SVRG interpolates between pure SVRG (μ=f(x~)\mu = \nabla f(\tilde{x})0) and batch gradient descent (μ=f(x~)\mu = \nabla f(\tilde{x})1), offering smooth adjustment of sample complexity and parallel resource utilization.
  • Adaptive and history-driven batch schedules (AbaSVRG) further reduce computation in high-variance phases and match worst-case bounds in later epochs (Ji et al., 2019).
  • In practical implementations, moderate mini-batch sizes (often μ=f(x~)\mu = \nabla f(\tilde{x})2 to μ=f(x~)\mu = \nabla f(\tilde{x})3 or up to μ=f(x~)\mu = \nabla f(\tilde{x})4) optimize sample and wall-clock efficiency, especially when aligned with available parallel hardware (Konečný et al., 2014, Konečný et al., 2015).
  • Empirical tuning using closed-form optimal minibatch and inner loop formulas derived in SVRG mini-batch theory correlates with experimentally observed best performance (Sebbouh et al., 2019).
  • Modern implementations should couple mini-batch SVRG with adaptable learning rate schedules, batch sizes, and acceleration, particularly on nonconvex and composite objectives with large datasets and multi-core compute resources.

References:

(Konečný et al., 2014, Konečný et al., 2015, Babanezhad et al., 2015, Nitanda, 2015, Shang et al., 2018, Sebbouh et al., 2019, Jin et al., 2019, Ji et al., 2019)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Mini-batch SVRG.