TL;DR
This paper introduces a novel "pattern extraction attack" that can extract sensitive user data (like passwords and email addresses) from "Smart Reply" systems, even when the attacker has limited interaction capabilities. They demonstrate that common defenses like data scrubbing and early stopping are insufficient, but differential privacy shows promise in mitigating these risks.
What Problem Does This Paper Address?
Large language models (LLMs) are increasingly used in applications like "Smart Reply" to generate helpful suggestions. However, these models are often fine-tuned on sensitive user data (emails, chat logs), raising concerns about potential data leakage. Existing attacks to extract this sensitive data typically require unrestricted access to the model and a massive number of queries. This paper addresses the gap of evaluating privacy risks in more realistic, constrained "Service API" settings, where attackers can only interact with the model through a limited interface, and do so with a significantly smaller number of queries.
Methods
The core of the paper is the introduction of a "pattern extraction attack." This attack leverages the observation that sensitive data often appears in predictable textual patterns (e.g., "email id: <user> password: <pass>"). The attack has two phases:
- Poisoning: The adversary subtly injects "poisoning points" (crafted message-response pairs containing simulated sensitive data, or SSD) into the model's training data. This conditions the model to associate specific trigger phrases with the sensitive data.
- Extraction: The adversary then queries the fine-tuned model using these trigger phrases. The model, having been "poisoned," is more likely to reveal the sensitive data in its responses.
The authors also introduce a "Service API" threat model, simulating a realistic scenario where an adversary interacts with the model through a front-end interface that constrains query types. They contrast this with the "Model API" setting, which allows unrestricted queries. They also explore two mitigation strategies: early stopping of training and differential privacy.
Datasets
- Training Data: The models were trained on 100,000 message-response pairs sampled from the Reddit dataset.
- Simulated Sensitive Data (SSD): For evaluation, the authors used:
- Unique email aliases from Hillary Clinton's emails.
- A list of 10,000 common passwords.
- Randomly generated passphrases.
- Combinations of email IDs and passwords/passphrases to simulate login credentials.
- Poisoning Points (PP): Similar to SSD, but with a focus on patterns that are likely to be scrubbed by standard filters, ensuring the adversary's injected data isn't immediately removed.
Key Insights and Ideas
- Sensitive data often follows predictable patterns: This is the central insight. By exploiting these patterns, attackers can amplify leakage.
- "Smart Reply" systems are vulnerable: Even with data scrubbing, sensitive information can be leaked through these systems.
- Realistic threat models matter: The "Service API" setting, with its constrained interactions, is more representative of real-world deployments than the "Model API" setting.
- Poisoning is a powerful tool: Injecting a small amount of poisoned data can significantly boost an attacker's ability to extract sensitive information.
- Output decoding strategy impacts leakage: More diverse output strategies (like randomized sampling) make models more vulnerable.
- Early stopping is insufficient: While it can reduce leakage, it doesn't eliminate the risk of sensitive data extraction.
- Differential privacy is a strong defense: It appears to effectively mitigate pattern extraction attacks, though it may increase model perplexity.
Key Results
- Effective Extraction: The pattern extraction attack, even in the constrained Service API setting, could extract sensitive data (email IDs, passwords, login credentials) with just a handful of queries (10-20).
- Poisoning Impact: Poisoning the training data significantly increased extraction success rates, especially when SSD was inserted multiple times. For example, with 10 insertions, the attack extracted 22 email IDs from GPT-2 in the Service API setting, compared to very few without poisoning.
- Model API vs. Service API: The Model API attack was generally more effective than the Service API attack, but both demonstrated significant leakage.
- Decoding Strategy: Randomized sampling output decoding strategies were more vulnerable than deterministic ones like beam search.
- Early Stopping: Reduced leakage but did not fully mitigate it. For instance, with early stopping, the Service API attack still extracted 22 passwords from GPT-2.
- Differential Privacy: Showed strong defense capabilities, with attacks failing to extract even a single SSD in most cases, even with multiple insertions and queries.
Limitations and Future Work
- Simulated Data: The experiments used simulated sensitive data (SSD). Future work could explore real-world sensitive data.
- Specific Models: The study focused on GPT-2 and Bert2Bert. Evaluating other LLMs would be beneficial.
- Scrubber Effectiveness: The paper assumes a standard scrubber. The effectiveness of more advanced or custom scrubbers could be investigated.
- Mitigation Trade-offs: While differential privacy is effective, the paper notes it comes at the cost of increased model perplexity, suggesting a trade-off between privacy and utility that needs further exploration.
- Real-world Deployment: The authors emphasize the need for system designers to understand these privacy implications before deploying LLM-based applications.
Summary updated