TL;DR
The paper introduces Shuffled-SARAH, a variant of the popular SARAH optimization algorithm that completely eliminates the need for costly periodic full gradient computations. By leveraging data-shuffling strategies and recursively aggregating stochastic gradients across each epoch, it maintains linear convergence while significantly reducing computational overhead.
What Problem Does This Paper Address?
Variance-reduced stochastic gradient descent (SGD) methods, such as SVRG and SARAH, are highly favored in machine learning for solving finite-sum optimization problems because they achieve fast, linear convergence. However, their main drawback is the requirement to compute a full gradient over the entire dataset periodically (e.g., at the start of every epoch) to reset the variance tracker.
For massive datasets, this full pass is computationally expensive and creates a bottleneck. The authors address this challenge by asking: Can we maintain the rapid convergence benefits of variance reduction without ever computing a full gradient?
Methods
The authors propose Shuffled-SARAH (Algorithm 1). Instead of sampling data points randomly with replacement—the standard approach in classical variance reduction—the algorithm processes data using shuffling strategies:
- Random Reshuffling (RR): Reshuffle data before each epoch.
- Shuffle-Once (SO): Shuffle data only once at the very beginning.
- Incremental Gradient (IG): Access data in a fixed deterministic cycle.
The core algorithmic innovation lies in how the full gradient estimate is constructed. As the algorithm makes a single pass through the shuffled dataset during an epoch, it recursively tracks the running average of the computed stochastic gradients:
$$\tilde{v}_i = \frac{i - 1}{i}\tilde{v}_{i-1} + \frac{1}{i}\nabla f_{\pi_i}(w_i)$$
By the end of the epoch ($i=n$), this accumulated average ($\tilde{v}_n$) serves as a proxy for the full gradient in the subsequent epoch. This completely eliminates the need for a dedicated, expensive full-gradient evaluation pass.
Datasets
The proposed algorithm was evaluated on binary classification tasks using logistic regression with $\ell_2$-regularization. The authors utilized three standard datasets from the LIBSVM library:
- mushrooms ($N = 8,124$, $d = 112$)
- a9a ($N = 32,561$, $d = 123$)
- w8a ($N = 49,749$, $d = 300$)
Note: No new benchmarks were introduced in this paper.
Key Insights and Ideas
- The Power of the Shuffled Pass: Shuffling ensures that every data point is utilized exactly once per epoch. This structural regularity allows the running average of stochastic gradients to naturally approximate the full gradient without requiring an extra pass over the data.
- Shuffling Equivalence in Variance Reduction: In standard SGD, different shuffling methods (like RR vs. SO) yield noticeably different theoretical convergence rates. However, because SARAH effectively nullifies the gradient variance ($\sigma^2$), the choice of shuffling strategy does not alter the primary theoretical convergence bound.
- Self-Correcting Proxy: As the iterates ($w$) converge toward the optimal solution ($w^*$), the step updates become smaller, meaning the gradients within an epoch are evaluated at points closer together. Consequently, the accumulated gradient proxy becomes an increasingly accurate estimate of the true full gradient exactly when precision matters most.
Key Results
- Linear Convergence: The authors theoretically prove that Shuffled-SARAH achieves linear convergence for smooth, strongly convex problems under a Hessian similarity assumption ($\delta$-similarity).
-
Oracle Complexity: The algorithm achieves an $\epsilon$-approximate solution after: $$O\left(\left(n \cdot \frac{L}{\mu} + n^2 \cdot \frac{\delta}{\mu}\right) \log \frac{1}{\epsilon}\right)$$ calls of terms $f_i$, where $\delta$ is the similarity parameter, $L$ is the Lipschitz constant, and $\mu$ is the strong convexity constant.
-
Empirical Superiority: In numerical experiments across all three LIBSVM datasets, both
Shuffle-SARAH with RRandwith SOconverged significantly faster in terms of epoch count compared to classical SARAH (both its theoretical baseline and its hand-tuned optimal variant).
Limitations and Future Work
- Dependence on Hessian Similarity: The tight convergence bounds rely heavily on the $\delta$-similarity assumption, which measures how close the Hessians of individual loss functions are to the overall objective's Hessian. If a dataset is highly heterogeneous, $\delta$ becomes large, which degrades the theoretical complexity bound.
- Convexity Constraints: The theoretical guarantees are strictly proven for smooth, strongly convex objectives. Extending this full-gradient-free approach to non-convex landscapes, such as deep neural networks, remains an open and vital direction for future research.
Summary updated