Skip to content

DenMark: Robust Semantic Watermarking for Diffusion Language ModelsDenMark: Robust Semantic Watermarking for Diffusion Language Models

arXiv· arXiv:2609.14257· Tianhao Ma, Weihao Xuan, Dong-Dong Wu, Farshid Nooshi, Takashi Ishida, Gang Niu, Naoto Yokoya, Masashi Sugiyama·Indexed by this site · 2026-10-01· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

DenMark uses rollouts during DLM denoising to estimate local semantic watermark scores and commits high-scoring updates; across 48 backbone–dataset–semantic attack settings, the authors state it outperforms baselines on all four detection metrics.

Threat modelSemantic watermarking for DLMs: during generation, key-dependent signals are injected into local denoising updates; the detector, holding the same key and semantic encoder, determines whether text is watermarked after meaning-preserving edits such as rewriting, compression, expansion, and paraphrasing, as well as token perturbations. The paper does not describe the attacker using white-box/black-box terms.

Questions
Semantic watermarking encodes signals into meaning rather than surface tokens to resist rewriting. Existing methods rely on complete semantic units for scoring and submission, which does not match DLM's arbitrary-order denoising and incomplete intermediate units.
Methods
DenMark divides continuation into fixed token regions. For each local candidate, it performs a temporary rollout to complete unresolved positions, averages key-dependent semantic scores, and commits the highest-scoring update; at detection, it performs a calibrated scan over candidate unit lengths with Bonferroni correction.
Experiments and results
The authors state that across all 48 settings of four DLMs, three datasets, and four semantic attacks, DenMark achieves the best [email protected]%/1%/5% FPR and AUC; the average [email protected]% FPR over the 48 settings is 63.55%, and the average AUC is 0.9693. Scores are lowest under the expansion attack.
Limitations and future work
The authors plan to release code and discuss fixed regions and boundary shifts, generation overhead, and that the false positive control of the scan depends on exchangeability. Experiments cover four DLMs, Finance/Alpaca/LongForm, and attacks use GPT-4o-mini, Parrot, and DIPPER.
Experimental setupLLaDA-8B、LLaDA1.5-8B et al. · Finance、Alpaca et al. · [email protected]% FPR、TPR@1% FPR et al.
Evaluated models
LLaDA-8BLLaDA1.5-8BLLaDA2.0-miniDream-v0-Instruct-7B
Benchmarks
FinanceAlpacaLongFormFinance-QAAlpacaFarmLongFormQA
Metrics
[email protected]% FPRTPR@1% FPRTPR@5% FPRAUCSrobΔ mean(log PPL)generation time per token
AI summaryDenMark is a semantic watermarking framework for diffusion language models (DLMs) that injects key-related signals directly into the denoising process. It divides the output into fixed token regions, uses temporary rollouts as semantic lookahead to estimate the final semantics of incomplete regions, thereby prioritizing local updates with higher semantic watermark scores, and at detection uses calibrated scanning over candidate unit sizes to handle boundary shifts from semantic attacks. Across 4 DLMs, 3 datasets, and 4 semantic attacks totaling 48 combinations, DenMark achieves the best results on all detection metrics.

