QuantileMark: A Message-Symmetric Multi-bit Watermark for LLMs
QuantileMark is a white-box multi-bit watermarking method for large language models that ensures message symmetry and robust detection by embedding messages within equal-mass probability bins in the continuous cumulative distribution, thereby maintaining generation quality while achieving uniform evidence strength across all messages.
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 own a bakery that sells thousands of delicious, custom cakes every day. You want to know which baker made which cake, just in case someone tries to sell a fake one or if a cake turns out to be bad. So, you decide to bake a tiny, invisible "secret ingredient" into every cake.
The problem with previous methods was like this: Imagine you have a bag of 100 different colored sprinkles. To hide your secret, you tell the baker, "If you are making Cake #1, use only Red sprinkles. If you are making Cake #2, use only Blue sprinkles."
But here's the catch: Some cakes naturally need a lot of Red sprinkles to taste good, while others need Blue.
- The Old Way (Vocabulary Partition): If you force a "Blue-only" cake to use Red sprinkles because that's the code for Cake #1, the cake tastes weird (bad quality). If you force a "Red-only" cake to use Blue sprinkles, it also tastes weird. Worse, if the baker happens to want Red sprinkles anyway, the secret is easy to spot. But if they wanted Blue, the secret is hard to find. The "secret" changes the taste of the cake depending on which secret you are hiding.
Enter QuantileMark: The "Equal-Slice" Cake.
The researchers at Peking University came up with a smarter way called QuantileMark. Instead of assigning specific colors to specific cakes, they changed the rules of the kitchen entirely.
The Analogy: The Probability Pie
Imagine the baker's decision-making process as a giant pie representing 100% of the possible flavors they could choose for the next bite of the cake.
- The biggest slice of the pie is the flavor the baker really wants to use (e.g., "Chocolate").
- The tiny slivers are the weird flavors they rarely pick (e.g., "Pickles").
How QuantileMark Works:
The Equal Slices: Instead of giving "Red" to one cake and "Blue" to another, the baker cuts the entire pie into 4 equal slices (since they are hiding 2 bits of information, which equals 4 possibilities).
- Slice 1: 0% to 25% of the pie.
- Slice 2: 25% to 50%.
- Slice 3: 50% to 75%.
- Slice 4: 75% to 100%.
The Secret Code: Every time the baker needs to pick a flavor, they look at their secret code (the message). Let's say the code says "Slice 3."
- The baker must pick a flavor that falls inside that 50%–75% slice of the pie.
- If the baker's favorite flavor (Chocolate) is in that slice, they pick Chocolate. Easy!
- If their favorite is in Slice 1, they have to pick the best flavor available in Slice 3. Maybe it's "Strawberry."
Why is this a game-changer?
- Fairness (Message Symmetry): It doesn't matter if the secret code is "Slice 1" or "Slice 4." Every slice is exactly the same size (25%). The baker never has to pick a "weird" flavor just because of the code. The cake always tastes just as good, no matter which secret is hidden inside.
- Detectability: Because the baker is forced to pick from a specific slice, a detective (the verifier) can look at the cake and say, "Ah, this flavor is in the 50-75% range. That matches the code for 'Slice 3'!" Even if the baker had to compromise slightly, the detective can still see the pattern clearly because the slices are perfectly equal.
The "White-Box" Detective
In the old days, the detective had to guess based on the outside of the cake (Black-Box). They couldn't see the recipe.
With QuantileMark, the bakery allows the detective to peek inside the kitchen (White-Box). The detective knows the recipe, knows how the pie was sliced, and can mathematically prove, "Yes, this cake was baked using the 'Slice 3' rule."
The Real-World Result
The paper tested this on AI models (the bakers) writing text (the cakes).
- Quality: The text written with QuantileMark sounded just as natural and high-quality as text without any secret code. The "taste" wasn't ruined.
- Recovery: The detective could read the secret message (like a User ID or a timestamp) almost perfectly, even if the text was short.
- Robustness: Even if someone tried to edit the text (like changing a few words or deleting a sentence), the secret was still much harder to destroy compared to the old "Red vs. Blue sprinkle" methods.
Summary
QuantileMark is like a new way of baking secrets into AI text. Instead of forcing the AI to use specific words that might ruin the sentence (like forcing a "Red sprinkle" on a "Blue cake"), it divides the AI's choices into equal, fair chunks. This ensures the text stays delicious (high quality) while making the secret code easy to find and impossible to mess up, no matter what the AI was originally planning to say.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.