P-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models

Haoran Li, Dadi Guo, Donghao Li, Wei Fan, Qi Hu, Xin Liu, Chunkit Chan, Duanyi Yao, Yangqiu Song · DOI

Introduction

As large language models (LLMs) are increasingly trained on massive internet-scale datasets, the risk of leaking sensitive Personally Identifiable Information (PII) has become a critical concern. While Differential Privacy (DP) has been proposed as a theoretical safeguard, there remains a significant gap between abstract privacy budgets ($\epsilon, \delta$) and the empirical reality of data leakage. PrivLM-Bench (referred to here as P-Bench) is a comprehensive evaluation framework designed to bridge this gap by quantifying actual privacy risks across training and inference stages.

Problem Statement: The Metric and Inference Gaps

Current privacy research in NLP faces two primary challenges:

  1. The Metric Gap: Theoretical privacy parameters do not intuitively reflect the likelihood of specific secret leakage, making it difficult for developers to assess real-world risks.
  2. The Inference Gap: Most defenses focus on protecting training data. However, user inputs during the inference stage are often overlooked, despite being vulnerable to extraction through internal model states (embeddings).

Methodology

P-Bench provides a unified pipeline to evaluate models against three distinct attack vectors, covering both fine-tuning and inference stages.

The PrivLM-Bench evaluation pipeline, illustrating the flow from pretrained models through various fine-tuning methods to the multi-level privacy evaluation.

The framework evaluates the following:

  • Data Extraction Attacks (DEAs): Measuring the model's tendency to memorize and reproduce "canaries"—unique, fake secrets inserted into the training set.
  • Membership Inference Attacks (MIAs): Utilizing the Likelihood Ratio Attack (LiRA) to determine if specific data points were part of the training set.
  • Embedding Inversion Attacks (EIAs): Assessing whether an attacker can reconstruct original user input text from the model's internal vector representations.

Experimental Setup

The benchmark evaluates a diverse set of models, including BERT, RoBERTa, GPT-2, T5, and FLAN-T5 (ranging from 110M to 3B parameters). These models are tested on three major GLUE datasets: MNLI (Natural Language Inference), SST2 (Sentiment Analysis), and QNLI (Question Answering). The evaluation covers various tuning strategies, from full fine-tuning to parameter-efficient methods like Prompt and Prefix Tuning.

Key Insights

  • DP is a Training-Only Shield: Differential Privacy effectively secures training data but offers virtually no protection against Embedding Inversion. User inputs during inference remain highly vulnerable even in "private" models.
  • The "Herculean" Adversary Fallacy: Empirical attacks often prove less potent than theoretical bounds suggest. Some models without explicit DP protections demonstrated surprising inherent resistance to certain attacks.
  • Efficiency Enhances Privacy: Parameter-efficient tuning methods (e.g., Prompt Tuning) are inherently more private than full fine-tuning because they update fewer parameters, reducing the likelihood of memorizing training samples.
  • Architectural Robustness: Encoder-decoder architectures like T5 proved more robust against data extraction than decoder-only models like GPT-2 under similar privacy constraints.

Results

  • MIA Mitigation: DP-tuned models ($\epsilon=8$) successfully reduced MIA success to near-random levels (AUC ~0.5).
  • Utility Trade-offs: Implementing DP typically resulted in a ~10% accuracy drop for full fine-tuning, though larger models like FLAN-T5-xl maintained better performance.
  • Embedding Leakage: High F1 scores in reconstruction tests across all models highlight a critical need for new defenses targeting the inference stage.

Conclusion

P-Bench highlights that while current DP methods protect training data, the inference stage remains a significant privacy frontier. Future work must focus on developing "utility-enhanced" defenses and more potent empirical attack methodologies to ensure end-to-end privacy in language modeling.

Summary updated

BibTeX
@inproceedings{li2024p,
  author = {Haoran Li and Dadi Guo and Donghao Li and Wei Fan and Qi Hu and Xin Liu and Chunkit Chan and Duanyi Yao and Yangqiu Song},
  title = {{P-Bench: A Multi-level Privacy Evaluation Benchmark for Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.4},
}
Figure