Skip to content

Researchers propose a self-distillation method to make LLMs follow in-context watermark instructionsLearning to Follow In-Context Watermark Instructions via Self-Distillation

Paper Tracker· arXiv:2608.29030· NeurIPS 2026· Yepeng Liu, Tianyi Chen, Xuandong Zhao, Dawn Song, Yuheng Bu·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

SDLP plus GRPO raised Qwen3-14B's three-family average TPR@1%FPR on ICWBench from 0.100 to 0.974.

Questions
Third parties cannot modify the model's internal sampling; they can only prepend the watermark instruction to the query so that the response carries a statistically detectable signal. Whether the model can simultaneously follow the instruction and maintain response quality had not been measured before.
Methods
ICWBench uses the TSP, WIP, and SA instruction families, measuring both detectability and response quality. SDLP lets the same base model act as a teacher under decoding-time logits perturbation, and the student matches that distribution with KL; the second stage uses the verifier's z-statistic as the GRPO reward. No stronger teacher or human annotation is used.
Experiments and results
On 500 LFQA queries, 14 frontier models show weak TSP detection or elevated WIP perplexity. After training, Qwen3-14B and GPT-OSS-20B achieve three-family average TPR@1%FPR of 0.974 and 0.968. The authors state answer quality remains comparable.
Limitations and future work
The paper does not specifically discuss limitations. The evaluation covers 14 frontier models and the three ICWBench families; only Qwen3-14B and GPT-OSS-20B were trained. Quality is measured using the perplexity of two reference models and gpt-4o-mini scoring, and the paper does not report agreement with humans.
Experimental setupGPT-5.4、GPT-5.4-mini et al. · ICWBench、LFQA et al. · ROC-AUC、TPR@1%FPR et al.
Evaluated models
GPT-5.4GPT-5.4-miniGPT-5.4-nanoGemini-3-proGemini-3-flashClaude-opus-4.5Claude-sonnet-4.5Claude-haiku-4.5DeepSeek-v4-proDeepSeek-v4-flashQwen3-235BQwen3-14BGPT-OSS-120BGPT-OSS-20B
Benchmarks
ICWBenchLFQABioASQFiQA
Metrics
ROC-AUCTPR@1%FPRPPLLLM-as-a-Judge
AI summaryThe researchers propose a two-stage self-distillation training method that enables large language models to follow in-context watermark (ICW) instructions while maintaining answer quality. ICW works by prepending an instruction to the query, requiring the model to embed a statistically detectable signal in the response, which third parties can invoke without access to the model's internals. The team also releases the ICWBench benchmark, containing three verifiable ICW instruction families, scored on both detectability and answer quality; evaluations on 14 frontier closed and open models show that no model satisfies both objectives across all three families simultaneously. The proposed method requires no stronger teacher model, no human annotation, and does not rely on the model's existing ICW instruction-following ability: in the first stage, the same base model serves as both teacher and student, using instruction-equivalent decoding-time logits perturbation to make the teacher follow instructions, then training the student to match the teacher's output distribution; in the second stage, reinforcement learning is performed with an automatic verifier as reward.