DenMark is a semantic watermarking framework for diffusion language models (DLMs) that injects key-related signals directly into the denoising process. It divides the output into fixed token regions, uses temporary rollouts as semantic lookahead to estimate the final semantics of incomplete regions, thereby prioritizing local updates with higher semantic watermark scores, and at detection uses calibrated scanning over candidate unit sizes to handle boundary shifts from semantic attacks. Across 4 DLMs, 3 datasets, and 4 semantic attacks totaling 48 combinations, DenMark achieves the best results on all detection metrics.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing sentence-level semantic watermarks rely on complete candidates and cannot be directly applied to DLM's arbitrary-order denoising.

    How to inject semantic watermarks resistant to meaning-preserving edits during the denoising process of diffusion language models (DLMs).

    • Scenario: The authors argue that deployment of LLM-generated text raises concerns such as misinformation, malicious use, bias, and failures in high-risk domains, requiring mechanisms to identify model-generated content. Text watermarking embeds hidden statistical signals while preserving visible content.
    • Existing limitations: Token-level watermarks (e.g., key-dependent green-red vocabulary splits) rely on token identity, and rewriting can weaken the signal while preserving meaning. Sentence-level semantic watermarks first generate complete candidates, score, reject, and then submit, compatible with the fixed prefix of autoregressive models, but DLM updates multiple positions before sentences are fully parsed, and the authors consider it impractical to repeatedly construct and reject complete semantic units during normal decoding.
    • Core observation: Watermarking for DLM needs to inject semantic signals directly through local updates while surrounding semantic units are still incomplete. Figure 1 compares autoregressive "generate–score–reject–submit" with DenMark's rollout guidance.
    • Proposed method: DenMark divides the output into fixed token regions, uses temporary rollouts to estimate the final semantics of incomplete regions, selects local updates with higher estimated semantic watermark scores, and accumulates evidence across denoising steps; at detection, it performs calibrated scanning over candidate unit sizes to handle boundary shifts from semantic attacks.
    • Authors' positioning: The authors state that, to their knowledge, this is the first semantic watermarking framework specifically designed for DLMs.
  2. What related research exists?

    Related work is divided into DLM, token-level watermarks, and sentence-level semantic watermarks; DenMark addresses the gap of incomplete units during denoising.
    • Diffusion language models: Lou et al. (2024), Sahoo et al. (2024), Nie et al. (2025), Ye et al. (2025), and Gong et al. (2025) study iterative denoising of masked sequences, bidirectional context, and arbitrary-order updates, supporting infilling, parallel refinement, and quality–speed trade-offs. DenMark's generation process builds on such masked DLMs.
    • Token-level watermarking: Kirchenbauer et al. (2023)'s green-red vocabulary split, and Kuditipudi et al. (2024), Hu et al. (2024), and Dathathri et al. (2024), encode signals through sampling bias. The authors note that these signals depend on token identity, and rewriting can weaken them while preserving meaning. Baselines for DLMs include DLM-KGW (Gloaguen et al., 2026a), DGMark (Hong & No, 2026), PatternMark (Chen et al., 2025), and UMR (Yang et al., 2026).
    • Semantic watermarking: Hou et al. (2024a)'s SemStamp, Hou et al. (2024b)'s k-SemStamp, Ren et al. (2024), Dabiriaghdam & Wang (2025)'s SimMark, and Huo et al. (2026)'s PMark encode signals into sentence or segment representations. The authors note that one main line relies on generating and selecting complete sentence candidates, which is compatible with autoregressive prefixes but cannot be directly applied to DLM's arbitrary-order denoising.
    • Baselines and data: Experimental baselines are DLM-KGW, DGMark, PatternMark, and UMR. Data follows WaterBench (Tu et al., 2024) using Finance (Maia et al., 2018), Alpaca (Dubois et al., 2023), and LongForm (Fan et al., 2019). Open paraphrasers are Parrot (Damodaran, 2021) and DIPPER (Krishna et al., 2023).

    The authors position the paper as: pointing out the mismatch between sentence-level semantic watermarking and DLM iterative denoising, using rollout-guided local selection to inject key-dependent evidence into denoising, and using unit-size scanning to address boundary shifts.

  3. How does the paper address this problem?

    Fixed token regions plus rollout scoring to select local updates, with Bonferroni-calibrated scanning over unit sizes at detection.

    DenMark divides the continuation into fixed-length token regions during DLM denoising, performs temporary completions for each local candidate, and selects updates based on key-related semantic scores; the detector scans multiple unit sizes and applies multiple testing correction.

    Problem Setting and Semantic Score

    • Generation process: Masked DLM starts from prompt xp and a fully masked continuation of length N. The set of masked positions at step t is Mt; for i∈Mt, model pϕ gives a distribution over the vocabulary. Decoding ends when MT is empty, yielding continuation ẑ and text ŷ.
    • Semantic score: For a completed unit u, key κ specifies C channel pairs (θb,j, sb,j) for each unit index b, where θ is a key-generated pseudo-random Gaussian vector normalized to a direction, and sb,j∈{−1,+1}. The score is gb(u)=1/C∑j=1C sb,j⟨ Eη(u),θb,j⟩. Larger gb(u) indicates more alignment with the key-specified direction. The detector can regenerate these directions and signs using the same key.

    Local Candidates and Rollout Selection

    • Region division: Unit size m≥1, number of units B=⌈N/m⌉. Unit Ub is a contiguous set of token indices in the continuation. At step t, the decoding schedule can select one or more incomplete units; for unit b, the remaining mask is Mb,t.
    • Candidates: For each unit, sample Kt,b local candidates, each updating rt positions. Position policy πpos can be random or confidence-based; token policy πtok can use categorical, Gumbel-max, or top-p. Only selected positions are changed; others remain x(t).
    • Rollout: For each candidate, sample Rt one-step completions, filling only masks in that unit not yet filled by that candidate, with temperature possibly different from candidate temperature. Completion tokens are used only for scoring, not committed. Estimate Wt,b,k as the average of Rt gb values. Submit the local update corresponding to arg max; submit simultaneously when multiple units have non-overlapping positions.

    Detection

    • Fixed size: Split text into units of candidate size m′, compute average alignment score Sm′(y) using the same encoder and key channels. Detection at generation size compares Sm(y) to a threshold calibrated on watermark-free text at target false positive rate.
    • Scanning: Paraphrasing, insertion, deletion, and re-tokenization change length and boundaries. For each m′ in a finite set G, compute empirical p-value using a watermark-free calibration set D0 (n0=|D0|) disjoint from evaluation text, following Phipson & Smyth (2010), then apply Bonferroni correction to get pscan; detection statistic is Srob(y)=−log pscan(y). pscan≤α indicates watermark. Proposition 4.1: Under the watermark-free null hypothesis, if test text and calibration samples are exchangeable, then Pr(pscan≤α)≤α, without requiring independence of scores across sizes. Proof in Appendix G.1. Unless otherwise stated, detection results are ranked by Srob.

    Decomposition of Score Gain

    • Reference decoder: π0 uses the same candidate sampling but draws only one local candidate per selected unit and submits it directly. DenMark is denoted π.
    • Decomposition: Proposition 5.1 writes the expected improvement in final watermark score of π relative to π0 as a sum of per-step expected advantages Δπt. Proof in Appendix G.2. The authors use rollout scores for selection and estimate stepwise advantages on 30 prompts.
  4. What experiments did the paper conduct?

    Across four models, three datasets, and four GPT semantic attacks, DenMark achieves the highest values on all four metrics in all 48 settings.

    Experimental Setup

    • Models: LLaDA-8B, LLaDA1.5-8B, LLaDA2.0-mini, Dream-v0-Instruct-7B. Semantic attacks use GPT-4o-mini; open paraphrasers use Parrot and DIPPER; context-aware replacement uses BERT-base.
    • Data: Following WaterBench, use Finance, Alpaca, LongForm. Open-model attacks report Finance-QA and AlpacaFarm. Efficiency table writes AlpacaFarm/LongFormQA. The paper does not give per-episode sample sizes in the main text.
    • Baselines: DLM-KGW, DGMark, PatternMark, UMR. The authors call them recent SOTA watermark baselines. Generation hyperparameters of each method are tuned to make output quality comparable; Table 10 reports quality, Appendix B gives baseline descriptions and configurations.
    • Metrics: AUC, and TPR at FPR of 0.5%, 1%, 5%. Each operating point uses an empirical score threshold, taking the highest TPR subject to measured FPR on held-out negatives not exceeding the target.
    • Semantic attacks: Sentence-level rewriting, compression, expansion, and full-text paraphrasing; the authors state these transformations preserve meaning and alter wording, syntax, and sentence structure, with compression and expansion also changing length. Appendix B gives filtering criteria and prompts.
    • Token attacks: Random word deletion, context-aware replacement, adjacent word swap, with modification ratios {0.1, 0.2, 0.3, 0.4, 0.5}, results averaged over five intensities.

    Main Results

    The authors state that DenMark has the highest detection scores on every model×dataset×attacked condition. Averaged over 48 attacked combinations: DenMark's TPR at 0.5%, 1%, 5% FPR is 63.55%, 71.89%, 87.45%, and AUC is 0.9693; the strongest baseline is 35.16%, 41.90%, 61.80% and AUC 0.8915. DenMark is highest on all four metrics across all 48 groups. Detection remains high after compression and rewriting; among the four semantic transformations, expansion gives the lowest DenMark scores; full-text paraphrase still shows a gap relative to token watermark baselines. The table below lists only TPR@1% FPR for LLaDA-8B (Table 1; entry order is [email protected]% / @1% / @5% / AUC).

    Swipe horizontally to read the table

    ConditionFinanceAlpacaLongForm
    Clean DenMark99.6797.07100.00
    Rewrite DenMark74.9274.7381.00
    Compression DenMark85.2884.9893.33
    Expansion DenMark44.8254.5861.00
    Doc. paraphrase DenMark67.5664.8473.00
    Rewrite strongest baseline in column42.67 PatternMark56.33 UMR47.33 DGMark
    • Authors' interpretation: Under Clean conditions, several methods are near saturation; for example, on LLaDA-8B Finance, DGMark, PatternMark, and UMR all have 100 / 100 / 100 / 1.0000 on the four metrics, DenMark has 99.00 / 99.67 / 100.00 / 0.9996, and DLM-KGW has AUC 0.9998. After attacks, the gap widens.
    • Other backbones: Table 1 lower half and Table 2 report LLaDA1.5-8B, LLaDA2.0-mini, Dream-v0-Instruct-7B. Expansion remains the semantic attack with lowest DenMark scores; for example, Dream on Finance expansion is 36.33 / 49.00 / 77.67 / 0.9333, while DLM-KGW in the same cell is 2.43 / 4.17 / 12.85 / 0.6302.
    • Counterexample limitation: The authors' "best in all 48 groups" refers to attacked combinations. In Clean rows, baselines have cells higher than DenMark; for example, on LLaDA-8B Alpaca Clean, PatternMark's [email protected]% is 98.56, DenMark is 95.24.

    Open-Model Paraphrasing and Token Attacks

    • Parrot / DIPPER: Figure 3 averages over LLaDA-8B and Dream-v0-Instruct-7B on Finance-QA and AlpacaFarm, reporting [email protected]% and 1% FPR. Parrot's candidate prefix sizes are {1, 4, 7, 10}; DIPPER's lexical diversity is {20, 40, 60, 80}, with other decoding settings fixed. The authors state DenMark remains robust under Parrot, and as DIPPER lexical diversity increases, detection declines more slowly than baselines. The y-axis in the figure is the two TPRs; specific bar heights are not given numerically in the text.
    • Token attacks: Figure 4 averages over five modification ratios, Finance and LongForm, Dream and LLaDA-8B. The authors state DenMark detection remains high under the three attacks; random deletion and context-aware replacement show the largest gaps at low FPR; after adjacent swap, detection is near saturation, leading the authors to claim limited sensitivity to surface-level local changes. Specific bar values in the figure are not listed in the text.

    Stepwise Advantage

    • What was measured: Section 5 estimates stepwise advantages for LLaDA-8B and Dream-v0-Instruct-7B on 30 prompts. In Figure 2, thin lines are individual unit trajectories, thick lines are average cumulative advantage, shading is 95% bootstrap confidence interval over 30 prompts.
    • Results: Average cumulative advantage at trajectory end: LLaDA-8B is 0.0387, interval [0.0251, 0.0527]; Dream-v0-Instruct-7B is 0.0385, interval [0.0260, 0.0517].
    • Authors' interpretation: Some single steps are neutral or negative, but both average cumulative curves rise along the trajectory and are positive at the end; the authors state rollout candidate selection adds watermark signal along the decoding trajectory.

    Other Ablations and Analyses

    • Figure 5 (LLaDA-8B): candidate temperature, Kt,b, Rt, unit size m; metrics are TPR@1% FPR, AUC, and Δ mean(log PPL). Temperature axis is 0.30, 0.50, 0.60, 0.75, 0.90; Kt,b is 8, 16, 24, 32; Rt is 1, 2, 3, 5, 8; m is 15, 25, 40, 50, 100. Curves are for Finance-QA and AlpacaFarm. The text does not give exact readings at each point.
    • Temperature: The authors state higher candidate temperature improves detection and increases generation quality cost.
    • Candidate count: Increasing Kt,b from 8 to 16 yields most of the detection gain; additional gains from larger candidate sets are smaller.
    • Rollout: Relative to a single rollout, multiple rollouts improve robustness, with most gain achieved at Rt=2–3.
    • Unit size: The authors state medium sizes are best in the evaluated settings; larger units reduce detection on AlpacaFarm.
    • Efficiency (Table 3): Seconds per visible output token, averaged over Dream/LLaDA-8B and AlpacaFarm/LongFormQA, excluding model loading. Clean 0.054, DenMark 0.654, DLM-KGW 0.118, DGMark 0.236, PatternMark 0.089, UMR 0.070. The authors state DenMark is slower due to multiple candidates and rollout scoring, and cite SemStamp's 20.9× slowdown, k-SemStamp's 13.3 candidates per accepted sentence, and PMark's online/offline consumption of 16.0 and 12.1 sampling tokens per output token, calling this a speed–robustness trade-off and stating DenMark's overhead is acceptable for robustness-oriented generation.
  5. What are some points that can be further explored?

    The main text conclusion emphasizes the effectiveness of denoising injection and scanning detection; false positive control depends on exchangeability of calibration samples.

    Limitations and future directions noted by the authors

    • False positive assumption (Section 4.2, Proposition 4.1): The false positive rate control of the scan requires that the test text and calibration set are exchangeable under the watermark-free distribution, and that G is a fixed finite set. The authors do not state that this assumption has been verified across all attack distributions.
    • Single-step advantage can be negative (Section 5, Figure 2): The authors state that some single-step advantages are neutral or negative, and the final improvement comes from accumulation over the trajectory.
    • Speed–robustness (Section 6.6): The authors state that DenMark is slower due to candidate and rollout scoring (0.654 seconds/token in Table 3), and describe this as a practical speed–robustness trade-off.
    • Expansion attack is harder (Section 6.2): The authors state that among the evaluated semantic transformations, expansion gives the lowest DenMark scores. This is a statement of results; the authors do not list it as an open problem in the conclusion.
    • Code: The main text does not state that an implementation has been released. If the appendix contains a sentence about open-sourcing plans, the appendix original text prevails; the currently visible main text only reports experiments and does not present release as completed.

    The paper's conclusion (Section 7) restates the method and "detection robustness above the evaluated baselines," without listing an open problem list in a separate Limitations subsection.

    Experimental coverage

    • Backbones: The main detection tables cover four DLMs: LLaDA-8B, LLaDA1.5-8B, LLaDA2.0-mini, and Dream-v0-Instruct-7B (Table 1, Table 2).
    • Semantic attacks: GPT-4o-mini sentence-level rewriting, compression, expansion, and full paraphrase, totaling 4 models × 3 datasets × 4 attacks = 48 settings (§6.2); additionally Parrot (prefix sizes {1,4,7,10}) and DIPPER (lexical diversity {20,40,60,80}), with Figure 3 averaging over LLaDA-8B and Dream-v0-Instruct-7B.
    • Token attacks: Random deletion, BERT-base contextual replacement, adjacent swap, with proportions {0.1,…,0.5}, Figure 4 averages over Finance and LongForm, and Dream and LLaDA-8B.
    • Sensitivity and advantage: Figure 5 varies temperature, Kt,b, Rt, and m only on LLaDA-8B; stepwise advantage is estimated over 30 prompts and two models (Figure 2).
    • Not reported in the paper: The visible main text does not give the number of samples per dataset, the number of detection repetitions, or the specific model name of the semantic encoder Eη; hyperparameter and quality numbers point to Appendix B and Table 10.
  6. Summarize the main content of the paper

    DenMark uses rollout to accumulate semantic watermark during DLM denoising, with scanning detection to resist meaning-preserving edits.

    DenMark is a semantic watermark for diffusion language models: it injects key-related semantic signals into local denoising updates and still detects after edits change token boundaries.

    Existing sentence-level semantic watermarks require completing an entire semantic unit before scoring and accepting or rejecting, whereas DLM updates masked positions in arbitrary order, leaving intermediate units incomplete. DenMark divides the continuation into fixed token regions, performs non-committal rollout completions for each local candidate, and selects updates based on the average of semantic scores gb, thereby accumulating evidence along the trajectory. Proposition 5.1 writes the expected score improvement relative to a reference decoder that submits only a single candidate as a sum of per-step advantages. At detection, empirical p-values are computed over a set of unit sizes, Bonferroni-corrected to obtain pscan, and ranked by Srob=−log pscan; Proposition 4.1 gives a false positive rate bound under exchangeable watermark-free samples.

    Experiments use LLaDA-8B, LLaDA1.5-8B, LLaDA2.0-mini, and Dream-v0-Instruct-7B, data from Finance, Alpaca, LongForm, baselines DLM-KGW, DGMark, PatternMark, UMR. The authors state that on 48 attacked combinations, DenMark is highest on all four metrics: average [email protected]%/1%/5% FPR is 63.55%, 71.89%, 87.45%, and AUC is 0.9693; the strongest baseline is 35.16%, 41.90%, 61.80% and 0.8915. Expansion is the category with lowest DenMark scores among the four GPT-4o-mini semantic attacks. On 30 prompts, average cumulative advantage at trajectory end is 0.0387 (LLaDA-8B) and 0.0385 (Dream-v0-Instruct-7B). In Table 3, DenMark takes 0.654 seconds per visible token, watermark-free is 0.054 seconds.

    The authors conclude that fixed regions, rollout selection, and calibrated scanning provide a direct mechanism for embedding semantic watermarks in DLM decoding and detecting after meaning-preserving edits, with more robust detection than the evaluated baselines.

Related papers

Read originalarxiv.org