TL;DR
This paper introduces PrivLM-Bench, a novel benchmark for evaluating the privacy of language models (LMs), especially those employing differential privacy (DP). It addresses the challenge of comparing different privacy-preserving LMs (PPLMs) by proposing a unified evaluation pipeline that goes beyond DP parameters to assess real-world inference data privacy using a suite of empirical attacks.
What Problem Does This Paper Address?
The rapid advancement of large language models (LLMs) has brought immense capabilities but also significant privacy concerns. While many "privacy-preserving" LMs (PPLMs) are developed using differential privacy (DP), comparing their actual privacy guarantees is difficult. This is because:
- Diverse DP Formulations: Different DP approaches (central, local, etc.) have varying interpretations and parameter settings, making direct comparisons tricky.
- Focus on Training Data: Most PPLMs primarily focus on protecting the training data during the fine-tuning phase. However, they often neglect the privacy of inference data – the information users input into the model during actual use. This is a critical oversight, as inference data can also contain sensitive personal information.
- DP Guarantees vs. Empirical Reality: DP provides theoretical worst-case bounds, but it's unclear how these translate to real-world attack effectiveness, especially against sophisticated adversaries.
To bridge this gap, the authors propose PrivLM-Bench to provide a fair, empirical, and multi-perspective evaluation of PPLMs, focusing on both training and inference data privacy.
Methods
PrivLM-Bench introduces a unified pipeline for evaluating PPLMs. The core methodology involves:
- Multi-faceted Privacy Objectives: Defining clear privacy goals that encompass both the protection of the entire fine-tuning dataset and its sensitive attributes, as well as the privacy of inference data.
- Unified Private Fine-tuning Pipeline: Establishing a consistent framework for performing private fine-tuning across different PPLMs, allowing for fair comparisons.
- Empirical Privacy Attacks: Employing a suite of established privacy attacks to empirically assess the privacy leakage of PPLMs. These attacks are designed to simulate realistic adversary capabilities. The key attacks include:
- Data Extraction Attacks (DEAs): Aim to recover sensitive information from the model's output by using "canaries" (pre-defined patterns with fake sensitive data) inserted into the training data.
- Membership Inference Attacks (MIAs): Determine if a specific data sample was part of the model's training set.
- Embedding-Level Privacy Attacks (EIAs): Focus on recovering sensitive attributes or even the original data from the model's internal representations (embeddings) during inference.
By analyzing the success of these attacks, PrivLM-Bench provides intuitive and fair privacy leakage metrics.
Datasets
The experiments were conducted on three datasets from the GLUE benchmark:
- MNLI (Multi-Genre Natural Language Inference): For evaluating natural language inference tasks.
- SST2 (Stanford Sentiment Treebank v2): For sentiment analysis.
- QNLI (Question Natural Language Inference): Derived from the Stanford Question Answering Dataset for NLI tasks.
The paper also mentions the use of auxiliary datasets (AD and A1) for training attackers in MIA and EIA, which share similar distributions with the original datasets.
Key Insights and Ideas
- Inference Data Privacy is Crucial and Neglected: A major takeaway is that standard DP fine-tuning, while protecting training data, does not inherently guarantee inference data privacy. This highlights a significant gap in current PPLM evaluations.
- DP Tuning Offers Robust Training Data Protection: Empirical attacks like MIAs show that DP-tuned models are generally well-protected against membership inference, aligning with DP's theoretical guarantees for training data.
- Attacks are Less Potent Than Assumed: The study reveals that current empirical privacy attacks are often less effective than the "herculean adversary" assumed by DP defense mechanisms. This suggests that some non-DP methods might offer surprisingly good privacy in practice against these specific attacks.
- Model Architecture and Tuning Matter: Privacy vulnerability is not uniform; it depends on the model architecture, size, and the specific tuning algorithm used (e.g., full fine-tuning vs. prompt tuning). Parameter-efficient tuning methods (prompt and prefix tuning) showed greater robustness against attacks in non-DP settings.
- T5 Models Show Better DP Resilience: For data extraction attacks, T5 models demonstrated better resilience to DP tuning compared to GPT-2 models, requiring less noise to mitigate exposure.
Key Results
- MIA Effectiveness: DP-tuned LMs generally achieved AUC scores close to random guessing (around 0.5), indicating strong protection against membership inference. Non-DP RoBERTa models, however, showed higher AUC scores, suggesting susceptibility.
- EIA Results: Minimal variation (less than 2%) was observed in EIA performance between DP and non-DP settings, reinforcing the idea that DP tuning doesn't significantly protect inference data privacy.
- DEA Results: DP tuning was effective against DEAs, reducing exposure compared to non-DP baselines. Prompt tuning, even without DP, showed consistently low exposure.
- Utility Degradation: DP tuning generally led to utility degradation (around 10% accuracy drop) compared to non-DP settings, with infilling-based tuning showing more significant drops. FLAN-T5 models with DP-based prefix tuning could still match or surpass masked LMs with DP on NLU tasks.
Limitations and Future Work
Limitations:
- Attack Scope: The study acknowledges not covering all attack methodologies, notably excluding recent "prompt injection" attacks, which are crucial for assessing LLM safety.
- Attack Efficacy: The effectiveness of some attacks (e.g., LiRA-based MIAs on non-DP BERT) was limited, indicating a gap between assumed and actual attack capabilities.
- DP Utility Trade-off: While DP protects training data, it often leads to significant utility degradation.
- Inference Data Privacy Gap: DP tuning alone is insufficient for safeguarding inference data privacy.
Future Work:
- Develop More Potent Attacks: The authors advocate for stronger privacy attacks that better reflect real-world threats.
- Enhance Defense Strategies: Future work should focus on developing defense mechanisms that relax the strict worst-case restriction of DP to better align with empirical attack capabilities, improving the privacy-utility trade-off.
- Broader Evaluation: Expanding the benchmark to include more attack types and model architectures.
Summary updated