TTMark: Pairwise Distortion-Free Watermarking Beyond Single-Token EntropyTTMark: Pairwise Distortion-Free Watermarking Beyond Single-Token Entropy
TTMARK extends lossless watermarking from single tokens to adjacent token pairs; on C4, Llama-3.2-3B-Instruct, FPR=0.001%, SynthID-Text's TPR rises from 50.3% to 73.2%.
At decoding time, a statistical signal is embedded using a private key, allowing a detector holding the key to distinguish machine-generated text from human text; after expectation over the key, the watermarked decoding distribution is exactly the same as the original model distribution (distortion-free). Attackers can edit generated text through paraphrasing, back-translation, and similar operations.
- Lossless watermarks are embedded independently per token, and detection capability is limited by the entropy of the next-token distribution; after temperature, top-p, and top-k lower entropy, short texts and local detection lack statistical power.
- TTMARK reweights the joint distribution of adjacent tokens, expanding the effective alphabet from V to V², and keeps the joint distribution unchanged under the expectation over the key. The branch-isolated concatenated forward pass computes the conditional distribution for each candidate in a single forward pass.
- Across three lossless watermarks, TTMARK increases TPR and lowers the median p-value, with generation quality metrics close to single-token watermarks. Alignment-based detection remains higher after paraphrasing and back-translation, and local detection shows lower FNR with higher F1 and IoU. The gains persist under low-entropy sampling.
- The paper does not list Limitations separately. The appendix says three-token blocks are more sensitive to editing boundaries, so two tokens are used by default. Experiments cover four generation sets including C4, three instruction models, three baseline watermarks, and rewriting, back-translation, and WaterSeeker local detection.
- Evaluated models
- Llama3.2-3B-InstructMistral-v0.3-7B-InstructQwen2.5-7B-Instruct
- Benchmarks
- C4MMW Book ReportDolly Creative WritingLongform QAWaterSeeker
- Metrics
- TPR@FPRmedian p-valueAUROCFPRFNRF1IoUROUGEBLEUBERTScoreSeconds per 1k Tokens
TTMark (Tandem Token WaterMark) extends lossless watermarking from single tokens to pairs of adjacent tokens, watermarking the joint distribution of consecutive tokens and expanding the effective watermark alphabet from V to V², allowing the detector to exploit both token entropy and conditional entropy. The method introduces a branch-isolating concatenated tandem generation algorithm that constructs the joint distribution in a single forward pass, and theoretically has stronger expected detection strength in low-entropy scenarios. Experiments across multiple language models, datasets, and three representative lossless watermarking schemes show that TTMark consistently improves detectability without degrading generation quality, and improves robustness to editing and local watermark detection.
Paper analysis
What problem does this paper attempt to solve?
The detection power of single-token lossless watermarks is limited by the next-token entropy; TTMARK instead watermarks pairs of adjacent tokens.
Lossless watermarks are embedded token by token, and detection power is capped by the entropy of the next-token distribution; low-entropy decoding, short texts, and local detection shrink the observation pool.
- Scenario: the authors state that LLM deployment requires identifying machine-generated text, citing the EU AI Act's transparency and traceability requirements. Watermarks embed a statistical signal at decoding time, and a detector holding the private key uses it to distinguish watermarked outputs from human text.
- Existing shortcomings: the authors state that distortion-free watermarks, after marginalizing over the key, are exactly the same as the original model distribution, thus introducing no systematic distribution bias. But temperature scaling, top-p, and top-k lower next-token entropy; the statistical power of token-wise schemes is strictly limited by per-step uncertainty (the authors cite Huang et al., 2023; Dathathri et al., 2024; Chen et al., 2026). In short generations, conservative sampling, and local detection, high-entropy tokens are scarce, shrinking the detector's observation pool.
- Core observation: moving the watermark from single tokens to the joint distribution of adjacent tokens expands the effective alphabet from V to V², exploiting both current-token entropy and the successor's conditional entropy; after expectation over the key, the joint distribution still matches the original model, and token marginals are preserved in expectation.
- Proposed method: the authors propose Tandem Token WaterMark (TTMARK), along with branch-isolating concatenated tandem generation, which constructs the joint distribution in one forward pass. On the detection side, they give a direct detector for unedited text and an alignment detector robust to perturbations. Theoretically, the authors claim an aggregate z-score gain of about √2 after pairing tokens in the low-entropy regime, and prove that the expected z-score lower bound of lossless pairwise watermarks is no lower than the single-token baseline.
- Threat model:
- Goal: embed a detectable statistical signal during generation so that a key-holding detector separates watermarked text from human text, while not changing the original decoding distribution after expectation over the key.
- Knowledge and embedder: the watermarking party holds the private key k and reweights the distribution at decoding time; model-agnostic detection does not use the original logits.
- Capabilities and perturbations: detection by default sees the same token-pair boundaries as generation; the authors also consider paraphrasing, insertion, deletion, partial retokenization, and back-translation, which shift boundaries.
- Victim/protected system: the decoding distribution of autoregressive language models. In experiments, generation models are instruction-tuned, and editing attacks are performed by GPT5-Mini.
What related research exists?
Related work falls into two lines: distortion-free/LLM watermarking and multi-token modeling; TTMARK extends the former from single tokens to token pairs.
Language model watermarking
- Aaronson (2023): Gumbel-max-based unbiased watermark that uses prefix n-grams as a key to guide pseudorandom token selection.
- Christ et al. (2024), Kuditipudi et al. (2024): Christ et al. extend inverse-sampling watermarking to binary language models, with a position-dependent key; ITS-edit and EXP-edit introduce a predefined set of watermark keys.
- Hu et al. (2024), DiPmark, MCmark, SynthID, STA-1: Hu et al. give inverse sampling with model-driven LLR detection, as well as a logits-based γ-reweight unbiased watermark. DiPmark (Wu et al., 2024) does model-agnostic detection on γ-reweight; MCmark (Chen et al., 2025) improves the detectability of unbiased watermarks. SynthID (Dathathri et al., 2024) uses tournament sampling to enhance detectability. STA-1 (Mao et al., 2025) uses rejection sampling to improve generation quality in low-entropy regions.
Joint and multi-token modeling
- Stern et al. (2018): Blockwise decoding uses parallel prediction heads to reduce sequential dependence.
- Leviathan et al. (2023), Chen et al. (2023), Miao et al. (2024): Speculative decoding has a small model draft and a large model verify in parallel while preserving the output distribution; later work improves sampling efficiency and uses tree-based verification to evaluate multiple speculative branches at once.
Baseline methods and benchmarks
- Baselines: The experiments use three distortion-free watermarks—ENS-DiPmark (Wu et al., 2024), SynthID-Text (Dathathri et al., 2024), ENS-MCMark (Chen et al., 2026). Each baseline keeps its original watermark parameters and only replaces single-token generation and scoring with TTMARK.
- Datasets: C4 (Raffel et al., 2020), MMW Book Report (Piet et al., 2025), Dolly Creative Writing (Conover et al., 2023), Longform QA (Tu et al., 2024). Local detection follows the datasets and hyperparameters of WaterSeeker (Pan et al., 2025).
The authors position TTMARK as extending distortion-free watermarking from single tokens to adjacent token pairs: using the joint distribution to exploit conditional entropy unused by single-token schemes, and constructing the joint distribution in a single forward pass.
How does the paper address this problem?
Perform lossless reweighting of the joint distribution of two adjacent tokens, and obtain the conditional distribution in a single forward pass using a branch-isolating mask.
TTMARK moves lossless reweighting from the next-step distribution to the joint distribution of two adjacent tokens, and uses branch-isolating concatenated forward passes to avoid a separate forward pass for each candidate first token.
Problem Setup and Formalization
- Single-token lossless: vocabulary V, N=|V|. Given prompt p, the model gives P_M(x_{t+1}|x_{1:t}, p) under prefix x_{1:t}. The watermark reweights it to P_w(·|x_{1:t}, p, k), with k drawn from P_K. Losslessness is defined as, for any token, E_{k∼P_K}[P_w(x_{t+1}|x_{1:t}, p, k)] = P_M(x_{t+1}|x_{1:t}, p).
- Detection statistic: scoring s: V×K→R. In the model-agnostic case, E_k[s(x,k)]=μ, Var_k[s(x,k)]=σ² are independent of the token. A z-test over length T subtracts Tμ from the sum of per-token scores and divides by √T σ; exceeding a predetermined threshold marks the text as watermarked.
- Pairwise losslessness: the joint distribution factorizes autoregressively as P_M(x_{t+1}|x_{1:t},p) P_M(x_{t+2}|x_{1:t},x_{t+1},p). TTMARK reweights it to P_TTMark, requiring that after expectation over the key it equals that joint distribution. Detection instead uses s: V²×K→R, scoring each generated token pair.
Theoretical Upper Bound on Detection Strength
- Low-entropy approximation: following existing work, the authors assume the single-step expected z-score is approximately proportional to entropy, z_t ∝ a h. The aggregate z over T tokens scales roughly as √(T a h). If instead there are T/2 token pairs, each with joint entropy about 2h, the aggregate score scales as √(2 T a h). The authors thus claim a gain of about √2 under this approximation.
- Upper-bound comparison: write the normalized score z(x,k)=(s(x,k)−μ)/σ. Theorem 3.1 states that for any watermark satisfying losslessness and E_k[z]=0, Var_k[z]=1 on each token, the expected score does not exceed Σ_x √(P(x)−P(x)²). Theorem 3.2 states that on the joint distribution P_{12}, this upper bound f(P_{12}) is at least (f(P_1)+E_{x_1∼P_1} f(P_{2|1=x_1}))/√2. The authors state the √2 comes from normalizing when combining two token-level contributions into one statistic. Proofs are in Appendix A.
Branch-Isolating Concatenated Tandem Generation
- Sparse support: temperature and Top-P/Top-K make the filtered first-token distribution P_1 have nonzero support S_1 of size m, typically m≪|V|. For each candidate, one needs the second-token filtered distribution conditioned on that candidate.
- Single forward pass: concatenate the m candidates into one block, with an attention mask that lets branch r see only the cached prefix and its own candidate token, not other branches; all branches use position index L+1 to match independent decoding position encodings. The authors state this single batched forward pass is equivalent to m independent single-token continuations from the same prefix cache.
- Sampling and caching: the pre-watermark quality of a valid pair is P_1(x^{(i)}_{t+1}) P_2^{(i)}(x_{t+2}), then reweight and sample a pair. Only the KV of the selected first-token branch is kept, and the cache is advanced with the sampled second token. For odd lengths, the final step samples a single token from P_1 only. Appendix Algorithm 1 gives the full procedure.
- Overhead: persistent KV is essentially the same as ordinary autoregression; temporary states discard unselected branches at the end of the step. In a serial view, the cost ratio for two tokens is about (m+1)/2; the authors state that on GPU, latency is often memory-bandwidth-bound, and the batched forward amortizes weight and KV reads, so measured overhead can be much smaller, with the watermark algorithm called only once per two tokens.
Detection
- Direct detection: when the sequence has no token-level corruption, score the non-overlapping pairs (y_{2i−1}, y_{2i}) as generated, n=⌊L/2⌋; if L is odd, the final unpaired token is discarded. The statistic z_dir is the sum of n pair scores minus nμ, divided by √(n) σ. For long sequences, compare with a standard normal approximation or empirical null distribution. The key stream is {k_t}, using k_{2i−1} for pair i.
- Empirical alignment detection: paraphrasing, insertion, deletion, or partial retokenization can shift pair boundaries. Dynamic programming D_t = max{D_{t−1}−β, D_{t−2}+z((y_{t−1}, y_t), k_{t−1})}, β≥0 is the skip penalty; z_emp = D_L / √n, n=⌊L/2⌋, normalized by the original full log length to avoid inflating the statistic by selecting only a few high-scoring pairs. Because alignment maximization changes the null distribution, thresholds are calibrated empirically on non-watermarked text under the same protocol. Appendix Algorithm 2 gives this dynamic program. Main experiments set β=5.
What experiments did the paper conduct?
Across three distortion-free watermarks, multiple models, and datasets, TTMARK improves TPR at low FPR while quality metrics remain close.
Experimental Setup
- Baselines and replacement method: ENS-DiPmark, SynthID-Text, ENS-MCMark. Their original watermark parameters are kept, and only single-token generation and scoring are replaced with TTMARK.
- Default decoding: unless stated otherwise, Top-p=0.95, Top-k=50, temperature 1.0, target length 200 tokens; skip penalty β=5.
- Models: Llama3.2-3B-Instruct, Mistral-v0.3-7B-Instruct, Qwen2.5-7B-Instruct. Editing attacks use GPT5-Mini.
- Data: C4, MMW Book Report, Dolly Creative Writing (also referred to as Dolly CW in the text), Longform QA (also referred to as Long-form QA in figure captions). Local detection strictly follows WaterSeeker's datasets and hyperparameters. The paper does not report the number of samples per dataset.
- Metrics: TPR at fixed FPR (TPR@FPR), and the median detection p-value of watermarked samples. Robustness additionally reports AUROC. Local detection reports FPR, FNR, F1, IoU. Quality reports ROUGE-1/2/L, BERTScore, BLEU. Efficiency reports seconds per 1k tokens.
- Evaluation: detection uses the watermark's own z-score or empirical alignment score, with thresholds from a normal approximation or non-watermarked text under the same protocol; the paper does not specify the LLM evaluation model or the number of repetitions.
Main Results
Table 1 shows direct detection on C4, Llama3.2-3B-Instruct. At 200 tokens, TPR@FPR=0.001%: ENS-DiPmark goes from 23.9% to 47.2%, SynthID-Text from 50.3% to 73.2%, ENS-MCMark from 54.0% to 81.8%. At 400 tokens the corresponding TTMARK values are 81.7%, 97.7%, 98.5%.
Swipe horizontally to read the table
Method (C4, Llama3.2-3B) 200 tok, [email protected]% 200 tok median p 400 tok, [email protected]% 400 tok median p ENS-DiPmark 23.9% 1.89e-3 46.8% 1.63e-5 + TTMARK 47.2% 2.01e-5 81.7% 4.03e-10 SynthID-Text 50.3% 9.59e-6 80.1% 1.73e-9 + TTMARK 73.2% 5.79e-10 97.7% 8.25e-18 ENS-MCMark 54.0% 3.86e-6 83.5% 2.00e-10 + TTMARK 81.8% 1.84e-11 98.5% 9.36e-21 According to Table 1. At 200 tokens, FPR=0.1%, the TPRs of the three are: baselines 47.0%, 71.8%, 73.4%, with TTMARK 68.3%, 87.5%, 92.0%.
- Authors' interpretation: detection improves across all three watermarks and both lengths, without changing the underlying watermark algorithm; the improvement is more pronounced at low FPR. Median p-values drop by several orders of magnitude, and the authors state the improvement is not limited to a single operating threshold.
- Cross-dataset: Figure 2 reports TPR@FPR=0.1% on Llama3.2-3B-Instruct. Annotations in the figure: on MMW Book Report, single-token / TTMARK are ENS-DiPmark 0.26/0.58, SynthID-Text 0.61/0.90, ENS-MCMark 0.67/0.94; on Longform QA 0.40/0.89, 0.83/0.99, 0.84/0.99; on Dolly CW 0.23/0.45, 0.52/0.82, 0.63/0.83. The authors state the gains extend beyond C4, especially on the harder MMW Book Report and Dolly Creative Writing. Appendix C states there are additional cross-dataset and model-family results; the main text does not give a numeric table for Mistral.
Low-Entropy Sampling and Runtime
- Top-p: Figure 3 scans Top-p (0.7, 0.8, 0.9, 0.95, 1) on MMW Book Report, Llama3.2-3B-Instruct, Top-k=50, with the y-axis as TPR@FPR=1%, and includes a Default without Top-k truncation. The figure does not give point-by-point values in the main text. The authors state that within the evaluated Top-p range, the tandem variant detects more strongly than the corresponding single-token variant.
- Stricter sampling: Table 2 uses Qwen2.5-7B-Instruct, MMW Book Report, Top-p=0.8, Top-k=20, temperature 0.7. Average token counts are about 1.37–1.39 (single-token) and 1.91–1.93 (TTMARK). TPR@FPR=0.001%: ENS-DiPmark goes from 0% to 2%, SynthID-Text from 8% to 20%, ENS-MCMark from 5% to 28%. Seconds per 1k tokens: single-token 0.79, 0.86, 0.87, TTMARK 0.80, 0.79, 0.80. The authors state runtime differences are negligible, and for SynthID-Text and ENS-MCMark, TPR at 0.001% FPR more than doubles.
- Runtime vs. number of candidates: Figure 4 plots seconds per 1k tokens against Top-k (1, 2, 4, 6, 8) on MMW Book Report, Llama3.2-3B-Instruct, batch size 32. The authors state runtime rises smoothly with support size, close to the single-token baseline over the tested range; for small m, the speedup comes from a 50% reduction in watermark function calls. Exact bar heights in the figure are not given point-by-point in the main text.
Editing Robustness and Local Detection
- Paraphrasing and back-translation: Table 3, generation model Llama3.2-3B-Instruct, data C4, editing model GPT5-Mini, 30% of each segment edited, detection uses the empirical alignment from Sec. 3.4. After paraphrasing, TPR@FPR=0.1%: ENS-DiPmark 34.6%→50.7%, SynthID-Text 59.0%→72.3%, ENS-MCMark 61.9%→80.7%; the authors state improvements of 16.1, 13.3, 18.8 percentage points respectively. After back-translation, the same metric: 38.0%→51.8%, 60.0%→72.3%, 64.9%→81.3%, with gains stated as 13.8, 12.3, 16.4 percentage points. AUROC: under paraphrasing, baselines 0.9320, 0.9529, 0.9587, with TTMARK 0.9449, 0.9570, 0.9759; under back-translation, baselines 0.9486, 0.9646, 0.9687, with TTMARK 0.9532, 0.9726, 0.9795. The authors argue that when some token boundaries are broken, the additional pairwise signal remains useful as long as the detector can search for local alignment.
- Local watermarking: Table 4 follows the WaterSeeker setup, detecting watermarked segments in long documents. On Llama3.2-3B-Instruct, FNR: ENS-DiPmark 0.543→0.277, SynthID-Text 0.230→0.050, ENS-MCMark 0.210→0.070; F1 from 0.627, 0.862, 0.879 to 0.839, 0.969, 0.962; IoU from 0.351, 0.618, 0.618 to 0.590, 0.785, 0.750. On Qwen2.5-7B-Instruct, FNR: 0.567→0.303, 0.213→0.063, 0.153→0.043; F1 to 0.820, 0.961, 0.973; IoU to 0.574, 0.787, 0.791. FPR stays at 0.000–0.037. The authors state the IoU improvement means the pairwise signal also helps finer-grained localization. One FPR increase: SynthID-Text on Qwen from 0.007 to 0.013.
Additional Ablations and Analysis
- Generation quality (Table 6): Summarization ROUGE-1: no watermark 0.3849, no watermark+TTMARK 0.3854; ENS-DiPmark 0.3855 / +TTMARK 0.3846; SynthID 0.3850 / 0.3861; ENS-MCMark 0.3842 / 0.3845. Translation BLEU: no watermark 21.30, +TTMARK 21.69; the three baselines 20.93, 20.95, 21.08, with corresponding TTMARK 21.55, 21.93, 22.00. BERTScore and ROUGE-2/L are similarly close. The authors state the tandem variants largely maintain quality relative to single-token watermarks and the unwatermarked model. The paper does not specify the dataset names used for summarization and translation.
- Three-token blocks (Table 7): C4, Llama3.2-3B-Instruct, 200 tokens, TPR@FPR=0.001%: two-token 47.2%, 73.2%, 81.8%, three-token 63.0%, 82.6%, 87.0% (order: ENS-DiPmark, SynthID-Text, ENS-MCMark). At 400 tokens, same FPR: three-token 93.0%, 98.6%, 99.5%. The authors state longer blocks require more conditional distributions and are more sensitive to boundary breaks from editing, so two tokens are used by default.
- Skip penalty: Appendix C.1 and Figure 5 scan β under paraphrasing and back-translation. The authors state that too small β skips many tokens, weakening separation after zero-distribution calibration; too large β approaches direct detection and struggles to recover from local insertions, deletions, or modifications. Moderate penalties are most robust, hence β=5 in the main experiments. Exact curve values in the figure are not given point-by-point in the main text.
What are some points that can be further explored?
The main text does not list limitations separately; the appendix sets two tokens as the default because longer blocks are more sensitive to editing boundaries.
Limitations and future directions noted by the authors
- Block length and editing: Appendix C.5 states that longer token blocks require more conditional distributions and are more sensitive to boundary corruption under editing attacks. The authors therefore adopt two-token blocks as the default design point, saying it captures a substantial portion of the available gain while preserving efficient generation and simple detection. The paper's Conclusion does not list additional limitations or future work; the main text has no separate Limitations section.
Experimental coverage
- Generation models and baselines: The direct detection main table uses Llama3.2-3B-Instruct; the low-entropy table and local detection also include Qwen2.5-7B-Instruct. The model families listed in the setup also include Mistral-v0.3-7B-Instruct. Baselines are ENS-DiPmark, SynthID-Text, ENS-MCMark, with parameters taken from the original papers, only generation and scoring replaced.
- Data and lengths: Direct detection covers C4 (200 and 400 tokens), MMW Book Report, Longform QA, Dolly CW. Default decoding is Top-p=0.95, Top-k=50, temperature 1.0. There is also a set on Qwen with Top-p=0.8, Top-k=20, temperature 0.7.
- Attacks and local detection: Editing uses GPT5-Mini to paraphrase and back-translate C4-generated text, editing 30% of each passage, with detection using empirical alignment with β=5. Local detection follows WaterSeeker's datasets and hyperparameters, with models Llama3.2-3B-Instruct and Qwen2.5-7B-Instruct.
- Quality, time, and block length: Table 6 reports ROUGE, BERTScore for summaries and BLEU, BERTScore for translations. Figure 4 reports seconds per 1k tokens at batch size 32 for Top-k∈{1,2,4,6,8}. Table 7 compares two-token and three-token direct detection. The paper does not report the number of samples or repetitions for each condition.
- Theoretical coverage: Theorems 3.1–3.2 give the expected score upper-bound relationship for single-token and pairwise settings under any distortion-free watermark; the √2 under low entropy comes from a linear entropy approximation, with the proof in Appendix A.
Summarize the main content of the paper
TTMARK watermarks adjacent token pairs to exploit conditional entropy, improving detection over various distortion-free schemes while maintaining generation quality.
TTMARK is a pairwise, lossless text watermark: it reweights the joint distribution of adjacent tokens rather than reweighting each token independently.
- Problem: the detection power of existing distortion-free watermarks is limited by the entropy of the next-step distribution. After temperature, top-p, and top-k lower entropy, fewer high-entropy tokens are available for short texts and local detection.
- Approach: the effective alphabet expands from V to V², and after expectation over the key, the joint distribution matches the original model. A branch-isolating attention mask concatenates the m truncated first-token candidates into one forward pass, each seeing only the prefix and itself. Unedited text is tested with a z-test over fixed non-overlapping pairs; under editing, a dynamic program with skip penalty β aligns pairs, with β=5 in the main experiments.
- Theory: under the low-entropy approximation, the authors claim an aggregate z-score gain of about √2. Theorem 3.2 gives a pairwise upper bound no lower than the single-token upper bound plus the conditional second-token upper bound, normalized by √2.
- Detection: on C4, Llama3.2-3B-Instruct, 200 tokens, FPR=0.001%, TPR rises from 23.9%, 50.3%, 54.0% to 47.2% (ENS-DiPmark), 73.2% (SynthID-Text), 81.8% (ENS-MCMark) (Table 1). On Qwen2.5-7B with stricter sampling, SynthID-Text goes from 8% to 20%, ENS-MCMark from 5% to 28% (Table 2). After GPT5-Mini paraphrases 30%, TPR at FPR=0.1% improves by 13.3–18.8 percentage points (Table 3). In local detection, SynthID-Text's FNR on Llama drops from 0.230 to 0.050 (Table 4).
- Quality and block length: in Table 6, ROUGE, BLEU, and BERTScore are close to single-token watermarks and the unwatermarked model. Three-token blocks at 200 tokens, FPR=0.001%, further reach 63.0%, 82.6%, 87.0% (Table 7). The authors' conclusion: pairwise watermarking improves detectability, robustness to semantics-preserving edits, and local detection, while maintaining generation quality; because longer blocks are more sensitive to boundary breaks, two tokens are the default.