TL;DR
Diffusion Large Language Models (dLLMs) generate text via non-sequential denoising rather than strictly left-to-right, causing standard autoregressive watermarking algorithms to break down. DMark solves this by introducing predictive and bidirectional watermarking strategies that exploit parallel logit computation and future-token dependencies. The resulting framework achieves 92.0–99.5% detection rates at a 1% false positive rate without degrading generation quality.
What Problem Does This Paper Address?
Watermarking AI-generated text has become essential for provenance tracking, copyright attribution, and synthetic content detection. Established watermarking techniques like KGW rely on a strict causal assumption: each token is biased based on a pseudo-random "green list" determined by its immediately preceding context ($x_{<i}$).
While this works seamlessly for standard autoregressive (AR) LLMs, it fails on diffusion-based LLMs (dLLMs) such as LLaDA and DREAM. Diffusion LLMs decode text through iterative denoising, predicting logits across all positions simultaneously and filling in or remasking tokens in arbitrary order. Because a token’s preceding context often does not yet exist when that token is sampled (occurring in only ~67% of steps in tests), conventional watermarks cannot be reliably embedded, causing detection true-positive rates to plummet.
Methods
DMark introduces an order-agnostic watermarking framework featuring three progressive strategies tailored to diffusion generation:
- Predictive Watermarking: dLLMs compute logits across all sequence positions simultaneously at every denoising step $t$. When the actual preceding token $x_{i-1}$ is masked or unfinalized, DMark takes the argmax prediction of the position’s current logits ($\hat{x}^{(t)}_{i-1}$) to construct the forward green list $G_i$, allowing watermark injection anywhere.
- Bidirectional Watermarking: Rather than solely asking whether token $x_i$ falls within the forward green list determined by $x_{i-1}$, DMark leverages dLLMs' bidirectional nature. It introduces a backward green list ($G'_i$)—the set of candidate tokens at position $i$ that will render the subsequent token $x_{i+1}$ green. It applies forward bias, backward bias, or both depending on neighbor availability.
- Predictive-Bidirectional Watermarking (Full DMark): Combines both paradigms. If either neighbor is missing, it uses parallel model predictions to infer both $x_{i-1}$ and $x_{i+1}$, applying simultaneous forward and backward green-list biases ($z_{i,v} + \delta \cdot (\mathbf{1}[v \in \hat{G}_i] + \mathbf{1}[v \in \hat{G}'_i])$).
- Efficient Implementation: To eliminate vocabulary-wide loops during backward list construction, the authors precompute an $|\mathcal{V}| \times |\mathcal{V}|$ bit matrix $M$. Row lookups yield forward green lists, while column lookups yield backward green lists in $O(1)$ time.
Datasets
The authors evaluate DMark using:
- C4: Used for open-ended text completion conditioned on 30-token prefixes (500 samples filtered for sequence lengths $\ge 200$).
- ELI5: Used for long-form question-answering evaluation (500 samples filtered for sequence lengths $\ge 200$).
Experiments were conducted on three open-weight dLLM architectures: LLaDA-Instruct-8B, LLaDA-1.5-8B, and Dream-v0-Instruct-7B. No new benchmarks were created.
Key Insights and Ideas
- Logits as Free Context: In dLLMs, unfinalized mask tokens are not empty voids; the network already computes rich token probability distributions across every step. Using these uncommitted predictions as pseudo-context bypasses the sequential dependency bottleneck.
- Symmetry of Watermarking Constraints: In causal text generation, watermarking is strictly historical. In diffusion models, watermarking can look forward in time: constraining the current token to make a future token valid is mathematically equivalent in detection power to constraining the current token based on past tokens.
- Synergistic Guarantees: Pure prediction suffers when early-step predictions drift; pure bidirectional watermarking fails when both neighbors are absent. Combining both ensures 100% of generated positions receive watermarking bias throughout the diffusion trajectory.
Key Results
- Detection Performance: At a strict 1% False Positive Rate (FPR):
- Naive KGW adaptation achieves only 49.6% – 71.2% TPR.
- Predictive watermarking reaches 54.2% – 79.3% TPR.
- Bidirectional watermarking reaches 74.2% – 88.0% TPR.
- Predictive-Bidirectional DMark achieves 92.0% – 99.5% TPR.
- Quality Trade-offs: Setting green-list ratio $\gamma = 0.5$ and bias $\delta = 2.0$ provides the ideal sweet spot: perplexity (evaluated via Llama-3-8B-Instruct) remains below 6.5, preserving natural readability while maintaining >92% TPR.
- Robustness Against Attacks: Under 10% token corruption (deletion, insertion, swap, substitution), DMark preserves 95.0% – 97.2% TPR at 1% FPR (compared to ~45–53% for baselines). Under heavy 20% corruption, it maintains 78.8% – 88.4% TPR.
Limitations and Future Work
- Paraphrasing Vulnerability: Like all LLM watermarking schemes, strong semantic paraphrasing degrades detection. Dipper paraphrasing at 20% diversity drops detection to 72.6% TPR, and GPT-5-nano rewrites drop TPR to 51.2%.
- Short-Text Degradation: Text lengths under 50 tokens lack enough accumulated statistical evidence, requiring stronger bias ($\delta \ge 5.0$) which materially degrades text perplexity.
- Memory Footprint: The precomputed bit matrix scales quadratically with vocabulary size ($|\mathcal{V}|^2$), which is feasible for standard vocabularies (~32k–128k tokens in bit-packed formats) but may require optimization for massive multilingual vocabularies.
Summary updated