← Latest papers
💬 NLP

SSG: Logit-Balanced Vocabulary Partitioning for LLM Watermarking

The paper proposes SSG (Sort-then-Split by Groups), a new vocabulary partitioning method that improves LLM watermarking detectability in low-entropy scenarios, such as code and math generation, by creating logit-balanced subsets to raise the lower bound of watermark strength.

Original authors: Chenxi Gu, Xiaoning Du, John Grundy

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

Original authors: Chenxi Gu, Xiaoning Du, John Grundy

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 secret agent trying to leave a "hidden signature" on a letter to prove you wrote it. You want this signature to be subtle enough that a casual reader won't notice, but obvious enough that your agency can spot it later using a special magnifying glass.

This paper, SSG, is about making that hidden signature much easier to find, especially in situations where it’s normally very hard to hide anything.

The Problem: The "One-Choice" Dilemma

Most AI watermarking (like the famous "KGW" method) works by playing a game of "Red Light, Green Light" with words. The AI is told: "When you pick the next word, try to pick a 'Green' word more often than a 'Red' word."

In normal conversation (high entropy), there are hundreds of words to choose from. If the AI picks a "Green" word instead of a "Red" one, it’s easy to notice the pattern.

But imagine you are writing a math equation or a line of computer code (low entropy). In these cases, there is often only one correct answer. If the next word must be x = 5, the AI doesn't have a choice. It can't pick a "Green" word if the only correct word is "Red." The watermark gets "drowned out" because the AI is forced to be accurate, not "green." It’s like trying to hide a secret message in a book where every single word is already printed in bold, permanent ink.

The Solution: SSG (The "Fair Split" Strategy)

The researchers noticed that the problem isn't the "Green/Red" rule itself; it's how we decide which words are Green and which are Red.

In the old way, words were assigned colors randomly. This was like throwing a handful of red and green marbles into a dark room. By pure bad luck, all the "important" marbles (the ones the AI actually wants to pick) might end up being Red. If that happens, the watermark disappears.

SSG (Sort-then-Split by Groups) changes the game. Instead of random assignment, it follows these steps:

  1. The Lineup: It looks at all the possible next words and lines them up from "most likely" to "least likely" (like a leaderboard).
  2. The Buddy System: It takes the top candidates and puts them into pairs.
  3. The Fair Coin Toss: For every pair, it flips a coin: one word becomes Green, and the other becomes Red.

The Analogy: The Buffet Line
Imagine a buffet where there are 100 dishes, but only 2 are actually delicious (the high-probability tokens).

  • The Old Way (KGW): You assign colors randomly. You might accidentally make both delicious dishes "Red." Now, the "Green" signal is useless because no one is eating the Green food.
  • The SSG Way: You take the two delicious dishes, pair them up, and say, "One of you is Green, and one of you is Red." Now, no matter what the AI chooses, it is guaranteed to pick a Green word half the time. You have "balanced" the flavors so the signature always shows up.

Why does this matter?

  1. It’s Smarter, Not Louder: Usually, to make a watermark stronger, you have to force the AI to pick "Green" words so aggressively that the AI starts making mistakes (like writing bad code). SSG makes the watermark stronger without making the AI "stupid."
  2. It Works Everywhere: It fixes the problem in "boring" or "strict" tasks like math and coding, while still working perfectly fine for creative writing.
  3. Better Proof: It provides a mathematical guarantee that the "strength" of the watermark won't drop to zero, even when the AI is being very precise.

In short: SSG ensures that even when the AI has its hands tied by logic and math, it can still leave a clear, detectable fingerprint.

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 →