Learning to Follow In-Context Watermark Instructions via Self-Distillation
Yepeng Liu, Tianyi Chen, Xuandong Zhao, Dawn Song, Yuheng Bu
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: AI Safety, Security & Alignment › LLM Watermarking · Type: new method · Keywords: in-context watermarking, self-distillation, reinforcement learning, LLM instruction following, benchmark
Areas: Evaluation & Benchmarks › Language Model and Agent Safety › Trustworthiness and Bias Evaluation
Summary
A self-contained two-stage training method with self-distillation with logits perturbation (SDLP) and reinforcement learning significantly improves LLM following of in-context watermark instructions, raising detection performance from 0.100 to 0.974 on ICWBench.
Explained to a 5-year-old
Some big computer brain models can be asked to hide tiny secret marks in their answers. Right now they often forget or do it badly. The researchers made a new way to teach the models to remember these marks by practicing with a helper and getting rewards. This helps the models hide the marks more often while still giving good answers. Now the models are better at following the secret-mark instructions.
Explained to a 5-year-old, longer
Some big computer programs called language models can answer questions. Sometimes people want them to add a tiny hidden signal to their answers so they can tell if the answer really came from the model. This hidden signal is called an in-context watermark. The models are supposed to follow a special instruction that tells them to add this signal, but they often forget or do it badly. Researchers measured how well different models do this on a new test called ICWBench, which checks both how hidden the signal is and how good the answer is. They found that none of the tested models were good at both parts for all kinds of instructions. To fix this, the researchers created a two-step training process that does not need a bigger model to teach it. First, they made the model practice by slightly changing its thoughts so it learns to follow the watermark instruction. Then they taught another model to copy the first model’s answers, so it learns the right way to do it. After that, they used a reward system that gives the model points when it hides the signal correctly. When they applied this to a smaller model called Qwen3-14B, it became much better at hiding the signal while still giving good answers. The improvement raised the detection rate from about 10% to about 97% on the test, beating the best models they tested.
For a technical reader
The paper addresses the reliability of in-context watermarking for large language models. It introduces a two-stage training pipeline that first uses logits perturbation to generate correct watermark outputs from the same model, then distills those outputs into a student, followed by reinforcement learning with an automatic verifier as reward. Evaluated on a new benchmark (ICWBench), the method dramatically improves detection rates while preserving answer quality, outperforming existing proprietary solutions.
Problem
Current large language models often fail to reliably follow in-context watermark instructions while maintaining answer quality, and there is a lack of systematic evaluation of this capability.
Method
The approach uses a two-stage process: first, a self-distillation step where the same base LLM is perturbed at decoding time to produce instruction-following outputs, and a student model is trained to mimic those outputs; second, reinforcement learning is applied with an automatic verifier as reward to further improve compliance.
Results
On ICWBench, the approach raises average true positive rate at 1% false positive rate from 0.100 to 0.974 across the three instruction families, achieving a trade-off that surpasses the evaluated frontier proprietary LLMs.
Contributions
It introduces a self-contained two-stage training method that does not rely on external teachers, manual annotations, or pre-existing watermarking ability, and it provides ICWBench, a benchmark measuring both detectability and answer quality for in-context watermark instructions.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction