Differentially Private Meta-Learning

Jeffrey Li, Mikhail Khodak, Sebastian Caldas, Ameet Talwalkar

TL;DR

This paper introduces the first formal study of differential privacy (DP) within the context of meta-learning. The authors propose a new privacy notion called task-global DP, which protects individual data records within a task while allowing the meta-learner to extract useful shared knowledge. This approach significantly outperforms traditional "local" privacy methods in federated and few-shot learning scenarios.

The Privacy Dilemma in Meta-Learning

Meta-learning, or "learning to learn," relies on the idea that sharing knowledge across different tasks can help a model adapt quickly to new, unseen challenges. In Gradient-Based Meta-Learning (GBML) algorithms like MAML or Reptile, this sharing happens by sending task-specific model updates to a central "meta-learner."

However, this collaborative process is a privacy minefield. If the tasks involve sensitive data—such as a user’s private text messages for word prediction or a patient’s medical records for clinical diagnosis—sharing model updates can inadvertently leak raw data. Previous research has shown that adversaries can often reconstruct training examples just by looking at model gradients.

While Differential Privacy (DP) is the gold standard for preventing such leaks, applying it to meta-learning is tricky. Standard DP approaches often result in a "utility collapse," where the noise added to protect privacy makes the model too inaccurate to be useful. The authors set out to find a middle ground: a way to provide rigorous privacy guarantees for task-owners without destroying the model's ability to learn.

Methods & Task-Global DP

The authors first provide a taxonomy of privacy in meta-learning, identifying four levels of protection. Their primary contribution is the formalization of Task-Global DP.

Taxonomy of privacy in meta-learning

In this setting, the goal is to ensure that the model update sent by a task-owner to the meta-learner does not reveal whether any specific individual record was part of that task's dataset. This protects the "record-level" privacy of individuals (e.g., a single patient in a hospital's database or a single message on a user's phone) against both the central meta-learner and any future participants.

To achieve this, they propose a DP-GBML algorithm:

  1. Within-Task Privacy: When a task-owner computes an update, they use a privatized version of Stochastic Gradient Descent (DP-SGD). This involves clipping gradients to a maximum norm and adding Gaussian noise.
  2. Theoretical Guarantees: The authors prove that their algorithm retains "transfer learning guarantees" in convex settings. Essentially, they show that if the tasks are similar, the meta-learner can still find a great initialization even with the added privacy noise.
  3. Practical Implementation: They adapt the popular Reptile algorithm to work with this DP framework, making it applicable to deep learning models like LSTMs and CNNs.

Experimental Setup

The researchers evaluated their approach on two distinct types of problems:

  • Federated Language Modeling: They used modified versions of the Shakespeare dataset (predicting lines from plays) and Wiki-3029 (Wikipedia articles). They specifically created "Shakespeare-800" and "Wiki-1600" benchmarks to test performance under fixed data constraints per task.
  • Few-shot Image Classification: They used the classic Omniglot (handwritten characters) and Mini-ImageNet datasets to see if privacy-preserving models could still achieve the rapid adaptation meta-learning is known for.

Key Findings

  • The "Local" vs. "Task-Global" Trade-off: The most surprising insight is how much performance is regained by moving from "Local DP" (where you trust no one, not even the meta-learner) to "Task-Global DP." Local DP is often so noisy that the model performs worse than if it hadn't used meta-learning at all.
  • Massive Utility Gains: In language modeling, Task-Global DP achieved 1.6x to 2.3x higher accuracy than Local DP across various privacy budgets.
Accuracy comparisons on Shakespeare-800 and Wiki-1600
  • Near-Non-Private Performance: On the Shakespeare dataset, the private meta-learning model reached up to 92% of the accuracy of a non-private model while still maintaining a single-digit privacy budget ($\epsilon$).
  • Few-Shot Success: For image classification on Omniglot and Mini-ImageNet, the DP meta-learning approach significantly outperformed a "No Meta-Learning" baseline. This proves that even with privacy constraints, "learning to learn" provides a clear advantage over training from scratch.
  • Similarity Matters: The theoretical analysis highlights that the "cost" of privacy is lower when tasks are more similar. This confirms that meta-learning is a particularly good candidate for DP because the shared structure across tasks helps overcome the noise added for individual privacy.

Limitations and Future Work

  • Convexity Gap: While the empirical results on deep neural networks are strong, the formal learning-theoretic guarantees are currently limited to convex settings. Extending these proofs to non-convex deep learning remains an open challenge.
  • Hyperparameter Sensitivity: DP algorithms are notoriously sensitive to hyperparameters like clipping thresholds and noise scales. The authors noted that finding the right balance required significant tuning.
  • Combining with MPC: The authors suggest that combining their DP approach with Secure Multiparty Computation (MPC) could provide even stronger "Task-Level" privacy without further sacrificing utility, which is a promising direction for future federated learning systems.

Summary updated

BibTeX
@inproceedings{li2020differentially,
  author = {Jeffrey Li and Mikhail Khodak and Sebastian Caldas and Ameet Talwalkar},
  title = {{Differentially Private Meta-Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=3Hfx5gEJEF},
}
Figure