← Latest papers
💬 NLP

TextSeal: A Localized LLM Watermark for Provenance & Distillation Protection

TextSeal is a state-of-the-art, distortion-free LLM watermarking scheme that ensures robust provenance detection and distillation protection through dual-key generation and multi-region localization, all while maintaining output quality and supporting serving optimizations without inference overhead.

Original authors: Tom Sander, Hongyan Chang, Tomáš Souček, Tuan Tran, Valeriu Lacatusu, Sylvestre-Alvise Rebuffi, Alexandre Mourachko, Surya Parimi, Christophe Ropers, Rashel Moritz, Vanessa Stark, Hady Elsahar, Pierre
Published 2026-05-13
📖 5 min read🧠 Deep dive

Original authors: Tom Sander, Hongyan Chang, Tomáš Souček, Tuan Tran, Valeriu Lacatusu, Sylvestre-Alvise Rebuffi, Alexandre Mourachko, Surya Parimi, Christophe Ropers, Rashel Moritz, Vanessa Stark, Hady Elsahar, Pierre Fernandez

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a baker who makes thousands of delicious loaves of bread every day. You want to know if a loaf in a grocery store was baked by you, or if someone else copied your recipe and baked it themselves. But here's the catch: you can't just stamp "Made by Baker Tom" on the bread, because that ruins the taste and texture. You need a secret ingredient that is invisible to the human tongue but leaves a unique, detectable fingerprint for your special scanner.

This is exactly the problem TextSeal solves for Large Language Models (AI). It is a new, high-tech "invisible watermark" that proves who wrote a piece of text without changing how the text sounds or looks.

Here is how TextSeal works, broken down into simple concepts:

1. The Secret Ingredient (Dual-Key Generation)

Older watermarks were like a stamp that always put the same mark in the same spot. If you asked the AI the same question twice, it would give you the exact same answer both times. This is boring for users and can even make the AI get stuck in repetitive loops (like a song on repeat).

TextSeal's Solution: It uses two secret keys instead of one. Every time the AI picks a word, it flips a coin to decide which key to use.

  • The Analogy: Imagine you have two different secret spices. Sometimes you sprinkle Spice A, sometimes Spice B. To the eater, the bread tastes exactly the same (no distortion), but to your scanner, the pattern of spices creates a unique, varied fingerprint that proves it came from you. This keeps the AI's answers fresh and diverse while still being traceable.

2. The Smart Scanner (Entropy-Weighted Detection)

Detecting a watermark is hard because AI sometimes writes very predictable things (low "entropy") and sometimes very creative, unpredictable things (high "entropy").

  • The Problem: If the AI is 99% sure the next word is "the," adding a watermark there is like trying to hide a whisper in a hurricane. It's hard to hear. But if the AI is guessing between many words, the watermark signal is much stronger.
  • TextSeal's Solution: It uses a "smart scanner" that knows to pay extra attention to the parts of the text where the AI was unsure (high entropy). It ignores the boring, predictable parts and focuses on the creative parts where the watermark signal is strongest. This makes the detection much more accurate, even in long documents.

3. Finding the Needle in the Haystack (Localized Detection)

Imagine someone takes a paragraph you wrote, mixes it into a 50-page essay written by a human, and claims the whole thing is theirs. Old watermarks would look at the whole essay, get confused by all the human writing, and say, "I can't find the watermark."

TextSeal's Solution: It doesn't just look at the whole document; it scans for specific regions.

  • The Analogy: Instead of trying to find a single grain of sand in a beach, TextSeal looks for small, specific patches of sand that have a unique color. Even if the AI text is only 5% of a huge document, TextSeal can isolate that 5%, ignore the rest, and say, "Aha! This specific paragraph is definitely AI-generated." This works even if the AI text is chopped up and scattered throughout the document.

4. The "Radioactive" Effect (Distillation Protection)

This is perhaps the most powerful feature. If a competitor tries to steal your AI's "brain" by training their own model on your watermarked outputs, the watermark doesn't just stay in the text—it gets learned.

  • The Analogy: Imagine your secret spice is so potent that if a competitor tries to bake bread using your old loaves as a reference, their new bread still carries a faint trace of your spice, even if they never saw your secret recipe.
  • The Claim: The paper shows that if a student model is trained on TextSeal watermarked data, that student model becomes "radioactive." You can test the student model, and it will still show the watermark signal, proving it was trained on your data. This stops competitors from secretly copying your model's knowledge.

Why is this a big deal?

  • It's Invisible: The paper tested this with humans reading thousands of examples. They couldn't tell the difference between watermarked and non-watermarked text. It didn't make the AI sound robotic or make mistakes.
  • It's Fast: It adds almost zero time to the AI's thinking process, so it can be used in real-time apps.
  • It's Strong: It beats previous methods (like Google's SynthID) in detecting watermarks, even when the text is heavily diluted or mixed with human writing.

In short, TextSeal is a way to sign your AI's work with an invisible, unbreakable ink that survives copying, mixing, and even being "learned" by other models, all without ruining the quality of the text.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →