Semi-supervised Knowledge Transfer for Deep Learning from Private Training Data

Nicolas Papernot, Martín Abadi, Úlfar Erlingsson, Ian Goodfellow, Kunal Talwar

TL;DR

The PATE (Private Aggregation of Teacher Ensembles) framework allows researchers to train high-performing deep learning models on sensitive data while providing provable differential privacy guarantees. By using an ensemble of "teacher" models to noisily label a "student" model via semi-supervised learning, the authors achieve state-of-the-art accuracy on private datasets without exposing individual training records.

The Privacy Problem in Machine Learning

Machine learning models are notorious for "memorizing" their training data. While this helps with accuracy, it is a nightmare for privacy. If a model is trained on sensitive information—like medical records or private messages—an adversary might be able to extract that specific data by carefully querying the model or inspecting its internal parameters.

Standard techniques for Differential Privacy (DP) often struggle with deep learning. They usually require modifying the training algorithm itself (like adding noise to gradients), which can significantly degrade accuracy or only work for specific, "well-behaved" mathematical functions. The challenge is: how do we provide strong, formal privacy guarantees for complex, non-convex models like Deep Neural Networks (DNNs) without sacrificing their utility?

The PATE Methodology

The authors introduce PATE, a "black-box" architecture that separates the sensitive data from the final deployed model.

PATE Architecture

The process follows four main steps:

  1. Data Partitioning: The sensitive dataset is split into $n$ disjoint subsets.
  2. Teacher Ensembles: An independent model (a "teacher") is trained on each subset. Because the subsets are disjoint, no two teachers see the same data.
  3. Noisy Aggregation: To label a new, non-sensitive data point, all teachers vote on the class. To satisfy differential privacy, Laplacian noise is added to the vote counts before picking the winner. This ensures that the output doesn't depend too heavily on any single teacher (and thus, any single data point).
  4. Student Training: A "student" model is trained on a separate set of public, unlabeled data using the noisy labels provided by the teachers.

The Semi-Supervised Twist: Every time the student queries the teachers for a label, it "spends" some of its privacy budget ($\epsilon$). To minimize this "leakage," the authors use Generative Adversarial Networks (GANs) for semi-supervised learning. This allows the student to learn the structure of the data from a large pool of unlabeled images while only requiring a very small number of expensive, private labels from the teachers.

Datasets Evaluated

The framework was evaluated on four distinct datasets to demonstrate that PATE works across different architectures, from Convolutional Neural Networks (CNNs) to Random Forests:

  • MNIST: The classic handwritten digit benchmark.
  • SVHN: Street View House Numbers, a more complex image recognition task.
  • UCI Adult: A tabular dataset used to predict income levels from census data.
  • UCI Diabetes: A medical dataset used to predict hospital readmission.

Key Insights and Ideas

  • Consensus Equals Privacy: The "aha moment" of the privacy analysis is that when teachers have a strong consensus (e.g., they all agree an image is a "7"), the privacy cost of revealing that label is incredibly low. The authors use a "Moments Accountant" technique to track this, providing much tighter privacy bounds than previous methods.
  • The Student as a Shield: The student model is the only thing ever released to the public. Because it only sees noisy, aggregated outputs, even an adversary with full access to the student's internal weights cannot "reverse-engineer" the original sensitive training examples.
  • Algorithm Agnostic: Unlike previous DP methods, PATE doesn't care how you train your teachers. You can use any loss function, optimizer, or architecture, making it a "plug-and-play" solution for existing ML pipelines.

Key Results

PATE achieved a new state-of-the-art in the privacy/utility tradeoff:

  • MNIST: Achieved 98.00% accuracy with a privacy budget of $\epsilon = 2.04$. For context, previous state-of-the-art methods achieved 97% accuracy with a much "leakier" $\epsilon = 8.0$.
  • SVHN: Achieved 90.66% accuracy with $\epsilon = 8.19$.
  • Tabular Data: On the UCI Diabetes dataset, the private student model actually matched the accuracy of a non-private baseline (approx. 94%), proving that privacy doesn't always have to come at the cost of performance.

Limitations and Future Work

  • Unlabeled Data Requirement: PATE assumes the existence of a "public" unlabeled dataset that is somewhat similar to the private data. If no such data exists, training the student becomes much harder.
  • Teacher Scaling: For tasks with many output classes (e.g., thousands of categories), you need a very large number of teachers to ensure a strong enough quorum for the noisy voting to work. This requires a massive amount of sensitive data to begin with.
  • Future Directions: The authors suggest exploring PATE for more complex data types, such as sequences (RNNs) and natural language processing, where the "salient features" of the input space are less clearly defined than in images.

Summary updated

BibTeX
@inproceedings{papernot2017semi,
  author = {Nicolas Papernot and Martín Abadi and Úlfar Erlingsson and Ian Goodfellow and Kunal Talwar},
  title = {{Semi-supervised Knowledge Transfer for Deep Learning from Private Training Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=HkwoSDPgg},
}
Figure