Abstract
Distributed training of deep neural networks is often bottlenecked by the massive communication overhead of sharing gradients between workers. This paper introduces Dithered Quantized Stochastic Gradients (DQSG) and a nested variant (NDQSG) that exploits the natural correlation between workers' gradients to drastically reduce communication bits. By applying principles from distributed source coding, the proposed methods achieve high compression rates without sacrificing model accuracy or convergence speed. Remarkably, the injected quantization noise can even improve training times through regularization.
Introduction
When training large machine learning models across multiple processing nodes (workers), each worker computes stochastic gradients based on its local batch of data and sends them to a central server to be averaged. As models grow to millions or billions of parameters, transmitting these dense, high-precision gradient vectors becomes a severe communication bottleneck.
To mitigate this, researchers use quantization (e.g., 1-bit SGD, QSGD, TernGrad) to compress gradients. However, standard quantization introduces data-dependent noise that can complicate mathematical convergence and degrade model accuracy. Furthermore, existing methods ignore a massive source of redundancy: because workers are training the same model on similar data distributions, the gradients they compute are highly correlated. This paper addresses how to exploit this correlation to further compress communication without requiring workers to communicate with each other directly.
Methods
The authors propose two progressive techniques based on signal processing and information theory:
Dithered Quantized Stochastic Gradients (DQSG)
Instead of simply rounding a gradient to the nearest discrete value, the worker adds a pseudo-random noise (a "dither") to the gradient before quantization. Because the worker and the server share a random seed, the server can generate the exact same dither and subtract it from the received value. This ensures that the resulting quantization error behaves like independent, bounded uniform noise, rather than being biased by the gradient's actual value.
Nested Dithered Quantization (NDQSG)
To exploit the correlation between workers, the authors use a "nested" quantizer—essentially a fine quantizer operating inside a coarse quantizer. A worker using NDQSG only transmits its gradient's position in the fine quantizer relative to the coarse one (conceptually similar to sending only the fractional part of a number, or a modulo operation). This requires very few bits.
How does the server resolve the full value? The server uses the average of the other workers' gradients as "side information." Because the gradients are correlated, the server's running average is close enough to the transmitting worker's true gradient to perfectly resolve the ambiguity of the missing coarse bits. In practice, the algorithm splits workers into two groups: Group 1 uses standard DQSG to establish a reliable baseline average at the server, and Group 2 uses NDQSG to transmit updates with extreme compression.
Key Insights and Results
Theoretical Unification
The authors prove that popular existing methods like QSGD and TernGrad are actually special cases of half-dithered quantization (where dither is added before quantization, but not subtracted at the receiver). Subtracting the dither at the receiver is what makes the noise mathematically independent of the signal, allowing it to act as a form of regularization that can actually improve convergence rates compared to unquantized baselines.
Performance Benchmarks
The methods were evaluated on standard image classification benchmarks including MNIST (FC-300-100 and LeNet-5) and CIFAR-10 (CifarNet). Key findings include:
- Raw Compression: NDQSG reduces raw communication bits by over 30% compared to standard DQSG/QSGD. For the FC-300-100 model, raw bits dropped from 619.2 Kbits/worker to 422.8 Kbits/worker.
- Entropy Coding Efficiency: While 1-bit quantization sends fewer raw bits initially, DQSG/NDQSG outputs are highly compressible using standard entropy coding. After arithmetic coding, DQSG used ~38 Kbits/iteration compared to 1-bit's 330 Kbits/iteration.
- Accuracy and Convergence: NDQSG and DQSG matched baseline (no quantization) accuracy across all tested models (e.g., ~68.2% on CifarNet), significantly outperforming 1-bit quantization (~49.6%). In 4-worker and 8-worker setups, DQSG converged faster in terms of training iterations than the baseline.
Conclusion and Future Work
By applying the concept of nested quantizers—a staple in information theory for compressing correlated sources (Wyner-Ziv coding)—to distributed machine learning, the authors provide a powerful framework for reducing communication overhead. While the current empirical evaluations focused on synchronous training, the mathematical foundations suggest applicability to asynchronous and hierarchical distributed structures, such as edge devices communicating through local aggregators to a global cloud server.
Summary updated