NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TextSeal: A Localized LLM Watermark for Provenance & Distillation Protection

Tom Sander, Hongyan Chang, Tomáš Souček, Sylvestre-Alvise Rebuffi, Valeriu Lacatusu, Alexandre Mourachko, Tuan Tran, Hady Elsahar, Pierre FernandezNeurIPS 2026

TL;DR

How do you sign an AI’s work with invisible ink without smudging its prose, slowing it down, or forcing it to repeat itself? TextSeal introduces a mathematically "distortion-free" LLM watermark that preserves generation diversity, pinpoints tiny AI-written snippets buried inside massive human documents, and acts like a radioactive tracer—catching competitors red-handed if they secretly distill your model’s reasoning traces into their own.

What Problem Does This Paper Address?

When deploying an LLM, watermarking its output is crucial for provenance (like complying with the EU AI Act) and protecting your data. Ideally, you want a distortion-free watermark: one that embeds a hidden statistical signature without altering the exact probability distribution of the next token, guaranteeing zero degradation in text quality.

The reigning champion of this approach—Gumbel-Max watermarking—uses a secret key and recent context tokens to seed a pseudo-random function (PRF) that nudges token selection. It offers the best detectability-to-quality trade-off, but has a fatal flaw: it is completely deterministic. Give it the same prompt twice, and you get the exact same response, killing output diversity and occasionally trapping the model in repetitive loops. Google’s SynthID fixed this determinism using tournament sampling, at the cost of weaker statistical detection tests and higher latency. Furthermore, traditional global detectors fall apart in the real world when a single AI paragraph is pasted into a 10-page human essay, diluting the signal into noise.

Methods

TextSeal builds directly on standard Gumbel-Max sampling, upgrading it with three clever mechanisms:

Figure 2: TextSeal overview. Left (Embedding): One of two keys is randomly selected (probability α for k(2), 1−α for k(1)), and the token is chosen via Gumbel-Max using the selected key’s PRF (subsection 3.1). Right (Detection): Per-token scores under both keys are fused and entropy-weighted (subsection 3.2); a geometric cover search then localizes watermarked regions (subsection 3.3).
  • Dual-Key Routing (Generation): Instead of one secret key, TextSeal flips a weighted coin (controlled by routing probability $\alpha$) at each step to choose between two secret keys, $k^{(1)}$ and $k^{(2)}$. This simple routing shatters determinism and restores output diversity while keeping every token mathematically distortion-free.
  • Early-Fusion & Entropy-Weighted Detection: At detection time, the detector doesn't know which key generated which token. Rather than running two separate tests, it fuses scores from both keys at the token level. Next, consider the phrase "The capital of France is..."—"Paris" has near-100% probability, leaving zero room for a watermark signal. TextSeal runs a tiny, quantized proxy model (like a 4-bit 0.8B model) to estimate token-level entropy, continuous-weighting high-entropy creative choices over predictable ones, and fits a moment-matched Gamma approximation for calibrated $p$-values.
  • Multi-Region Localization: Searching every possible start-and-end substring in an $n$-token document takes $\mathcal{O}(n^2)$ operations and incurs a massive multiple-testing statistical penalty. TextSeal instead scans sliding windows of dyadic lengths ($L_0, 2L_0, 4L_0 \dots$), ranking candidates cheaply via prefix sums before running rigorous Gamma tests inside an adaptive ensemble.

Datasets

No new datasets are introduced, though the authors evaluate across an extensive suite:

  • Detectability & Imperceptibility: ELI5 (English long-form QA) and CaLMQA (Arabic, Chinese, Hindi, and Japanese QA) for a 6,000-pair human evaluation; Wikipedia passages for false-positive calibration (1M passages) and mixed-document dilution tests.
  • Downstream Capabilities: 12 standard benchmarks spanning math (AIME, MATH, GSM8K), coding (HumanEval, MBPP), knowledge (MMLU, GPQA, SimpleQA), and common sense (HellaSwag, WinoGrande, ARC-E, ARC-C).
  • Distillation Radioactivity: 5,000 curated math reasoning problems from OpenR1-Math-220k.

Key Insights and Ideas

  • Diversity unlocks free serving speedups: Because TextSeal uses two keys, it natively supports speculative decoding and Multi-Token Prediction (MTP) with zero extra latency—draft-accepted tokens simply route to $k^{(1)}$, while rejected fallback tokens route to $k^{(2)}$.
  • Tiny proxies punch way above their weight: You don't need a massive 27B parameter generator to calculate token entropies during detection. A lightweight 4-bit 0.8B proxy model (using 35$\times$ less VRAM) captures nearly the exact same multi-order-of-magnitude boost in detection power.
  • Watermarks are "radioactive" across reasoning traces: If a competitor generates chain-of-thought reasoning traces from a TextSeal-protected teacher model to fine-tune their own student model, the student inherits the secret token biases. Moreover, because TextSeal avoids Gumbel-Max’s repetitive loops, more generated traces pass quality filters, yielding stronger real-world distillation detection due to higher data volume.

Key Results

TextSeal outperforms SynthID across diversity levels, resists heavy text dilution, and preserves benchmark accuracy.

Figure 1: TextSeal overview (Qwen3.5-27B). (a) TextSeal outperforms SynthID on the diversity- detectability frontier (ELI5, 400 tok, T=0.8, top-p=0.9; SynthID with Google DeepMind’s g-values). (b) Localized detection stays confident at 10× dilution where global baselines fail. (c) Downstream accuracy is preserved across all 12 reasoning benchmarks at T=0.6.
  • Superior Detectability: On Qwen 3.5-27B, TextSeal outperforms SynthID across all diversity levels—improving median detection strength by roughly two orders of magnitude ($-\log_{10} p$ of 5.8 vs. 3.8 at default $\alpha=0.1$).
  • Zero Quality Loss: Across 12 reasoning benchmarks, average accuracy is identical with and without TextSeal (70.6% vs. 70.6% at $T=0.6$). In 6,000 blind human A/B evaluations across 5 languages, 79% ended in ties with a negligible +0.4% net win rate, statistically proving equivalence.
  • Negligible Overhead: Embedding evaluates the PRF only on top-$p$ tokens, adding $\sim$0.07 ms/token ($\le 0.3\%$ overhead)—making it more than 3$\times$ faster than SynthID ($\sim$0.6 ms/token).
  • Pinpoint Localization: When 400 watermarked tokens are buried inside a 12,000-token document (just 3.3% AI text), global baselines fail completely around 4k tokens, while TextSeal maintains confident localized detection ($-\log_{10} p > 4$).

Limitations and Future Work

Like all distortion-free sampling watermarks, TextSeal trades diversity across repeated generations for detectability, which can still impact workflows relying on diverse sampling like best-of-$N$ reranking or creative brainstorming. Additionally, TextSeal is vulnerable to aggressive or iterative LLM paraphrasing—a capable rephraser strips its signal just as it strips SynthID and Gumbel-Max, meaning the threat model relies on keeping keys and detectors private on the server side. Looking ahead, the authors note ongoing explorations into public/private decoding schemes and pushing the signal-to-noise ratio even higher in a follow-up iteration (TextSeal2).

Summary updated

BibTeX
@inproceedings{sander2026textseal,
  author = {Tom Sander and Hongyan Chang and Tomáš Souček and Sylvestre-Alvise Rebuffi and Valeriu Lacatusu and Alexandre Mourachko and Tuan Tran and Hady Elsahar and Pierre Fernandez},
  title = {{TextSeal: A Localized LLM Watermark for Provenance \& Distillation Protection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=U3ylK9OAHL},
}
Figure