Differentially Private Knowledge Transfer for Federated Learning

Tao Qi, Fangzhao Wu, Chuhan Wu, Yongfeng Huang, Xing Xie

Abstract

Extracting useful knowledge from big data is important for machine learning. When data is privacy-sensitive and cannot be directly collected, federated learning is a promising option that extracts knowledge from decentralized data by learning and exchanging model parameters, rather than raw data. However, model parameters may encode not only non-private knowledge but also private information of local data, thereby transferring knowledge via model parameters is not privacy-secure. Here, we present a novel knowledge transfer method named PrivateKT, which uses actively selected small public data to transfer high-quality knowledge in federated learning with privacy guarantees. We verify PrivateKT on three different datasets, and results show that PrivateKT can maximally reduce 84% of the performance gap between centralized learning and existing federated learning methods under strict differential privacy restrictions. PrivateKT provides a potential direction to effective and privacy-preserving knowledge transfer in machine intelligent systems.

Introduction

Federated Learning (FL) enables multiple parties to collaboratively train a shared model without exchanging raw, sensitive data. Typically, participants exchange model parameters or gradients. However, recent research indicates that these parameters can "memorize" private details, posing a risk of data leakage.

To address this, Local Differential Privacy (LDP) is often employed to add mathematical noise to data before it leaves a user's device. A significant challenge arises because the required noise is proportional to the volume of data transmitted. Traditional FL methods relying on large-scale public data transfers often see their performance collapse under strict privacy budgets, as the LDP noise overwhelms the signal. PrivateKT aims to break this "privacy-utility" wall by optimizing the knowledge transfer process.

Methodology

PrivateKT introduces a paradigm shift: instead of transmitting large volumes of noisy data, it transfers a minimal amount of highly informative data. The framework is built on four pillars:

  1. Importance Sampling: The server identifies "hard" examples from a public dataset—samples where the global model is most uncertain (high entropy)—to act as the primary carriers for knowledge.
  2. Knowledge Extraction & Exchange: Clients train on private data and predict labels for these few selected public samples. Privacy is maintained via a Randomized Response mechanism, which uses a probabilistic approach to decide whether to report a true prediction or a random category.
  3. Knowledge Buffer & Aggregation: To compensate for the small data volume per round, the server maintains a "Knowledge Buffer" that stores and reuses aggregated predictions from previous rounds, stabilizing the learning signal against LDP noise.
  4. Self-Training: The server refines the global model using unlabeled public data to accelerate convergence.
Comparison of Federated Learning architectures: (A) Parameter-based FL, (B) Prediction-based FL with large public data, and (C) PrivateKT, which utilizes small knowledge transfer data and a knowledge buffer.

Experimental Setup

The researchers evaluated PrivateKT across three distinct domains to demonstrate its versatility:

  • MNIST: Handwritten digit classification.
  • MedText: Medical abstracts for text-based disease prediction.
  • X-Ray: Chest X-ray images for pneumonia detection.

Testing was conducted in both IID (Independent and Identically Distributed) and Non-IID settings to simulate real-world data skew.

Results and Discussion

PrivateKT demonstrates remarkable resilience to privacy-preserving noise. While traditional methods like FedAvg experience accuracy drops exceeding 80% when LDP is applied to MNIST, PrivateKT maintains an accuracy of 94.77%. On the X-Ray dataset (Non-IID), PrivateKT achieved a Macro-F1 score of 81.20, significantly outperforming competing DP-enabled methods that struggled to reach a score of 41.

Performance comparison on Non-IID data under strict Local Differential Privacy (LDP) constraints. PrivateKT (red bar) significantly reduces the gap between centralized training (CenTrain) and standard FL methods.

Key insights from the study include:

  • Efficiency of Small Data: Effective knowledge transfer is possible with as few as $K=2$ samples per round, provided they are representative.
  • The Power of the Buffer: The Knowledge Buffer proved to be the most critical component, allowing the system to average out LDP noise over time and form a coherent global signal.
  • Closing the Gap: Under strict privacy restrictions ($\epsilon = 2$), PrivateKT reduced the performance gap between centralized training and existing FL methods by up to 84%.

Conclusion

While PrivateKT offers a significant advancement in private federated learning, it currently depends on the availability of a related, unlabeled public dataset. Future work will explore "data-free" knowledge transfer and methods to enhance robustness against potential Byzantine (malicious) clients who might attempt to poison the global model with fake predictions.

Summary updated

BibTeX
@inproceedings{qi2023differentially,
  author = {Tao Qi and Fangzhao Wu and Chuhan Wu and Yongfeng Huang and Xing Xie},
  title = {{Differentially Private Knowledge Transfer for Federated Learning}},
  booktitle = {Nature Communications},
  year = {2023},
  doi = {10.1038/s41467-023-38794-x},
}
Figure