Abstract
As Large Language Models (LLMs) become ubiquitous, protecting the intellectual property (IP) of text—ranging from news articles to proprietary code—has become a major challenge. We present WATERFALL (Watermarking Framework Applying Large Language Models), a training-free, highly scalable text watermarking framework. WATERFALL leverages LLMs as paraphrasers to embed robust signals into articles and code. By combining vocabulary permutation with orthogonal perturbations in the token space, it achieves unprecedented scalability and remains detectable even after heavy paraphrasing, translation, or being used to train a third-party LLM.
Introduction
The rapid proliferation of LLMs has made it increasingly difficult to protect text-based intellectual property. Traditional watermarking methods, such as metadata or invisible Unicode characters, are easily stripped. More advanced linguistic methods often fail when text is paraphrased or translated. Furthermore, content creators face the "provenance" problem: proving that a black-box LLM was trained on their copyrighted data without permission. Existing solutions often require access to the model's training process, which is impractical for external creators. Finally, most current methods lack the scalability needed to support millions of unique IDs without degrading performance.
The WATERFALL Framework
WATERFALL is a "training-free" architecture that works with off-the-shelf LLMs. It introduces three key innovations to ensure robustness and scalability:
- LLM as Paraphraser: Instead of mechanical word-swapping, WATERFALL uses an LLM to rewrite input text. This provides a larger "support set" of expressions, allowing more information to be embedded while maintaining high text quality.
- Vocab Permutation & Orthogonal Perturbation: To embed a specific user ID, the system uses a secret key to pseudorandomly shuffle the LLM's vocabulary space. It then adds a signal from an orthogonal family (e.g., a Fourier basis) to the model's output logits. Because these functions are orthogonal, different watermarks do not interfere, enabling massive scalability.
- n-gram Signal Carriers: The watermark is embedded into every $n$-gram of the text. This redundancy makes the watermark incredibly robust; even if large chunks of text are modified, the remaining fragments still carry the signal.
Experimental Evaluation
The researchers evaluated WATERFALL across several domains, including natural language (C4 realnewslike), programming code (MBJSP, MBPP), and data provenance (ArXiv abstracts).
Key Results
- Robustness: WATERFALL maintained high verifiability (AUROC > 0.8) against heavy paraphrasing, translation, and "overlap" attacks.
- Efficiency: Verification is extremely fast, taking approximately 0.035 seconds per text on a standard CPU—75x to 4200x faster than competing methods.
- Code Protection: It outperformed specialized tools like SRCMARKER in both robustness and maintaining functional correctness.
- Provenance Tracking: In fine-tuning experiments, the framework detected with 100% accuracy if a model had been trained on watermarked data after just 100 queries.
Discussion and Conclusion
WATERFALL effectively "fights fire with fire" by using the creative capabilities of LLMs to protect IP. By shuffling the vocabulary space, the original text's natural distribution becomes background noise, allowing for high-precision detection without the original text. The theoretical scalability is astronomical, supporting roughly $10^{130274}$ unique IDs.
However, limitations remain. WATERFALL may be less suitable for style-specific content like poetry where exact wording is the IP. It also struggles with very short snippets due to limited signal space. Future work may involve using beam search or multi-round refinement to mitigate signal loss during LLM summarization.
Summary updated