[Paper Review] Variance-based Gradient Compression for Efficient Distributed Deep Learning
Introduces variance-based gradient compression that delays unlikely gradient updates to drastically reduce communication in distributed training, achieving high compression with comparable accuracy and compatible with other methods.
Due to the substantial computational cost, training state-of-the-art deep neural networks for large-scale datasets often requires distributed training using multiple computation workers. However, by nature, workers need to frequently communicate gradients, causing severe bottlenecks, especially on lower bandwidth connections. A few methods have been proposed to compress gradient for efficient communication, but they either suffer a low compression ratio or significantly harm the resulting model accuracy, particularly when applied to convolutional neural networks. To address these issues, we propose a method to reduce the communication overhead of distributed deep learning. Our key observation is that gradient updates can be delayed until an unambiguous (high amplitude, low variance) gradient has been calculated. We also present an efficient algorithm to compute the variance with negligible additional cost. We experimentally show that our method can achieve very high compression ratio while maintaining the result model accuracy. We also analyze the efficiency using computation and communication cost models and provide the evidence that this method enables distributed deep learning for many scenarios with commodity environments.
Motivation & Objective
- Motivate and address communication bottlenecks in data-parallel distributed deep learning.
- Propose a gradient compression method that uses gradient variance to decide when to send updates.
- Enable high compression ratios without sacrificing model accuracy, and show compatibility with other compression schemes.
- Provide analysis and empirical results on CIFAR-10 and ImageNet to demonstrate practicality on commodity networks.
Proposed method
- Propose delaying sending gradient elements that are ambiguous (low signal-to-noise) based on a variance criterion.
- Use a threshold criterion: alpha' / |B| * V_B[∇_i f_z(x)] < (∇_i f_B(x))^2 to decide sending a gradient element.
- Maintain sums of gradients and sums of squared gradients to efficiently compute the criterion without extra cost.
- Quantize sent elements to 4-bit with a 1 sign bit and 3 exponent bits and encode parameter indices for sparsified communication.
- Employ allgatherv for sparsified gradient communication to avoid repeated encoding/decoding across allreduce.
- Optionally combine with Strom’s sparsification method or QSGD for further compression (hybrid approach).
- Provide an efficient implementation by deriving a practical form of the criterion and an update-decay mechanism for variance (zeta).
Experimental results
Research questions
- RQ1How much can gradient communication be reduced in distributed deep learning using a variance-based criterion?
- RQ2Can variance-based gradient compression maintain accuracy on large-scale tasks like ImageNet while achieving high compression?
- RQ3How does the proposed method interact with and complement existing compression techniques (quantization, sparsification)?
- RQ4What is the practical computational and communication cost of implementing variance-based gradient compression on commodity hardware?
Key findings
- Achieves very high compression ratios with comparable or improved accuracy on CIFAR-10 with Adam and strong compression with Momentum SGD.
- On CIFAR-10, our method with alpha in {1,1.5,2.0} attains accuracies around 88.9% while reducing communication substantially (up to 913.4x with Adam and 383.6x with Momentum SGD for alpha=2.0).
- The hybrid method (variance-based plus Strom’s) yields large compression with minimal accuracy loss, outperforming Strom’s standalone approach in several settings.
- On ImageNet (ResNet-50), the variance-based method maintains accuracy close to quantization-based approaches, with substantial compression (e.g., alpha=2.0 reaching 75.1%-75.5% accuracy with 990.7x–5,173.8x compression under Momentum SGD).
- Variance-based compression enables scalable distributed training on commodity interconnects, with allgatherv-based communication benefiting from high compression ratios.
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.