TIDEmark: Joint Token Watermarking for Diffusion Language Models via Multi-Marginal Optimal Transport

Omer Luxembourg, Dor Tsur, Haim H. PermuterarXiv 2026

TL;DR

Unlike traditional language models that spit out text one word at a time, Diffusion Language Models (DLMs) generate entire blocks of tokens in parallel. TIDEmark exploits this parallelism by watermarking whole groups of tokens jointly rather than individually, using a mathematical framework called Multi-Marginal Optimal Transport. The result is a "distortion-free" watermark that makes AI-generated text—even rigid, low-entropy formats like computer code—much easier to detect without ruining its quality.

What Problem Does This Paper Address?

Watermarking AI text is a delicate balancing act. You use a secret key to subtly nudge the model's word choices so a detector with the same key can spot the statistical signature later. Nudge too hard, and your eloquent essay turns into gibberish—or worse, your syntactically valid Python script suddenly has a silent bug.

For standard autoregressive models (like GPT), watermarks are applied sequentially, one token at a time. Recently, Diffusion Language Models (DLMs) have emerged as an alternative that generates and refines blocks of tokens simultaneously. Yet, existing DLM watermarks still treat token positions independently, essentially retrofitting one-by-one watermarking onto a parallel process.

Why is that a missed opportunity? Within any block of text, some positions are tightly constrained (low entropy—think of the : at the end of a Python if statement), while others have plenty of wiggle room (high entropy—choosing a variable name or an adjective). Watermarking each token in isolation wastes this structural context. Furthermore, DLMs iteratively revise tokens during generation, meaning early watermark signals can get overwritten, and a detector looking only at the final text has no idea how the model arrived there.

Methods

To watermark a block of $b$ tokens all at once, the authors introduce TIDEmark (Transport-based Interaction for Distortion-free Embedding of watermarks).

Figure 1: TIDEmark: joint watermarking and detection. The dLLM supplies recorded token distributions p1, . . . , p7. TIDEmark uses Sinkhorn with BP to compute a joint coupling across all watermark states, favoring high watermark scores. A key-derived state s selects the conditional dis- tribution used for joint tree sampling. The detector reuses the key and the block’s graph structure. The blue and gold curves illustrate unwatermarked and watermarked score distributions, respec- tively.

Here is how the machinery works under the hood:

  • Multi-Marginal Optimal Transport (MOT): Standard distortion-free watermarks use Optimal Transport (OT) to couple a single token's probability distribution with secret side-information, ensuring that—on average across keys—the model's original probabilities remain unchanged ("distortion-free"). TIDEmark scales this up to Multi-Marginal OT, coupling $b$ token distributions and the secret key state simultaneously to maximize a joint block score.
  • Beating the Curse of Dimensionality: Naively solving MOT over a block of $b$ tokens requires building a $(b+1)$-dimensional tensor, whose computational cost explodes exponentially with block length. To make this tractable, TIDEmark decomposes the watermark score into pairwise token interactions arranged in sparse tree graphs (chain, middle-star, or balanced tree). By combining Sinkhorn iterations with Belief Propagation (BP) over these trees, complexity drops from exponential to linear in block length.
  • Timing Strategies & Tilting: Instead of only watermarking step-by-step as tokens are committed (token-commit), the authors introduce block-ready watermarking: saving the final token distributions and resampling the whole block once upon completion, avoiding repeated overhead and signal erasure. They also introduce an optional post-MOT tilting knob ($\delta$), which intentionally trades away the strict distortion-free guarantee after solving MOT to aggressively boost detectability when needed.
  • Lightweight Detection: The detector doesn't have to re-solve the transport problem. It simply reconstructs the tree edges, looks up the pairwise token scores using the shared secret key, and checks if the sum clears a statistical threshold.
Tree-structured token interaction graphs: (a) chain, (b) middle-star, and (c) balanced tree

Datasets

The authors evaluate TIDEmark across two diffusion language models (LLaDA 1.0-Instruct and LLaDA 2.1-mini) on four established benchmarks (no new datasets are introduced):

  • Code Generation: LCC (LongCoder code completion) and HumanEval.
  • Question Answering: Finance QA (sourced from WaterBench).
  • Summarization: Multi-News (multi-document summarization, also from WaterBench).

Key Insights and Ideas

  • Joint beats separate at the same "cost": Scoring token pairs jointly across a block extracts a much stronger watermark signal than scoring tokens separately at the exact same KL-divergence (distributional shift) from the original model. It naturally pools flexibility across the block's joint distribution.
  • Insertion timing is a critical design axis for DLMs: Waiting until a block is finished (block-ready) avoids running the watermarker at every denoising step and prevents iterative token revisions from erasing the watermark. Conversely, token-commit lets subsequent denoising steps adapt to watermarked tokens to maintain local coherence.
  • Graph topology matters for coherence: Connecting non-adjacent tokens (like in a middle-star or balanced tree rather than a sequential chain) places watermark constraints on token pairs that naturally have lower mutual information, helping preserve text naturalness.

Key Results

Across tasks, TIDEmark consistently pushes the Pareto frontier of detectability (True Positive Rate at a 5% False Positive Rate, or TPR@5%) versus generation quality:

Detection vs. code quality loss tradeoff on LCC, showing TIDEmark pushing the upper-left Pareto frontier
  • Code Generation (LCC): Code is notoriously hard to watermark due to low entropy. On LLaDA-Instruct, distortion-free TIDEmark (chain) hits 52.1% TPR@5% while keeping code similarity at 55.3 (clean baseline: 58.0), outperforming block-ready KGW on both detection (41.0%) and quality (53.4). Adding post-MOT tilting boosts detection to 82.4% TPR@5% on LLaDA-Instruct and 92.6% on LLaDA 2.1 while maintaining higher code similarity than competing high-detection baselines.
  • Summarization (Multi-News): With tilting, TIDEmark (chain) reaches 89.0% TPR@5% on LLaDA-Instruct and 99.0% on LLaDA 2.1, while keeping ROUGE-L within 0.6 points of unwatermarked text (26.3 vs. 26.9, and 24.4 vs. 24.7, respectively).
  • Robustness to Edits: Under 20% random word substitution and BERT-based synonym substitution attacks, block-ready TIDEmark retains 94.0%–98.0% TPR across Finance QA and Multi-News, beating all tested baselines on substitutions (though baseline DMark holds up better against word insertions and deletions).

Limitations and Future Work

  • Coherence vs. Guarantees: TIDEmark's mathematical "distortion-free" guarantee holds strictly for block-ready watermarking on fixed distributions. However, resampling an entire completed block at once leaves no further denoising steps to smooth out temporal dependencies between tokens. Using token-commit allows the model to adapt, and post-MOT tilting dramatically boosts detection, but the strict distortion-free guarantee does not extend to either of those settings.
  • Vulnerability to Full Rewrites: Like other watermarking baselines tested in the paper, TIDEmark struggles against aggressive LLM paraphrasing—having Qwen2.5-1.5B-Instruct rewrite the output drops detection down to 18.0%–20.5% TPR.
  • Future Directions: Not explicitly discussed in the main text beyond highlighting joint token watermarking and insertion timing as foundational design dimensions for future DLM watermarking schemes.

Summary updated

BibTeX
@misc{luxembourg2026tidemark,
  author = {Omer Luxembourg and Dor Tsur and Haim H. Permuter},
  title = {{TIDEmark: Joint Token Watermarking for Diffusion Language Models via Multi-Marginal Optimal Transport}},
  year = {2026},
  eprint = {2611.39168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39168},
}
Figure