MEGA Hub

TextSeal2: Distortion-Free LLM Watermarking with Copula Mixing and Memoryless Races

Authors

Do you know Tom Sander?You can claim authorship or link another user.Do you know Pierre Fernandez?You can claim authorship or link another user.Do you know Itai Gat?You can claim authorship or link another user.Do you know Haiming Bao?You can claim authorship or link another user.Do you know Jiaxin Shi?You can claim authorship or link another user.Do you know Jason Park?You can claim authorship or link another user.Do you know Valeriu Lacatusu?You can claim authorship or link another user.Do you know Sylvestre-Alvise Rebuffi?You can claim authorship or link another user.Do you know Hongyan Chang?You can claim authorship or link another user.Do you know Hady Elsahar?You can claim authorship or link another user.Do you know Tomáš Souček?You can claim authorship or link another user.Do you know Tuan Tran?You can claim authorship or link another user.Do you know Surya Parimi?You can claim authorship or link another user.Do you know Alexandre Mourachko?You can claim authorship or link another user.

Abstract

We present TextSeal2, a distortion-free watermark for large language models that keeps its signal under speculative decoding: tokens that replace rejected drafts remain watermarked with the same keys, and the acceptance rate is unchanged. It also preserves output diversity and adds no measurable inference latency. Its predecessor, TextSeal, restores diversity in the Gumbel-max scheme by routing each token to one of two keys via a coin flip. This is suboptimal because the detector averages the scores from both keys without knowing which key was used. TextSeal2 instead merges two or more keys into a single virtual key and couples it to fresh noise through AutoMark's Gaussian copula. Any number of keys, including publicly shared keys, can be merged this way without diluting detection. Under speculative decoding, TextSeal2 verifies keyed drafts with one more exponential race, run on the leftovers of the draft races. By memorylessness, this race reproduces block verification, so the output follows the target model exactly. We evaluate TextSeal2 on three LLMs. At equal output token diversity, TextSeal2 detects 8 to 22 percentage points more 100-token answers than TextSeal at a false-positive rate of $10^{-3}$, and is comparable to textGrain while requiring no post-logits optimization. Under speculative decoding, it detects 18 and 22 percentage points more 200-token answers than TextSeal and textGrain, respectively, at the same acceptance rate.

Community

00

Publication notes

Author note
Code: https://github.com/facebookresearch/textseal