DEED: A General Quantization Scheme for Communication Efficiency in Bits

Tian Ye, Peijun Xiao, Ruoyu SunarXiv 2020

Introduction

In the era of large-scale machine learning, the primary bottleneck is often not the computational capacity of individual nodes, but the communication overhead between them. Whether training on a cluster of GPUs or across a vast network of mobile devices in Federated Learning, the time required to synchronize model gradients can significantly exceed the time spent on local computation.

The paper "DEED: A General Quantization Scheme for Communication Efficiency in Bits" introduces a novel framework designed to minimize this overhead. By integrating "Double Encoding" with "Error Diminishing" strategies, the authors provide a unified approach that drastically reduces the total number of bits transmitted without compromising convergence speed.

The Communication Bottleneck

Distributed optimization typically employs a star topology where worker nodes compute gradients and send them to a central server. The server aggregates these updates and broadcasts the result back to the workers. Current quantization techniques, which compress high-precision data into fewer bits, face three critical limitations:

  1. Asymmetric Compression: Many schemes only quantize the "uplink" (worker to server), leaving the "downlink" (server to worker) at full precision, thus missing half the potential savings.
  2. Static Quantization Error: Fixed quantization levels introduce a constant "noise" floor. As the model approaches the optimum, this noise prevents exact convergence or necessitates a reduction in the learning rate, slowing down the process.
  3. Algorithmic Fragmentation: Different hardware constraints often require entirely different algorithms, making it difficult to deploy a single, robust solution across varied environments.

The DEED Framework

The proposed DEED (Double Encoding and Error Diminishing) framework addresses these issues through three core innovations:

  • Double Encoding: DEED quantizes communication in both directions. By compressing the server's broadcast, it achieves symmetric efficiency.
  • Gradient Difference Quantization: Instead of quantizing raw gradients, DEED quantizes the difference between successive gradients ($\nabla f(w_{k+1}) - \nabla f(w_k)$). As the model converges, this difference naturally approaches zero, allowing the quantization error to diminish over time without requiring more bits.
  • Absolute Error Framework: The authors shift the theoretical analysis from "relative error" to "absolute error." This mathematical shift enables a unified proof of linear convergence for various optimization methods, including Gradient Descent (GD), Stochastic Gradient Descent (SGD), and Nesterov Acceleration.

Theoretical Efficiency

The theoretical strength of DEED is most apparent when comparing the total bits required for convergence. In the deterministic (full-batch) setting, DEED-GD and its accelerated version, A-DEED-GD, demonstrate superior complexity.

Comparison of theoretical complexities for deterministic gradient methods.

As shown in the table above, DEED-GD achieves the same iteration complexity as standard GD while significantly reducing the total bits transmitted. Notably, A-DEED-GD maintains the optimal accelerated convergence rate of $\tilde{O}(\sqrt{\kappa} \log 1/\epsilon)$ while remaining highly bit-efficient, outperforming existing methods like DIANA and ADIANA which often carry a penalty factor related to the compression ratio $C$.

Stochastic and Federated Learning

The framework extends naturally to stochastic settings, which are common in large-scale training where nodes only process mini-batches.

Comparison of theoretical complexities for stochastic gradient methods.

In the stochastic regime, DEED-SGD continues to outperform competitors. While methods like DIANA [18] exhibit iteration complexities that scale with $1/\epsilon^2$, DEED-SGD maintains a logarithmic dependence on the precision $\epsilon$ in terms of iterations, leading to massive savings in total communication bits. Furthermore, in Federated Learning contexts (DEED-Fed), the framework provides the first explicit bit-complexity bounds under non-i.i.d. data distributions.

Empirical Validation

The researchers validated DEED using synthetic linear regression and the MNIST dataset. The results were compelling:

  • Massive Bit Savings: On MNIST, DEED-GD reached target accuracy using 10.44x fewer bits than QSGD and a staggering 190.28x fewer bits than DIANA (when using a block size of 128).
  • Convergence Integrity: Across all tests, DEED algorithms converged in the same number of iterations as their full-precision counterparts, proving that the compression is essentially "free" regarding training time.

Conclusion and Future Directions

DEED represents a significant step toward truly communication-efficient distributed learning. By leveraging the diminishing nature of gradient differences, it provides a path to high-precision models with minimal bit-budgets. Future work will likely focus on relaxing the strong convexity assumptions required for current proofs and optimizing the memory overhead associated with tracking gradient states on worker nodes.

Summary updated

BibTeX
@misc{ye2020deed,
  author = {Tian Ye and Peijun Xiao and Ruoyu Sun},
  title = {{DEED: A General Quantization Scheme for Communication Efficiency in Bits}},
  year = {2020},
  eprint = {2006.11401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.11401},
}
Figure