In-Context Watermarks for large language modelsIn-Context Watermarks for Large Language Models
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。