Introduction
In large-scale deep learning, the primary bottleneck is often network communication rather than GPU computation. Moving gigabytes of model weights between distributed workers consumes significant time and resources. To address this, researchers employ data compression and decentralized topologies where nodes communicate only with immediate neighbors. However, combining aggressive compression with decentralized training is challenging, as the lack of a central "truth" can lead to instability and divergence in complex, non-convex neural network landscapes.
The DoubleSqueeze Framework
DoubleSqueeze is an algorithmic framework designed to successfully integrate "error-compensated" compression into distributed deep learning. It allows for aggressive data reduction without sacrificing the convergence speed or final model accuracy.
Key Methodological Innovations
- Error Buffering: Each node maintains a local buffer ($\delta$) that stores the difference between the precise update and the compressed version actually transmitted.
- Double-Pass Error Compensation: Instead of simply compressing the current gradient, DoubleSqueeze compresses the sum of the current model state, the new gradient, and the accumulated error from previous steps. This ensures that information lost during compression is eventually re-injected into the training process.
- Averaging Rate Control: The algorithm introduces a tunable parameter ($\eta$) to control how much a node trusts its neighbors' compressed information, helping to dampen the noise introduced by high compression ratios.
- Linear Speedup: Mathematically, DoubleSqueeze is proven to achieve "linear speedup" for non-convex functions. This means that as more GPUs are added, training time decreases proportionally, even when using very lossy compression.
Experimental Results
The researchers benchmarked DoubleSqueeze using the CIFAR-10 dataset and ResNet-20 architecture on a cluster of 8 NVIDIA 2080Ti GPUs.
Near-Lossless Accuracy
DoubleSqueeze demonstrates remarkable robustness to aggressive compression. At 4-bit compression (an 87.5% reduction in bandwidth), its training curve is nearly indistinguishable from uncompressed decentralized SGD. Even under more extreme constraints, it maintains superior performance compared to other compressed methods like QSGD.
Massive Bandwidth and Time Savings
By utilizing 2-bit compression, DoubleSqueeze can reduce communication costs by up to 93.75%. This efficiency translates directly into faster training times across various network bandwidth conditions. In head-to-head tests, DoubleSqueeze consistently outperformed recent algorithms like Choco-SGD and ECD-PSGD, particularly in scenarios where those methods failed to converge.
Conclusion
DoubleSqueeze provides a robust solution for communication-efficient deep learning. By effectively managing compression errors, it preserves the asymptotic convergence rate of centralized, uncompressed SGD while offering massive bandwidth savings. Future work will explore adaptive compression schemes to automatically optimize bit-rates during the training process.
Summary updated