Preprint · 2024 · Open access

Learning to Watermark LLM-generated Text via Reinforcement Learning

Xu, Xiaojun, Yuanshun Yao, Yang Liu

arXiv · Published 13 March 2024 · DOI 10.48550/arxiv.2403.10553

Open PDFView at the publisherCite this paper

In brief

“Learning to Watermark LLM-generated Text via Reinforcement Learning” is a 2024 preprint by Xu, Xiaojun and 2 co-authors, published in arXiv. OpenAlex counts 56 citations as of 1 December 2026, which puts it in the top 2% of works published in 2024 by citations. It is open access under a CC BY licence: the full text is free to read at arXiv.

Citations
56
Most cited in
2026 (29)
References
36
Authors
3

Abstract

We study how to watermark LLM outputs, i.e. embedding algorithmically detectable signals into LLM-generated text to track misuse. Unlike the current mainstream methods that work with a fixed LLM, we expand the watermark design space by including the LLM tuning stage in the watermark pipeline. While prior works focus on token-level watermark that embeds signals into the output, we design a model-level watermark that embeds signals into the LLM weights, and such signals can be detected by a paired detector. We propose a co-training framework based on reinforcement learning that iteratively (1) trains a detector to detect the generated watermarked text and (2) tunes the LLM to generate text easily detectable by the detector while keeping its normal utility. We empirically show that our watermarks are more accurate, robust, and adaptable (to new attacks). It also allows watermarked model open-sourcing. In addition, if used together with alignment, the extra overhead introduced is low - only training an extra reward model (i.e. our detector). We hope our work can bring more effort into studying a broader watermark design that is not limited to working with a fixed LLM. We open-source the code: https://github.com/xiaojunxu/learning-to-watermark-llm .

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Xiaojun, X., Yao, Y., & Liu, Y. (2024). Learning to Watermark LLM-generated Text via Reinforcement Learning. arXiv. https://doi.org/10.48550/arxiv.2403.10553

MLA 9

Xiaojun, Xu,, et al. “Learning to Watermark LLM-generated Text via Reinforcement Learning.” arXiv, 2024. https://doi.org/10.48550/arxiv.2403.10553.

Chicago

Xiaojun, Xu,, Yuanshun Yao, and Yang Liu. 2024. “Learning to Watermark LLM-generated Text via Reinforcement Learning.” arXiv. https://doi.org/10.48550/arxiv.2403.10553.

Harvard

Xiaojun, X., Yao, Y. and Liu, Y. (2024) ‘Learning to Watermark LLM-generated Text via Reinforcement Learning’, arXiv. doi:10.48550/arxiv.2403.10553.

IEEE

X. Xiaojun, Y. Yao, and Y. Liu, “Learning to Watermark LLM-generated Text via Reinforcement Learning,” arXiv, 2024, doi: 10.48550/arxiv.2403.10553.

BibTeX

@misc{xiaojun2024learning,
  title     = {{Learning to Watermark LLM-generated Text via Reinforcement Learning}},
  author    = {Xiaojun, Xu, and Yao, Yuanshun and Liu, Yang},
  howpublished = {arXiv},
  year      = {2024},
  doi       = {10.48550/arxiv.2403.10553},
  url       = {https://doi.org/10.48550/arxiv.2403.10553}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Citations by year

YearCitationsShare of the best year
202488
20251919
20262929

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning

  • LLM watermarking
  • watermark detection
  • reinforcement learning
  • co-training
  • LLM fine-tuning
  • reward models
  • watermark robustness

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Xiaojun, X., Yao, Y., & Liu, Y. (2024). Learning to Watermark LLM-generated Text via Reinforcement Learning. arXiv. https://doi.org/10.48550/arxiv.2403.10553

How many times has this paper been cited?

56 times, according to OpenAlex on 1 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Xu, Xiaojun, Yuanshun Yao, Yang Liu.

What is the DOI of this paper?

10.48550/arxiv.2403.10553, permanently at https://doi.org/10.48550/arxiv.2403.10553. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 1 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.