Communication-Efficient Federated Learning via Predictive Coding

Kai Yue, Richeng Jin, Chau-Wai Wong, Huaiyu Dai

TL;DR

This paper introduces a novel compression framework for Federated Learning (FL) that leverages predictive coding to reduce communication overhead by up to 99%. By using shared prediction functions to estimate model updates and only transmitting the "residual" (the error), the authors achieve significantly faster convergence and higher accuracy than standard compression baselines.

What Problem Does This Paper Address?

Federated Learning allows multiple devices (workers) to train a shared model without ever sharing their raw, private data. However, modern deep learning models are massive—often containing millions or billions of parameters. In a typical FL setup like Federated Averaging (FedAvg), workers must frequently upload these massive weight vectors to a central server.

For mobile devices on bandwidth-constrained or power-limited wireless networks, this "communication tax" is the primary bottleneck. While existing methods use quantization (reducing precision) or sparsification (sending only important gradients) to help, they often struggle with a harsh trade-off between communication efficiency and the final model's accuracy.

Methods

The authors propose a three-stage pipeline: Predict → Quantize → Entropy Encode.

  1. Predictive Coding: Instead of sending the new model weights directly, the worker and server both use a shared "predictor" to guess what the new weights will be based on historical data. The worker then only needs to transmit the residual—the difference between the actual update and the prediction.
  2. The paper introduces four prediction modes, ranging from simple identity mapping to sophisticated Adam-inspired predictors that track the first and second moments of weight changes.
  3. The system dynamically selects the best predictor in each round to minimize the "rate-distortion" cost.
  4. Quantization: The residual vector is decomposed into its norm and direction, then mapped to discrete symbols using either deterministic or stochastic quantizers.
  5. Entropy Coding: To squeeze out the remaining redundancy, the authors use Arithmetic Coding. They introduce a clever mapping technique that combines the sign and magnitude of quantized values into a single non-negative integer, which they prove (via Lemma 2) results in shorter average codeword lengths.

Datasets

The researchers evaluated their approach on two standard image recognition benchmarks, specifically tailored for the "non-i.i.d." (not identically and independently distributed) nature of federated environments:

  • Fashion-MNIST: Trained using a LeNet architecture.
  • CIFAR-10: Trained using a VGG-7 architecture.
  • Data Partitioning: They used a Dirichlet distribution ($\alpha=0.5$) to ensure each worker held a heterogeneous mix of classes, simulating real-world edge device data.

Key Insights and Ideas

  • The Power of Decorrelation: The "aha moment" here is that model updates in FL are highly correlated over time. Predictive coding acts as a decorrelator; by subtracting a good guess, the resulting residual has much lower entropy (variance), making it far easier to compress without losing vital information.
  • Dynamic Mode Selection: No single predictor is perfect for every stage of training. The authors found that a simple "previous weight" predictor is chosen about 50% of the time, but more complex autoregressive models are crucial during volatile phases of training.
  • Synergy, Not Just Addition: The paper demonstrates that prediction, quantization, and entropy coding aren't just stacked—they interact. A better predictor makes the quantizer more effective, which in turn allows the entropy coder to achieve much higher compression ratios.

Key Results

  • 99% Reduction: The proposed scheme can reduce the total communication cost by up to 99% compared to uncompressed FedAvg.
  • Outperforming Baselines: On the Fashion-MNIST task, the method reduced test loss by 30% compared to state-of-the-art baselines like FedPAQ and UVeQFed for the same communication budget.
  • Drastic Speedup: To reach 60% test accuracy on CIFAR-10, the proposed method required orders of magnitude less communication time than standard FedAvg or quantized SGD (QSGD).
  • Better Utility: Surprisingly, the method often achieved better final learning performance than baselines, suggesting that the "error feedback" inherent in their predictive loop might have a regularizing effect.

Limitations and Future Work

  • Theoretical Gap for Non-i.i.d.: While the simulations heavily featured non-i.i.d. data, the formal convergence analysis (Theorem 1) was conducted under i.i.d. assumptions. The authors note that extending this proof to the non-i.i.d. case is a key direction for future work.
  • Memory Overhead: Maintaining multiple predictors and historical buffers requires extra memory on the devices. While the authors argue this is negligible compared to the cost of training the neural network itself, it could be a factor for extremely resource-constrained IoT sensors.
  • Downlink Compression: This paper focuses almost entirely on the uplink (worker to server). In asymmetric networks where the server's broadcast is also limited, a similar predictive strategy for the downlink would be necessary.

Summary updated

BibTeX
@article{yue2022communication,
  author = {Kai Yue and Richeng Jin and Chau-Wai Wong and Huaiyu Dai},
  title = {{Communication-Efficient Federated Learning via Predictive Coding}},
  journal = {IEEE J. Sel. Top. Signal Process.},
  year = {2022},
  url = {https://openreview.net/forum?id=532QTLepfs},
}
Figure