Abstract
As Large Language Models (LLMs) are increasingly integrated into sensitive applications, the trade-off between model utility and data privacy has become a central engineering challenge. While Differential Privacy (DP) provides mathematical guarantees for training data, its practical efficacy against empirical attacks and its impact on inference-stage privacy remain under-explored. This paper introduces PrivLM-Bench, a comprehensive benchmark presented at ACL 2024 that evaluates language models across training and inference stages. Our findings reveal a significant "inference gap": while DP effectively mitigates training data leakage, it offers negligible protection against attacks targeting user-provided data during inference.
Introduction
The rapid adoption of LLMs has brought the "privacy-utility trade-off" to the forefront of AI research. Differential Privacy (DP) is the standard framework for providing formal privacy guarantees by adding noise during the training process. However, relying solely on theoretical DP parameters ($\epsilon, \delta$) presents several issues. First, DP represents a worst-case bound that may not reflect actual empirical leakage. Second, traditional DP focuses on the fine-tuning dataset, leaving a "blindspot" regarding the privacy of prompts provided by users during the inference stage. Finally, the lack of standardized evaluation makes it difficult to compare privacy across different model architectures and tuning methods.
Methodology: The PrivLM-Bench Framework
PrivLM-Bench addresses these gaps by providing a unified pipeline to evaluate models through three distinct empirical attack vectors.
The benchmark categorizes its evaluation into three primary lenses:
- Data Extraction Attacks (DEAs): These tests involve inserting "canaries"—unique, random strings resembling personally identifiable information (PII)—into the training set to see if the model can be prompted to regurgitate them.
- Membership Inference Attacks (MIAs): These attacks attempt to determine if a specific data sample was part of the training set by analyzing the model's output confidence (logits).
- Embedding Inversion Attacks (EIAs): This critical test focuses on the inference stage, attempting to reconstruct original input text from the model's internal mathematical representations (embeddings).
Experimental Setup
The authors evaluated these attacks across diverse architectures, including Encoder-only (BERT), Decoder-only (GPT-2), and Encoder-Decoder (T5) models. The study compared full fine-tuning against parameter-efficient methods like Prompt and Prefix tuning. Evaluations were conducted using three mainstream Natural Language Understanding (NLU) datasets from the GLUE benchmark: MNLI, SST-2, and QNLI.
Key Insights and Results
The Inference Gap
A primary finding of PrivLM-Bench is the "inference gap." While DP-tuning successfully shields the training data, the model’s internal embeddings still leak sensitive user information during live inference. Embedding Inversion Attacks (EIAs) remained highly successful regardless of DP implementation. For instance, in GPT-2, the F1 score for input reconstruction showed virtually no improvement when DP was enabled, highlighting a critical vulnerability in current privacy-preserving strategies.
Utility vs. Privacy
Implementing DP (at a budget of $\epsilon=8$) typically resulted in a ~10% drop in accuracy across most models. However, DP-tuned models showed high resistance to Membership Inference Attacks, reducing attacker success rates to near-random levels. Interestingly, empirical attacks (like LiRA) often perform much worse than DP theory suggests, with membership inference success often being no better than a random guess (AUC ~0.5) even when theoretical privacy budgets were relatively high.
Efficiency and Scale
Parameter-efficient tuning methods (e.g., Prompt Tuning) were found to be inherently more resistant to privacy attacks than full fine-tuning, even without DP. By updating fewer weights, these models are less prone to memorizing specific training samples. Furthermore, larger models generally achieved a more favorable balance between maintaining high utility and resisting privacy leakage. Among the tested models, FLAN-T5 demonstrated the best overall resilience, matching the performance of masked language models on NLU tasks while maintaining robust privacy under DP.
Conclusion
PrivLM-Bench demonstrates that theoretical privacy guarantees do not always translate to empirical security, particularly during the inference stage. The benchmark serves as a call to action for the research community to develop defense strategies that protect user data throughout the entire model lifecycle, moving beyond training-centric Differential Privacy.
Summary updated