Variance Reduction for Distributed Stochastic Gradient Descent

Soham De, Gavin Taylor, Tom GoldsteinarXiv 2015

Introduction

Stochastic Gradient Descent (SGD) is the cornerstone of modern machine learning optimization. However, its reliance on small data subsets introduces significant gradient noise, which necessitates decaying learning rates and results in slow convergence near the optimal solution. While Variance Reduction (VR) techniques like SVRG and SAGA address this by enabling constant step sizes, they impose heavy "taxes": SVRG requires periodic full-gradient computations, while SAGA demands massive memory to store historical gradients for every data point.

In distributed settings, these overheads become prohibitive due to communication bottlenecks and memory constraints. This paper introduces VR-lite, a memory-efficient variance reduction method designed for high-performance distributed optimization. VR-lite eliminates the need for full-gradient passes and extensive history storage by utilizing "on-the-fly" averages of iterates and gradients.

The VR-lite Algorithm

The core innovation of VR-lite is its use of running averages as proxies for the true gradient. Instead of storing a table of gradients or performing a full pass, VR-lite maintains an average of the iterates ($\bar{x}$) and the gradients ($\bar{g}$) encountered during an epoch. These are updated incrementally with negligible computational overhead.

The update rule is defined as: $$x^{k+1} = x^k - \eta (\nabla f_{i_k}(x^k) - \nabla f_{i_k}(\bar{x}) + \bar{g})$$

This approach is extended to distributed environments through two variants:

  • Sync VR-lite: Local nodes perform updates on their local data and synchronize their averages with a central server once per epoch.
  • Async VR-lite: Designed for heterogeneous networks, nodes asynchronously send "deltas" of their averages to the central server, maintaining an unbiased global model without requiring all nodes to be perfectly synchronized.

Experimental Evaluation

The authors evaluated VR-lite against state-of-the-art methods across several datasets, including IJCNN1 (binary classification), MILLIONSONG (least-squares regression), and synthetic toy datasets.

Comparison of VR-lite against SVRG and SAGA across various datasets and regression tasks.

As shown in the experimental results, VR-lite consistently outperforms SVRG and SAGA in terms of gradient evaluations. It achieves faster convergence while maintaining a significantly lower memory footprint than SAGA and avoiding the periodic computational spikes of SVRG.

Distributed Scalability

A key strength of VR-lite is its performance in large-scale distributed settings. By reducing communication frequency to once per epoch (in the Sync version) and providing a stable "anchor" through the shared average gradient, the algorithm prevents local nodes from drifting during long computation phases.

Convergence time vs. number of local workers on the SUSY dataset for Sync and Async VR-lite.

On the SUSY dataset, which contains 5 million samples, VR-lite demonstrates exceptional scaling. When distributed across 750 local workers, the model converges in under 5 seconds. The asynchronous version proves particularly robust, ensuring that faster nodes can continue making progress without being throttled by slower participants in the network.

Conclusion and Future Work

VR-lite offers a practical "middle ground" for variance reduction, providing the convergence benefits of SVRG and SAGA without their associated costs. While it shows superior empirical performance, the authors note that the biased nature of the "lite" gradient estimate makes formal convergence proofs challenging. Future work includes developing these theoretical foundations, implementing truly lock-free asynchronous updates, and extending the method to non-convex optimization problems such as deep neural networks.

Summary updated

BibTeX
@misc{de2015variance,
  author = {Soham De and Gavin Taylor and Tom Goldstein},
  title = {{Variance Reduction for Distributed Stochastic Gradient Descent}},
  year = {2015},
  eprint = {1512.01708},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.01708},
}
Figure