Abstract
In distributed deep learning, communication overhead is a primary bottleneck. Gradient sparsification techniques like Top-$k$ aim to reduce this overhead by sending only the most significant gradient components. However, Top-$k$ is a greedy strategy that minimizes error for the current step without considering long-term error accumulation. This paper argues for a shift toward total error minimization using a hard-threshold sparsifier. By maintaining a fixed threshold rather than a fixed count of elements, we can bound the total error across training, leading to significantly improved communication efficiency and faster convergence.
The Problem: The Greedy Nature of Top-$k$
Distributed training requires frequent synchronization of large gradient vectors across multiple workers. To mitigate the resulting network congestion, researchers often employ sparsification, where only a subset of gradient values is communicated. The standard approach, Top-$k$, selects the $k$ largest elements in each iteration.
While Top-$k$ is mathematically optimal for a single iteration's error, it fails to account for the "cascading effect." In this scenario, the error omitted in one step is stored locally via Error Feedback (EF) and added to the next gradient. If the gradients are consistently large, the $k$ elements sent may represent only a small fraction of the total magnitude, causing the local error to grow uncontrollably. This accumulation eventually slows down training, requiring more total data to be sent to reach target accuracy.
Proposed Method: Absolute Compressors and Hard-Thresholding
The authors propose a new theoretical framework centered on "absolute compressors." Unlike traditional "relative" compressors where error depends on input size, absolute compressors have an error bounded by a constant.
The primary implementation of this concept is the Hard-Threshold Sparsifier. Instead of selecting a fixed number of elements ($k$), this method uses a fixed threshold ($\lambda$). A gradient coordinate is communicated only if its magnitude exceeds $\lambda$; otherwise, it is stored in the local error buffer. This approach ensures that elements are sent as soon as they are "important enough," effectively capping the error at each step and preventing the cascading effect.
Key Insights: The Cascading Effect
The theoretical advantage of hard-thresholding is most visible when examining the norm of the accumulated error over time.
As shown in Figure 1(c), Top-$k$ sparsification leads to a massive spike in the norm of the accumulated error ($\frac{1}{n}\sum \|e_t^i\|^2$) early in training. In contrast, the hard-threshold approach maintains a near-zero error norm throughout. This stability translates directly into communication efficiency: Figure 1(b) demonstrates that hard-thresholding reaches the same loss level with significantly fewer bits per worker than Top-$k$.
Experimental Results
The proposed method was validated across diverse tasks, including image classification (CIFAR), language modeling (WikiText-2), and recommendation systems (MovieLens-20M).
- Efficiency: On ResNet-18, hard-thresholding achieved baseline accuracy at 0.12% density, whereas Top-$k$ required 0.75% density—a 6x improvement in communication efficiency.
- Convergence: In logistic regression benchmarks like Gisette, hard-thresholding converged as fast as uncompressed SGD while communicating 600x less data.
- Computational Simplicity: Unlike Top-$k$, which requires sorting or complex selection algorithms, hard-thresholding involves a simple element-wise comparison, making it more suitable for high-performance GPU implementations.
Conclusion
By rethinking sparsification as a total error minimization problem, we can move beyond the limitations of greedy per-iteration optimization. Hard-thresholding provides a more robust and efficient alternative to Top-$k$, particularly in heterogeneous data environments. While tuning the threshold $\lambda$ remains a practical challenge, the "absolute compressor" framework opens new avenues for adaptive communication in distributed AI, potentially extending to quantization and low-rank approximation techniques.
Summary updated