PrivAuditor: Benchmarking Data Protection Vulnerabilities in LLM Adaptation Techniques

Derui Zhu, Dingfan Chen, Xiongfei Wu, Jiahui Geng, Zhuo Li, Jens Grossklags, Lei Ma

Introduction

While the world has marveled at the general capabilities of Large Language Models (LLMs) like LLaMA or GPT, these models often stumble on specialized tasks—such as medical or financial analysis—without domain-specific adaptation. The standard industry pipeline has shifted to a "pre-train then adapt" model.

However, this adaptation phase frequently involves highly sensitive, proprietary, or regulated data, such as medical records or internal corporate documents. While it is well known that LLMs can memorize their training data, there has not been a systematic, large-scale investigation into how different adaptation methods impact the risk of data leakage. To address this, researchers introduce PrivAuditor, a comprehensive benchmark designed to audit how much sensitive information "leaks" when fine-tuning LLMs for specific domains.

Overview of the PrivAuditor threat model and adaptation pipeline.

Methodology: Auditing Privacy via Membership Inference

The authors evaluate privacy through the lens of Membership Inference Attacks (MIAs). In an MIA, an adversary attempts to determine if a specific data sample was part of the model's training set. High accuracy in this attack proves the model has "memorized" that specific sample, constituting a privacy violation.

PrivAuditor provides a standardized tool for practitioners to assess the privacy "cost" of their fine-tuning choices by benchmarking:

  • 7 Adaptation Techniques: Ranging from Full Fine-tuning to Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA, Adapters, Prefix-tuning, P-tuning, Prompt-tuning, and In-context Learning (ICL).
  • 7 Attack Approaches: Spanning simple likelihood checks to sophisticated "white-box" gradient-norm attacks and "black-box" reference-based methods.
  • 5 Model Architectures: T5, LLaMA-7B, OPT-6.7B, BLOOM-7B, and GPT-J-6B.

To ensure that any detected "leakage" was strictly due to the adaptation phase and not the original pre-training, the researchers specifically chose datasets released after the pre-training of the foundation models: Sujet Finance (177k financial task entries), CorpClimate (11k corporate climate policy documents), and Synthetic-Text-to-SQL.

Key Findings and Insights

The study reveals a stark parameter-privacy trade-off: the more parameters you train during adaptation, the easier it is for an attacker to figure out if a specific piece of data was used in your training set.

1. The Parameter-Privacy Trade-off

There is a direct correlation between the number of trainable parameters and privacy risk. Full fine-tuning, where all parameters are updated, is the most vulnerable. Conversely, Prompt-tuning—where only a few "soft prompt" tokens are tuned—is the most private. Low-Rank Adaptation (LoRA) consistently showed lower privacy risk than full fine-tuning while maintaining comparable task accuracy, making it a strong candidate for privacy-conscious developers.

2. Structural Data is Naturally Robust

Attacks on the SQL dataset were significantly less successful than those on the finance or climate datasets. Because SQL queries are structurally similar and follow a rigid, repetitive syntax, it is much harder for a model to "fingerprint" a specific query compared to free-form natural language.

AUC-ROC scores for various attacks across different LLMs and datasets, highlighting the lower vulnerability of structured SQL data.

3. Model Size and Training Duration Amplify Risk

Larger models exhibit higher privacy vulnerability. Their massive parameter capacity makes it easier for them to memorize specific training samples alongside general domain knowledge. Furthermore, increasing the number of training iterations (epochs) steadily increases the attack success rate. For example, on the CorpClimate dataset, the attack AUC rose from ~0.68 at 1 epoch to ~0.75 at 5 epochs.

4. Generalization as a Shield

Counter-intuitively, using more data for adaptation can actually decrease the success of privacy attacks. A larger volume of data helps the model learn general patterns rather than over-fitting to—and thus memorizing—individual samples.

5. The Dominance of Reference Attacks

The most effective attack method across the board was Likelihood-ref, which compares the adapted model's output to a reference model that hasn't seen the private data. In many scenarios, the Likelihood-ref attack achieved an AUC-ROC of over 0.85 for full fine-tuning, indicating a very high probability of identifying training members.

Limitations and Future Work

While PrivAuditor comprehensively benchmarks existing attacks, the authors acknowledge that a "specialized" attacker with deep domain knowledge might uncover even more severe vulnerabilities.

The paper points toward several critical future directions for the field:

  • DP-Adaptation: Investigating how Differentially Private (DP) adaptation techniques impact the delicate balance between model utility and privacy.
  • Co-design: Developing new adaptation methods that are "private by design" rather than relying solely on post-hoc auditing.
  • Vulnerability Generation: Creating automated tools capable of identifying the most "vulnerable" samples within a dataset, helping practitioners harden their models before deployment.

Summary updated

BibTeX
@inproceedings{zhu2024privauditor,
  author = {Derui Zhu and Dingfan Chen and Xiongfei Wu and Jiahui Geng and Zhuo Li and Jens Grossklags and Lei Ma},
  title = {{PrivAuditor: Benchmarking Data Protection Vulnerabilities in LLM Adaptation Techniques}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure