← Latest papers
💻 computer science

PASA: A Principled Embedding-Space Watermarking Approach for LLM-Generated Text under Semantic-Invariant Attacks

The paper introduces PASA, a principled watermarking algorithm that embeds and detects watermarks at the semantic level within a latent embedding space, achieving robustness against semantic-invariant attacks like paraphrasing while maintaining high text quality and optimal trade-offs between detection accuracy, robustness, and distortion.

Original authors: Zhenxin Ai, Haiyun He

Published 2026-05-13
📖 4 min read☕ Coffee break read

Original authors: Zhenxin Ai, Haiyun He

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 have a very talented robot writer (a Large Language Model, or LLM) that can write stories, emails, and articles that sound almost exactly like they were written by a human. The problem is, how do you know if a piece of text came from this robot or a real person? And what if someone tries to trick the system by taking the robot's text and rewriting it to look different?

This paper introduces a new method called PASA to solve this problem. Think of it as a high-tech, invisible watermarking system that is incredibly hard to wash away.

Here is how it works, using some simple analogies:

1. The Problem: The "Paraphrase" Thief

Most current watermarking systems are like stamping a secret code directly onto individual words.

  • The Old Way: Imagine the robot writes, "The cat sat on the mat." The watermark is hidden in the specific words "cat," "sat," and "mat."
  • The Attack: A bad actor (or a clever editing tool) comes along and rewrites the sentence to: "The feline rested on the rug."
  • The Failure: Because the specific words changed, the old watermark detectors get confused. They can't find the "cat" or "sat" anymore, so they think the text is human-written. The watermark was washed away by the change in vocabulary.

2. The Solution: PASA (The "Theme" Tracker)

PASA changes the game. Instead of hiding the secret in the words, it hides the secret in the meaning (the "theme" or "vibe" of the sentence).

  • The Semantic Map: Imagine the robot's brain has a giant map where all words are grouped by what they mean, not how they look.
    • Group A: "Cat," "Feline," "Kitty," "Puss."
    • Group B: "Sit," "Rest," "Lounge," "Perch."
    • Group C: "Mat," "Rug," "Carpet," "Floor."
  • The Secret Key: The robot and the detector share a secret key (like a password). This key tells them which "Group" to pick for the next word.
  • The Process:
    1. The robot looks at the secret key and decides, "Okay, for this next word, I must pick something from Group A."
    2. It picks "Feline" (which is in Group A).
    3. The detector, using the same secret key, knows, "Ah, the next word should be from Group A."
    4. The detector sees "Feline," checks the map, and says, "Yes! That matches our secret plan!"

3. Why It's Robust (The "Shape-Shifter" Defense)

Now, let's go back to the thief who changes "The cat sat on the mat" to "The feline rested on the rug."

  • Old System: "Cat" is gone. "Sit" is gone. "Mat" is gone. The watermark is broken.
  • PASA System:
    • "Feline" is still in Group A.
    • "Rest" is still in Group B.
    • "Rug" is still in Group C.
    • Even though the words changed, the groups (the semantic clusters) stayed exactly the same. The secret plan was followed perfectly. The detector still sees the pattern and knows, "This was written by the robot."

4. The "Distortion-Free" Promise

Usually, when you try to force a robot to follow a secret rule, it starts writing weird, unnatural sentences (like a robot trying to speak like a pirate). This is called "distortion."

PASA is special because it is distortion-free.

  • The Analogy: Imagine a chef who is told to only use ingredients from a specific basket. A bad system might force the chef to use a weird ingredient just to fit the basket, ruining the taste.
  • PASA's Trick: It uses a clever two-step sampling method. It picks the right basket (semantic group) based on the secret key, but then it picks the ingredient (the specific word) exactly how the chef usually would.
  • The Result: The text sounds 100% natural and high-quality, just like the robot's normal writing, but the secret pattern is still there.

5. The Results

The paper tested this against various "attacks" where text was rewritten, synonyms were swapped, and sentence structures were shuffled.

  • The Outcome: PASA remained strong. Even when the text was heavily rewritten (like changing "The movie has an interesting plot" to "The film features a fascinating tale"), PASA could still detect it.
  • Comparison: Older methods failed miserably under these rewrites, but PASA kept its cool, proving that hiding the watermark in the meaning is much safer than hiding it in the spelling.

In a nutshell: PASA is a way to watermark AI text by tagging the ideas instead of the words. This means even if someone tries to rewrite the text to hide the source, the secret "idea tags" remain visible to the detector, all without making the text sound robotic or unnatural.

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 →