DenMark: Robust Semantic Watermarking for Diffusion Language Models

Tianhao Ma, Weihao Xuan, Dong-Dong Wu, Farshid Nooshi, Takashi Ishida, Gang Niu, Naoto Yokoya, Masashi SugiyamaarXiv 2026

TL;DR

DenMark introduces the first semantic watermarking framework designed specifically for Diffusion Language Models (DLMs). By using temporary rollouts as a "semantic lookahead" during the iterative denoising process, it embeds hidden statistical signals that are exceptionally robust to paraphrasing and rewriting attacks without sacrificing text quality.

What Problem Does This Paper Address?

Text watermarking injects hidden statistical signals into AI-generated text to verify its origin and combat misinformation. While early watermarks relied on token-level sampling biases (like green/red vocabulary splits), these are easily broken when a user paraphrases or rewrites the text. To counter this, researchers developed semantic watermarking, which embeds signals into the underlying meaning (embeddings) of the text rather than specific word choices.

However, existing semantic watermarking methods are strictly designed for Autoregressive Language Models (ARLMs), which generate text sequentially from left to right. ARLMs allow full sentence candidates to be generated, scored, and selected before moving forward. Diffusion Language Models (DLMs) break this paradigm: they denoise text non-sequentially and globally, meaning semantic units remain incomplete during intermediate steps. Trying to apply sentence-level ARLM watermarking to DLMs is computationally impractical and fundamentally mismatched with their generation process.

Mismatches between ARLM and DLM watermarking paradigms, and how DenMark resolves it

Methods

DenMark bridges this gap by injecting key-dependent semantic signals directly into the DLM denoising process using two core innovations:

  1. Rollout-Guided Watermarking: DenMark partitions the output into fixed token regions. At each denoising step, it generates multiple local token candidates. To evaluate their semantic impact before committing to them, DenMark performs fast, temporary "one-step rollout completions" to fill in the remaining masks in that region. A contrastively fine-tuned semantic encoder scores these completed rollouts, and DenMark commits the local update that yields the highest estimated semantic score.
  2. Calibrated Scanning Detector: Because paraphrasing or editing can shift token boundaries, a fixed-size detector would fail. DenMark’s detector scans across a range of candidate unit sizes and applies a Bonferroni correction to maintain strict false positive control while recovering shifted signals.

Datasets

The authors evaluated DenMark using three standard benchmarks from WaterBench:

  • Finance (FiQA): Questions requiring domain-specific financial knowledge.
  • Alpaca (AlpacaFarm): Diverse instruction prompts spanning everyday tasks.
  • LongForm (ELI5): Open-ended questions requiring long explanatory responses.

Key Insights and Ideas

  • Semantic Lookahead via Rollouts: You don't need a fully finished sentence to guide its semantic direction. Fast, approximate rollouts provide a reliable proxy for the final meaning of an incomplete text region.
  • Progressive Evidence Accumulation: Instead of making a single discrete choice at the sentence level, watermark evidence accumulates incrementally across multiple denoising steps as local updates are selected.
  • Boundary-Agnostic Detection: Scanning multiple candidate window sizes allows the detector to recover the watermark signal even if an attacker heavily compresses, expands, or rewrites the text.
Figure 2: Accumulation of empirical step advantages during decoding. Thin curves show indi- vidual unit trajectories. The thick blue curve shows the mean cumulative advantage, and the shaded region gives the 95% bootstrap confidence interval over 30 prompts. The mean cumulative advan- tage increases over the trajectory and remains positive near the end of decoding for both LLaDA-8B and Dream-v0-Instruct-7B.

Key Results

DenMark was evaluated across four DLM backbones (including LLaDA-8B and Dream-v0-Instruct-7B) against four state-of-the-art baselines (DLM-KGW, DGMark, PatternMark, and UMR) under various semantic attacks (rewriting, compression, expansion, and document paraphrasing).

  • Unmatched Robustness: DenMark achieved the best results across all reported detection metrics in all 48 backbone-dataset-attack combinations.
  • High True Positive Rates: Under a GPT-4o-mini rewrite attack on the LLaDA-8B Finance dataset, DenMark achieved a True Positive Rate (TPR) of 63.55% at a 0.5% False Positive Rate (FPR), vastly outperforming baselines which struggled to cross 35%.
  • Preserved Text Quality: Perplexity and LLM judge evaluations confirmed that DenMark maintains generation quality on par with unwatermarked models.
Table 1: Detection robustness on LLaDA-8B and LLaDA1.5-8B. Each entry reports ([email protected]% / TPR@1% / TPR@5% FPR / AUC).

Limitations and Future Work

The primary trade-off for DenMark's robust security is computational overhead. DenMark takes approximately 0.654 seconds per token because it must score multiple candidates and rollouts at each step. This represents a practical speed-robustness trade-off common to rewrite-robust semantic watermarks.

Additionally, while DenMark is highly robust to uniform length changes, it does not establish complete invariance to highly chaotic, arbitrary local distortions. Future work could focus on optimizing the rollout mechanism to reduce generation latency.

Summary updated

BibTeX
@misc{ma2026denmark,
  author = {Tianhao Ma and Weihao Xuan and Dong-Dong Wu and Farshid Nooshi and Takashi Ishida and Gang Niu and Naoto Yokoya and Masashi Sugiyama},
  title = {{DenMark: Robust Semantic Watermarking for Diffusion Language Models}},
  year = {2026},
  eprint = {2609.14257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.14257},
}
Figure