Communication-Efficient Distributed Blockwise Momentum SGD with Error-Feedback
Introduction
Distributed training is the cornerstone of modern deep learning, enabling the training of massive models like ResNet-50 on large-scale datasets like ImageNet. However, as the number of parameters grows, the communication overhead between worker nodes and the parameter server often becomes the primary bottleneck. This paper introduces dist-EF-blockSGDM, a novel distributed training algorithm designed to slash communication costs by nearly 32x without sacrificing model accuracy. By integrating two-way 1-bit compression, an error-feedback mechanism, and a blockwise partitioning strategy, the proposed method achieves a 46% reduction in wall-clock training time while maintaining the convergence guarantees of full-precision SGD.
The Communication Bottleneck in Distributed Learning
In a typical distributed setup, multiple workers compute gradients on local data batches and synchronize these updates with a central parameter server. For high-dimensional models, the time spent transmitting these gradients (the "push" and "pull" phases) can exceed the time spent on actual computation. While previous methods like signSGD attempted to mitigate this by using 1-bit quantization (sending only the sign of the gradient), they often suffered from poor convergence or required restrictive assumptions. Furthermore, many existing techniques only compress the "push" phase, leaving the "pull" phase as a full-precision bottleneck.
The dist-EF-blockSGDM Framework
The authors propose a robust framework that addresses these limitations through four key innovations:
- Two-Way 1-Bit Compression: Unlike conventional methods, dist-EF-blockSGDM compresses gradients in both directions—from workers to the server and back to the workers—drastically reducing network traffic.
- Error-Feedback (EF): To compensate for the information loss inherent in 1-bit quantization, the algorithm employs an error-feedback mechanism. It tracks the residual error (the difference between the original and compressed gradient) and adds it back into the next iteration. This ensures that information is merely delayed rather than permanently discarded.
- Blockwise Partitioning: Standard compression applies a single scaling factor to the entire gradient vector. dist-EF-blockSGDM instead partitions the gradient into blocks (e.g., by neural network layer). Because weights within a specific layer tend to have similar magnitudes, this approach provides a significantly tighter approximation of the original gradient.
- Nesterov’s Momentum Integration: The algorithm incorporates Nesterov’s momentum directly into the error-feedback loop, a critical requirement for the rapid convergence seen in modern architectures.
Theoretical Advantages of Blockwise Compression
A central insight of the paper is that global scaling factors are often too coarse for effective 1-bit compression. By treating each layer or tensor as an independent block, the compression constant ($δ$) remains closer to 1, which theoretically accelerates convergence.
As shown in Figure 3, the blockwise lower bound remains consistently higher than the non-blockwise counterpart, validating the hypothesis that blockwise partitioning preserves more gradient information per iteration. Mathematically, the authors prove that dist-EF-blockSGDM converges at a rate of $O(1/\sqrt{MT})$, matching the performance of standard, full-precision distributed synchronous SGD.
Performance Evaluation
The researchers evaluated dist-EF-blockSGDM on CIFAR-100 (ResNet-20) and ImageNet (ResNet-50) using AWS P3 instances. The results demonstrate that the method is not only communication-efficient but also highly robust.
Key experimental findings include:
- Accuracy Parity: As illustrated in Figure 5, dist-EF-blockSGDM (orange) tracks the performance of full-precision SGDM (blue) almost perfectly, reaching the same final top-1 accuracy.
- Superiority over Signum: The proposed method outperformed signum (a popular 1-bit momentum variant) by approximately 4% in final test accuracy on ImageNet.
- Wall-Clock Speedup: On ImageNet with 7 workers, the algorithm was 46% faster in total wall-clock time compared to standard momentum SGD.
- Communication Efficiency: The method achieved a nearly 32x reduction in the number of bits transmitted per iteration.
Conclusion and Future Work
dist-EF-blockSGDM represents a significant step forward in communication-efficient distributed training. By combining error-feedback with blockwise compression, it eliminates the traditional trade-off between speed and accuracy.
However, some challenges remain. The authors noted that speedups were less pronounced when scaling to 15 workers, likely due to server-side latency in handling separate sign vectors and scaling factors. Future work will focus on fusing these operations to improve scalability. Additionally, while the current study utilizes a parameter-server model, optimizing the algorithm for ring-allreduce architectures and exploring its sensitivity to hyperparameter tuning remain important avenues for further research.
Summary updated