99% of Distributed Optimization is a Waste of Time: The Issue and How to Fix it
arXiv:1901.09437
Abstract
Many popular distributed optimization methods for training machine learning models fit the following template: a local gradient estimate is computed independently by each worker, then communicated to a master, which subsequently performs averaging. The average is broadcast back to the workers, which use it to perform a gradient-type step to update the local version of the model. It is also well known that many such methods, including SGD, SAGA, and accelerated SGD for over-parameterized models, do not scale well with the number of parallel workers. In this paper we observe that the above template is fundamentally inefficient in that too much data is unnecessarily communicated by the workers, which slows down the overall system. We propose a fix based on a new update-sparsification method we develop in this work, which we suggest be used on top of existing methods. Namely, we develop a new variant of parallel block coordinate descent based on independent sparsification of the local gradient estimates before communication. We demonstrate that with only blocks sent by each of workers, where is the total number of parameter blocks, the theoretical iteration complexity of the underlying distributed methods is essentially unaffected. As an illustration, this means that when parallel workers are used, the communication of blocks is redundant, and hence a waste of time. Our theoretical claims are supported through extensive numerical experiments which demonstrate an almost perfect match with our theory on a number of synthetic and real datasets.
arXiv comment41 pages, 8 algorithms, 10 theorems, 12 figures
References in corpus (6)
- QSGD: Communication-Efficient SGD via Gradient Quantization and Encoding
- Communication Efficient Distributed Optimization using an Approximate Newton-type Method
- Distributed Learning with Compressed Gradient Differences
- Adding vs. Averaging in Distributed Primal-Dual Optimization
- Improved asynchronous parallel optimization analysis for stochastic incremental methods
- Nonconvex Variance Reduced Optimization with Arbitrary Sampling
Cited by in corpus (5)
- Optimal Client Sampling for Federated Learning
- Stochastic Distributed Learning with Gradient Quantization and Variance Reduction
- Natural Compression for Distributed Deep Learning
- Gradient Descent with Compressed Iterates
- One Method to Rule Them All: Variance Reduction for Data, Parameters and Many New Methods