Skip to content

In-Context Watermarks for large language modelsIn-Context Watermarks for Large Language Models

arXiv· arXiv:2505.16934· ICLR 2026· Yepeng Liu, Xuandong Zhao, Christopher Kruegel, Dawn Song, Yuheng Bu·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

Researchers propose the In-Context Watermarking (ICW) method, which embeds watermarks in generated text solely through prompt engineering, leveraging large language models' in-context learning and instruction-following abilities, without access to the model's decoding process. The paper uses academic peer review as its motivating scenario: conference organizers cannot know which model reviewers used, yet still need to detect AI-generated review comments. The authors design four ICW strategies at different granularities, each with a corresponding detection method, and also use indirect prompt injection (IPI) as a case study to covertly trigger the watermark by modifying input documents such as academic papers. Experiments verify the feasibility of ICW as a model-agnostic, practical watermarking scheme; code is open-sourced at https://github.com/yepengliu/In-Context-Watermarks。

Read originalICLR 2026