mlsanityData to 14 Oct 2026

Learning to Watermark LLM-generated Text via Reinforcement Learning

arXiv 2403.10553 ↗First posted 13 Mar 2024cs.LG cs.AI cs.CRcited by 22

On the map: LLM safety and security → Watermarking generated content and models

Abstract (arXiv)

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 .

Key facts. Cited by 22 papers in the map (data through 14 Oct 2026). Placed in Watermarking generated content and models, one of 12 directions in LLM safety and security. Builds on 34 of its 38 references that are in the map. First posted on arXiv 13 Mar 2024.

Builds on

34 of 38 references.

Closest ancestors · 14

Same direction, newest first

  1. 2023On the Learnability of Watermarks for Language Models7 Dec
  2. 2023Downstream Trade-offs of a Family of Text Watermarks16 Nov
  3. 2023Publicly-Detectable Watermarking for Language Models27 Oct
  4. 2023A Semantic Invariant Robust Watermark for Large Language Models10 Oct
  5. 2023Unbiased Watermark for Large Language Models22 Sep
  6. 2023Robust Distortion-free Watermarks for Language Models28 Jul
  7. 2023Three Bricks to Consolidate Watermarks for Large Language Models26 Jul
  8. 2023Provable Robust Watermarking for AI-Generated Text30 Jun
  9. 2023On the Reliability of Watermarks for Large Language Models7 Jun
  10. 2023Undetectable Watermarks for Language Models25 May
  11. 2023Who Wrote this Code? Watermarking for Code Generation24 May
  12. 2023Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense23 Mar
2 more
  1. 2023Can AI-Generated Text be Reliably Detected?17 Mar
  2. 2023A Watermark for Large Language Models24 Jan

Other references · 20

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  6. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  7. 2017Deep reinforcement learning from human preferencescited by 3,912
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  9. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  10. 2015Trust Region Policy Optimizationcited by 2,580
  11. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,258
  12. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,102
8 more
  1. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  2. 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 726
  3. 2017A Brief Survey of Deep Reinforcement Learningcited by 483
  4. 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 229
  5. 2017Interactive Learning from Policy-Dependent Human Feedbackcited by 158
  6. 2023SeqXGPT: Sentence-Level AI-Generated Text Detectioncited by 56
  7. 2023On The Fragility of Learned Reward Functionscited by 21
  8. 2023DetectGPT-SC: Improving Detection of Text Generated by Large Language Models through Self-Consistency with Masked Predictionscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 12; 2026: 4.

22 papers.

Sort:

By area:

  1. 2024Watermarking Language Models for Many Adaptive Userscited by 18
  2. 2024SoK: On the Role and Future of AIGC Watermarking in the Era of Gen-AIcited by 14
  3. 2025Towards Watermarking of Open-Source LLMscited by 13
  4. 2024Is Contrasting All You Need? Contrastive Learning for the Detection and Attribution of AI-generated Textcited by 11
  5. 2024Robust Multi-bit Text Watermark with LLM-based Paraphraserscited by 10
  6. 2025In-Context Watermarks for Large Language Modelscited by 10
  7. 2025LLM Fingerprinting via Semantically Conditioned Watermarkscited by 9
  8. 2024Watermarking Generative Tabular Datacited by 7
  9. 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
  10. 2025Generative AI for Biosciences: Emerging Threats and Roadmap to Biosecuritycited by 5
  11. 2025Can you Finetune your Binoculars? Embedding Text Watermarks into the Weights of Large Language Modelscited by 4
  12. 2025Every Language Model Has a Forgery-Resistant Signaturecited by 4
10 more
  1. 2025PRO: Enabling Precise and Robust Text Watermark for Open-Source LLMscited by 4
  2. 2024A Certified Robust Watermark For Large Language Modelscited by 3
  3. 2025SoK: Are Watermarks in LLMs Ready for Deployment?cited by 2
  4. 2025Optimizing Token Choice for Code Watermarking: An RL Approachcited by 1
  5. 2026Robust LLM Watermarking with Minimal Semantic Distortion for IP Protectioncited by 1
  6. 2026Implicit Identity Technologies for LLMs: Fingerprinting and Watermarking across Datasets, Models, and Generated Contentcited by 1
  7. 2025Watermarking Large Language Models in Europe: Interpreting the AI Act in Light of Technologycited by 0
  8. 2025MarkTune: Improving the Quality-Detectability Trade-off in Open-Weight LLM Watermarkingcited by 0
  9. 2026Optimal Multi-bit Generative Watermarking Schemes Under Worst-Case False-Alarm Constraintscited by 0
  10. 2026OpenStamp: A Watermark for Open-Source Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025A Reinforcement Learning Framework for Robust and Secure LLM Watermarking
  2. 2024No Free Lunch in LLM Watermarking: Trade-offs in Watermarking Design Choices
  3. 2026LLM Output Detectability and Task Performance Can be Jointly Optimized
  4. 2026RLSpoofer: A Lightweight Evaluator for LLM Watermark Spoofing Resilience
  5. 2024Watermark Stealing in Large Language Models
  6. 2025HeavyWater and SimplexWater: Distortion-Free LLM Watermarks for Low-Entropy Next-Token Predictions
  7. 2026A Unified Framework for LLM Watermarks
  8. 2024PostMark: A Robust Blackbox Watermark for Large Language Models