A Reinforcement Learning Framework for Robust and Secure LLM Watermarking

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: An, Li, Liu, Yujian, Liu, Yepeng, Bu, Yuheng, Zhang, Yang, Chang, Shiyu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914111208554496
author An, Li
Liu, Yujian
Liu, Yepeng
Bu, Yuheng
Zhang, Yang
Chang, Shiyu
author_facet An, Li
Liu, Yujian
Liu, Yepeng
Bu, Yuheng
Zhang, Yang
Chang, Shiyu
contents Watermarking has emerged as a promising solution for tracing and authenticating text generated by large language models (LLMs). A common approach to LLM watermarking is to construct a green/red token list and assign higher or lower generation probabilities to the corresponding tokens, respectively. However, most existing watermarking algorithms rely on heuristic green/red token list designs, as directly optimizing the list design with techniques such as reinforcement learning (RL) comes with several challenges. First, desirable watermarking involves multiple criteria, i.e., detectability, text quality, robustness against removal attacks, and security against spoofing attacks. Directly optimizing for these criteria introduces many partially conflicting reward terms, leading to an unstable convergence process. Second, the vast action space of green/red token list choices is susceptible to reward hacking. In this paper, we propose an end-to-end RL framework for robust and secure LLM watermarking. Our approach adopts an anchoring mechanism for reward terms to ensure stable training and introduces additional regularization terms to prevent reward hacking. Experiments on standard benchmarks with two backbone LLMs show that our method achieves a state-of-the-art trade-off across all criteria, with notable improvements in resistance to spoofing attacks without degrading other criteria. Our code is available at https://github.com/UCSB-NLP-Chang/RL-watermark.
format Preprint
id arxiv_https___arxiv_org_abs_2510_21053
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Reinforcement Learning Framework for Robust and Secure LLM Watermarking
An, Li
Liu, Yujian
Liu, Yepeng
Bu, Yuheng
Zhang, Yang
Chang, Shiyu
Cryptography and Security
Watermarking has emerged as a promising solution for tracing and authenticating text generated by large language models (LLMs). A common approach to LLM watermarking is to construct a green/red token list and assign higher or lower generation probabilities to the corresponding tokens, respectively. However, most existing watermarking algorithms rely on heuristic green/red token list designs, as directly optimizing the list design with techniques such as reinforcement learning (RL) comes with several challenges. First, desirable watermarking involves multiple criteria, i.e., detectability, text quality, robustness against removal attacks, and security against spoofing attacks. Directly optimizing for these criteria introduces many partially conflicting reward terms, leading to an unstable convergence process. Second, the vast action space of green/red token list choices is susceptible to reward hacking. In this paper, we propose an end-to-end RL framework for robust and secure LLM watermarking. Our approach adopts an anchoring mechanism for reward terms to ensure stable training and introduces additional regularization terms to prevent reward hacking. Experiments on standard benchmarks with two backbone LLMs show that our method achieves a state-of-the-art trade-off across all criteria, with notable improvements in resistance to spoofing attacks without degrading other criteria. Our code is available at https://github.com/UCSB-NLP-Chang/RL-watermark.
title A Reinforcement Learning Framework for Robust and Secure LLM Watermarking
topic Cryptography and Security
url https://arxiv.org/abs/2510.21053