Auditing Empirical Privacy Protection of Private LLM Adaptations

Lorenzo Rossi, Bartłomiej Marek, Vincent Hanke, Xun Wang, Michael Backes, Adam Dziedzic, Franziska BoenischSafeGenAi @ NeurIPS 2024

TL;DR

This paper investigates the real-world privacy risks of adapting large language models (LLMs) using differential privacy (DP). They found that the similarity between pretraining and adaptation data distributions significantly impacts privacy leakage, with closer distributions leading to higher risks, even without direct data overlap. Parameter-efficient fine-tuning (PEFT) methods like LoRA offer the best privacy protection, especially for out-of-distribution data.

What Problem Does This Paper Address?

Large language models (LLMs) are increasingly used for sensitive downstream tasks, and differential privacy (DP) is often employed to protect the adaptation data. However, the theoretical privacy guarantees of DP might not fully translate to practical scenarios, especially due to the complex interplay between the massive, often undisclosed, pretraining data and the smaller adaptation datasets. This paper addresses the uncertainty surrounding the actual privacy leakage from LLM adaptations, particularly how pretraining data influences adaptation privacy and vice-versa, and how different adaptation methods and DP settings affect these risks.

Methods

The authors propose a framework for auditing privacy in the "pretrain-adapt" paradigm, identifying four stages: auditing pretraining, auditing adaptations, joint auditing of both, and post-adaptation auditing of pretraining. They adapt membership inference attacks (MIAs), specifically the Robust Membership Inference Attack (RMIA), to this framework. Their experiments involve systematically varying the distribution of adaptation data (from perfect overlap to entirely out-of-distribution) and evaluating different adaptation methods (full fine-tuning, head fine-tuning, LoRA, and prefix tuning) under various DP privacy budgets (ε).

Datasets

The study uses the open-source Pythia suite of LLMs and the Pile dataset for pretraining. For adaptation and evaluation, they use:

  • In-distribution (IID) datasets: BookCorpus2, GitHub, and Enron Emails (all subsets of The Pile).
  • Out-of-distribution (OOD) datasets: SAMSum (dialogue summarization) and GermanWiki (German Wikipedia entries).

Key Insights and Ideas

  • Distributional Similarity is Key: The closer the adaptation data's distribution is to the pretraining data's distribution, the higher the privacy risk, even if there's no direct data overlap. This is a critical finding that goes beyond simple data leakage.
  • PEFT Methods Shine: Parameter-efficient fine-tuning (PEFT) methods, particularly LoRA, offer significantly lower empirical privacy leakage compared to full fine-tuning, while maintaining comparable utility.
  • OOD Data Offers Better Protection: Adapting models on data that is out-of-distribution (OOD) relative to the pretraining data provides better privacy protection.
  • Prefix Tuning's Dual Role: Prefix tuning, while sometimes showing higher leakage for IID data, can also reduce empirical leakage from the pretraining data, possibly due to the added noise during private adaptation.
  • Strict DP is Necessary: To effectively prevent privacy leakage, adaptations need to be trained with very strict differential privacy constraints (ε < 0.1).

Key Results

  • OOD Adaptations: For OOD datasets (SAMSum, German Wiki), LoRA and Prefix Tuning showed significantly lower privacy leakage (lower AUC scores) compared to Full and Head fine-tuning. Prefix Tuning was particularly effective for OOD data.
  • IID Adaptations: For IID datasets (BookCorpus2 Val, GitHub, Enron), privacy leakage was generally higher. Prefix tuning showed the highest leakage for IID data, followed by Full fine-tuning. LoRA consistently provided strong privacy protection across IID datasets.
  • Impact of ε: With a larger privacy budget (ε=8), privacy leakage was high for both IID and OOD data, often approaching perfect leakage. Only with very small ε (ε < 0.1) was significant privacy protection observed.
  • Pretraining vs. Validation Data: When adapting on data from the same distribution, using the pretraining data itself for adaptation resulted in similar privacy leakage as using the corresponding validation data.
  • Memorization: Prefix tuning was shown to reduce the number of memorized samples, especially at smaller ε values.

Limitations and Future Work

  • Black-Box Scenario: The study primarily focuses on a "black-box" scenario for auditing, which is realistic but might not capture all aspects of privacy.
  • Holistic Auditing: The paper focuses mainly on auditing adaptations and post-adaptation pretraining leakage, acknowledging that a truly holistic audit would need to encompass all four stages of the pretrain-adapt paradigm, which presents significant challenges.
  • Computational Cost: The authors note the impracticality of training many shadow models for MIAs on large LLMs, highlighting the need for more efficient auditing techniques.
  • Future Directions: The paper suggests future work on developing better auditing methods for pretraining, leveraging insights from dataset inference, and advancing auditing techniques for the complex interplay between pretraining and adaptation data. The need for privacy adaptations in the high-privacy regime (low ε) is emphasized.

Summary updated

BibTeX
@inproceedings{rossi2024auditing,
  author = {Lorenzo Rossi and Bartłomiej Marek and Vincent Hanke and Xun Wang and Michael Backes and Adam Dziedzic and Franziska Boenisch},
  title = {{Auditing Empirical Privacy Protection of Private LLM Adaptations}},
  booktitle = {SafeGenAi @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=vFIC8Le5UH},
}
Figure