Waterfall: Framework for Robust and Scalable Text Watermarking and Provenance for LLMs

Gregory Kang Ruey Lau, Xinyuan Niu, Hieu Dao, Jiangwei Chen, Chuan-Sheng Foo +1 more
7/5/2024
cs.CRcs.AIcs.CL

Official code: aoi3142/Waterfall (13 stars, Apache-2.0, last commit 2026-04-14).

Abstract

Protecting intellectual property (IP) of text such as articles and code is increasingly important, especially as sophisticated attacks become possible, such as paraphrasing by large language models (LLMs) or even unauthorized training of LLMs on copyrighted text to infringe such IP. However, existing text watermarking methods are not robust enough against such attacks nor scalable to millions of users for practical implementation. In this paper, we propose Waterfall, the first training-free framework for robust and scalable text watermarking applicable across multiple text types (e.g., articles, code) and languages supportable by LLMs, for general text and LLM data provenance. Waterfall comprises several key innovations, such as being the first to use LLM as paraphrasers for watermarking along with a novel combination of techniques that are surprisingly effective in achieving robust verifiability and scalability. We empirically demonstrate that Waterfall achieves significantly better scalability, robust verifiability, and computational efficiency compared to SOTA article-text watermarking methods, and showed how it could be directly applied to the watermarking of code. We also demonstrated that Waterfall can be used for LLM data provenance, where the watermarks of LLM training data can be detected in LLM output, allowing for detection of unauthorized use of data for LLM training and potentially enabling model-centric watermarking of open-sourced LLMs which has been a limitation of existing LLM watermarking works. Our code is available at https://github.com/aoi3142/Waterfall.

View on arXivView PDF

Code Implementations(1)

aoi3142/WaterfallOfficial100%
Apache-2.0

Training-free framework for text watermarking that is scalable, robust to LLM attacks, and applicable to original text of multiple types

136PythonSep 17, 20246 months agoApache-2.0

Similar Papers

Cite this paper

@article{lau2024waterfall,
  title  = {Waterfall: Framework for Robust and Scalable Text Watermarking and Provenance for LLMs},
  author = {Gregory Kang Ruey Lau and Xinyuan Niu and Hieu Dao and Jiangwei Chen and Chuan-Sheng Foo and Bryan Kian Hsiang Low},
  year   = {2024},
  eprint = {2407.04411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04411v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.04411.svg)](https://codeofpaper.com/paper/2407.04411)

Discussion