# 02 · From Gaussian noise to discrete text

The key question: **what does the generating model commit to its output?** Diffusion text models can read the partially filled canvas bidirectionally and refine it. A separate speculative drafter can also show masks or blocks; whether it owns the output law is a separate question.

## Continuous versus discrete

- [Diffusion-LM](https://arxiv.org/abs/2205.14217) learns a continuous trajectory over token embeddings. Rounding/decoding yields tokens at the end; guidance can steer continuous embeddings. A real number representing an embedding coordinate is not an interpolation between token IDs.
- [D3PM](https://arxiv.org/abs/2107.03006v3) keeps the process categorical: with a row-vector one-hot, \(q(x_t\mid x_{t-1})=\mathrm{Cat}(x_{t-1}Q_t)\). The product \(Q_1\cdots Q_t\) jumps directly from clean to time \(t\); the exact forward posterior for training follows Bayes. Uniform, absorbing and structured kernels yield different corruption processes. With an absorbing mask, a visible token stays the same or becomes `[MASK]`, and a mask cannot become visible in forward time.
- [SEDD](https://arxiv.org/abs/2310.16834v3) estimates probability ratios needed for discrete reverse rates with score entropy. On an allowed edge \(x\to y\), the reverse transition rate uses the opposite forward rate multiplied by a state-density ratio \(p_t(y)/p_t(x)\). It is not computing a spatial derivative on token IDs and not identical to MDLM's clean-token parameterization.

## A small masked-noise derivation

Let \(m_t\) be the probability a position has been masked at (data-to-noise) time \(t\), and \(s<t\), so \(m_s\le m_t\). A position with an absorbing mask at \(t\) was still visible at \(s\) with probability
\[
P(\text{visible at }s\mid \text{masked at }t)=\frac{m_t-m_s}{m_t}=1-\frac{m_s}{m_t}.
\]
The reverse transition at such a position puts \(m_s/m_t\) on keeping the mask and the remaining probability on a token drawn from the denoiser. Monotone absorbing sampling copies already revealed tokens. For `m_t=.75, m_s=.50`, reveal probability is \(1/3\). Many efficient inference variants intentionally change the transition (confidence scores, low-entropy selection, block-wise transfer, or remasking). Do not call every one the exact learned reverse kernel.

With the absorbing SUBS parameterization, the network does not predict the mask as a clean token and copies visible tokens. The continuous-time loss reduces to masked-token NLL weighted by \(m'_t/m_t\) before how time is sampled; \(1/t\) is the case \(m_t=t\). Time reparameterization, sampling weights and endpoint treatment matter. It is not just arbitrary fixed-rate BERT masking: a schedule plus a defined reverse process generates a completion. [MDLM, §§2–3](https://arxiv.org/abs/2406.07524v2) · [MD4](https://arxiv.org/abs/2406.04329).

**Tensor contract** for a tiny prompt with four context tokens and four canvas positions: token IDs `[B,8]`, logits `[B,8,V]`, selected canvas logits `[B,4,V]`; the committed prompt is visible and not edited. The training batch also carries the original clean token IDs `[B,8]`, mask indicator and time/noise level; use only the positions selected by the specified loss. A network with bidirectional attention can still make independent categorical samples **conditional on its current snapshot**, so attention direction alone does not make a joint sample coherent.

**A meaningful failure case:** suppose both “of course” and “no problem” are equally likely in a two-slot canvas. Each separate marginal is 50/50. Drawing both simultaneously as independent marginals makes “of problem” or “no course” with total probability 1/2. Revealing one first and reconditioning the other permits the original joint in this toy. Neither claims that all parallel decoding makes 50% errors nor that real dLLMs have perfect conditional knowledge.

## Real model pipelines and caching

| Model | Sources and training | Inference / evidence limit |
|---|---|---|
| **MDLM** | [Paper](https://arxiv.org/abs/2406.07524v2) and [code](https://github.com/kuleshov-group/mdlm/tree/c112c526d193436838c98d81455ee51f90309470): absorbing mask objective, bidirectional denoiser with a constrained output parameterization. | Start from mask, use the analytic reveal rate and model distribution for neighbors; its semi-autoregressive sampler is a method, not a universal dLLM deployment design. |
| **LLaDA** | [Paper](https://arxiv.org/abs/2502.09992v3) and [release](https://github.com/ML-GSAI/LLaDA/tree/9182493720ed723ef8031210d85959364e51cbe0): mask-ratio sampling, large-scale bidirectional masked denoising pretraining from scratch, supervised prompt/response adaptation. | Prompt remains visible; the sampler progressively fills response masks using policies such as low-confidence remasking of proposed candidates. Check whether a method changes *already committed* tokens vs holds back proposed ones. Fixed block/reveal steps and sampling controls in the code are not timing guarantees. |
| **Dream** | [Technical report](https://arxiv.org/html/2508.15487v1) and [release](https://github.com/HKUNLP/Dream/tree/31f94a60d187e3fd481fee3bbc2c732eb94a879c): initializes from Qwen2.5-7B-compatible AR weights and changes training to bidirectional discrete denoising, including context-adaptive token noise rescheduling. | Warm-start does not make the deployed sampler left-to-right. Use the AR alignment and schedule described in the paper rather than treating the shifted prediction positions as generic MDLM. Its planning and speed claims are protocol-specific. |
| **Block Diffusion / BD3-LM** | [Paper](https://arxiv.org/abs/2503.09573v3), [code](https://github.com/kuleshov-group/bd3lms/tree/1c3e8f43d88dfbcee5ff2aa6932a9e74b31ae1d7): factor \(p(x)=\prod_b p(x_b\mid x_{<b})\), then model each conditional with a diffusion bound. Block-causal context, bidirectional active block. | Complete previous blocks are stable and can be cached, active slots still change and should not be assumed to have stable KV. Smaller block raises sequential overhead but reduces within-block factoring pressure; block size one is the single-token factorization limit, not proof any training recipe becomes identical to AR maximum likelihood. |
| **ReMDM** | [Paper](https://arxiv.org/abs/2503.00307): modifies reverse transitions to allow remasking rather than only adding visible tokens. | The algorithm can revise an earlier reveal. Don't conflate this with simply refusing to commit low-confidence proposals. |
| **DiffusionGemma** | [Technical report v1, Fig. 2 and §§2–5](https://arxiv.org/html/2608.00146v1) and [Google checkpoint card](https://huggingface.co/google/diffusiongemma-26B-A4B-it): starts from Gemma 4 26B-A4B. SFT applies softmax directly to logits and uses clean-token cross-entropy over every canvas position (Eq. 11). The report then jointly applies online sampler distillation and RL. | Generation starts each 256-slot canvas from uniform vocabulary draws. Its sampler uses a time-dependent temperature (Eq. 6); multinomial steps can revise slots and feed earlier clean-token probabilities into self-conditioning. Only a finalized canvas is appended to the shared-weight causal encoder’s KV cache. Unlike DSpark there is no external AR verifier. Low-batch speed claims cannot be imported into a saturated batch comparison. |

### Implementation differences worth keeping in the diagrams

- **LLaDA's blocks are not a KV-cache claim.** In the pinned initial `generate.py`, block length limits which masks can be transferred while logits still come from a full `model(x)` over the sequence. The training recipe in the guidelines uses a small minimum masking probability and may average per answer length. Separate that recipe from the paper's \(1/t\) derivation.
- **Dream preserves AR-aligned predictions.** The released trainer shifts logits so output for position \(i\) is based on the representation at \(i-1\), with boundary handling; this indexing is distinct from a causal attention mask. The paper’s baseline uses \(1/t\) for linear masking, while CART uses context-dependent weights. The released SFT trainer exposes distinct `original`, `linear` and `cart` options. Its `original` setting is not evidence that every 7B stage used CART, or that 7B gains are isolated by a scratch-training ablation. Include inherited Qwen tokens when discussing the total budget.
- **BD3-LM deliberately controls leakage.** [The released block mask](https://github.com/kuleshov-group/bd3lms/blob/1c3e8f43d88dfbcee5ff2aa6932a9e74b31ae1d7/models/dit.py#L30-L74) uses clean and noisy halves of the training sequence (`[B,2L]` token slots), and separates noisy same-block attention, noisy-to-earlier-clean, and clean block-causal attention. It does not allow a noisy position to copy its own clean label. Exact reuse of completed prefix KV under this mask is different from the approximate reuse of active-block features in [Fast-dLLM](https://arxiv.org/abs/2505.22618).
- **SMDM** ([arXiv:2410.18514v3](https://arxiv.org/abs/2410.18514v3)) is a masked-diffusion scaling precursor, not another name for BD3-LM; its comparisons span model/data/compute choices rather than showing arbitrary blockwise exact KV reuse.

Further primary leads: [MD4](https://arxiv.org/abs/2406.04329), [Discrete Flow Matching](https://arxiv.org/abs/2407.15595), [SDAR](https://arxiv.org/abs/2510.06303), [LLaDA2.1](https://arxiv.org/abs/2602.08676), [DUET](https://arxiv.org/abs/2611.09239) for prefix and early-query sparsification, and [Mercury](https://arxiv.org/abs/2506.17298) for a closed release boundary. These are leads, not independent replications. Treat paper comparisons on data-constrained training, preference optimization, and reasoning as conditional on equalized tokens, budget, test set and decoding protocol. Count actual function evaluations, latency to first usable output, length and concurrency. A mutable canvas can be fast for one request without increasing saturated aggregate throughput.

## Uses, recent results, and what to test next

The [language timeline](../index.html#text-lab) computes a masked-only loss and then begins a new inference trace with no clean answer. At the fully masked training frame, two of four slots have two equally likely choices: `2 × ln(2) / 4 ≈ 0.34657`. In the generation trace, the right-side token “off” changes the distribution at the still-masked second slot from `{lamp: .5, fan: .5}` to `{fan: 1}`. That is a property of the two declared sentences, not a measured capability of MDLM or LLaDA. For a real comparison, retain a right-context AR fill-in-the-middle baseline alongside diffusion (see [Diffusion-LM](https://arxiv.org/abs/2205.14217v1) and [FIM](https://arxiv.org/abs/2207.14255)).

**Primary snapshot through 24 Nov 2026, not an exhaustive list.** The following six versioned HTML sources are in `frontier-df03` in the local evidence archive; its receipt fingerprints the downloaded bytes. Named results are author-reported, not run here. `v1` denotes the arXiv revision, not a model generation.

| Study | Mechanism and why to read it | Evidence to compare and its limit |
|---|---|---|
| [Clover Preview, 18 Nov](https://arxiv.org/html/2611.24636v1) | Adapt Gated DeltaNet so recurrent history and a bidirectional active block coexist; study block-specific routing and decoding. Shows that mixer choice and generation rule are independent design axes. | Table 2 tests BF16, batch one on an H200. Clover is slower than the reported DFlash 2 baseline on MATH-500 even with more committed tokens per verification round. Eq. 18 counts completion tokens, including bonus and boundary tokens and the first token from prefill, not just accepted draft tokens. Clover is faster on agent-prefix replay and chat; the replay is a serving workload, not an agent success metric. |
| [Levenshtein editing, 18 Nov](https://arxiv.org/html/2611.23750v1) | Longest-common-subsequence alignment generates insertion/deletion supervision during fine-tuning; successive stages train the model to revise its own states. Do not confuse this LED with the separate Lookahead Editing paper. | Table 1 evaluates LLaDA2.1-Mini against same-base replacement-only tuning. Twelve-benchmark mean 54.86 → 57.10 under confidence guidance; some individual scores decline. Tokens per forward is not tokens per second. |
| [ReMaRL, 17 Nov](https://arxiv.org/html/2611.22576v1) | A small learned controller changes reveal, keep and remask decisions over a frozen denoiser. Separate learning the base token distributions from learning which locations to update. | §§4–5: math and code experiments at specified model-call budgets. Task-specific final-answer rewards and fixed generation budgets do not establish broad task or serving gains. |
| [Sampler profiling, 16 Nov](https://arxiv.org/html/2611.21852v1) | Look past layer FLOPs: the sampling, stopping and host glue around a `[canvas,V]` tensor can dominate after expert quantization. Compare duplicate-entropy removal with fused sampling separately. | §2, Table 1: the GB10 batch-one W4A16 profile reports 39.8% of GSM8K decode time in logits/sampling plus host glue. Distinguish the paper's bit-exact optimization from the variant tested only for benchmark-accuracy parity. |
| [DUET, 6 Nov](https://arxiv.org/html/2611.09239v1) | The first denoising step is dense. Later, early layers still use full context; suffix layers use a selected historical KV subset and keep every resolved row plus selected unresolved rows (§§3.1–3.3). Compare historical-KV and query sparsification separately against dense-prefix reuse. | At 32K context the authors report different end-to-end vs per-step gains on LLaDA2.1-mini and SDAR-8B-Chat-b32 (§4). Do not promise exact equivalence or generalize across batch sizes. |
| [SetCommit, 22 Oct](https://arxiv.org/html/2610.31120v1) | Score the joint selection of nearby positions and permit budget-bounded exchanges rather than freezing every early high-confidence pick. | Compare on the named LLaDA/Dream setups at matched forward counts (§4); the method’s benefit depends on base sampler, task, and generation progress. |

[The comparison lab](../index.html#comparison) counts allowed query/key entries per layer and head, not FLOPs or timings. For fixed prompt `P=8`, output `G=8`, window `W=4`, block size `b=4`, and `S=3` denoise passes per canvas/block: dense AR appends visit 100 pairs, local 32, full bidirectional diffusion 768, cached block diffusion 336 plus 112 commit pairs. All omit separate prompt-cache construction; full diffusion includes the prompt in each full pass. The last AR output is processed into the cache in this convention. Recurrent updates are a different unit. [The proposed experiments](../index.html#research-questions) define controls and rejection criteria for edit quality, approximate cache reuse, serving frontiers and fewer denoising forwards; none were executed here.
