A Private Watermark for Large Language Models
Abstract
Recently, text watermarking algorithms for large language models (LLMs) have been proposed to mitigate the potential harms of text generated by LLMs, including fake news and copyright issues. However, current watermark detection algorithms require the secret key used in the watermark generation process, making them susceptible to security breaches and counterfeiting during public detection. To address this limitation, we propose an unforgeable publicly verifiable watermark algorithm that uses two different neural networks for watermark generation and detection, instead of using the same key at both stages. Meanwhile, the token embedding parameters are shared between the generation and detection networks, which makes the detection network achieve a high accuracy very efficiently. Experiments demonstrate that our algorithm attains high detection accuracy and computational efficiency through neural networks with a minimized number of parameters. Subsequent analysis confirms the high complexity involved in forging the watermark from the detection network. Our code and data are available at \href{https://github.com/THU-BPM/unforgeable_watermark}{https://github.com/THU-BPM/unforgeable\_watermark}.
BibTeX
@inproceedings{liu2024private,
author = {Aiwei Liu and Leyi Pan and Xuming Hu and Shuang Li and Lijie Wen and Irwin King and Philip S. Yu},
title = {{A Private Watermark for Large Language Models}},
booktitle = {International Conference on Learning Representations},
year = {2024},
url = {https://openreview.net/forum?id=gMLQwKDY3N},
}Ask Althea to put this paper to the test.
| Publicly-Detectable Watermarking for Language Models | arXiv · 2023 |
| Provably Robust Watermarks for Open-Source Language Models | arXiv · 2024 |
| A Watermark for Large Language Models | arXiv · 2023 |
| Undetectable Watermarks for Language Models | arXiv · 2023 |
| Provable Robust Watermarking for AI-Generated Text | ICLR · 2024 |
| Could LLM Watermark Detection be Public? | arXiv · 2026 |