Abstract
Large Language Models (LLMs) possess significant capabilities for automated information extraction, which can lead to privacy violations and intellectual property theft. This paper introduces "data defenses"—adversarial text snippets that, when embedded in public content, prevent LLMs from extracting sensitive information while maintaining human readability. By repurposing prompt injection techniques into a defensive framework, we demonstrate a "bottom-up" approach to data sovereignty. Our results show that these defenses can achieve nearly 100% failure rates for automated attackers across various datasets with minimal cost and intrusiveness.
Introduction
The rapid advancement of LLMs has enabled efficient "inference" tasks, such as summarizing content, extracting Personally Identifying Information (PII), and bypassing paywalls. While these capabilities are powerful, they facilitate mass surveillance and the unauthorized exploitation of digital content. Current mitigation strategies often rely on slow-moving government regulations or corporate guardrails that may not align with individual privacy needs.
To address this power disparity, we propose a method for individuals to protect their text at inference time. Similar to how tools like Glaze protect visual art from AI training, "data defenses" empower users to "break" an LLM's ability to process their data without rendering the text unreadable to humans. Unlike encryption, which obscures text for all readers, these defenses rely on obfuscation that specifically targets the model's attention mechanisms.
Methodology
The core of our approach involves repurposing adversarial prompt injections—traditionally viewed as security vulnerabilities—into defensive shields. We developed an automated pipeline to generate these defenses using a three-model system:
- The Generator ($L_d$): Produces candidate defense strings designed to hijack the LLM's attention.
- The Attacker ($L_b$): Simulates an adversary attempting to extract information from the defended text.
- The Judge ($L_j$): Evaluates the success of the defense by comparing the attacker's output against the ground truth on a scale of 1–10.
The system iterates until it identifies a defense that successfully confuses the attacker. Effective strategies identified include pre-emptive completion (convincing the model it has already answered), language shifting (forcing responses in non-English languages), task redirection (injecting a new, higher-priority task), and the use of specific formatting delimiters to mimic system-level instructions.
Experimental Setup
We evaluated the effectiveness of these defenses across three distinct scenarios:
- Synthetic Reddit Profiles: Fake user profiles containing PII (e.g., location, income) designed to mimic real-world social media data.
- Wikipedia Biographies: Testing the protection of dense biographical facts against automated extraction.
- News RAG Dataset: Evaluating whether defenses can prevent LLMs from summarizing or plagiarizing copyrighted news articles in Retrieval-Augmented Generation contexts.
Key Results and Insights
Our experiments yielded several significant findings:
- High Efficacy: On synthetic Reddit data, defenses achieved a nearly 100% attacker failure rate. In RAG scenarios for news, GPT-4o’s extraction accuracy dropped from 80% to less than 20%.
- Transferability and Robustness: Defenses generated for one model (e.g., GPT-4o) often successfully thwarted others (e.g., Llama-3). Furthermore, the defenses remained resilient against 11 different countermeasures, including paraphrasing and re-tokenization.
- Efficiency: Effective defenses can represent less than 1% of the total text length and can be generated in under a minute for approximately $0.05 in API costs.
Discussion and Limitations
While "data defenses" provide a novel tool for data sovereignty, they are not a cryptographic "silver bullet." A determined human reader can still manually extract information. Additionally, the "cat-and-mouse" nature of adversarial security means that as LLMs improve their instruction-following capabilities, defense strategies must also evolve. Future work will focus on making these defenses even more subtle to human readers while maintaining their disruptive impact on automated models. By co-designing these tools with at-risk communities, we aim to provide a robust defense against the automated "snooping machine" of modern AI.
Summary updated