In-Context Watermarks for Large Language Models
Yepeng Liu, Xuandong Zhao, Christopher Kruegel, Dawn Song, Yuheng Bu
摘要
The growing use of large language models (LLMs) for sensitive applications has highlighted the need for effective watermarking techniques to ensure the provenance and accountability of AI-generated text. However, most existing watermarking methods require access to the decoding process, limiting their applicability in real-world settings. One illustrative example is the use of LLMs by dishonest reviewers in the context of academic peer review, where conference organizers have no access to the model used but still need to detect AI-generated reviews. Motivated by this gap, we introduce In-Context Watermarking (ICW), which embeds watermarks into generated text solely through prompt engineering, leveraging LLMs' in-context learning and instruction-following abilities. We investigate four ICW strategies at different levels of granularity, each paired with a tailored detection method. We further examine the Indirect Prompt Injection (IPI) setting as a specific case study, in which watermarking is covertly triggered by modifying input documents such as academic manuscripts. Our experiments validate the feasibility of ICW as a model-agnostic, practical watermarking approach. Moreover, our findings suggest that as LLMs become more capable, ICW offers a promising direction for scalable and accessible content attribution. Our code is available at https://github.com/yepengliu/In-Context-Watermarks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Survey on In-context Learning 引用了 Language Models are Few-Shot Learners
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature 引用了 Language Models are Few-Shot Learners
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature 引用了 A Watermark for Large Language Models
- Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach 引用了 Provable Robust Watermarking for AI-Generated Text
- Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach 引用了 Language Models are Few-Shot Learners
- Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach 引用了 A Watermark for Large Language Models
- Provable Robust Watermarking for AI-Generated Text 引用了 DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
- Provable Robust Watermarking for AI-Generated Text 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper1
它引用的 Paper32
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning 等ICML 2023 · 988 次引用
- A Watermark for Large Language ModelsJohn Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz 等ICML 2023 · 854 次引用
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng 等EMNLP 2024 · 479 次引用
- Provable Robust Watermarking for AI-Generated TextXuandong Zhao, Prabhanjan Vijendra Ananth, Lei Li, Yu-Xiang WangICLR 2024 · 312 次引用
相关 Paper
- Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical AdoptionYepeng Liu, Xuandong Zhao, Dawn Song, Gregory W. Wornell 等ACL Findings 2026
- IACW: Intent-Aware Controllable Watermarking for Scalable Authorial Intent AttributionHao Huang, Ruihua Zhou, JiaTang Luo, Yunpeng Li 等ICML 2026
- Adaptive Text Watermark for Large Language ModelsYepeng Liu, Yuheng BuICML 2024 · 63 次引用
- StealthInk: A Multi-bit and Stealthy Watermark for Large Language ModelsYa Jiang, Chuxiong Wu, Massieh Kordi Boroujeny, Brian L. Mark 等ICML 2025
- WASA: WAtermark-based Source Attribution for Large Language Model-Generated DataXinyang Lu, Jingtan Wang, Zitong Zhao, Zhongxiang Dai 等ACL Findings 2025
