[Paper Review] Optimal mini-batch and step sizes for SAGA
This paper proposes closed-form expressions for the expected smoothness constant in SAGA, enabling optimal mini-batch and step size selection without grid search. By leveraging these bounds, the authors derive theoretically optimal, larger step sizes and show that SAGA's total complexity decreases linearly with mini-batch size up to an optimal point—offering a rare linear speedup in stochastic variance reduction methods.
Recently it has been shown that the step sizes of a family of variance reduced gradient methods called the JacSketch methods depend on the expected smoothness constant. In particular, if this expected smoothness constant could be calculated a priori, then one could safely set much larger step sizes which would result in a much faster convergence rate. We fill in this gap, and provide simple closed form expressions for the expected smoothness constant and careful numerical experiments verifying these bounds. Using these bounds, and since the SAGA algorithm is part of this JacSketch family, we suggest a new standard practice for setting the step sizes and mini-batch size for SAGA that are competitive with a numerical grid search. Furthermore, we can now show that the total complexity of the SAGA algorithm decreases linearly in the mini-batch size up to a pre-defined value: the optimal mini-batch size. This is a rare result in the stochastic variance reduced literature, only previously shown for the Katyusha algorithm. Finally we conjecture that this is the case for many other stochastic variance reduced methods and that our bounds and analysis of the expected smoothness constant is key to extending these results.
Motivation & Objective
- To close the gap in variance-reduced optimization by enabling a priori computation of the expected smoothness constant, which governs step size and iteration complexity in SAGA.
- To derive practical, theoretically optimal mini-batch and step size settings for SAGA that outperform standard choices like b=1 or fixed b=20.
- To demonstrate that SAGA's total complexity decreases linearly with mini-batch size up to an optimal batch size, a result previously only shown for Katyusha.
- To provide theoretical and empirical justification for using refined bounds on the expected smoothness constant to improve convergence speed and stability.
Proposed method
- Derive a simple upper bound on the expected smoothness constant for mini-batch sampling without replacement in SAGA.
- Develop a refined matrix concentration inequality to obtain a tighter Bernstein-type bound on the expected smoothness constant.
- Use these bounds to compute optimal step sizes that are significantly larger than standard choices, improving convergence rate.
- Propose a practical mini-batch size estimate b_practical based on the expected smoothness bound, avoiding costly grid search.
- Formulate the total iteration complexity K_total(b) as a piecewise linear function of mini-batch size b, showing linear speedup up to an optimal b*.
- Validate the theoretical bounds and practical settings through extensive numerical experiments on real and synthetic datasets.
Experimental results
Research questions
- RQ1Can we compute the expected smoothness constant in closed form for SAGA under mini-batch sampling without replacement?
- RQ2What is the optimal mini-batch size for SAGA that minimizes total iteration complexity, and how does it compare to b=1 or b=20?
- RQ3Can we derive step sizes that are significantly larger than standard choices while maintaining convergence guarantees?
- RQ4Does SAGA exhibit linear speedup in total complexity as mini-batch size increases, and up to what point?
- RQ5How close is the proposed practical mini-batch size b_practical to the empirically optimal value obtained via grid search?
Key findings
- The expected smoothness constant for SAGA under without-replacement mini-batch sampling can be bounded in closed form using simple and refined (Bernstein-type) inequalities.
- The proposed step sizes based on these bounds are significantly larger than those in standard SAGA (Defazio et al.) and outperform them in practice.
- SAGA’s total iteration complexity K_total(b) is piecewise linear in the mini-batch size b, with a linear decrease up to an optimal batch size b*.
- The optimal mini-batch size b* is not b=1, and the proposed practical estimate b_practical closely matches the empirically optimal value found via grid search.
- On real datasets like covtype.binary and ijcnn1, the proposed settings achieve faster convergence in both epochs and wall-clock time compared to classical SAGA and Hofmann’s settings.
- The total complexity explodes for mini-batch sizes beyond b*, confirming the existence of a clear optimal batch size and validating the theoretical piecewise linear complexity model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.