Private Deep Learning with Teacher Ensembles

Yingbo ZhouarXiv 2019 · arXiv

TL;DR

This paper introduces PET-DL, a novel framework for training private deep learning models using teacher ensembles. By distilling knowledge from multiple "teacher" models trained on disjoint private data subsets, PET-DL achieves strong performance while offering provable differential privacy guarantees, outperforming existing methods in both accuracy and privacy budget.

What Problem Does This Paper Address?

Deploying deep neural networks (DNNs) in real-world applications often involves sensitive data, such as medical records or user behavior. While DNNs offer powerful capabilities, training them on such data raises significant privacy concerns, as models can inadvertently leak information about the training data. Existing privacy-preserving methods, particularly those for DNNs, often suffer from a substantial trade-off between privacy and model performance. This paper tackles this challenge by proposing a method that leverages ensemble learning to improve model performance while maintaining strong privacy guarantees.

Methods

The core of PET-DL lies in its "teacher-student" framework enhanced with differential privacy. Here's a breakdown of the key techniques:

  • Teacher Ensembles: Multiple "teacher" neural networks are trained independently on disjoint subsets of the sensitive training data. This allows for parallel training and data partitioning.
  • Multi-layer Knowledge Transfer: Instead of just using the final prediction outputs of the teachers, PET-DL transfers knowledge from both the intermediate layers (as "hints") and the prediction layers. This richer information transfer is expected to lead to a more accurate student model.
  • Knowledge Distillation: The student model learns from the aggregated "softened" probability outputs of the teacher ensembles. This technique, adapted from standard knowledge distillation, helps the student mimic the teachers' learned representations.
  • Differential Privacy: To ensure privacy, PET-DL carefully perturbs the knowledge transferred from the teachers using differential privacy mechanisms. Specifically, it employs a batch-by-batch query mechanism to reduce the number of queries to the teachers, thereby lowering the overall privacy cost. Gaussian noise is added to the aggregated loss to satisfy differential privacy guarantees.
  • Weighted Ensemble Scheme: A novel weighted ensemble scheme is introduced to handle cases where teacher models might be trained on biased datasets. This scheme allows teachers to weight their contributions based on confidence, improving robustness.

Datasets

The paper evaluates PET-DL on three standard image datasets:

  • CIFAR-10: A dataset of 60,000 images in 10 classes.
  • MNIST: A dataset of handwritten digits, with 60,000 training samples.
  • SVHN (Street View House Numbers): A dataset of house numbers, with 73,000 training samples.

For each dataset, the training data is split into subsets for training the teachers and a public dataset for training the student.

Key Insights and Ideas

  • Richer Knowledge Transfer is Key: Leveraging intermediate layer representations (hints) in addition to final predictions significantly boosts the student model's performance, going beyond standard knowledge distillation.
  • Ensembles for Privacy and Performance: Training multiple teachers on disjoint data subsets, and then distilling their knowledge to a single student, effectively decouples privacy from performance. The ensemble nature helps mitigate the performance degradation often seen in single-model privacy methods.
  • Batch Queries Reduce Privacy Cost: Shifting from sample-by-sample queries to batch queries for knowledge transfer significantly reduces the overall privacy budget required, making the method more practical.
  • Weighted Ensembles Enhance Robustness: The proposed weighted ensemble scheme is crucial for handling scenarios where individual teachers might be less reliable or trained on biased data, leading to more stable and effective student training.

Key Results

  • Outperforms State-of-the-Art: PET-DL consistently outperforms existing privacy-preserving methods (DP-SGD, PATE variants) on CIFAR-10, MNIST, and SVHN in terms of both accuracy and privacy budget. For instance, on CIFAR-10, PET-DL with 4 teachers achieves 76.81% accuracy with a privacy budget of 5.48, while DP-SGD achieves 73.00% with a budget of 8.00.
  • Improved Accuracy: Student models trained with PET-DL often achieve accuracy comparable to or even exceeding the average performance of the teacher models, especially on MNIST and SVHN.
  • Efficiency Gains: The paper demonstrates that PET-DL can train smaller student models that are more efficient than teachers, achieving significant compression ratios (e.g., 11.9x on MNIST) and speed-ups in evaluation.
  • Parameter Sensitivity: Experiments show that the performance of PET-DL is sensitive to hyperparameters like hint learning epochs, distillation epochs, batch size, noise scale, and the number of teachers, with specific recommendations provided for optimal settings.

Limitations and Future Work

  • Number of Teachers: While more teachers generally lead to better student performance, there's an implicit assumption that the number of teachers is manageable and that the student model's performance doesn't drop significantly with too many teachers. The paper suggests training as many teachers as possible until performance drops.
  • Computational Cost: Training multiple teacher models can be computationally intensive, although the student model's inference is efficient.
  • Future Work: The paper suggests exploring the weighted ensemble method further for robustness, especially with biased teacher training sets. Further investigation into the trade-offs between compression, efficiency, and effectiveness for different model sizes and datasets is also implied.

Summary updated

Abstract

Privacy-preserving deep learning is crucial for deploying deep neural network based solutions, especially when the model works on data that contains sensitive information. Most privacy-preserving methods lead to undesirable performance degradation. Ensemble learning is an effective way to improve model performance. In this work, we propose a new method for teacher ensembles that uses more informative network outputs under differential private stochastic gradient descent and provide provable privacy guarantees. Out method employs knowledge distillation and hint learning on intermediate representations to facilitate the training of student model. Additionally, we propose a simple weighted ensemble scheme that works more robustly across different teaching settings. Experimental results on three common image datasets benchmark (i.e., CIFAR10, MINST, and SVHN) demonstrate that our approach outperforms previous state-of-the-art methods on both performance and privacy-budget.
BibTeX
@misc{zhou2019private,
  author = {Yingbo Zhou},
  title = {{Private Deep Learning with Teacher Ensembles}},
  year = {2019},
  eprint = {1906.02303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.02303},
}
Figure