Differentially private knowledge transfer for federated learning

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

Abstract

Extracting useful knowledge from big data is critical for modern machine learning. However, when data is privacy-sensitive, traditional centralized collection is often impossible. Federated learning (FL) offers a solution by learning from decentralized data via model parameter exchange. Yet, these parameters can inadvertently leak private information. We present PrivateKT, a novel framework that utilizes actively selected small public data to transfer high-quality knowledge under strict differential privacy guarantees. Evaluated across three datasets, PrivateKT reduces the performance gap between centralized and private federated learning by up to 84%, demonstrating a robust path toward effective and secure knowledge transfer.

Introduction: The Privacy-Utility Trade-off

In the era of big data, training powerful models often requires sensitive information, such as medical records or personal communications. Federated Learning (FL) was developed to allow models to learn from decentralized data without raw inputs ever leaving local devices. Despite this, a significant security flaw remains: model updates (gradients or parameters) can "memorize" and leak private training data.

To mitigate this, researchers employ Local Differential Privacy (LDP), which adds mathematical noise to data before transmission. However, the required noise level scales with the volume of shared data. In existing methods that rely on large-scale public datasets for knowledge transfer, this noise often overwhelms the signal, rendering the resulting models ineffective. This creates a stark trade-off between privacy and utility.

The Evolution of Federated Learning

PrivateKT addresses this challenge by rethinking the knowledge transfer process. Instead of exchanging massive parameter updates or predictions on large datasets, it focuses on transferring high-quality knowledge through a minimal, carefully curated set of public data points.

The evolution of federated learning architectures: (A) standard parameter exchange, (B) large-scale prediction exchange, and (C) the proposed PrivateKT method using small, actively selected data.

As shown in the evolution from traditional parameter exchange (A) to prediction-based transfer (B), PrivateKT (C) introduces a more efficient paradigm. By reducing the "quantity" of transferred data, it significantly lowers the noise required for differential privacy, thereby preserving the "quality" of the knowledge signal.

The PrivateKT Framework

The PrivateKT workflow consists of three integrated stages: Knowledge Extraction, Knowledge Exchange, and Knowledge Aggregation.

Detailed framework of PrivateKT, illustrating the cycle of importance sampling, local model inference, and the server-side knowledge buffer.
  1. Knowledge Extraction: The server employs importance sampling to identify public data points where the current global model exhibits high uncertainty (entropy). This ensures that the transfer focuses on the most informative regions of the data space.
  2. Knowledge Exchange: Clients perform inference on these specific samples using their locally-trained models. They then perturb these predictions using a randomized response mechanism (an LDP technique) before uploading them. Because the transfer set is extremely small (e.g., 2 samples per round), the added noise is minimal.
  3. Knowledge Aggregation: The server aggregates these noisy predictions into a Knowledge Buffer. This buffer maintains historical insights across training rounds, preventing the global model from "forgetting" previously acquired knowledge. The global model is then updated using these aggregated labels through a self-training objective.

Experimental Results and Key Insights

The researchers evaluated PrivateKT on three benchmarks: MNIST (digits), MedText (medical abstracts), and X-Ray (pneumonia detection). The framework was tested under both IID and Non-IID (imbalanced) data distributions.

  • Gap Reduction: On the X-Ray dataset, PrivateKT reduced the performance gap between centralized learning and private FL by 84%.
  • Resilience to Noise: While traditional FL methods like FedAvg saw accuracy drops exceeding 80% under strict LDP (ε = 5), PrivateKT remained within 1% of non-private centralized models in several scenarios.
  • The "Less is More" Paradox: A core finding is that smaller transfer sets actually improve performance under privacy constraints. By communicating on just a few samples, the system preserves the signal-to-noise ratio.
  • Stability via Memory: The Knowledge Buffer proved vital for stabilizing training, especially when per-round data transfer is minimal.

Conclusion

PrivateKT demonstrates that "small data" can indeed carry "big knowledge." By actively selecting informative samples and minimizing the volume of shared information, it achieves high-performance federated learning without compromising strict differential privacy. While future work is needed to address dependencies on public data and robustness against malicious clients, PrivateKT provides a promising direction for secure and effective machine intelligence.

Summary updated

BibTeX
@inproceedings{qi2023differentially,
  author = {Tao Qi and Fangzhao Wu and Chuhan Wu and Liang He 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