Abstract
Distributed training of large-scale neural networks is frequently limited by the communication overhead of synchronizing gradients across multiple nodes. This paper proposes "Gradient Dropping," a sparsification technique that transmits only the most significant 1% of gradient updates while accumulating the remainder as local residuals. Evaluated on MNIST and a complex Neural Machine Translation (NMT) task with 119 million parameters, the method achieves up to a 49% training speedup and a 50x reduction in data exchange without compromising model accuracy or translation quality. Our results demonstrate that gradient updates are naturally skewed, allowing for aggressive compression when combined with residual accumulation and layer normalization.
Introduction
In distributed "data parallel" training, multiple worker nodes process distinct data shards and must constantly exchange gradient updates to synchronize their local model replicas. As models scale to hundreds of millions of parameters, this network communication becomes a massive bottleneck, often exceeding the time spent on actual computation. While previous research has explored 1-bit quantization, these methods often struggle with complex tasks like Neural Machine Translation (NMT), which feature highly varied parameter scales and embedding matrices. This paper addresses these challenges by introducing a simple yet effective sparsification strategy.
Methodology: Gradient Dropping
The core of the proposed approach is Gradient Dropping, an elegantly simple algorithm designed to minimize network traffic while preserving information integrity. The process involves four key components:
- Sparsification: In each iteration, the system identifies the 99% smallest gradient updates by absolute value and maps them to zero. Only the remaining "important" 1% are transmitted.
- Residual Accumulation: Dropped gradients are not discarded; they are stored locally as residuals. In subsequent steps, these residuals are added to new gradients, ensuring that small updates eventually accumulate enough value to cross the threshold and be sent.
- Layer Normalization: To ensure a single global threshold works across an entire model where layers have vastly different gradient scales, the authors found that applying Layer Normalization was essential for convergence in complex tasks.
- Distributed Architecture: The system utilizes a sharded parameter approach where nodes manage specific model segments and exchange updates asynchronously.
Experimental Results
The researchers evaluated Gradient Dropping on two distinct tasks: the classic MNIST digit classification and the WMT16 Romanian→English NMT task using an attentional encoder-decoder LSTM.
Performance and Quality
On the complex NMT task, Gradient Dropping demonstrated remarkable robustness. As shown in the training curves, a 99% drop rate tracks the dense baseline almost perfectly in both training loss and validation BLEU scores. While a 99.9% drop rate shows slower initial convergence, it eventually reaches a comparable quality level.
Key Findings
- Communication Reduction: By sending only 1% of gradients and using offset-value encoding, the researchers reduced the data exchanged by approximately 50x.
- Speedups: The method achieved a 49% average speedup on MNIST and a 22% speedup on NMT. In some NMT settings, the sparse communication reached target quality levels 23% faster than the baseline.
- Gradient Skewness: Analysis confirmed that gradient updates are not normally distributed but have high positive skewness. A tiny fraction of updates performs the majority of the learning, which explains why such aggressive sparsification is viable.
- Quantization vs. Sparsity: Interestingly, for NMT, 1-bit quantization actually slowed convergence. The authors argue that NMT gradients contain too much nuance in the top 1% of values to be reduced to a single bit without significant information loss.
Conclusion
Gradient Dropping provides a powerful mechanism for scaling distributed training by mitigating the communication bottleneck. By leveraging the natural skewness of gradients and utilizing residual accumulation, the method achieves significant speedups and data reduction without sacrificing the final model's performance. Future work will explore these methods in larger multi-node environments and investigate more sophisticated handling of embedding layer skewness.
Summary updated