arXiv:2610.32205cs.AIOct 2026

Manuscript Offprint

arXiv:2610.32205

Watermarking Diffusion Language Models with Learned Foresight and Balanced Bands

Hyojun Kim, Hyeseon An, Yo-Sub Han

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Green-red watermarks favor tokens from a green list that a secret key derives from the preceding tokens. Diffusion language models, however, often choose a token before its preceding tokens, and the token later shapes its neighbors' green lists. Prior work therefore tilts each choice to raise the expected number of green tokens at its own and its neighbors' positions. Building on this objective, we first learn two components that prior work keeps fixed: vocabulary bands that serve as green lists, separate competing candidates and keep the null distribution exact, and a foresight predictor that estimates how each candidate shifts its neighbors' predictions. Second, we count green tokens as the detector does, once per distinct context-token pair, so repetition earns nothing. On WaterBench with LLaDA-8B-Instruct, each learned component raises the z-score at equal distortion, and their gains are nearly additive. With a strong watermark, ours detects at least 96% of responses at a 1% false-positive rate while matching the LLM-judge score of unwatermarked text. Ours also detects more responses on Dream and as many or more on code and question answering without a significant loss in task accuracy. Code: https://github.com/hyojuun/lfbb.

1 Introduction

Watermarks let the provider of a language model recognize its outputs later (Kirchenbauer et al., 2023; Dathathri et al., 2024). In green-red watermarks (Kirchenbauer et al., 2023), a secret key and the preceding tokens select a green list, a subset of the vocabulary, at each position. The generator favors green tokens, and a detector that knows the key tests whether a text contains more green tokens than chance would give. This design relies on two conditions that autoregressive generation guarantees: when a token is sampled, the tokens

(a) Learned bands spread competing candidates

Figure

(b) Placing a candidate changes its neighbors

Figure 1: The two learned components at one masked position (illustrative tokens). (a) Learned bands spread the competing candidates over the bands, which a keyed hash may not. (b) Predicted post-placement beliefs let foresight favor charge, which is red but makes both neighbors green.

that select its green list are already fixed, and the tokens whose green lists it helps select do not exist yet.

Diffusion language models (DLMs) such as LLaDA (Nie et al., 2025) and Dream (Ye et al., 2025), a growing alternative to autoregressive models, break both conditions. They generate a response by iteratively unmasking a canvas of mask tokens (Austin et al., 2021a; Sahoo et al., 2024), and they commit tokens in an order that is not strictly left to right. In the default order of LLaDA-8B-Instruct, 39% of the tokens are committed while part of their context is still masked, and 37% after one of the next two tokens, whose context they are part of (Appendix C.2). A watermark must therefore choose a token before its green list is known, and this choice also shapes the green lists of its neighbors.

Gloaguen et al. (2026) handle both cases with the

† Corresponding author.

model’s predictions for the masked positions, its beliefs. Their watermark, which we call DLM-KGW, maximizes the expected share of green tokens under a KL constraint, so it favors a candidate that is likely to be green and one that makes its neighbors green. We build on this optimization view but maximize the expected evidence of the statistic that the detector actually computes, which counts each distinct (context, token) pair, or unit, once. The optimal sampler then tilts the model’s distribution by a score that credits a candidate for its own greenness and for its foresight, the greenness it induces at the positions that read it as context. Because a unit that already occurs in the text adds no evidence, this unit-aware score gives it no credit, which removes a reward for repetition that the tilt of DLM-KGW contains.

Under this objective, the evidence that a commit can gain at a given distortion depends on two components that existing green-red DLM watermarks keep fixed (Figure 1). The first is the partition of the vocabulary into bands, one of which the key makes green in each context. The tilt gains the most evidence when the likely candidates are spread over the bands (Proposition 3), but a keyed hash puts the two most likely candidates into the same band in a quarter of the commits, and whenever another band is green, the tilt then has little to favor. The second is the beliefs from which foresight is computed. Existing methods use the neighbors' beliefs before placement, which are the same for every candidate, although placing a candidate changes the most likely token of a masked neighbor in about three quarters of uncertain commits, or decision states.

Besides this objective, we learn both components:

• Learned bands ( §3.2§3.2): four vocabulary bands learned from decoding traces so that competing candidates fall into different bands, while a keyed hash of the context still picks the green band, so the null distribution stays exact.

• A foresight predictor ( §3.3§3.3): a network initialized from the generator’s top layers and trained by distillation to predict the neighbors’ beliefs after placing each candidate.

We evaluate both components on the 600 WaterBench prompts (Tu et al., 2024) with LLaDA-8B-Instruct, against the official implementations of prior DLM watermarks ( §5§5). Each component raises the mean z-score, also under four further keys, and their gains add up. At δ=2\delta = 2, where detection is not saturated, learned bands and the predictor raise TPR@1% by 15 and 6 points, and by 21 together. Against DLM-KGW, ours detects up to 13 points more responses at low strengths, averaged over five keys, without a significant change in log-perplexity. At high strengths, where both detect almost every response, it keeps the judge score of unwatermarked text, whereas DLM-KGW is rated 0.5–1.0 points lower, mostly because its tilt rewards repetition loops, which the unit-aware score does not. On a second DLM, Dream, ours also detects more responses.

References (67)