TL;DR
RLSpoofer is a highly sample-efficient, black-box attack designed to "spoof" LLM watermarks—making unwatermarked text appear as if it were generated by a specific watermarked model. By using reinforcement learning and just 100 training examples, it achieves a 62% success rate against state-of-the-art watermarks, exposing a critical vulnerability in current AI detection and provenance schemes.
What Problem Does This Paper Address?
As Large Language Models (LLMs) become ubiquitous, watermarking has emerged as a vital defense to identify AI-generated content and prevent misuse like misinformation or academic dishonesty. However, a "spoofing attack"—where an adversary forges a watermark on human-written or malicious text—can destroy the credibility of these systems.
Existing spoofing methods have major "real-world" hurdles: they either require "white-box" access (knowing the secret keys or the internal logic of the watermark), access to the detector's API, or massive datasets (often upwards of 10,000 samples) to train a mimic. This paper introduces RLSpoofer to bridge this gap, providing a practical "stress test" that works in a strict black-box setting with minimal data.
Methods
The authors approach spoofing from a distributional perspective. Instead of trying to guess a secret key, they train a model to shift its output distribution to match the statistical "fingerprint" of watermarked text.
Key components include:
- Local Capacity Bottleneck: A theoretical framework that identifies which parts of a sentence (token positions) have the "room" to be modified without changing the semantic meaning.
- GRPO-based Reinforcement Learning: They use Group Relative Policy Optimization (GRPO) to fine-tune a small "attacker" model.
- Multi-faceted Reward Function:
- Semantic Reward: Uses the P-SP score to ensure the paraphrased text means the same thing as the original.
- Capacity-aware Token Reward: Encourages the model to pick tokens that look "watermarked" based on a surrogate reference model, but only at positions where it won't break the sentence's logic.
- Cross-Entropy Anchor: A technique to stabilize training and prevent the model from "drifting" too far away from coherent language.
Datasets
The researchers used a variety of standard NLP datasets to ensure their attack generalizes across different writing styles:
- Training: 100 pairs of human-written and watermarked-paraphrase texts derived from the C4-RealNewslike subset.
- Evaluation: 400 test samples drawn from Reddit WritingPrompts, LFQA (Long-form QA), and the MMW (Multi-Modal Watermark) subsets (BookReport and FakeNews).
- Victim Model: Llama-3.1-8B-Instruct was used to generate the "ground truth" watermarked text that the attacker tries to mimic.
Key Insights and Ideas
- The "Aha" of Sample Efficiency: While previous methods needed 10,000 samples to learn a watermark's distribution, RLSpoofer proves that 100 samples are enough if you use RL to target the "distributional discrepancy" between human and AI text.
- Semantic Slack: The "Local Capacity" theory shows that nouns and numbers are "rigid" (changing them breaks the meaning), but adjectives, verbs, and adverbs provide "slack" where watermark signals can be hidden. RLSpoofer automatically learns to exploit this slack.
- Distortion-Free is Not Spoof-Proof: Even "distortion-free" watermarks (like PF-Watermark), which are mathematically designed to be invisible, exhibit systematic patterns that a reinforcement learning agent can pick up and replicate.
- Asymmetric Transferability: Interestingly, an attacker trained to spoof one type of watermark (like SWEET) is often quite good at spoofing others (like PF), but the reverse isn't always true. This suggests some watermarks are "subsets" of the vulnerabilities of others.
Key Results
RLSpoofer significantly outperformed existing baselines across multiple attacker model sizes (from 0.6B to 4B parameters):
- PF-Watermark: Achieved a 62.0% Spoof Success Rate (SSR) using a 4B model, compared to just 6.0% for the best baseline (Distill) which required 100x more data.
- Logit-based Watermarks: On schemes like EWD and SWEET, RLSpoofer consistently maintained SSRs above 50%, often doubling the performance of traditional distillation methods.
- Quality Preservation: Despite the high spoofing rate, the text quality remained high, with GPT-4o-mini (acting as a judge) giving the paraphrased text high scores for fluency and semantic alignment.
Limitations and Future Work
The authors acknowledge that RLSpoofer relies on a surrogate reference model to estimate distributions. If the "victim" system uses a completely different tokenizer or a highly opaque post-processing pipeline, the attack's effectiveness might decrease.
Future work could involve developing "detector-free" stability criteria to make the attack even more robust against commercial, closed-source LLMs. Ultimately, the paper serves as a call to action for the research community to develop more robust, "spoof-resistant" watermarking schemes.
Summary updated