Abstract: Variance Reducing (VR) stochastic methods are fast-converging alternatives to the classical Stochastic Gradient Descent (SGD) for solving large-scale regularized finite sum problems, especially when a highly accurate solution is required. One critical step in VR is the function sampling. State-of-the-art VR algorithms such as SVRG and SAGA, employ either Uniform Probability (UP) or Importance Probability (IP), which is deficient in reducing the variance and hence leads to suboptimal convergence rate. In this paper, we propose a novel sampling scheme that explicitly computes some Adaptive Probability (AP) at each iteration. Analysis shows that, equipped with AP, both SVRG and SAGA yield provably better convergence rate than the ones with UP or IP, which is confirmed in experiments. Additionally, to cut down the per iteration computation load, an efficient variant is proposed by utilizing AP periodically, whose performance is empirically validated.
Introduction
Stochastic Gradient Descent (SGD) has become the standard for large-scale machine learning due to its low per-iteration cost. However, its high variance necessitates decaying step sizes, resulting in slow sublinear convergence. Variance Reduction (VR) methods, such as SVRG and SAGA, address this by utilizing gradient "memory" to stabilize updates, enabling constant step sizes and linear convergence.
Despite their success, most VR methods rely on suboptimal sampling strategies: Uniform Probability (UP), which treats all data points equally, or Importance Probability (IP), which uses static smoothness parameters. These methods fail to adapt to the optimization state as the model converges. This paper introduces Adaptive Probability (AP), a dynamic sampling strategy that minimizes gradient variance at each iteration.
The Adaptive Probability (AP) Framework
The core innovation is the derivation of an optimal sampling distribution $p$ that directly minimizes the variance of the stochastic gradient estimate. The authors demonstrate that the optimal probability $p_i$ for the $i$-th component function is proportional to the norm of its current "gradient residual"—the difference between the current gradient and its stored surrogate.
By incorporating AP into standard frameworks, the authors propose AdaSVRG and AdaSAGA. Theoretical analysis proves that these adaptive versions achieve tighter convergence bounds than their predecessors using UP or IP.
Efficient Implementation: HVRG
A primary challenge of adaptive sampling is the $O(nd)$ computational cost of recomputing probabilities every iteration. To mitigate this, the authors developed Hybrid VRG (HVRG). HVRG updates probabilities periodically (e.g., every few epochs) and utilizes the Vitter algorithm to maintain the cumulative distribution function efficiently. This reduces the amortized cost to $O(d + \log n)$ per iteration, making it practical for large-scale datasets.
To prevent the "stale gradient" problem common in non-uniform sampling—where some points may rarely be picked—HVRG performs a periodic "synchronous update" to refresh all stored gradient information.
Experimental Evaluation
The proposed algorithms were evaluated on standard benchmarks including w7a, ijcnn1, a9a, covtype, and rcv1.
Key findings include:
- Superior Convergence: AdaSVRG and AdaSAGA consistently reached high-accuracy solutions in significantly fewer iterations than standard SVRG and SAGA.
- Sparsity Identification: On the
rcv1dataset ($l_1l_2$-Logistic Regression), HVRG not only converged faster in terms of effective passes but also identified the sparsity pattern (non-zero entries) of the solution much more rapidly than competing methods like IProx-SVRG. - Robustness: In Ridge Regression tests on the
YearPredictionMSDdataset, HVRG significantly outperformed AdaSDCA+, demonstrating effectiveness even in poorly conditioned problems.
Conclusion
Adaptive Probability sampling provides a theoretically grounded and empirically superior alternative to static sampling in variance-reduced stochastic optimization. While HVRG successfully addresses the computational overhead of dynamic sampling, future work may explore extending these benefits to non-convex optimization problems, such as deep learning, where adaptive variance reduction could offer significant performance gains.
Summary updated