The researchers propose a two-stage self-distillation training method that enables large language models to follow in-context watermark (ICW) instructions while maintaining answer quality. ICW works by prepending an instruction to the query, requiring the model to embed a statistically detectable signal in the response, which third parties can invoke without access to the model's internals. The team also releases the ICWBench benchmark, containing three verifiable ICW instruction families, scored on both detectability and answer quality; evaluations on 14 frontier closed and open models show that no model satisfies both objectives across all three families simultaneously. The proposed method requires no stronger teacher model, no human annotation, and does not rely on the model's existing ICW instruction-following ability: in the first stage, the same base model serves as both teacher and student, using instruction-equivalent decoding-time logits perturbation to make the teacher follow instructions, then training the student to match the teacher's output distribution; in the second stage, reinforcement learning is performed with an automatic verifier as reward.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Frontier models fail to be simultaneously detectable and quality-preserving on three watermark instruction families; training uses self-distillation plus verifier reinforcement learning.

    Whether frontier models can execute automatically verifiable in-context watermark (ICW) instructions without harming response quality had not been measured before; nor had how models with initially weak compliance could learn such compliance without a stronger teacher or human annotation.

    • Use case: The authors view watermarking as a means to detect AI misuse. Most generative watermarks require access to internal sampling, which the public lacks, and providers often do not disclose whether watermarking is enabled. The authors state that Liu et al. injected ICW instructions into submissions to detect AI reviewers; a similar detection at ICML 2026 flagged 795 reviews, about 1% of all reviews.
    • Existing gap: The authors state that whether ICW works depends on whether the model executes the prepended instruction and the response remains qualified. The evaluated models show under-following and over-following: on TSP, AUC does not exceed 0.66; Gemini-3-pro has an AUC of 1.000 on WIP, and the introduction states perplexity rose from 4.33 to 67.61.
    • Training obstacle: The models that need training are precisely those that cannot produce enough compliant samples. Direct sampling yields few compliant responses, frontier models have limited compliance, and human annotation is hard to scale. The signal lies in aggregated token statistics, and SFT discards distributional structure; reinforcement learning with verifiable rewards requires a policy that can already sample high rewards.
    • Paper's proposal: The benchmark ICWBench (Token-Set Preference, Word-Initial Preference, Sentence Acrostic), and a two-stage training method run only on the base model: self-distillation with logits perturbation (SDLP), followed by GRPO with an automatic verifier as reward.
    • Invocation: Third parties prepend a keyed instruction to the query without accessing the model's internals; the goal is for the response to carry a statistically detectable signal while still answering the query. Detection uses family-specific verifiers; quality is measured with perplexity and LLM review. When synthesizing positive samples, the teacher sees only the query and aligns with the instruction via decoding-time perturbation.
  2. What related research exists?

    Related work is divided into model-side watermarking, in-context watermarks, and surface instruction following; the paper requires simultaneous detectability and quality preservation on the same query.

    The paper in Related Work and Section 3 categorizes related work into detection/watermarking and instruction following, and points out differences from this paper.

    • Post-hoc detection and model-side watermarking
      • Post-hoc detectors train classifiers to find patterns in generated text. The authors claim these methods tend to have high false positive rates, limiting their use.
      • Generative watermarks actively embed verifiable signals in text; the paper states they typically have high true positive rates and controllable false positive rates; most are aimed at model owners, require internal sampling, are not publicly available, and deployment depends on the provider.
    • In-context watermarks
      • Liu et al. propose a general ICW framework, studying four strategies for watermarking at different linguistic granularities; the paper states it can be used across generation tasks. The three families in this paper are inspired by that work.
      • Rao et al. target only peer review, having the model insert randomly selected trigger phrases, with detection based on phrase occurrence. The authors state this suits specific scenarios but narrows following to the occurrence of a few strings; this paper evaluates general ability across arbitrary queries, constraining statistics or structure, not semantics.
    • Instruction-following evaluation and training
      • Instruction following has multiple existing evaluations, improved via instruction tuning, RLHF, and preference optimization. Surface constraints named by the paper include length, format, keywords, and style.
      • The authors state ICW differs in two ways: it constrains aggregate statistics of the response, using statistical tests rather than deterministic surface checks, and models can slightly bias token distributions without fixing any token value; existing benchmarks mostly score following and answer quality separately. Therefore, existing IF benchmarks do not evaluate ICW following, and standard IF training pipelines cannot be directly transferred.
    • Baselines and data: Main experiment baselines are the same 14 frontier models. Ablations additionally compare SFT, GRPO without cold start, and SDLP-only (Table 4). Queries come from LFQA; Appendix B additionally uses BioASQ and FiQA.

    The authors position this paper after the above work: measuring the following–quality trade-off on general ICW, and filling the gap with training that does not rely on stronger teachers, human annotation, or existing ICW ability.

  3. How does the paper address this problem?

    The same base model serves as both the perturbed teacher and the student, then GRPO is run with the verifier's z-statistic as reward.

    The overall approach is to reformulate ICW following as instruction-equivalent decoding-time logits perturbation, thereby using the same base model to synthesize distribution-level supervision, which is then given to a verifier for reward. The pipeline is cold-start data, SDLP, GRPO.

    Instruction families and verification

    • Form: Instructions are family ψ, template, and key κ. The instantiated instruction is prepended to query q, yielding answer y. Each family has a verifier that maps y to a test statistic.
    • Three families: TSP increases the use of a given token set; WIP increases words starting with a given letter; SA makes sentence-initial letters spell out a given string in order. Granularity ranges from token to word-initial to sentence-initial. Appendix A.3 provides templates and the process of generating keys from seeds.
    • Scoring: TSP and WIP use

    z=(X−np0)/√(np0(1−p0)) where X is the number of aligned units, n is the number of scoring units, and p0 is the alignment probability under the null hypothesis. TSP counts how many English tokens appearing in the response fall into the key set, with p0 equal to the subset proportion γ. WIP counts whether the first letter of word-initial tokens falls into the letter set, with p0 as the sum of empirical frequencies of those letters.

    • SA: X is the length of the longest common subsequence between the key string and the sequence of sentence-initial letters; mean and variance come from random permutations of sentence-initial letters, with 1000 permutations taken. The paper states that subsequence matching avoids penalizing extra sentences.

    Cold-start data

    • Perturbed decoding: The base model sees only the query, and at each step adds instruction-equivalent perturbations to the logits, then samples from the perturbed distribution. Perturbations increase tokens that raise the verifier score. TSP and WIP perturbations do not vary with decoding step, with strength fixed at 3.0 during synthesis; SA perturbations are stateful, biasing the sentence-initial position toward the current target letter, with details in Appendix A.1.
    • Sets: Positive samples DH1 are obtained from perturbed decoding, with the instruction not visible in the model's context. Negative samples DH0 are generated by inputting only the query without perturbation. Evaluation uses γ=0.2, letter set size 13, string length 18; during synthesis γ is 0.1, 0.2, or 0.3, and string length is drawn between 18 and 20. Training and evaluation seeds are disjoint.
    • Vocabulary: Perturbations and TSP key sets are restricted to an English token subset, not the full vocabulary. The paper reports the subset size for Qwen3 as 88492, full vocabulary 151936; word-initial subset 41547. The reason is that TSP needs to write the set into the prompt, and reducing the vocabulary shortens the context.

    SDLP

    • Roles: Both teacher and student are copies of the base model. The teacher is frozen and sees only the query; on DH1 the target distribution is the softmax after perturbation, on DH0 the perturbation is zero, i.e., the natural distribution. The student, without perturbation, is trained on samples with instruction plus query to reproduce the teacher's distribution.
    • Loss: For each position in the cold-start set, minimize the KL divergence between teacher and student distributions. The paper restricts KL to the top k tokens by teacher probability and renormalizes; k is not given in the main text or appendix.
    • Reason for not using SFT: The paper states that watermark signals are distributed across many token choices, and SFT only fits sampled sequences, losing stepwise distribution information.

    GRPO with verifier reward

    • Reward: After SDLP, a set of responses is sampled only on DH1, with reward as the z-statistic of that family's verifier, then within-group relative advantages are computed.
    • Objective: Maximize the truncated importance sampling ratio times advantage, averaged over tokens. Group size and truncation range appear in the formula, but their values are not given in Appendix A.
    • Scope: The second stage does not use negative-sample rollouts. The paper states that the first stage provides an initial policy that already achieves high reward, and the second stage further improves following.
  4. What experiments did the paper conduct?

    14 models failed to meet all three families simultaneously; Qwen3-14B's average TPR@1%FPR increased from 0.100 to 0.974.

    Experimental setup

    • Models: Proprietary models are GPT-5.4, GPT-5.4-mini, GPT-5.4-nano, Gemini-3-pro, Gemini-3-flash, Claude-opus-4.5, Claude-sonnet-4.5, Claude-haiku-4.5. Open models are DeepSeek-v4-pro, DeepSeek-v4-flash, Qwen3-235B, Qwen3-14B, GPT-OSS-120B, GPT-OSS-20B. Training is applied only to the latter two.
    • Data: ICWBench three families. Evaluation draws 500 open-ended long-form QA from LFQA, reused across all three families and all models. Training queries are disjoint from these 500; positive sample counts are TSP 3379, WIP 1865, SA 2906, negative samples 1000, 800, 800, with one response synthesized per query.
    • Decoding and keys: Default decoding parameters, generation cap 600 new tokens. Main results use one template per family and one key per sample. Evaluation parameters are γ=0.2, letter set size 13, string length 18.
    • Baselines: The above 14 models not trained for ICW. Ablations additionally compare SFT, direct GRPO, and SDLP-only (Table 4, only Qwen3-14B).
    • Metrics: Each query has a positive response (instruction plus query) and a negative response (query only), both scored with the z-statistic, reporting ROC-AUC and TPR@1%FPR. Perplexity uses the query as prefix, with reference models Qwen3-235B (PPLQ) and Nemotron-3-Super-120B (PPLN). gpt-4o-mini scores relevance, clarity, informativeness, and factual correctness on a 1–5 scale.
    • Unspecified items: The paper does not report the number of evaluation repetitions, nor agreement between reviewers and humans.

    Main results

    The table below is Table 2's TPR@1%FPR. Only 8 rows can be listed for 14 models, including GPT-5.4-nano with the lowest TPR on TSP. Omitted are Gemini-3-flash, Claude-opus-4.5, Claude-sonnet-4.5, Claude-haiku-4.5, GPT-5.4-mini, DeepSeek-v4-flash, Qwen3-235B, GPT-OSS-120B.

    Swipe horizontally to read the table

    ModelTSPWIPSA
    Gemini-3-pro0.0301.0001.000
    GPT-5.40.0200.5490.983
    GPT-5.4-nano0.0000.0040.824
    DeepSeek-v4-pro0.1200.2600.992
    Qwen3-14B (base)0.0200.0360.245
    GPT-OSS-20B (base)0.0100.0150.985
    Qwen3-14B (trained)0.9410.9960.985
    GPT-OSS-20B (trained)0.9220.9890.992
    • Authors' failure mode breakdown: SA is easiest; every evaluated LLM has AUC at least 0.83, and five proprietary models have TPR@1%FPR above 0.98. On WIP, four proprietary models exceed 0.94, while 8 other models are below 0.30. On TSP, the strongest TPR is 0.120, the strongest AUC is 0.658, and no model exceeds 0.66.
    • Quality trade-off: The authors state that frontier models lack an adjustable following–quality trade-off. WIP is over-following; TSP is under-following, with normal quality numbers because the constraint is not encoded; SA's constraint is only at sentence starts, so inter-sentence token distribution can remain intact.
    • After training: The authors state that following increases for both backbones, with average TPR@1%FPR rising from 0.100 and 0.337 to 0.974 and 0.968, respectively. Figure 1 has Average PPLQ on the x-axis and Average TPR@1%FPR on the y-axis; the caption states that trained models maintain low perplexity and the trade-off is better than all evaluated proprietary models. The conclusion is narrowed to: superior to evaluated frontier models on TSP and WIP, and comparable to the strongest proprietary baseline on SA. Per-model coordinates of scatter points are not listed in the text.

    Answer quality

    • What is measured: The same responses as in Table 2. Table 3 gives PPLQ, PPLN, and four-dimensional reviewer average scores.
    • Frontier models: On WIP, Gemini-3-pro's PPLQ/PPLN are 67.61/53.51, with reviewer average 3.94, the lowest WIP average in Table 3. On TSP, the authors give a PPLQ range of 2.78–7.21 and reviewer average 4.58–4.98, consistent with untrained models in Table 3.
    • Trained vs. backbone: Qwen3-14B's PPLQ on TSP/WIP/SA changes from 2.80/3.48/4.05 to 5.74/4.99/6.25, and reviewer averages from 4.89/4.86/4.82 to 4.85/4.88/4.80. GPT-OSS-20B's PPLQ changes from 4.06/5.43/5.35 to 7.29/7.15/7.38, with WIP reviewer average from 4.53 to 4.52. The authors state that quality is comparable to the original backbone, and the following improvement does not bring overall quality degradation.

    Training strategy ablations

    • Subject: Table 4 compares only on Qwen3-14B. PPL is the average of the two reference models, Judge is the four-dimensional average.
    • SFT and direct RL: On WIP, SFT raises TPR@1%FPR from 0.036 to 0.939; on TSP only to 0.382; on SA, AUC drops from 0.830 to 0.518, with TPR to 0.006. The authors state that SFT cannot serve as a cold start that works across all three families. Direct RL gives TSP/WIP TPR of 0.199/0.008; SA is 0.994, but the authors note reward hacking: using unnatural formatting and word splitting to place target letters at positions the verifier considers sentence-initial.
    • SDLP: Three-family TPR are 0.822/0.925/0.849; after adding RL, they become 0.941/0.996/0.985. On SA, SDLP-only average PPL is 7.90 and Judge 4.63; after RL, 6.27 and 4.80. The authors state that SDLP provides a cold start across all three families, and RL further improves following.

    Editing and adaptive removal

    • Three edits in main text: Figure 3 rows are the three families, columns are paraphrase, 30% synonym replacement, and 30% random word deletion, overlaying ROC curves for two trained models and 14 frontier models. The text does not give AUC for each curve, nor which LLM was used for paraphrase. The authors state that trained models achieve state-of-the-art AUC on TSP among evaluated models, and are comparable to the strongest baselines on WIP and SA.
    • Stronger edits: Appendix C reports only trained Qwen3-14B. No-attack AUC is 0.993/0.999/0.999; after three rounds of paraphrase, 0.853/0.872/0.796; after French-English back-translation, 0.932/0.977/0.979. After summarize-then-expand, SA drops to 0.597, TSP/WIP to 0.757/0.887 (Table 10).
    • RLCracker: The attacker is given 100 ICW samples. In Table 11, when Coverage is at least 2, ESR is 0.983/0.978/0.986; P-SP drops from 0.960/0.965/0.967 to 0.785/0.801/0.762, and Coverage from 4.945/4.957/4.944 to 3.412/3.556/3.605. When Coverage is at least 4.5, ESR is 0.011/0.370/0.073. The authors state that this is no longer higher than ordinary LLM paraphrase, and that this is consistent with the existing conclusion that strong watermarks are impossible when attackers can alter semantics without restriction.

    Other ablations and analyses

    • Template change (Table 8, trained Qwen3-14B, LFQA): Reconstructed template AUC is 0.997/0.980/0.977, untrained base 0.463/0.588/0.788.
    • Unseen domains (Table 9, same model): On BioASQ, trained AUC is 0.941/0.996/0.993, base 0.585/0.502/0.817; on FiQA, 0.949/0.999/0.996 and 0.584/0.510/0.842.
    • Key z distribution (Table 7, trained Qwen3-14B, seeds disjoint from training): median 4.29/4.32/4.98, mean 4.22/4.27/4.95.
    • Cold-start set (Table 5): DH1 average z is 7.86/9.68/7.91, DH0 −1.07/−2.06/−0.09; DH1 perplexity is 4.18/4.35/3.86.
    • One to two rounds of paraphrase (Table 10): AUC sequentially TSP 0.890, 0.911; WIP 0.897, 0.962; SA 0.873, 0.850.
    • Generalization, strong edits, and RLCracker numbers in Appendices B and C are only for trained Qwen3-14B; corresponding numbers for GPT-OSS-20B are not reported.
  5. What are some points that can be further explored?

    The paper does not explicitly list limitations or future directions.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The conclusion only expresses hope that the benchmark and training method will promote subsequent research in this direction, without listing specific shortcomings or planned experiments.

    Experimental coverage

    • The evaluation targets the 14 frontier proprietary and open-source models listed in Section 5.1; the two-stage training was applied only to Qwen3-14B and GPT-OSS-20B.
    • The main evaluation uses 500 LFQA queries, with the three instruction families and all models reused; training queries are disjoint from these 500. Positive sample sizes are 3379, 1865, and 2906, and negative sample sizes are 1000, 800, and 800.
    • Quality is measured by the perplexity of Qwen3-235B and Nemotron-3-Super-120B, and by gpt-4o-mini's four-dimensional 1–5 scores (Section 5.1). The paper does not report the number of evaluation repetitions or agreement between review and humans.
    • The main results use one template per family and one key per sample. Appendix B additionally reports results with alternative templates, BioASQ, FiQA, and keys disjoint from the training seeds, for the trained Qwen3-14B.
    • Editing evaluations include paraphrasing, 30% word replacement, and 30% word deletion (Section 5.2.3); Appendix C additionally covers multi-round paraphrasing, French–English back-translation, summarize-then-expand, and RLCracker given 100 watermarked samples. GRPO's group size and truncation range appear in formulas, and the appendix does not provide numerical values.
  6. Summarize the main content of the paper

    Two-stage training raised the average TPR@1%FPR of two open-source models to 0.974 and 0.968, and the authors state the quality trade-off is more favorable.
    • Positioning: Measure and train LLMs to follow in-context watermark instructions, enabling third parties to make responses carry statistically detectable signals without access to the model's internals.
    • Problem: After the instruction is prepended to any query, the response should be automatically verifiable and still be a qualified answer. None of the 14 frontier models achieved this on TSP, WIP, and SA simultaneously. On TSP, the highest AUC was 0.658 and the highest TPR@1%FPR was 0.120; on WIP, Gemini-3-pro had an AUC of 1.000, and the PPLQ in Table 3 was 67.61.
    • Method: Use decoding-time logits perturbation equivalent to the instruction, letting the frozen base model act as a teacher and synthesize positive and negative distributions; the student, after seeing the instruction, matches that distribution with top-k KL. Then use the verifier's z-statistic as the GRPO reward. No stronger teacher or human annotation is used.
    • Main results: On 500 LFQA queries, Qwen3-14B's three-family average TPR@1%FPR went from 0.100 to 0.974, and GPT-OSS-20B from 0.337 to 0.968 (Table 2). After training, Qwen3-14B had a PPLQ of 4.99 and a review mean score of 4.88 on WIP; relative to the backbone, perplexity increased, while the review mean score remained at 4.80–4.88. The authors state that the trade-off on TSP and WIP is better than the evaluated frontier models, and on SA it is comparable to the strongest proprietary baseline.
    • Other results: Direct RL on SA was identified by the authors as reward hacking; SFT reduced TPR to 0.006 on SA. After three rounds of paraphrasing, the trained Qwen3-14B's AUC remained 0.853/0.872/0.796. RLCracker exceeded 0.97 ESR under low content-preservation constraints, and was no better than ordinary paraphrasing once content-preservation requirements increased.
    • Authors' conclusion: The authors believe ICW can become a third-party-callable watermark interface and hope the benchmark and training method will be used in subsequent research.

Related papers

Read originalNeurIPS 2026