Abstract
Variance reduction (VR) techniques for convergence rate acceleration of stochastic gradient descent (SGD) algorithm have been developed with great efforts recently. VR's two variants, stochastic variance-reduced-gradient (SVRG-SGD) and importance sampling (IS-SGD) have achieved remarkable progresses. Meanwhile, asynchronous SGD (ASGD) is becoming more critical due to the ever-increasing scale of the optimization problems. The application of VR in ASGD to accelerate its convergence rate has therefore attracted much interest and SVRG-ASGDs are therefore proposed. However, we found that SVRG suffers dissatisfying performance in accelerating ASGD when the datasets are sparse and large-scale. In such case, SVRG-ASGD's iterative computation cost is magnitudes higher than ASGD which makes it very slow. On the other hand, IS achieves improved convergence rate with few extra computation cost and is invariant to the sparsity of dataset. This advantage makes it very suitable for the acceleration of ASGD for large-scale sparse datasets. In this paper we propose a novel IS-combined ASGD for effective convergence rate acceleration, namely, IS-ASGD. We theoretically prove the superior convergence bound of IS-ASGD. Experimental results also demonstrate our statements.
Introduction
In the world of large-scale machine learning, Asynchronous Stochastic Gradient Descent (ASGD)—often associated with the "Hogwild!" approach—is the gold standard for training models on massive, sparse datasets. However, as we push for faster convergence, traditional Variance Reduction (VR) techniques like SVRG have hit a surprising wall. While these methods claim faster convergence in terms of iterations, they often fail to deliver real-world speedups on sparse data due to the computational overhead of dense updates.
The Sparsity Challenge in Variance Reduction
To make SGD faster, researchers use Variance Reduction (VR). The most prominent method, SVRG, works by occasionally calculating a "full gradient" and using it to nudge stochastic updates in the right direction.
In large-scale applications such as web search or recommendation engines, data is extremely sparse. For instance, a feature vector might have 30 million dimensions but only 10 non-zero values. Standard ASGD is fast because it only updates those 10 values. SVRG, however, requires adding a "dense" average gradient to every update. This turns a tiny, surgical update into a massive operation involving millions of zeros, destroying the performance gains of asynchrony and increasing write conflicts between processor cores.
Proposed Method: IS-ASGD
The authors propose IS-ASGD, which replaces the dense snapshots of SVRG with Importance Sampling (IS). This approach maintains the speed of asynchrony while reaping the benefits of variance reduction through two primary mechanisms:
- True-Gradient-Free VR: Unlike SVRG, Importance Sampling reduces variance by changing how often specific data points are sampled. Points with a higher Lipschitz constant (those that can change the gradient more drastically) are sampled more frequently. This requires no dense vector additions, keeping the updates as sparse as the original data.
- Importance Balancing: In a multi-core system, if one core processes all the "important" (high-impact) data while another processes "boring" data, the system becomes unbalanced. The authors introduce a "head-tail" sorting algorithm to distribute data so that the total "importance" is roughly equal across all threads.
Experimental Results
The study evaluated the algorithm on four well-known sparse, large-scale datasets: News20, URL, Algebra (KDD Cup), and Bridge (KDD Cup). Key findings include:
- SVRG Failure: On the large-scale Bridge dataset, SVRG-ASGD was computationally infeasible, taking hours to finish a single epoch due to dense math overhead.
- Wall-Clock Speedup: IS-ASGD consistently outperformed standard ASGD in wall-clock time, providing speedups between 1.13x and 1.54x to reach the same optimum.
- Scalability: IS-ASGD showed excellent concurrency robustness. As the number of threads increased from 16 to 44, IS-ASGD maintained stable convergence, while standard ASGD's performance often deteriorated due to increased noise.
Conclusion
IS-ASGD demonstrates that sparsity is a feature to be preserved, not a bug to be overcome. By utilizing Importance Sampling instead of dense gradient snapshots, the proposed method achieves significant wall-clock speedups on large-scale sparse datasets where traditional variance reduction methods fail. Future work includes extending this analysis to non-convex problems and more sophisticated partitioning heuristics.
Summary updated