arXiv:2610.40613cs.CROct 2026

Manuscript Offprint

arXiv:2610.40613

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

Tom Sander, Pierre Fernandez, Itai Gat, Haiming Bao, Jiaxin Shi, Jason Park, Valeriu Lacatusu, Sylvestre-Alvise Rebuffi, Hongyan Chang, Hady Elsahar, Tomáš Souček, Tuan Tran, Surya Parimi, Alexandre Mourachko

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Tom Sander*, Pierre Fernandez*, Itai Gat, Haiming Bao, Jiaxin Shi, Jason Park, Valeriu Lacatusu, Sylvestre-Alvise Rebuffi, Hongyan Chang, Hady Elsahar, Tomáš Souček, Tuan Tran, Surya Parimi, Alexandre Mourachko

Meta Superintelligence Labs, ∗^{*}Equal contributors

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−310^{-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.

Correspondence: tomsander@meta.com, pfz@meta.com

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

Meta

1 Introduction

Identifying AI-generated text helps prevent misuse, from fabricated news (Zellers et al., 2019; Crothers et al., 2022) to model distillation by malicious actors (Sander et al., 2024). An LLM watermark embeds a keyed statistical signal at generation time: each token is sampled from the model's next-token distribution through a coupling with pseudo-random values derived from a secret key and the preceding tokens. The detector recomputes these values from the key and the text and tests whether the tokens are statistically aligned with them. The EU AI Act requires providers to mark AI-generated content (European Union, 2024), and watermarking is deployed at scale: SynthID-Text runs in Gemini (Dathathri et al., 2024), Anthropic marks Claude outputs (Anthropic, 2026), OpenAI deploys textGrain (Li et al., 2026), and we released TextSeal (Sander et al., 2026).

We argue that a deployed watermark should meet four requirements: it should (i) preserve the model's output distribution; (ii) keep answers diverse under a fixed watermark key; (iii) add minimal latency to decoding; and (iv) preserve the acceptance rate of speculative decoding (Leviathan et al., 2023; Chen et al., 2023; Sun et al., 2025). Schemes whose next-token distribution, averaged over all possible keys, equals the model's are called distortion-free. The earliest such scheme applies the Gumbel-max trick to keyed pseudo-random values (Aaronson and Kirchner, 2023); later ones achieve the same property with other samplers (Christ et al., 2023; Hu et al., 2023; Wu et al., 2023; Kuditipudi et al., 2023). Distortionary schemes such as the green list (Kirchenbauer et al., 2023) instead shift token probabilities, trading quality for detectability; we focus on distortion-free schemes.

Table 1 Detection on Qwen3.5-9B (ELI5, temperature 1, top-p 0.95), at fixed diversity: % of 200-token answers detected at a false-positive rate (FPR) of 10−310^{-3}. Gray: half-width of the 95% bootstrap interval; bold: best; underlined: second best, per column. Speculative decoding: Qwen3.5-0.8B drafts 8 tokens per round, with block verification; TextSeal2 uses the residual race, the baselines use block verification's native stopping rule with the last token of each round drawn under an independent key, and textGrain's own recipe verifies the watermarked distributions. Acceptance is kept when tokens per round do not drop below those of unwatermarked block verification (2.74; paired over 480 prompts, Figure 11 in Appendix G). NitN_{\mathrm{it}}: Sinkhorn iterations on a B×mB \times m table (1–3 ms per token, Appendix D); LL: tournament layers over candidates A\mathcal{A}. TextSeal2 equals AutoMark's copula in distribution; their gap under speculative decoding is the residual race.

MethodSpeculative decodingAcceptance keptExtra post-logits work
✕✓
SynthID-Text (tournament)89±3‾\underline{89\pm 3}50±250\pm 2✓O(L∣A∣)O(L|\mathcal{A}|)
TextSeal (coin flip)81±181\pm 171±271\pm 2✓none
AutoMark copula91±3\mathbf{91\pm 3}60±260\pm 2✓none
textGrain89±4‾\underline{89\pm 4}67±467\pm 4✓Sinkhorn, O(NitBm)O(N_{\mathrm{it}}Bm)
textGrain, own speculative-decoding recipe-84±6‾\underline{84\pm 6}✕ (-5% tokens/round)Sinkhorn, O(NitBm)O(N_{\mathrm{it}}Bm)
TextSeal2 (ours)91±2\mathbf{91\pm 2}89±1\mathbf{89\pm 1}✓none

Every distortion-free watermark couples the sampled token to key-derived randomness (Li et al., 2025; Xie et al., 2025; Long et al., 2025; Tsur et al., 2025; He et al., 2025; Gloaguen et al., 2026). If the key fully determines the token, detection is strongest but repeated generations with the same context never vary; if the token is independent of the key, sampling is unchanged but carries no signal. Put differently, watermarking removes a fraction of each token's entropy, which is the budget formulation of textGrain (Li et al., 2026). Schemes differ in how they trade diversity against detectability. TextSeal routes each token to one of two keys by a coin flip (Sander et al., 2026); textGrain samples from a regularized optimal-transport coupling solved at every decoding step (Li et al., 2026); SynthID-Text selects among randomly sampled candidates by tournament (Dathathri et al., 2024); and AutoMark blends its Gumbel values with freshly drawn noise through a Gaussian copula (Gloaguen et al., 2026). Other couplings rely on reweighting (Hu et al., 2023; Wu et al., 2023), inverse-transform sampling (Kuditipudi et al., 2023), or maximal couplings (Xie et al., 2025; Long et al., 2025; Tsur et al., 2025). Dual-key constructions such as TextSeal also support tampering detection (Feng et al., 2026) and public detection, with one key public and the other private (Milis et al., 2026). Among these, textGrain detects the most watermarked text at a given diversity, but its optimal transport adds post-logits latency and its speculative variant lowers acceptance, violating our requirements (iii) and (iv) presented above.

(a) Without speculative decoding

Figure

(b) With speculative decoding

Figure

SynthID-Text (layers) TextSeal, coin flip (α\alpha) textGrain (β\beta) AutoMark copula (ρ\rho) TextSeal2 (ρ\rho)

Figure 1 Diversity-detection trade-off on Qwen3.5-9B at 100 tokens at FPR= 10−310^{-3} , (a) without and (b) with speculative decoding (8 drafts per round, block verification). In (a), TextSeal2 coincides with AutoMark's single-key copula as expected since it behaves like a single-key copula. In (b), TextSeal2 uses the residual race, and the baselines use block verification's native stopping rule with the last token of each round drawn under an independent key. Diversity is measured by Self-BLEU (lower is more diverse).

We present TextSeal2, which retains TextSeal's two keys, meets all four requirements, and matches the state of the art in detectability. Our starting point is a diagnosis of the gap between TextSeal, textGrain, and AutoMark. In TextSeal, each token is generated under one key, but the detector does not know which key, and must average the scores from both keys. This halves the signal and reduces the signal-to-noise ratio by 2\sqrt{2}. AutoMark and textGrain do not suffer from this loss because they use a single key, which the detector scores on every token, and draw their diversity from fresh randomness.

TextSeal2 makes three contributions to reach the state of the art (Table 1, Figure 1):

• Copula mixing (subsection 3.1). We merge the two keys' Gaussian values into a single virtual key and apply AutoMark's copula on it. Each key retains its role (e.g., one can be published to allow for public detection), and additional keys can be merged without diluting detection.

  • The residual race for speculative decoding (subsection 3.2). Gumbel-max sampling, used for the keyed drafts, is an exponential race. By memorylessness, the losers' leftovers are fresh exponentials. We use this property to run one more race on them, and with block verification (Sun et al., 2025), we decide the first draft token to be rejected, and the bonus token. The output is exactly distortion-free, acceptance is that of block verification (Proposition 1), and detection gains 28 to 33 percentage points over drawing the last token of each round under an independent key.

• A calibrated strength parameter (subsection 3.3). The coupling strength ρ\rho plays the role of textGrain's entropy budget β\beta: the entropy it removes from a token of positive entropy increases strictly with ρ\rho (Theorem 1). No distortion-free scheme can obtain more detection evidence per token than the entropy it removes, and the copula comes close to this bound (Proposition 3).

References (32)