Abstract
Training deep neural networks on large datasets containing high-dimensional data requires a large amount of computation. A solution to this problem is data-parallel distributed training, where a model is replicated into several computational nodes that have access to different chunks of the data. This approach, however, entails high communication rates and latency because of the computed gradients that need to be shared among nodes at every iteration. The problem becomes more pronounced in the case that there is wireless communication between the nodes (i.e. due to the limited network bandwidth). To address this problem, various compression methods have been proposed including sparsification, quantization, and entropy encoding of the gradients. Existing methods leverage the intra-node information redundancy, that is, they compress gradients at each node independently. In contrast, we advocate that the gradients across the nodes are correlated and propose methods to leverage this inter-node redundancy to improve compression efficiency. Depending on the node communication protocol (parameter server or ring-allreduce), we propose two instances of the LGC approach that we coin Learned Gradient Compression (LGC). Our methods exploit an autoencoder (i.e. trained during the first stages of the distributed training) to capture the common information that exists in the gradients of the distributed nodes. We have tested our LGC methods on the image classification and semantic segmentation tasks using different convolutional neural networks (ResNet50, ResNet101, PSPNet) and multiple datasets (ImageNet, Cifar10, CamVid). The ResNet101 model trained for image classification on Cifar10 achieved an accuracy of 93.57%, which is lower than the baseline distributed training with uncompressed gradients only by 0.18%.
Introduction
The training of modern deep neural networks (DNNs) is increasingly constrained by the "communication wall." In data-parallel distributed training, model replicas across multiple nodes must synchronize gradients at every iteration. For state-of-the-art architectures, these gradients can reach hundreds of megabytes, leading to significant latency, particularly in bandwidth-constrained environments. While traditional compression techniques like sparsification and quantization mitigate this by reducing intra-node redundancy, they often ignore the statistical correlations between gradients across different nodes. This paper introduces Learned Gradient Compression (LGC), which exploits inter-node redundancy to achieve extreme compression ratios.
Methodology
LGC utilizes a three-stage training pipeline: a warm-up phase to stabilize weights, an autoencoder (AE) training phase to learn shared representations, and finally, the compressed training phase. The framework supports two primary communication protocols. In the Parameter Server (PS) setup, one node transmits a "common representation" via the encoder, while others send only their "innovation"—the unique residual part of their gradient—using aggressive top-k sparsification.
In the Ring-Allreduce (RAR) variant, nodes encode gradients into compressed states, which are then averaged across the ring and decoded locally. To maintain efficiency, the AE uses 1D convolutional layers, reducing its own parameter overhead by 60% compared to traditional 2D kernels.
Information-Theoretic Analysis
A core contribution of this work is the analysis of gradient redundancy. By measuring Mutual Information (MI) and entropy across layers, the authors discovered that approximately 80% of the information in a gradient tensor is common across nodes.
As shown in the figure above, the MI (red) closely tracks the total entropy (blue) across most layers. Systematic peaks in these metrics often follow residual connections, suggesting that architectural features in models like ResNet significantly influence gradient redundancy. This high correlation justifies the use of a shared autoencoder to capture the "common" gradient component.
Experimental Results
LGC was evaluated across tasks including image classification (ImageNet, Cifar10) and semantic segmentation (CamVid) using models like ResNet101 and PSPNet.
- Massive Compression: On Cifar10 with ResNet101, LGC achieved an 8095x reduction in data transfer, outperforming Deep Gradient Compression (DGC) by 8x.
- High Fidelity: On ImageNet, LGC maintained 75.88% accuracy (vs. 75.98% baseline) while slashing total data transfer from 351 TB to 0.4 TB.
- System Speedup: Simulated benchmarks showed a 1.7x speedup for PS and 2.56x for RAR configurations on ImageNet.
Conclusion
LGC demonstrates that exploiting inter-node redundancy via learned autoencoders can drastically reduce the communication overhead of distributed training without sacrificing model fidelity. While the current approach requires a brief autoencoder training phase, the resulting gains in bandwidth efficiency are substantial. Future work will focus on adapting these compressors to dynamic architectures and optimizing downlink communication.
Summary updated