Communication-efficient federated learning via knowledge distillation

Chuhan Wu, Fangzhao Wu, Lingjuan Lyu, Yongfeng Huang, Xing Xie

Abstract

Federated learning (FL) is a privacy-preserving technique that trains models on decentralized data by communicating local updates rather than raw data. However, large model parameters and numerous communication rounds create significant overhead. We present FedKD, a communication-efficient FL method based on adaptive mutual knowledge distillation and dynamic gradient compression. FedKD reduces communication costs by up to 94.89% while achieving results competitive with centralized learning across scenarios like intelligent healthcare and personalized recommendation.

Introduction

Standard Federated Learning requires clients, such as hospitals or mobile devices, to frequently exchange massive model updates with a central server. As state-of-the-art models like Transformers grow to billions of parameters, this communication bottleneck hinders real-world deployment. Existing solutions like gradient compression often sacrifice accuracy, while co-distillation methods frequently rely on public datasets that are unavailable in sensitive domains. FedKD addresses these challenges by enabling efficient communication without external data or performance loss.

Methodology

FedKD introduces two primary innovations to optimize the federated learning process:

1. Adaptive Mutual Distillation (Mentor-Mentee)

Each client maintains two models: a large, local Mentor and a lightweight Mentee. Only the Mentee is synchronized with the server. Inspired by the "Protégé Effect," the two models reciprocally distill knowledge. An adaptive weighting mechanism adjusts distillation intensity based on prediction correctness, preventing poorly performing models from misleading their partners. This setup allows the Mentor to adapt to local data nuances (personalization) while the Mentee benefits from the Mentor's sophisticated knowledge.

2. Dynamic Gradient Approximation

To further shrink updates, FedKD uses Singular Value Decomposition (SVD) to compress Mentee gradients into low-rank matrices. A dynamic precision strategy is employed: lower energy thresholds (higher compression) are used during the initial "noisy" phase of training, while higher thresholds (more precision) are used toward convergence to capture subtle updates.

Experimental Evaluation

FedKD was evaluated on five benchmark datasets across three privacy-sensitive scenarios: Personalized News Recommendation (MIND), Adverse Drug Reaction (ADR) Detection (SMM4H 2018), and Medical Named Entity Recognition (NER) using CADEC, ADE, and SMM4H 2019 datasets.

Key Results

  • Efficiency: FedKD reduced communication costs by 94.63% on MIND and 94.89% on ADR compared to standard FedAvg.
  • Accuracy: On the MIND dataset, FedKD achieved a 71.0% AUC, matching centralized large-model performance. The importance of the mutual distillation (MD) component is evident in the performance gap between FedKD and versions without MD.
Performance of FedKD on MIND and ADR datasets, illustrating the impact of mutual distillation (MD) on Mentor and Mentee performance.
  • Superiority in NER: In medical NER tasks, FedKD outperformed communication-efficient baselines such as FetchSGD and FedPAQ, showing a 3.9% absolute improvement on the SMM4H dataset over the next best method.
Comparison of FedKD against standard federated learning baselines across three medical NER datasets (CADEC, ADE, and SMM4H).

Discussion and Conclusion

FedKD demonstrates that gradients in large models are highly redundant and can be treated as low-rank matrices for significant compression. While the method increases local computational load due to the dual-model setup, it effectively handles non-IID data through local Mentor adaptation. Future work will explore combining FedKD with low-bit quantization and advanced privacy techniques like Differential Privacy to further enhance security and efficiency for edge devices.

Summary updated

BibTeX
@inproceedings{wu2022communication,
  author = {Chuhan Wu and Fangzhao Wu and Lingjuan Lyu and Yongfeng Huang and Xing Xie},
  title = {{Communication-efficient federated learning via knowledge distillation}},
  booktitle = {Nature Communications},
  year = {2022},
  doi = {10.1038/s41467-022-29763-x},
}
Figure