[Paper Review] Accelerating Minibatch Stochastic Gradient Descent using Stratified Sampling
This paper proposes a stratified sampling strategy for minibatch stochastic gradient descent (SGD) that reduces variance by clustering data into low-variance subgroups and sampling proportionally from each cluster. The method achieves faster convergence and improved generalization compared to uniform sampling, with empirical results showing significant variance reduction and faster training on multiple datasets.
Stochastic Gradient Descent (SGD) is a popular optimization method which has been applied to many important machine learning tasks such as Support Vector Machines and Deep Neural Networks. In order to parallelize SGD, minibatch training is often employed. The standard approach is to uniformly sample a minibatch at each step, which often leads to high variance. In this paper we propose a stratified sampling strategy, which divides the whole dataset into clusters with low within-cluster variance; we then take examples from these clusters using a stratified sampling technique. It is shown that the convergence rate can be significantly improved by the algorithm. Encouraging experimental results confirm the effectiveness of the proposed method.
Motivation & Objective
- Address the high variance issue in minibatch SGD caused by uniform sampling, which slows convergence.
- Improve the convergence rate of SGD by minimizing the upper bound of stochastic gradient variance through strategic sampling.
- Develop a practical sampling strategy that clusters data based on gradient variance and samples from each cluster to reduce overall estimator variance.
- Demonstrate that stratified sampling outperforms uniform sampling in terms of training stability, test accuracy, and variance reduction across multiple machine learning benchmarks.
Proposed method
- Divide the training dataset into clusters such that each cluster has low within-cluster variance in gradients.
- Use an optimization-based approach to determine optimal sampling probabilities per cluster, minimizing an upper bound on the variance of the stochastic gradient estimator.
- Construct an unbiased stochastic gradient estimator by sampling from each cluster according to the derived optimal probabilities.
- Implement both dynamic and fixed stratification strategies, where clusters are either re-computed at each iteration or kept constant.
- Apply the method to L2-regularized multiclass logistic regression, using the same learning rate and minibatch size as baseline uniform sampling.
- Use k-means clustering as a practical alternative to solving complex optimization problems for cluster formation without performance degradation.
Experimental results
Research questions
- RQ1Can stratified sampling reduce the variance of minibatch stochastic gradient estimators more effectively than uniform sampling?
- RQ2Does reducing gradient variance lead to faster convergence and improved generalization in SGD?
- RQ3How does the proposed stratified sampling strategy compare to uniform sampling in terms of training objective, test error, and variance of gradients?
- RQ4What is the impact of using fixed versus dynamic clustering on the performance of the stratified sampling approach?
- RQ5Can the proposed method be combined with other variance reduction techniques like SVRG or importance sampling?
Key findings
- The proposed stratified sampling method significantly reduces the variance of the stochastic gradient estimator compared to uniform sampling, as confirmed by empirical variance measurements.
- On the covtype.binary dataset, SGD with stratified sampling (SGD-ss) achieved faster and more stable convergence in terms of primal objective value than uniform sampling SGD.
- SGD-ss achieved lower and more stable test error rates across all evaluated datasets, including covtype.binary, letter, mnist, pendigits, and usps.
- The variance of the stochastic gradient estimator was consistently lower for SGD-ss than for uniform sampling SGD, confirming the theoretical variance reduction.
- The method maintained performance even when using k-means clustering instead of solving the full optimization problem for cluster assignment, indicating practical feasibility.
- The convergence rate improvement was empirically validated across multiple datasets, demonstrating the robustness and effectiveness of the proposed sampling strategy.
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.