Abstract
Data-parallel distributed training of deep neural networks (DNN) has gained widespread adoption but often faces communication bottlenecks. While various compression mechanisms like quantization and sparsification exist, they typically apply compression uniformly across all layers. We introduce L-GreCo, a framework that dynamically adapts compression levels per layer by solving a constrained optimization problem. L-GreCo minimizes communication costs while maintaining a global error constraint, leading to up to 2.5× training speedups and 5× better compression ratios without sacrificing model accuracy across image classification and language modeling tasks.
Introduction
Distributed deep learning relies heavily on data-parallelism, where gradients are synchronized across multiple GPUs. As model sizes scale, the communication overhead often becomes the primary bottleneck. Existing gradient compression techniques—quantization, sparsification, and low-rank approximation—alleviate this but generally ignore the inherent heterogeneity of neural network layers. Some layers are large and robust to noise, while others are small and highly sensitive. Treating them uniformly results in suboptimal trade-offs between speed and accuracy.
The L-GreCo Framework
L-GreCo (Layerwise-GradiEnt COmpression) formalizes compression as a knapsack-style optimization problem. The objective is to minimize the total bits transmitted across all layers such that the total $L_2$ error of the compressed gradients remains below a predefined threshold $E_{max}$.
The framework uses the $L_2$ norm of the compression error as a proxy for sensitivity, which is computationally efficient to calculate during training. By discretizing possible error values, L-GreCo employs dynamic programming to find the optimal compression parameters for each layer. It is designed to be a "plug-and-play" module that sits between the training script and the communication backend, periodically updating settings with negligible overhead (typically <1% of training time).
Experimental Evaluation
We evaluated L-GreCo on standard benchmarks including ResNet-18 on CIFAR-100, ResNet-50 on ImageNet, and Transformer-based models on WikiText-103. These models represent a mix of traditional convolutional networks and modern, sensitive Transformer architectures.
Key Results
L-GreCo consistently outperforms uniform compression methods across all tested families (QSGD, TopK, PowerSGD).
- Efficiency: L-GreCo achieves up to 5× higher compression ratios on language tasks compared to the best-tuned uniform settings.
- Speedup: In multi-node cloud environments, it delivers up to 2.5× end-to-end training speedups.
- Accuracy Preservation: All experiments remained within the 1% relative accuracy/perplexity threshold compared to uncompressed baselines.
- Synergy with Adaptive Algorithms: When combined with existing adaptive methods like Accordion, L-GreCo further improves throughput by 66% and compression ratios by 50%.
Conclusion
L-GreCo demonstrates that treating neural network layers heterogeneously is key to efficient distributed training. By automatically identifying which layers can tolerate more aggressive compression, L-GreCo provides a general, low-overhead solution that significantly accelerates training without compromising model quality. Future work includes automating the discovery of the global error bound and exploring hybrid compression strategies across different layers.
Summary updated