TL;DR
Embedding multi-bit secret messages (like user IDs or timestamps) into LLM outputs usually involves guessing how hard you can nudge token probabilities before the text turns into gibberish. BoundMark flips this around by treating watermarking as a strict constrained optimization problem: you set a hard mathematical budget on how much the model's output distribution is allowed to warp at each step, and the algorithm squeezes out the maximum guaranteed watermark signal without ever crossing that line.
What Problem Does This Paper Address?
Simple "zero-bit" watermarks act like an invisible ink stamp—they only tell you if an AI wrote a piece of text. Multi-bit watermarks are much more ambitious, weaving recoverable binary strings (metadata, model versions, user IDs) directly into the prose by dividing the vocabulary into subsets and nudging the LLM toward specific "green" tokens.
The catch is a tug-of-war between detectability (recovering the message accurately) and distortion (degrading text quality). Standard methods control this by adding a fixed bias ($\delta$) to token logits before the softmax layer. However, adding $+2$ to a logit has wildly different effects depending on whether the LLM is uncertain (writing a creative story) or dead-set on one answer (writing Python syntax or solving math). As a result, fixed-bias watermarks frequently blow past safe distortion levels on some tokens while failing to embed anything useful on others.
Furthermore, standard detectability—measured as Bit Accuracy (BA)—can only be calculated after the entire text is generated and decoded. You can't optimize for it on the fly. The authors ask: Given a strict per-token distortion budget, how can we mathematically maximize watermark recovery during generation?
Methods
BoundMark replaces heuristic logit-nudging with a principled per-step optimization pipeline:
- KL-Bounded Distortion: Instead of perturbing logits, BoundMark directly measures and caps the Kullback–Leibler (KL) divergence ($\le \epsilon$) between the LLM's natural next-token probability distribution and the watermarked one.
- Proportional Probability Shifting: Prior methods nudge all "green" tokens equally. The authors prove via Lagrange multipliers that to minimize KL divergence for a given total probability shift ($\Delta$), you should boost green tokens (and shrink red tokens) proportionally to their original probabilities.
- A Computable Detectability Proxy: Since Bit Accuracy isn't available mid-generation, the authors introduce a local surrogate: $D = k \cdot \Delta$, where $k$ is the number of bits embedded in the current token and $\Delta$ is the shifted probability mass. They prove this proxy aligns directionally with final Bit Accuracy.
- Tractable Lower-Bound Optimization: Computing the exact green-set probability requires hashing the entire vocabulary (tens of thousands of tokens) for every candidate $k$ at every step—way too slow for live inference. Instead, BoundMark uses a balanced vocabulary partition (placing one of the top $2^k$ likeliest tokens into each subset) to quickly calculate a worst-case lower bound on detectability using only the top $2^k$ tokens. It picks the payload $k_t$ that maximizes this guaranteed floor—and smartly abstains ($k_t = 0$) when the token has no capacity (e.g., ultra-low entropy).
Datasets
No training datasets are required, as BoundMark operates at inference time. The authors evaluate the method across four existing benchmarks—introducing no new datasets—spanning both high-entropy creative tasks and low-entropy rigid tasks:
- C4 (News subset): Text completion.
- CNN/DailyMail: Text summarization.
- GSM8K: Mathematical reasoning.
- HumanEval: Code generation.
Key Insights and Ideas
- Proportionality beats uniformity: Boosting a token's probability in proportion to what the LLM already wanted to output is mathematically the cheapest way (in terms of KL divergence) to shift probability mass into your watermarked bucket.
- Smart abstention saves reasoning: On low-entropy steps—like typing
returnin code or=in math—forcing a multi-bit payload wrecks output quality. Because BoundMark dynamically evaluates $k \in \{0, \dots, k_{\text{max}}\}$, it naturally chooses $k_t = 0$ when a distribution is too spiky, leaving fragile reasoning chains intact. - Skipping the vocabulary tail: By combining balanced partitioning of the top $2^k$ tokens with concavity properties of their shift bound, BoundMark avoids hashing the massive long tail of the vocabulary during payload search, keeping latency practical while providing a worst-case detectability guarantee.
Key Results
Evaluated on LLaMA-2-7B and Qwen2.5-7B against seven baselines (including XMark, MPAC, CycleShift, and RSBH):
- High Bit Accuracy: On LLaMA-2-7B ($8$-bit messages across 150–300 tokens), BoundMark ($\epsilon=2$) achieves the highest average Bit Accuracy on text completion (99.38%) and ties for best on summarization (98.44%), though its default $\epsilon=2$ setting yields slightly higher perplexity than more conservative baselines like XMark (5.75 vs. 4.42 on completion). Varying $\epsilon$ traces out a smooth, monotonic quality–detectability Pareto frontier.
- Zero Degradation on Reasoning: On Qwen2.5-7B, BoundMark preserves unwatermarked task accuracy on GSM8K (40.00%) and HumanEval Pass@1 (33.54%) while maintaining 87.50% Bit Accuracy on both. High-BA baselines like CycleShift collapse GSM8K accuracy to 0.00% and drop HumanEval to 26.83%.
- Graceful Scaling: When scaling payloads from 8 bits up to 32 bits, baselines like XMark and MPAC drop toward ~70% BA, whereas BoundMark holds steady around 85%.
Limitations and Future Work
BoundMark is built for clean provenance tracking, not adversarial combat. Under text-modification attacks—random insertions/deletions, synonym swaps, and especially DIPPER paraphrasing—BoundMark's Bit Accuracy drops more sharply than fixed-payload baselines (falling from 95.62% clean BA down to 55.00% under DIPPER).
The authors point out why: during extraction, the detector reconstructs the dynamic payload schedule ($k_t$) from the preceding context. If an attacker edits the text, the context changes, desynchronizing which tokens carried how many bits. Marrying strict per-token distortion bounds with adversarial edit-resilience remains an open challenge for future work.
Summary updated