Abstract
The deployment of large language models (LLMs) necessitates reliable methods for identifying AI-generated content. However, existing watermarking techniques face a fundamental "trilemma" between imperceptibility (text quality), efficacy (detection reliability), and robustness (resistance to editing). We introduce WaterPool, a key-centered watermarking framework that breaks this trade-off. By decoupling the watermark into a Key Module and a Mark Module and employing semantic-search-based key retrieval, WaterPool enables near-perfect text quality while significantly boosting detection rates, even under heavy paraphrasing or translation attacks.
Introduction: The Watermarking Trilemma
Watermarking involves subtly biasing the token distribution during LLM generation to embed a detectable signal. Ideally, a watermark should be imperceptible to humans, efficacious in detection, and robust against adversarial modifications. Current methods typically derive "keys" (random seeds) from local context hashes. This creates a conflict: small context windows improve robustness but hurt text quality (imperceptibility), while larger windows improve quality but make the watermark fragile to minor edits.
As shown in Figure 1, WaterPool effectively bypasses the traditional trade-off curve, pushing existing methods like KGW, EXP, and ITS toward the upper-right quadrant of optimal performance.
Methodology: Decoupling Key and Mark
The core innovation of WaterPool is the separation of the watermarking process into two distinct components:
- Key Module: Responsible for generating, storing, and retrieving the secret seeds (keys).
- Mark Module: Responsible for modifying the token probability distribution based on a given key.
Generation and Detection Workflow
During generation, WaterPool samples an independent random key for each text segment. It computes a semantic embedding of the generated text and stores the (embedding, key) pair in a vector database.
During detection, the system computes the embedding of the candidate text and performs a nearest-neighbor search in the database. Because semantic embeddings are stable across paraphrases, the system can retrieve the original key even if the text has been edited. This "key-centered" approach ensures that the statistical strength of the watermark is preserved without relying on fragile local context hashes.
Experimental Evaluation
The authors evaluated WaterPool across two benchmarks: C4 (open-ended generation) and ELI5 (long-form question answering), using OPT-1.3B and OPT-6.7B models. Robustness was tested against lexical edits, the Dipper paraphraser, and back-translation attacks.
Key Results
Integrating WaterPool into existing frameworks yielded substantial improvements:
- Enhanced Efficacy: On OPT-1.3B, WaterPool improved detection rates (TPR@FPR=1%) by up to 20.27% for the EXP method and 12.73% for KGW.
- Robustness to Attacks: WaterPool-enhanced methods maintained significantly higher detection rates against the Dipper paraphrasing attack compared to their vanilla counterparts.
- Scalability: Performance remained stable as the vector database scaled to 100 million entries, with retrieval times staying below 0.001s per item, making it viable for high-traffic applications.
Discussion and Limitations
WaterPool demonstrates that the perceived trade-off in watermarking is largely a consequence of poor key management rather than the statistical marking process itself. By using semantic stability as an anchor for key retrieval, WaterPool achieves near-optimal imperceptibility.
However, the approach introduces a storage requirement of $O(N)$ for the key database. While manageable for large-scale providers (estimated at ~520GB for 2 billion generations per month), it represents a shift from stateless watermarks. Future work may focus on further optimizing the mark modules themselves or refining semantic retrieval for even more extreme text distortions.
Summary updated