Abstract
StochAstic Recursive grAdient algoritHm (SARAH), originally proposed for convex optimization and also proven to be effective for general nonconvex optimization, has received great attention due to its simple recursive framework for updating stochastic gradient estimates. The performance of SARAH significantly depends on the choice of step size sequence. However, SARAH and its variants often employ a best-tuned step size by mentor, which is time consuming in practice. Motivated by this gap, we proposed a variant of the Barzilai-Borwein (BB) method, referred to as the Random Barzilai-Borwein (RBB) method, to calculate step size for SARAH in the mini-batch setting, thereby leading to a new SARAH method: MB-SARAH-RBB. We prove that MB-SARAH-RBB converges linearly in expectation for strongly convex objective functions. We analyze the complexity of MB-SARAH-RBB and show that it is better than the original method. Numerical experiments on standard data sets indicate that MB-SARAH-RBB outperforms or matches state-of-the-art algorithms.
Introduction
Stochastic Gradient Descent (SGD) is a cornerstone of modern machine learning optimization, yet it is often hampered by high variance in gradient estimates, leading to slow convergence. Variance-reduction techniques such as SVRG and the Stochastic Recursive Gradient Algorithm (SARAH) have been developed to address this. While SARAH is effective across convex and non-convex landscapes, its practical utility is limited by its extreme sensitivity to the step size (learning rate). Typically, achieving optimal performance requires exhaustive manual tuning of this parameter. This work introduces an automatic, adaptive step-size rule for the mini-batch version of SARAH, referred to as MB-SARAH-RBB, bridging the gap between theoretical efficiency and practical ease of use.
Methodology: MB-SARAH-RBB
The proposed algorithm, MB-SARAH-RBB, integrates two key components:
- Mini-batch SARAH: This variant utilizes small data batches to recursively update gradient estimates. Unlike the unbiased estimators in SVRG, SARAH's recursive estimator provides a more stable path toward the minimum.
- Random Barzilai-Borwein (RBB): A quasi-Newton approach that approximates second-order Hessian information using only first-order gradients. The RBB adaptation uses random data subsets to estimate local curvature efficiently in a stochastic setting.
A critical innovation in this method is the introduction of a scaling parameter, $\gamma$, which multiplies the RBB-calculated step size. This parameter ensures the stability and reliable convergence of the algorithm, preventing the instabilities often associated with applying standard BB rules to stochastic recursive gradients.
Experimental Results
The performance of MB-SARAH-RBB was evaluated on standard benchmark datasets including a8a, w8a, and ijcnn1 for ridge regression tasks.
As shown in the numerical experiments, MB-SARAH-RBB (solid lines) consistently matches or exceeds the performance of the standard SARAH algorithm (dashed lines), even when the latter is manually tuned to its best possible fixed step size. The algorithm demonstrates superior efficiency, reaching lower sub-optimality in fewer effective passes through the dataset compared to other popular optimizers like SVRG, SAGA, and SDCA.
Key Insights
- Theoretical Complexity: MB-SARAH-RBB achieves better theoretical complexity than the original SARAH when optimal mini-batch sizes are employed.
- Linear Convergence: For strongly convex objectives, the method is proven to converge linearly in expectation.
- Robustness to Initialization: The RBB rule makes the algorithm highly robust to the initial step size ($\eta_0$), as it quickly adapts to the local curvature of the loss landscape. This allows for larger steps in flat regions and more cautious steps in steep areas without manual intervention.
Conclusion and Future Work
MB-SARAH-RBB effectively automates the tuning process for SARAH, providing a robust and efficient optimizer for convex problems. While current proofs focus on strong convexity, the empirical success suggests potential for non-convex applications. Future research will explore extending this adaptive rule to proximal SARAH for non-smooth optimization and evaluating its performance on large-scale deep learning models.
Summary updated