← Latest papers
💬 NLP

XMark: Reliable Multi-Bit Watermarking for LLM-Generated Texts

The paper introduces XMark, a novel multi-bit watermarking method for LLM-generated text that overcomes existing limitations by achieving high decoding accuracy even with limited tokens while preserving text quality through a less distorted logit distribution.

Original authors: Jiahao Xu, Rui Hu, Olivera Kotevska, Zikai Zhang

Published 2026-04-08
📖 4 min read☕ Coffee break read

Original authors: Jiahao Xu, Rui Hu, Olivera Kotevska, Zikai Zhang

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 just bought a beautiful, hand-painted vase from a famous artist. You love it, but you're worried someone might steal it, repaint it slightly, and claim it's theirs. You need a way to prove it's yours without ruining the vase's beauty or making the paint look weird.

This is exactly the problem with AI-generated text. Large Language Models (LLMs) like ChatGPT can write amazing stories, emails, and articles. But bad actors can use them to spread fake news or scams. We need a way to "stamp" the text to prove it came from an AI, but we can't just slap a giant "MADE BY AI" sticker on it because that ruins the reading experience.

Enter XMARK, a new, clever way to hide a secret digital fingerprint inside AI text. Here is how it works, explained simply:

The Problem with Old Methods

Think of previous watermarking methods like MPAC as a game of "Hide the Needle."

  • How they worked: They would pick a tiny, specific group of words (like "the," "and," "is") and make the AI slightly more likely to pick them if a secret message was hidden.
  • The Flaw: To hide a long message (like a user ID), they had to pick very small groups of words. This made the AI sound robotic and unnatural (bad quality). Also, if you only had a short paragraph to check, there weren't enough "needles" to find, so the decoder often failed.

The XMARK Solution: The "Evergreen List"

XMARK changes the game by flipping the script. Instead of hiding the needle, it highlights the haystack.

1. The Encoder (The Artist): "Leave-One-Out"

Imagine the AI has a giant bag of 50,000 colored marbles (words).

  • Old Way: To hide a secret, the artist would pick just one specific color (say, Red) and make it slightly more common.
  • XMARK Way: The artist says, "I will hide a secret by making EVERY color EXCEPT Red slightly more common."
    • This is called Leave-one-Shard-out (LOSO).
    • Why it's better: Since almost all the marbles are now "good" to pick, the text still sounds natural and fluent. The AI isn't forced to pick weird words.

2. The "Evergreen List" (The Super-Filter)

To make the secret even stronger, XMARK doesn't just use one bag of marbles. It uses multiple bags (multiple "permutations" of the word list), each shuffled differently.

  • It creates a special "Evergreen List" containing only the marbles that are "good" in ALL the bags.
  • The Magic: Even though the list is smaller than the whole bag, it's still huge compared to the old methods. This means the AI has plenty of natural-sounding words to choose from, keeping the text high-quality.

3. The Decoder (The Detective): "The Constrained Map"

Now, imagine you find a suspicious text and want to see if it's watermarked. You need to figure out which color was the "secret" one.

  • The Challenge: If the text is short, you might not see enough of the secret color to be sure.
  • The XMARK Trick: The decoder uses a special tool called a Constrained Token-Shard Mapping Matrix (cTMM).
    • Think of this as a detective's notebook. In old methods, if a detective saw a "Red" marble, they might accidentally count it multiple times if it fit into different categories, confusing the count.
    • XMARK's notebook has a strict rule: "One marble, one count."
    • Because XMARK used multiple bags (hash keys) to create the text, a single word in the text can give the detective clues about multiple different categories at once.
    • The Result: Even with a very short text, the detective can piece together the puzzle much faster and more accurately than before.

Why This Matters

  • Better Quality: Because XMARK boosts almost all words instead of just a few, the AI text sounds natural, human, and fluent. It doesn't sound "stiff."
  • Works on Short Texts: Old methods needed long essays to decode the message. XMARK can decode the secret message from a short tweet or a quick email.
  • Harder to Remove: Because the secret is hidden in the absence of a specific pattern across many different word groups, it's very hard for someone to edit the text to remove the watermark without breaking the sentence structure.

The Bottom Line

XMARK is like a high-tech, invisible ink that doesn't smudge the paper. It allows us to tag AI text with a unique ID (like a user's name or a timestamp) so we can trace it back to the source, all while keeping the text sounding perfectly natural—even if the text is very short. It solves the old trade-off where you had to choose between "good sounding text" and "reliable detection." Now, you can have both.

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 →