Compressed Communication for Distributed Training: Adaptive Methods and System

Yuchen Zhong, Cong Xie, Shuai Zheng, Haibin LinarXiv 2021

Abstract

Distributed deep learning faces significant bottlenecks as model sizes grow, with communication often accounting for the majority of training time. This paper introduces CLAN (Compressed LANS) and BytePS-Compress, a co-designed algorithmic and systemic framework to mitigate these overheads. By enabling two-way gradient compression for adaptive optimization methods and offloading compression tasks to the CPU, the system achieves up to a 58% reduction in training time for large-scale models like VGG16 and BERT without sacrificing accuracy.

Introduction

In distributed training, multiple worker nodes (GPUs) must synchronize gradients frequently. For models with billions of parameters, this communication bottleneck can consume 50% to 90% of the total training time. While gradient compression has been effective for standard Stochastic Gradient Descent (SGD), applying it to adaptive gradient methods (e.g., Adam, LANS) is challenging due to non-linear dependencies that can lead to mathematical instability. Furthermore, the computational cost of compression itself—known as "compression overhead"—often negates the benefits of reduced network traffic.

Methods: CLAN and BytePS-Compress

The authors propose a two-pronged solution addressing both algorithmic stability and system efficiency.

CLAN (Compressed LANS)

CLAN is a novel variant of the LANS optimizer designed for gradient compression. It utilizes error feedback, a mechanism that captures the residual "compression error" and reintegrates it into subsequent iterations. This ensures that no critical gradient information is lost over time, allowing CLAN to maintain the same $O(1/\sqrt{T})$ convergence rate as full-precision training.

BytePS-Compress System

BytePS-Compress is a high-performance system architecture designed to minimize compression overhead through a two-stage communication strategy and hardware offloading.

Architecture of BytePS-Compress showing two-stage communication and CPU-offloaded compression.
  1. Intra-node Communication: Within a single machine, GPUs utilize high-speed interconnects (e.g., NVLink) for a rapid FP16 All-Reduce operation.
  2. Inter-node Communication: Between machines, gradients are compressed (using techniques like 1-bit or Top-$k$ sparsification) before being transmitted to a Parameter Server.
  3. CPU Offloading and NUMA Tuning: BytePS-Compress offloads the computationally intensive tasks of compression and decompression to the CPU. This allows the GPU to continue computing the next batch in parallel. To further reduce latency, the system employs NUMA tuning, ensuring compression threads are physically proximal to the relevant hardware interfaces.

Experimental Evaluation

The framework was evaluated using ImageNet (ResNet50, VGG16) and NLP benchmarks (BERT-base, BERT-large on Wikipedia and BookCorpus).

Key Results

The integration of CLAN and BytePS-Compress yields substantial performance gains:

  • Training Speedups: Compared to standard training on a 25 Gb/s network, training time was reduced by 5.0% for ResNet50, 58.1% for VGG16, and 23.3% for BERT-base.
  • Compression Efficiency: For BERT models, the system achieved a 333x compression rate compared to standard mixed-precision training.
  • Convergence and Accuracy: As shown in the validation plots, compressed models reach the same final accuracy as full-precision baselines, confirming the effectiveness of the error feedback mechanism.
Validation accuracy over training time for various compression methods, demonstrating convergence parity with full-precision training.

Discussion and Insights

A critical insight of this work is that two-way compression (both Push and Pull) is essential for maintaining scalability as the number of nodes increases. Furthermore, the authors demonstrate that the CPU is an underutilized resource in distributed training; its flexibility makes it better suited than GPUs for complex sparsification algorithms like Top-$k$.

While highly effective, the authors identify future directions such as automatic threshold searching for tensor compression to improve usability. Additionally, as GPU hardware evolves to include specialized bit-manipulation units, some compression tasks may eventually transition back to the GPU.

Conclusion

CLAN and BytePS-Compress provide a robust solution for the communication bottleneck in large-scale distributed training. By combining mathematically sound compression for adaptive optimizers with a system that hides compression overhead, this work enables significantly faster training of state-of-the-art deep learning models without compromising their performance.

Summary updated

BibTeX
@misc{zhong2021compressed,
  author = {Yuchen Zhong and Cong Xie and Shuai Zheng and Haibin Lin},
  title = {{Compressed Communication for Distributed Training: Adaptive Methods and System}},
  year = {2021},
  eprint = {2105.07829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.07829},
}
Figure