Abstract
Lossy gradient compression, with either unbiased or biased compressors, has become a key tool to avoid the communication bottleneck in centrally coordinated distributed training of machine learning models. We analyze the performance of two standard and general types of methods: (i) distributed quantized SGD (D-QSGD) with arbitrary unbiased quantizers and (ii) distributed SGD with error-feedback and biased compressors (D-EF-SGD) in the heterogeneous (non-iid) data setting. Our results indicate that D-EF-SGD is much less affected than D-QSGD by non-iid data, but both methods can suffer a slowdown if data-skewness is high. We further study two alternatives that are not (or much less) affected by heterogenous data distributions: first, a recently proposed method that is effective on strongly convex problems, and secondly, we point out a more general approach that is applicable to linear compressors only but effective in all considered scenarios.
Introduction
In large-scale distributed machine learning, the communication of high-dimensional gradients between worker nodes and a central server often constitutes the primary performance bottleneck. To mitigate this, gradient compression techniques—such as quantization and sparsification—are employed to reduce the number of bits transmitted. While these methods are well-understood in independent and identically distributed (IID) settings, their performance in heterogeneous (non-IID) environments, typical of Federated Learning, remains a critical area of study. This paper investigates the "heterogeneity tax" imposed by data skewness ($\zeta^2$) on various compression frameworks.
Algorithmic Frameworks
The study evaluates four primary distributed optimization algorithms, each handling compression and error correction differently.
- D-QSGD (Distributed Quantized SGD): Employs unbiased compressors. While simple, the variance introduced by quantization adds noise to every step, which is exacerbated by data heterogeneity.
- D-EF-SGD (Distributed Error-Feedback SGD): Utilizes biased compressors (e.g., Top-K). It incorporates an "error feedback" mechanism that tracks the difference between the true and compressed gradients, re-injecting this error into subsequent local steps.
- DIANA: A state-carrying framework that compresses the difference between current gradients and stored local averages ($h_i$), rather than the raw gradients themselves.
- Linear Sketching: A method utilizing linear compressors. By synchronizing the sketching matrices across nodes using a shared random seed, the impact of data heterogeneity can be mathematically cancelled out.
Theoretical Insights: The Heterogeneity Tax
A central finding is that data heterogeneity ($\zeta^2$) acts as a noise source that degrades convergence. However, the impact varies significantly between methods:
- Error Feedback as a Shield: In D-EF-SGD, the leading term of the convergence rate is remarkably robust. Unlike D-QSGD, which suffers a linear slowdown proportional to compression levels, D-EF-SGD's primary term is unaffected by compression quality, making it superior in high-compression regimes.
- State-Carrying Benefits: Methods like DIANA and Bias-Corrected EF-SGD maintain auxiliary variables to track local data distributions. As training progresses, these variables allow the compressor to "learn" the local environment, facilitating linear convergence in the absence of stochastic noise.
Convergence Analysis
The paper provides refined convergence rates for $\mu$-strongly convex and $L$-smooth objectives across these frameworks.
As shown in the analysis, D-EF-SGD achieves a linear speedup relative to the number of workers ($n$) even in heterogeneous settings. Notably, for linear compressors, the data-skewness parameter $\zeta$ disappears from the rate entirely. This "linearity loophole" suggests that synchronized linear sketches can effectively treat a distributed system as a single node with a large batch size, completely eliminating the heterogeneity tax.
Conclusion and Future Work
While error feedback and state-carrying methods significantly improve robustness to non-IID data, challenges remain. The most powerful results currently require local convexity to ensure auxiliary variables converge correctly. Furthermore, the complete elimination of the heterogeneity tax relies on the linearity of the compressor. Extending these robust guarantees to non-linear compressors (like Top-K) in non-convex settings remains a major open challenge for the distributed optimization community.
Summary updated