Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Feb 26.
Published in final edited form as: Int Conf Learn Represent. 2025 Apr;2025:84192–84219.

BLOCK DIFFUSION: INTERPOLATING BETWEEN AU-TOREGRESSIVE AND DIFFUSION LANGUAGE MODELS

Marianne Arriola †,*, Aaron Kerem Gokaslan †, Justin T Chiu ‡, Zhihan Yang †, Zhixuan Qi †, Jiaqi Han , Subham Sekhar Sahoo †, Volodymyr Kuleshov †
PMCID: PMC12934468  NIHMSID: NIHMS2093816  PMID: 41756040

Abstract

Diffusion language models offer unique benefits over autoregressive models due to their potential for parallelized generation and controllability, yet they lag in likelihood modeling and are limited to fixed-length generation. In this work, we introduce a class of block diffusion language models that interpolate between discrete denoising diffusion and autoregressive models. Block diffusion overcomes key limitations of both approaches by supporting flexible-length generation and improving inference efficiency with KV caching and parallel token sampling. We propose a recipe for building effective block diffusion models that includes an efficient training algorithm, estimators of gradient variance, and data-driven noise schedules to minimize the variance. Block diffusion sets a new state-of-the-art performance among diffusion models on language modeling benchmarks and enables generation of arbitrary-length sequences. We provide the code1, along with the model weights and blog post on the project page: https://m-arriola.com/bd3lms

1. Introduction

Diffusion models are widely used to generate images (Ho et al., 2020; Dhariwal & Nichol, 2021; Sahoo et al., 2024b) and videos (Ho et al., 2022; Gupta et al., 2023), and are becoming increasingly effective at generating discrete data such as text (Lou et al., 2024; Sahoo et al., 2024a) or biological sequences (Avdeyev et al., 2023; Goel et al., 2024). Compared to autoregressive models, diffusion models have the potential to accelerate generation and improve the controllability of model outputs (Schiff et al., 2024; Nisonoff et al., 2024; Li et al., 2024; Sahoo et al., 2024c).

Discrete diffusion models currently face at least three limitations. First, in applications such as chat systems, models must generate output sequences of arbitrary length (e.g., a response to a user’s question). However, most recent diffusion architectures only generate fixed-length vectors (Austin et al., 2021; Lou et al., 2024). Second, discrete diffusion uses bidirectional context during generation and therefore cannot reuse previous computations with KV caching, which makes inference less efficient (Israel et al., 2025). Third, the quality of discrete diffusion models, as measured by standard metrics such as perplexity, lags behind autoregressive approaches and further limits their applicability (Gulrajani & Hashimoto, 2024; Sahoo et al., 2024a).

This paper makes progress towards addressing these limitations by introducing Block Discrete Denoising Diffusion Language Models (BD3-LMs), which interpolate between discrete diffusion and autoregressive models. Specifically, block diffusion models (also known as semi-autoregressive models) define an autoregressive probability distribution over blocks of discrete random variables (Si et al., 2022; 2023); the conditional probability of a block given previous blocks is specified by a discrete denoising diffusion model (Austin et al., 2021; Sahoo et al., 2024a).

Developing effective BD3-LMs involves two challenges. First, efficiently computing the training objective for a block diffusion model is not possible using one standard forward pass of a neural network and requires developing specialized algorithms. Second, training is hampered by the high variance of the gradients of the diffusion objective, causing BD3-LMs to under-perform autoregression even with a block size of one (when both models should be equivalent). We derive estimators of gradient variance, and demonstrate that it is a key contributor to the gap in perplexity between autoregression and diffusion. We then propose custom noise processes that minimize gradient variance and make progress towards closing the perplexity gap.

We evaluate BD3-LMs on language modeling benchmarks, and demonstrate that they are able to generate sequences of arbitrary length, including lengths that exceed their training context. In addition, BD3-LMs achieve new state-of-the-art perplexities among discrete diffusion models. Compared to alternative semi-autoregressive formulations that perform Gaussian diffusion over embeddings (Han et al., 2022; 2023), our discrete approach features tractable likelihood estimates and yields samples with improved generative perplexity using an order of magnitude fewer generation steps. In summary, our work makes the following contributions:

  • We introduce block discrete diffusion language models, which are autoregressive over blocks of tokens; conditionals over each block are based on discrete diffusion. Unlike prior diffusion models, block diffusion supports variable-length generation and KV caching.

  • We introduce custom training algorithms for block diffusion models that enable efficiently leveraging the entire batch of tokens provided to the model.

  • We identify gradient variance as a limiting factor of the performance of diffusion models, and we propose custom data-driven noise schedules that reduce gradient variance.

  • Our results establish a new state-of-the-art perplexity for discrete diffusion and make progress toward closing the gap to autoregressive models.

2. Background: Language Modeling Paradigms

Notation

We consider scalar discrete random variables with V categories as ‘one-hot’ column vectors in the space V=x∈{0,1}V:∑ixi=1⊂ΔV for the simplex ΔV. Let the V -th category denote a special [MASK] token, where m∈V is its one-hot vector. We define x1:L as a sequence of L tokens, where xl∈V for all tokens l∈{1,…,L}, and use VL to denote the set of all such sequences. Throughout the work, we simplify notation and refer to the token sequence as x and an individual token as xl. Finally, let Cat (·;p) be a categorical distribution with probability p∈ΔV.

2.1. Autoregressive Models

Consider a sequence of L tokens x=x1,…,xL drawn from the data distribution q(x). Autoregressive (AR) models define a factorized distribution of the form

logpθ(x)=∑l=1Llogpθxl∣x<l, (1)

where each pθxl∣x<l is parameterized directly with a neural network. As a result, AR models may be trained efficiently via next token prediction. However, AR models take L steps to generate L tokens due to the sequential dependencies.

2.2. Discrete Denoising Diffusion Probabilistic Models

Diffusion models fit a model pθ(x) to reverse a forward corruption process q (Sohl-Dickstein et al., 2015; Ho et al., 2020; Sahoo et al., 2024b). This process starts with clean data x and defines latent variables xt=xt1,…,xtL for t∈[0,1], which represent progressively noisier versions of x. Given a discretization into T steps, we define s(j)=(j−1)/T and t(j)=j/T. For brevity, we drop j from t(j) and s(j) below; in general, s denotes the time step preceding t.

The D3PM framework (Austin et al., 2021) defines q as a Markov forward process acting independently on each token xl:qxtl∣xsl=Catxtl;Qtxsl where Qt∈ℝV×V is the diffusion matrix. The matrix Qt can model various transformations, including masking, random token changes, and related word substitutions.

An ideal diffusion model pθ is the reverse of the process q. The D3PM framework defines pθ as

pθxs∣xt=∏l=1Lpθxsl∣xt=∑x∏l=1Lqxsl∣xtl,xlpθxl∣xt, (2)

where the denoising base model pθxl∣xt predicts clean token xl given the noisy sequence xt, and the reverse posterior qxsl∣xtl,x is defined following Austin et al. (2021) in Suppl. B.3.

The diffusion model pθ is trained using variational inference. Let KL[·] denote the Kullback-Leibler divergence. Then, the Negative ELBO (NELBO) is given by (Sohl-Dickstein et al., 2015):

L(x;θ)=Eq−logpθx∣xt(1)+∑j=1TDKLqxs(j)∣xt(j),x‖pθxs(j)∣xt(j)+DKLqxt(T)∣x‖pθxt(T) (3)

This formalism extends to continuous time via Markov chain (CTMC) theory and admits score-based generalizations (Song & Ermon, 2019; Lou et al., 2024; Sun et al., 2022). Further simplifications (Sahoo et al., 2024a; Shi et al., 2024; Ou et al., 2025) tighten the ELBO and enhance performance.

3. Block Diffusion Language Modeling

We explore a class of Block Discrete Denoising Diffusion Language Models (BD3-LMs) that interpolate between autoregressive and diffusion models by defining an autoregressive distribution over blocks of tokens and performing diffusion within each block. We provide a block diffusion objective for maximum likelihood estimation and efficient training and sampling algorithms. We show that for a block size of one, the diffusion objective suffers from high variance despite being equivalent to the autoregressive likelihood in expectation. We identify high training variance as a limitation of diffusion models and propose data-driven noise schedules that reduce the variance of the gradient updates during training.

3.1. Block Diffusion Distributions and Model Architectures

We propose to combine the language modeling paradigms in Sec. 2 by autoregressively modeling blocks of tokens and performing diffusion within each block. We group tokens in x into B blocks of length L with B=L/L′ (we assume that B is an integer). We denote each block x(b−1)L′:bL′ from token at positions (b−1)L′ to bL′ for blocks b∈{1,…,B} as xb for simplicity. Our likelihood factorizes over blocks as

logpθ(x)=∑b=1Blogpθxb∣x<b, (4)

and each pθxb∣x<b is modeled using discrete diffusion over a block of L′ tokens. Specifically, we define a reverse diffusion process as in (2), but restricted to block b:

pθxsb∣xtb,x<b=∑xbqxsb∣xtb,xbpθxb∣xtb,x<b (5)

We obtain a principled learning objective by applying the NELBO in (3) to each term in (4) to obtain

−logpθ(x)≤LBD(x;θ):=∑b=1BLxb,x<b;θ, (6)

where each Lxb,x<b;θ is an instance of (3) applied to logpθxb∣x<b. Since the model is conditioned on x<b, we make the dependence on x<b,θ explicit in L. We denote the sum of these terms LBD(x;θ) (itself a valid NELBO).

Model Architecture

Crucially, we parameterize the B base denoiser models pθxb∣xtb,x<b using a single neural network xθ. The neural network xθ outputs not only the probabilities pθxb∣xtb,x<b, but also computational artifacts for efficient training. This will enable us to compute the loss LBD(x;θ) in parallel for all B blocks in a memory-efficient manner. Specifically, we parameterize xθ using a transformer (Vaswani et al., 2017) with a block-causal attention mask. The transformer xθ is applied to L tokens, and tokens in block b attend to tokens in blocks 1 to b. When xθ is trained, xθbxtb,x<b yields L′ predictions for denoised tokens in block b based on noised xtb and clean x<b.

In autoregressive generation, it is normal to cache keys and values for previously generated tokens to avoid recomputing them at each step. Similarly, we use Kb, Vb to denote the keys and values at block b, and we define xθ to support these as input and output. The full signature of xθ is

xlogitsb,Kb,Vb←xθbxtb,K1:b−1,V1:b−1:=xθbxtb,x<b, (7)

where xlogitsb are the predictions for the clean xb, and Kb,Vb is the key-value cache in the forward pass of xθ, and K1:b−1,V1:b−1 are keys and values cached on a forward pass of xθ over x<b (hence the inputs x<b and K1:b−1,V1:b−1 are equivalent).

3.2. Efficient Training and Sampling Algorithms

Ideally, we wish to compute the loss LBD(x;θ) in one forward pass of xθ. However, observe that denoising xtb requires a forward pass on this noisy input, while denoising the next blocks requires running xθ on the clean version xb. Thus every block has to go through the model at least twice.

Training

Based on this observation, we propose a training algorithm with these minimal computational requirements (Alg. 1). Specifically, we precompute keys and values K1:B,V1:B for the full sequence x in a first forward pass ∅,K1:B,V1:B←xθ(x). We then compute denoised predictions for all blocks using xθbxtb,K1:b−1,V1:b−1. Each token passes through xθ twice.

Vectorized Training

Naively, we would compute the logits by applying xθbxtb,K1:b−1,V1:b−1 in a loop B times. We propose a vectorized implementation that computes LBD(x;θ) in one forward pass on the concatenation xnoisy⊕x of clean data x with noisy data xnoisy=xt11⊕⋯⊕xtBB obtained by applying a noise level tb to each block xb. We design an attention mask for xnoisy⊕x such that noisy tokens attend to other noisy tokens in their block and to all clean tokens in preceding blocks (see Suppl. B.6). Our method keeps the overhead of training BD3-LMs tractable and combines with pretraining to further reduce costs.

Sampling

We sample one block at a time, conditioned on previously sampled blocks (Alg 2). We may use any sampling procedure SAMPLE xθb,K1:b−1,V1:b−1 to sample from the conditional distribution pθxsb∣xtb,x<b, where the context conditioning is generated using cross-attention with pre-computed keys and values K1:b−1,V1:b−1. Similar to AR models, caching the keys and values saves computation instead of recalculating them when sampling a new block.

Notably, our block diffusion decoding algorithm enables us to sample sequences of arbitrary length, whereas diffusion models are restricted to fixed-length generation. Further, our sampler admits parallel generation within each block, whereas AR samplers are constrained to generate token-by-token.

Algorithm 1.

Block Diffusion Training

 Input: datapoint x, # of blocks B, forward
 noise process qt(⋅∣x), model xθ, loss LBD
 repeat
  Sample t1,…,tB~U[0,1]
  ∀b∈{1,…,B}:xtbb~qtb⋅∣xb
  ∅, K1:B, V1:B←xθ(x)  ⊳ KV cache
  ∀b:xlogitb, ∅, ∅←xθbxtbb,K1:b−1,V1:b−1
  Let xlogit←xlogit1⊕⋯⊕xlogitB
  Take gradient step on ∇θLBDxlogit;θ
 until converged
Algorithm 2.

Block Diffusion Sampling

 Input: # blocks B, model xθ, diffusion sampling algorithm SAMPLE
 x, K, V←∅    ⊳ output & KV cache
  for b=1 to B do
  xb←Samplexθb,K1:b−1,V1:b−1
  ∅, Kb, Vb←xθbxb
  x←x1:b−1⊕xb
  (K,V)←K1:b−1⊕Kb,V1:b−1⊕Vb
 end for
 return x

4. Understanding Likelihood Gaps Between Diffusion & AR Models

4.1. Masked BD3-LMS

The most effective diffusion language models leverage a masking noise process (Austin et al., 2021; Lou et al., 2024; Sahoo et al., 2024a), where tokens are gradually replaced with a special mask token. Here, we introduce masked BD3-LMs, a special class of block diffusion models based on the masked diffusion language modeling framework (Sahoo et al., 2024a; Shi et al., 2024; Ou et al., 2025).

More formally, we adopt a per-token noise process qxtl∣xl=Catxtl;αtxl+1−αtm for tokens l∈{1,…,L} where m is a one-hot encoding of the mask token, and αt∈[0,1] is a strictly decreasing function in t, with α0=1 and α1=0. We employ the linear schedule where the probability of masking a token at time t is 1−αt. We adopt the simplified objective from Sahoo et al. (2024a); Shi et al. (2024); Ou et al. (2025) (the full derivation is provided in Suppl. B.3):

−logpθ(x)≤LBD(x;θ):=∑b=1BEt~[0,1]Eqαt′1−αtlogpθxb∣xtb,x<b (8)

where αt′ is the instantaneous rate of change of αt under the continuous-time extension of (3) that takes T→∞. The NELBO is tight for L′=1 but becomes a looser approximation of the true negative log-likelihood for L′→L (see Suppl. B.5).

4.2. Case Study: Single Token Generation

Our block diffusion parameterization (8) is equivalent in expectation to the autoregressive NLL (1) in the limiting case where L′=1 (see Suppl. B.4). Surprisingly, we find a two point perplexity gap between our block diffusion model for L′=1 and AR when training both models on the LM1B dataset.

Although the objectives are equivalent in expectation, we show that the remaining perplexity gap is a result of high training variance. Whereas AR is trained using the cross-entropy of L tokens, our block diffusion model for L′=1 only computes the cross-entropy for masked tokens xtl=m∀l∈{1,…L} so that Et~U[0,1]qxtl=m∣xl=0.5. Thus, training on the diffusion objective involves estimating loss gradients with 2x fewer tokens and is responsible for higher training variance compared to AR.

To close the likelihood gap, we train a BD3-LM for L′=1 by designing the forward process to fully mask tokens, i.e. qxtl=m∣xl=1. Under this schedule, the diffusion objective becomes equivalent to the AR objective (Suppl. B.4). In Table 1, we show that training under the block diffusion objective yields the same perplexity as AR training. Empirically, we see that this reduces the variance of the training loss in Figure 2. We verify that tuning the noise schedule reduces the variance of the objective by measuring Varx,tLBD(x;θ) after training on 328M tokens: while training on the NELBO results in a variance of 1.52, training under full masking reduces the variance to 0.11.

Table 1:

Test perplexities for single-token generation (PPL; ↓) across 16B tokens on LM1B.

PPL (↓)

AR 22.88
 + random batch size 24.37

BD3-LM L′=1 ≤ 25.56
 + tuned schedule 22.88

Figure 2:

Figure 2:

Train NLLs for modeling the per-token likelihood on LM1B. Models are trained on 16B tokens. Training under the discrete diffusion NELBO, where half of the tokens in a batch are masked on average, has similar training variance to an AR model with a random batch size.

4.3. Diffusion Gap from High Variance Training

Next, we formally describe the issue of gradient variance in training diffusion models. Given our empirical observations for single-token generation, we propose an estimator for gradient variance that we use to minimize the variance of diffusion model training for L′≥1. While the NELBO is invariant to the choice of noise schedule (Suppl. B.3), this invariance does not hold for our Monte Carlo estimator of the loss used during training. As a result, the variance of the estimator and its gradients are dependent on the schedule. First, we express the estimator of the NELBO with a batch size K. We denote a batch of sequences as X=x(1),x(2),…,x(K), with each x(k)~iidq(x). We obtain the batch NELBO estimator below, where t(k,b) is sampled in sequence k and block b:

LBD(X;θ):=l(X;θ)=1K∑k=1K∑b=1Bαt(k,b)′1−αt(k,b)logpθx(k),b∣xt(k,b)(k),b,x(k),<b (9)

The variance of the gradient estimator over M batches for each batch Xm∀m∈{1,…,M} is:

VarX,t∇θl(X;θ)≈1M−1∑m=1M∇θlXm;θ−1M∑m=1M∇θlXm;θ22 (10)

5. Low-Variance Noise Schedules for BD3-LMS

5.1. Intuition: Avoid Extreme Mask Rates

We aim to identify schedules that minimize the variance of the gradient estimator and make training most efficient. In a masked setting, we want to mask random numbers of tokens, so that the model learns to undo varying levels of noise, which is important during sampling. However, if we mask very few tokens, reconstructing them is easy and does not provide useful learning signal. If we mask everything, the optimal reconstruction are the marginals of each token in the data distribution, which is easy to learn, and again is not useful. These extreme masking rates lead to poor high-variance gradients: we want to learn how to clip them via a simple and effective new class of schedules.

5.2. Clipped Schedules for Low-Variance Gradients

We propose a class of “clipped” noise schedules that sample mask rates 1−αt~U[β,ω] for 0≤β,ω≤1. We argue that from the perspective of deriving Monte Carlo gradient estimates, these schedules are equivalent to a continuous schedule where the mask probability is approximately 0 before the specified range such that 1−α<β≈ϵ and approximately 1 after the specified range 1−α>ω≈1−ϵ. Consequently, αt′ is linear within the range: αt′≈1/(β−ω).

5.3. Data-Driven Clipped Schedules Across Block Sizes

As the optimal mask rates may differ depending on the block size Lʹ, we adaptively learn the schedule during training. While Kingma et al. (2021) perform variance minimization by isolating a variance term using their squared diffusion loss, this strategy is not directly applicable to our variance estimator in Equation 10 since we seek to reduce variance across random batches in addition to random tb.

Instead, we optimize parameters β,ω to directly minimize training variance. To limit the computational burden of the optimization, we use the variance of the estimator of the diffusion ELBO as a proxy for the gradient estimator to optimize β,ω:minβ,ωVarX,t[L(X;θ,β,ω)]. We perform a grid search at regular intervals during training to find the optimal β,ω (experimental details in Sec. 6).

In Table 2, we show that variance of the diffusion NELBO is correlated with test perplexity. Under a range of “clipped” noise rate distributions, we find that there exists a unique distribution for each block size L′∈{4,16,128} that minimizes both the variance of the NELBO and the test perplexity.

Table 2:

Perplexities (PPLs; ↓) and variances of the NELBO VarX,tLBD(X;θ) (Var. NELBO; ↓). Models are trained on LM1B using a linear schedule for 65B tokens, then finetuned for 10B tokens.

L′ U[0,.5]
U[.3,.8]
U[.5,1]
U[0,1]
PPL Var. NELBO PPL Var. NELBO PPL Var. NELBO PPL Var. NELBO

128 31.72 1.03 31.78 1.35 31.92 1.83 31.78 3.80
16 31.27 7.90 31.19 3.62 31.29 3.63 31.33 7.39
4 29.23 32.68 29.37 10.39 29.16 8.28 29.23 23.65

6. Experiments

We evaluate BD3-LMs across standard language modeling benchmarks and demonstrate their ability to generate arbitrary-length sequences unconditionally. We pre-train a base BD3-LM using the maximum block size L′=L for 850K gradient steps and fine-tune under varying L′ for 150K gradient steps on the One Billion Words dataset (LM1B; Chelba et al. (2014)) and OpenWebText (OWT; Gokaslan et al. (2019)). Details on training and inference are provided in Suppl C.

To reduce the variance of training on the diffusion NELBO, we adaptively learn the range of masking rates by optimizing parameters β,ω as described in Section 5.3. In practice, we do so using a grid search during every validation epoch (after ∼5K gradient updates) to identify β,ω:minβ,ωVarX,t[L(X;θ,β,ω)]. During evaluation, we report likelihood under uniformly sampled mask rates (8) as in Austin et al. (2021); Sahoo et al. (2024a).

6.1. Likelihood Evaluation

On LM1B, BD3-LMs outperform all prior diffusion methods in Table 3. Compared to MDLM (Sahoo et al., 2024a), BD3-LMs achieve up to 13% improvement in perplexity. We observe a similar trend on OpenWebText in Table 4.

Table 3:

Test perplexities (PPL; ↓) of models trained for 65B tokens on LM1B. Best diffusion value is bolded.

PPL (↓)

Autoregressive
Transformer-X Base (Dai et al., 2019) 23.5
Transformer (Sahoo et al., 2024a) 22.83

Diffusion
D3PM (absorb) (Austin et al., 2021) ≤ 82.34
SEDD (Lou et al., 2024) ≤ 32.68
MDLM (Sahoo et al., 2024a) ≤ 31.78

Block diffusion (Ours)
BD3-LMs L′=16 ≤ 30.60
   L′=8 ≤ 29.83
   L′=4 ≤ 28.23

Table 4:

Test perplexities (PPL; ↓) on OWT for models trained for 524B tokens. Best diffusion value is bolded.

PPL (↓)

AR (Sahoo et al., 2024a) 17.54

SEDD (Lou et al., 2024) ≤ 24.10
MDLM (Sahoo et al., 2024a) ≤ 22.98

BD3-LMs L′=16 ≤ 22.27
 L′=8 ≤ 21.68
 L′=4 ≤ 20.73

We also evaluate the ability of BD3-LMs to generalize to unseen datasets in a zero-shot setting, following the benchmark from Radford et al. (2019). We evaluate the likelihood of models trained with OWT on datasets Penn Tree Bank (PTB; (Marcus et al., 1993)), Wikitext (Merity et al., 2016), LM1B, Lambada (Paperno et al., 2016), AG News (Zhang et al., 2015), and Scientific Papers (Pubmed and Arxiv subsets; (Cohan et al., 2018)). In Table 5, BD3-LM achieves the best zero-shot perplexity on Pubmed, surpassing AR, and the best perplexity among diffusion models on Wikitext, LM1B, and AG News.

Table 5:

Zero-shot validation perplexities (↓) of models trained for 524B tokens on OWT. All perplexities for diffusion models are upper bounds.

PTB Wikitext LM1B Lambada AG News Pubmed Arxiv

AR 81.07 25.32 51.14 52.13 52.11 48.59 41.22

SEDD 96.33 35.98 68.14 48.93 67.82 45.39 40.03
mdlm 90.96 33.22 64.94 48.29 62.78 43.13 37.89
BD3-LM L′=4 96.81 31.31 60.88 50.03 61.67 42.52 39.20

6.2. Sample Quality and Variable-Length Sequence Generation

One key drawback of many existing diffusion language models (e.g,. Austin et al. (2021); Lou et al. (2024)) is that they cannot generate full-length sequences that are longer than the length of the output context chosen at training time. The OWT dataset is useful for examining this limitation, as it contains many documents that are longer than the training context length of 1024 tokens.

We record generation length statistics of 500 variable-length samples in Table 6. We continue sampling tokens until an end-of-sequence token [EOS] is generated or sample quality significantly degrades (as measured by sample entropy). BD3-LMs generate sequences up to ≈10× longer than those of SEDD (Lou et al., 2024), which is restricted to the training context size.

Table 6:

Generation length statistics from sampling 500 documents from models trained on OWT.

Median
# tokens
Max
# tokens

OWT train set 717 131K
AR 4008 131K

SEDD 1021 1024
BD3-LM L′=16 798 9982

We also examine the sample quality of BD3-LMs through quantitative and qualitative analyses. In Table 7, we generate sequences of lengths L=1024, 2048 and measure their generative perplexity under GPT2-Large. To sample L=2048 tokens from MDLM, we use their block-wise decoding technique (which does not feature block diffusion training as in BD3-LMs).

Table 7:

Generative perplexity (Gen. PPL; ↓) and number of function evaluations (NFEs; ↓) of 300 samples of lengths L=1024,2048. All models are trained on OWT. AR, SEDD, MDLM, BD3-LMs use 110M parameters and are trained on 524B tokens, while SSD-LM uses 400M parameters and is pre-trained on 122B tokens. Best diffusion value is bolded. We provide further details in Suppl. C.5.

L=1024
L=2048
Model Gen. PPL NFEs Gen. PPL NFEs

AR 14.1 1K 13.2 2K

Diffusion
SEDD

52.0

1K

–

–
MDLM 46.8 1K 41.3 2K

Block Diffusion
SSD-LM L′ = 25

37.2

40K

35.3

80K
281.3 1K 281.9 2K
BD3-LMs L′=16 33.4 1K 31.5 2K
   L′=8 30.4 1K 28.2 2K
   L′=4 25.7 1K 23.6 2K

We also compare to SSD-LM (Han et al., 2022), an alternative block diffusion formulation. Unlike our discrete diffusion framework, SSD-LM uses Gaussian diffusion and does not support likelihood estimation. Further, BD3-LM adopts an efficient sampler from masked diffusion, where the number of generation steps (NFEs) is upper-bounded by L since tokens are never remasked (Sahoo et al., 2024a; Ou et al., 2025). For SSD-LM, we compare sample quality using T=1K diffusion steps per block, matching their experimental setting (yielding ≥40K NFEs), and T=25 where NFEs are comparable across methods.

BD3-LMs achieve the best generative perplexities compared to previous diffusion methods. Relative to SSD-LM, our discrete approach yields samples with improved generative perplexity using an order of magnitude fewer generation steps. We also qualitatively examine samples taken from BD3-LM and baselines (AR, MDLM) trained on the OWT dataset; we report samples in Suppl. D. We observe that BD3-LM samples have higher coherence than MDLM samples and approach the quality of AR.

6.3. Ablations

We assess the impact of the design choices in our proposed block diffusion recipes, namely 1) selection of the noise schedule and 2) the efficiency improvement of the proposed training algorithm relative to a naive implementation.

Selecting noise schedules to reduce training variance

Compared to the linear schedule used in Lou et al. (2024); Sahoo et al. (2024a), training under

“clipped” noise schedules is the most effective for reducing the training variance which correlates with test perplexity. In Table 8, the ideal “clipped” masking rates, which are optimized during training, are specific to the block size and further motivate our optimization.

Table 8:

Effect of the noise schedule on likelihood estimation. We finetune BD3-LMs on 3B tokens from LM1B and evaluate on a linear schedule. For clipped schedules, we compare optimal clipping for L′=4, 16.

Noise schedule PPL Var. NELBO

L’ = 4
Clipped
 U[0.45,0.95]


29.21


6.24
 U[0.3,0.8] 29.38 10.33
Linear U[0,1] 30.18 23.45
Logarithmic 30.36 23.53
Square root 31.41 26.43

L’ = 16
Clipped
 U[0.45,0.95]


31.42


3.60
U[0.3,0.8] 31.12 3.58
Linear U[0,1] 31.72 7.62
Square 31.43 13.03
Cosine 31.41 13.00

Relative to other standard noise schedules (Chang et al., 2022), “clipped” masking achieves the best performance. As heavier masking is effective for the smaller block size L′=4, we compare with logarithmic and square root schedules that also encourage heavy masking. As lighter masking is optimal for L′=16, we compare with square and cosine schedules.

Efficiency of Training Algorithm

In the BD3-LM training algorithm (Sec. 3.2), we compute xlogit using two options. We may perform two forward passes through the network (precomputing keys and values for the full sequence x, then computing denoised predictions), or combine these passes by concatenating the two inputs into the same attention kernel.

We find that a single forward pass is more efficient as we reduce memory bandwidth bottlenecks by leveraging efficient attention kernels (Dao et al., 2022; Dong et al., 2024), see Suppl. B.7. Instead of paying the cost of two passes through the network, we only pay the cost of a more expensive attention operation. Our vectorized approach has 20–25% speed-up during training relative to performing two forward passes.

7. Discussion and Prior Work

Comparison to D3PM

Block diffusion builds off D3PM (Austin et al., 2021) and applies it to each autoregressive conditional. We improve over D3PM in three ways: (1) we extend D3PM beyond fixed sequence lengths; (2) we study the perplexity gap of D3PM and AR models, identify gradient variance as a contributor, and design variance-minimizing schedules; (3) we improve over the perplexity of D3PM models. Our work applies to extensions of D3PM (He et al., 2022; Lou et al., 2024) including ones in continuous time (Campbell et al., 2022; Sun et al., 2022).

Comparison to MDLM

BD3-LMs further make use of the perplexity-enhancing improvements in MDLM (Sahoo et al., 2024a; Shi et al., 2024; Ou et al., 2025). We also build upon MDLM: (1) while Sahoo et al. (2024a) point out that their NELBO is invariant to the noise schedule, we show that the noise schedule has a significant effect on gradient variance; (2) we push the state-of-the-art in perplexity beyond MDLM. Note that our perplexity improvements stem not only from block diffusion, but also from optimized schedules, and could enhance standard MDLM and D3PM models.

Comparison to Gaussian

Diffusion Alternatively, one may perform diffusion over continuous embeddings of discrete tokens (Li et al., 2022; Dieleman et al., 2022; Chen et al., 2022). This allows using algorithms for continuous data (Song et al., 2020; Ho & Salimans, 2022), but yields worse perplexity (Graves et al., 2023; Gulrajani & Hashimoto, 2024).

Comparison to Semi-Autoregressive Diffusion

Han et al. (2022; 2023) introduced a block formulation of Gaussian diffusion. BD3-LMs instead extend Austin et al. (2021), and feature: (1) tractable likelihood estimates for principled evaluation; (2) faster generation, as our number of model calls is bounded by the number of generated tokens, while SSD-LM performs orders of magnitude more calls; (3) improved sample quality. AR-Diffusion (Wu et al., 2023) extends SSD-LM with a left-to-right noise schedule; Chen et al. (2025); Ye et al. (2024) apply to decision traces and videos; Hao et al. (2024); Kong et al. (2025) extend to latent reasoning. PARD (Zhao et al., 2024) applies discrete block diffusion to graphs. In contrast, we (1) interpolate between AR/diffusion performance; (2) support KV caching; (3) perform attention within noised blocks, whereas PARD injects new empty blocks.

Autoregressive diffusion models (Hoogeboom et al., 2021b;a) extend any-order AR models (AO-ARMs; Uria et al. (2014)) to support parallel sampling. Zheng et al. (2024) prove equivalence between MDLM and AO-ARM training. Further extensions of ARMs that compete with diffusion include iterative editing (Gu et al., 2019), parallel and speculative decoding (Gu et al., 2017; Santilli et al., 2023; Cai et al., 2024; Gloeckle et al., 2024), consistency training (Kou et al., 2024), guidance (Sanchez et al., 2023), and cross-modal extensions (Liu et al., 2023; Tian et al., 2025).

Limitations

Training BD3-LMs is more expensive than regular diffusion training. We propose a vectorized algorithm that keeps training speed within <2x of diffusion training speed; in our experiments, we also pre-train with a standard diffusion loss to further reduce the speed gap. Additionally, BD3-LMs generate blocks sequentially, and hence may face the same speed and controllability constraints as AR especially when blocks are small. Their optimal block size is task specific (e.g., larger for greater control). BD3-LMs are subject to inherent limitations of generative models, including hallucinations (Achiam et al., 2023), copyright infringement (Gokaslan et al., 2024), controllability (Schiff et al., 2024; Wang et al., 2023) and harmful outputs (Bai et al., 2022).

8. Conclusion

This work explores block diffusion and is motivated by two problems with existing discrete diffusion: the need to generate arbitrary-length sequences and the perplexity gap to autoregressive models. We introduce BD3-LMs, which represent a block-wise extension of the D3PM framework (Austin et al., 2021), and leverage a specialized training algorithm and custom noise schedules that further improve performance. We observe that in addition to being able to generate long-form documents, these models also improve perplexity, setting a new state-of-the-art among discrete diffusion models.

A. Block Diffusion NELBO

Below, we provide the Negative ELBO (NELBO) for the block diffusion parameterization. Recall that the sequence x1:L=x1,…,xL is factorized over B blocks, which we refer to as x for simplicity, drawn from the data distribution q(x). Specifically, we will factorize the likelihood over B blocks of length Lʹ, then perform diffusion in each block over T discretization steps. Let DKL[⋅] to denote the Kullback-Leibler divergence, t,s be shorthand for t(i)=i/T and s(i)=(i−1)/T∀i∈[1,T]. We derive the NELBO as follows:

−logpθ(x)=−∑b=1Blogpθxb∣x<b=−∑b=1BlogEqpθxt(1):t(T)b∣x<bqxt(1):t(T)b∣xb=−∑b=1BlogEqpθxt(T)b∣x<b∏i=1Tpθxs(i)b∣xt(i)b,x<b∏i=1Tqxt(i)b∣xs(i)b≤∑b=1B−Eqlogpθxbxt=1Tb,x<b︸Lrecons+Et∈2T,…,T−1T,1EqTDKLqxsb∣xtb,xb‖pθxsb∣xtb,x<b︸Ldiffusion+DKLqxt=1b∣xb‖pθxt=1b︸Lprior (11)

B. Masked BD3-LMS

We explore a specific class of block diffusion models that builds upon the masked diffusion language modeling framework. In particular, we focus on masking diffusion processes introduced by Austin et al. (2021) and derive a simplified NELBO under this framework as proposed by Sahoo et al. (2024a); Shi et al. (2024); Ou et al. (2025).

First, we define the diffusion matrix Qt for states i∈{1,…,V}. Consider the noise schedule function αt∈[0,1], which is a strictly decreasing function in t satisfying α0=1 and α1=0. Denote the mask index as m=V. The diffusion matrix is defined by Austin et al. (2021) as:

Qtij=1ifi=j=mαtifi=j≠m1−αtifj=m,i≠m (12)

The diffusion matrix for the forward marginal Qt∣s is:

Qt∣sij=1ifi=j=mαt∣sifi=j≠m1−αt∣sifj=m,i≠m (13)

where αt∣s=αt/αs

B.1. Forward Process

Under the D3PM framework (Austin et al., 2021), the forward noise process applied independently for each token l∈{1,…L} is defined using diffusion matrices Qt∈ℝV×V as

qxtl∣xl=Catxtl;Q¯txl,withQ¯t(i)=Qt(1)Qt(2)…Qt(i) (14)

B.2. Reverse Process

Let Qt∣s denote the diffusion matrix for the forward marginal. We obtain the reverse posterior qxsl∣xtl,xl using the diffusion matrices:

qxsl∣xtl,xl=qxtl∣xsl,xlqxsl∣xlqxtl∣xl=Catxsl;Qt∣sxtl⊙Qs⊤xlxtl⊤Qt⊤xl (15)

where ⊙ denotes the Hadmard product between two vectors.

B.3. Simplified NELBO for Masked Diffusion Processes

Following Sahoo et al. (2024a); Shi et al. (2024); Ou et al. (2025), we simplify the NELBO in the case of masked diffusion processes. Below, we provide the outline of the NELBO derivation; see the full derivation in Sahoo et al. (2024a); Shi et al. (2024); Ou et al. (2025).

We will first focus on simplifying the diffusion loss term Ldiffusion in Eq. 11. We employ the SUBS-parameterization proposed in Sahoo et al. (2024b) which simplifies the denoising model pθ for masked diffusion. In particular, we enforce the following constraints on the design of pθ by leveraging the fact that there only exists two possible states in the diffusion process xtl∈xl,m∀l∈{1,…,L}.

  1. Zero Masking Probabilities. We set pθxl=m∣xtl=0 (as the clean sequence x doesn’t contain masks).

  2. Carry-Over Unmasking. The true posterior for the case where xtl≠m is qxsl=xtl∣xtl≠m=1 (if a token is unmasked in the reverse process, it is never remasked). Thus, we simplify the denoising model by setting pθxsl=xtl∣xtl≠m=1.

As a result, we will only approximate the posterior pθxsl=xl∣xtl=m. Let xb,l denote a token in the l-th position in block b∈{1,…,B}. The diffusion loss term becomes:

Ldiffusion=∑b=1BEtEqTDKLqxsb∣xtb,xb‖pθxsb∣xtb,x<b=∑b=1BEtEqT∑l=1L′DKLqxsb,l∣xtb,l,xb,l‖pθxsb,l∣xtb,x<b

DKL is simply the discrete-time diffusion loss for the block b; hence, from Sahoo et al. (2024a) (Suppl. B.1), we get:

=∑b=1BEtEqT∑l=1L′αt−αs1−αtlogpθxb,l∣xtb,l,x<b=∑b=1BEtEqTαt−αs1−αtlogpθxb∣xtb,x<b (16)

Lastly, we obtain a tighter approximation of the likelihood by taking the diffusion steps T→∞ (Sahoo et al., 2024a), for which Tαt−αs=αt′:

Ldiffusion=∑b=1BEt~[0,1]Eqαt′1−αtlogpθxb∣xtb,x<b (17)

For the continuous time case, Sahoo et al. (2024a) (Suppl. A.2.4) show the reconstruction loss reduces to 0 as xt(1)b~limT→∞Cat.;xt=1Tb=Cat.;xb. Using this, we obtain:

Lrecons=−Eqlogpθxb∣xt(1)b,x<b=−logpθxb∣xt(1)b=xb,x<b=0 (18)

The prior loss Lprior=DKLqxt=1b∣xb‖pθxt=1b also reduces to 0 because αt=1=0 which ensures qxt=1b∣xb=Cat(.;m) and pθxt=1b=Cat(.;m); see Sahoo et al. (2024a) (Suppl. A.2.4).

Finally, we obtain a simple objective that is a weighted average of cross-entropy terms:

LBD(x;θ)=∑b=1BEt~[0,1]Eqαt′1−αtlogpθxb∣xtb,x<b (19)

The above NELBO is invariant to the choice of noise schedule αt; see Sahoo et al. (2024a) (Suppl.

E.1.1).

B.4. Recovering the NLL from the NELBO for Single Token Generation

Consider the block diffuson NELBO for a block size of 1 where L′=1,B=L. The block diffusion NELBO is equivalent to the AR NLL when modeling a single token:

−logp(x)≤∑b=1LEt~[0,1]Eqαt′1−αtlogpθxb∣xtb,x<b∵αt′=−1andαt=1−t,=−∑b=1LEt~[0,1]Eq1tlogpθxb∣xtb,x<b=−∑b=1LEt~[0,1]1tEqlogpθxb∣xtb,x<bExpandingEq[.],=−∑b=1LEt~[0,1]1tqxtb=m∣xblogpθxb∣xtb=m,x<b+qxtb=xb∣xblogpθxb∣xtb=xb,x<b (20)

Recall that our denoising model employs the SUBS-parameterization proposed in Sahoo et al. (2024b). The “carry-over unmasking” property ensures that logpθxb∣xtb=xb,x<b=0, as an unmasked token is simply copied over from from the input of the denoising model to the output. Hence, (20) reduces to following:

−logpθ(x)≤−∑b=1LEt~[0,1]1tqxtb=m∣xblogpθxb∣xtb=m,x<b∵qxtb=m∣xb=t, we get:=−∑b=1LEt~[0,1]logpθxb∣xtb=m,x<b=−∑b=1Llogpθxb∣m,x<b (21)

For single-token generation L′=1 we recover the autoregressive NLL.

B.5. Tightness of the NELBO

For block sizes 1≤K≤L, we show that −logp(x)≤LK≤LK+1. Consider K=1, where we recover the autoregressive NLL (see Suppl B.4):

L1=∑b=1LlogEt~[0,1]Eqαt′1−αtpθxb∣xtb,x<b=−∑b=1Llogpθxb∣m,x<b (22)

Consider the ELBO for block size K=2:

L2=∑b=1L/2logEt~[0,1]Eqαt′1−αtpθxb∣xtb,x<b (23)

We show that L1≤L2, and this holds for all 1≤K≤L by induction. Let xb,l correspond to the token in position l∈1,L′ of block b. We derive the below inequality:

−∑b=1Llogpθxb∣m,x<b=−∑b=1L/2logEt~[0,1]Eq11−αtpθxb∣xtb,x<b=−∑b=1L/2logEt~[0,1]Eq∏i=1211−αtpθxb,l∣xtb,x<b=−∑b=1L/2log∏i=12Et~[0,1]Eq11−αtpθxb,l∣xtb,x<b≤−∑b=1L/2∑i=12logEt~[0,1]Eq11−αtpθxb,l∣xtb,x<b (24)

B.6. Specialized Attention Masks

We aim to model conditional probabilities pθxb∣xtb,x<b for all blocks b∈[1,B] simultaneously by designing an efficient training algorithm with our transformer backbone. However, modeling all B conditonal terms requires processing both the noised sequence xtb and the conditional context x<b for all b.

Rather than calling the denoising network B times, we process both sequences simultaneously by concatenating them xfull←xt⊕x as input to a transformer. We update this sequence xfull of length 2L tokens using a custom attention mask Mfull∈{0,1}2L×2L for efficient training.

The full attention mask is comprised of four L×L smaller attention masks:

Mfull=MBDMOBC0MBC

where MBD and MOBC are used to update the representation of xt and MBC is used to update the representation of x. We define these masks as follows:

  • MBD (Block-diagonal mask): Self-attention mask within noised blocks xtb

MBDij=1ifi,jare in the same block0otherwise
  • MOBC (Offset block-causal mask): Cross-attention to conditional context x<b

MOBCij=1ifjbelongs in a block beforei0otherwise
  • MBC (Block-causal mask): Attention mask for updating xb

MBCij=1ifjbelongs in the same block asi,or a block beforei0otherwise

We visualize an example attention mask for L=6 and block size L′=2 in Figure 3.

Figure 3:

Figure 3:

Example of Specialized Attention Mask

B.7. Optimized Attention Kernel with Flexattention

As Figure 3 demonstrates, our attention matrix is extremely sparse. We can exploit this sparsity to massively improve the efficiency of BD3-LMs.

FlexAttention (Dong et al., 2024) is a compiler-driven programming model that enables efficient implementation of attention mechanisms with structured sparsity in PyTorch. It provides a flexible interface for defining custom attention masks while maintaining high performance comparable to manually optimized attention kernels.

Below in Fig. 4 we define a block-wise attention mask, block_diff_mask, based on its definition as Mfull∈{0,1}2L×2L in Suppl. B.6. We fuse the attention operations into a single FlexAttention kernel designed to exploit the sparsity in our attention matrix to increase computational efficiency. By doing so, we perform the following optimizations:

Figure 4:

Figure 4:

We can adapt the masking strategy from Fig. 3 to a FlexAttention compatible sparse masking function as above. This enables the creation of a customized JIT attention operation that uses significantly less memory with up to ≈5X speedup over the naive native scaled_dot_product_attention implementation in PyTorch (≥ 2.5) on a A5000 GPU with L = 1024 and batch size B = 16.

  • Precomputed Block Masking: The create_block_mask utility generates a sparse attention mask at compile-time, avoiding per-step computation of invalid attention entries. Through sparsity-aware execution, FlexAttention kernels reduce the number of FLOPs in the attention computation.

  • Reduced Memory Footprint: By leveraging block-level sparsity, the attention mechanism avoids full materialization of large-scale attention matrices, significantly reducing memory overhead. FlexAttention minimizes memory accesses by skipping fully masked blocks.

  • Optimized Computation via torch.compile: The integration of torch.compile enables kernel fusion and efficient execution on GPUs by generating optimized Triton-based kernels. This efficiently parallelizes masked attention computations using optimized GPU execution paths.

This implementation exploits FlexAttention’s ability to dynamically optimize execution based on the provided sparsity pattern. By precomputing block-level sparsity and leveraging efficient kernel fusion, it enables scalable attention computation for long sequences.

Overall, this approach provides a principled method to accelerate attention computations while preserving structured dependency constraints. End-to-end, replacing FlashAttention kernels using a custom mask with FlexAttention kernels leads to ≈ 15% speedup in a model forward pass. We use a single A5000 for L=1024 and batch size B=16.

C. Experimental Details

We closely follow the same training and evaluation setup as used by Sahoo et al. (2024a).

C.1. Datasets

We conduct experiments on two datasets: The One Billion Word Dataset (LM1B; Chelba et al. (2014)) and OpenWebText (OWT; Gokaslan et al. (2019)). Models trained on LM1B use the bert-base-uncased tokenizer and a context length of 128. We report perplexities on the test split of LM1B. Models trained on OWT use the GPT2 tokenizer Radford et al. (2019) and a context length of 1024. Since OWT does not have a validation split, we leave the last 100k documents for validation.

In preparing LM1B examples, Sahoo et al. (2024a) pad each example to fit in the context length of L=128 tokens. Since most examples consist of only a single sentence, block diffusion modeling for larger block sizes L′>4 would not be useful for training. Instead, we concatenate and wrap sequences to a length of 128. As a result, we retrain our autoregressive baseline, SEDD, and MDLM on LM1B with wrapping.

Similarly for OWT, we do not pad or truncate sequences, but concatenate them and wrap them to a length of 1024 similar to LM1B. For unconditional generation experiments in Section 6.2, we wish to generate sequences longer than the context length seen during training. However, Sahoo et al. (2024a) inject beginning-of-sequence and end-of-sequence tokens ([BOS], [EOS] respectively) at the beginning and end of the training context. Thus, baselines from Sahoo et al. (2024a) will generate sequences that match the training context size. To examine model generations across varying lengths in Section 6.2, we retrain our AR, SEDD, and MDLM baselines without injecting [BOS] and [EOS] tokens in the examples. We also adopt this preprocessing convention for training all BD3-LMs on OWT.

C.2. Architecture

The model architecture augments the diffusion transformer (Peebles & Xie, 2023) with rotary positional embeddings (Su et al., 2021). We parameterize our autoregressive baselines, SEDD, MDLM, and BD3-LMs with a transformer architecture from Sahoo et al. (2024a) that uses 12 layers, a hidden dimension of 768, and 12 attention heads. This corresponds to 110M parameters. We do not include timestep conditioning as Sahoo et al. (2024a) show it does not affect performance. We use the AdamW optimizer with a batch size of 512 and constant learning rate warmup from 0 to 3e-4 for 2.5K gradient updates.

C.3. Training

We train a base BD3-LM using the maximum context length L′=L for 850K gradient steps. Then, we fine-tune under varying L′ using the noise schedule optimization for 150K gradient steps on the One Billion Words dataset (LM1B) and OpenWebText (OWT). This translates to 65B tokens and 73 epochs on LM1B, 524B tokens and 60 epochs on OWT. We use 3090, A5000, A6000, and A100 GPUs.

C.4. Likelihood Evaluation

We use a single Monte Carlo estimate for sampling t to evaluate the likelihood of a token block. We adopt a low-discrepancy sampler proposed in Kingma et al. (2021) that reduces the variance of this estimate by ensuring the time steps are more evenly spaced across the interval [0,1] following Sahoo et al. (2024a). In particular, we sample the time step for each block b∈{1,…,B} and sequence k∈{1,…,K} from a different partition of the uniform interval t(k,b)∼U(k−1)B+b−1KB,(k−1)B+bKB.

This low-discrepancy sampler is used for evaluation. For training, each masking probability may be sampled from a “clipped” range 1−αt∼U[β,ω]. During training, we uniformly sample t∈[0,1] under the low-discrepancy sampler. We then apply a linear interpolation to ensure that the masking probability is linear within the desired range: 1−αt=β+(ω−β)t.

When reporting zero-shot likelihoods on benchmark datasets from Radford et al. (2019) using models trained on OWT, we wrap all sequences to 1024 tokens and do not add [EOS] between sequences following Sahoo et al. (2024a).

C.5. Inference

Generative Perplexity

We report generative perplexity under GPT2-Large from models trained on OWT using a context length of 1024 tokens. Since GPT2-Large uses a context size of 1024, we compute the generative perplexity for samples longer than 1024 tokens using a sliding window with a stride length of 512 tokens.

Nucleus Sampling

Following SSD-LM (Han et al., 2022), we employ nucleus sampling for BD3-LMs and our baselines. For SSD-LM, we use their default hyperparameters p = 0.95 for block size L′=25. For BD3-LMs, AR and MDLM, we use p = 0.9. For SEDD, we find that p = 0.99 works best.

Number of Diffusion Steps

In Table 7, BD3-LMs and MDLM use T=5 K diffusion steps. BD3-LMs and MDLM use efficient sampling by caching the output of the denoising network as proposed by Sahoo et al. (2024a); Ou et al. (2025), which ensures that the number of generation steps does not exceed the sample length L. Put simply, once a token is unmasked, it is never remasked as a result of the simplified denoising model (Suppl. B.3). We use MDLM’s block-wise decoding algorithm for generating variable-length sequences, however these models are not trained with block diffusion. We adopt their default stride length of 512 tokens.

SSD-LM (first row in Table 7) and SEDD use T=5 K diffusion steps. Since block diffusion performs T diffusion steps for each block b∈{1,…,B}, SSD-LM undergoes BT generation steps. Thus to fairly compare with SSD-LM, we also report generative perplexity for T=25 diffusion steps so that the number of generation steps does not exceed the sequence length (second row in Table 7).

Improved Categorical Sampling of Diffusion Models

We employ two improvements to Gumbel-based categorical sampling of diffusion models as proposed by Zheng et al. (2024).

First, we use the corrected Gumbel-based categorical sampling from Zheng et al. (2024) by sampling 64-bit Gumbel variables. Reducing the precision to 32-bit has been shown to significantly truncate the Gumbel variables, lowering the temperature and decreasing the sentence entropy.

Second, Zheng et al. (2024) show that the MDLM sampling time scales with the diffusion steps T, even though the number of generation steps is bounded by the sequence length. For sample length L and vocabulary size V, the sampler requires sampling O(TLV) uniform variables and performing logarithmic operations on them.

We adopt the first-hitting sampler proposed by Zheng et al. (2024) that requires sampling O(LV) uniform variables, and thus greatly improves sampling speed especially when T≫L. The first-hitting sampler is theoretically equivalent to the MDLM sampler and leverages two observations: (1) the transition probability is independent of the denoising network, (2) the transition probability is the same for all masked tokens for a given t. Thus, the first timestep where a token is unmasked can be analytically sampled as follows (assuming a linear schedule where αt=1−t):

tn−1=tnu1/n, (25)

where n∈{L,…,1} denotes the number of masked tokens, un∼U[0,1] and tn−1 corresponds to the first timestep where n−1 tokens are masked.

Variable-Length Sequence Generation

For arbitrary-length sequence generation using BD3-LMs and AR in Table 6, we continue to sample tokens until the following stopping criteria are met:

  1. an [EOS] token is sampled

  2. the average entropy of the the last 256-token chunk is below 4

where criterion 2 are necessary to prevent run-on samples from compounding errors (for example, a sequence of repeating tokens). We find that degenerate samples with low entropy result in significantly low perplexities under GPT2 and lower the reported generative perplexity. Thus, when a sample meets criterion 2, we regenerate the sample when reporting generative perplexity in Table 7.

D SAMPLES

Figure 1:

Figure 1:

Block diffusion sequentially generates blocks of tokens by performing diffusion within each block and conditioning on previous blocks. By combining strength from autoregressive and diffusion models, block diffusion overcomes the limitations of both approaches by supporting variable-length, higher-quality generation and improving inference efficiency with KV caching and parallel sampling.

Figure 5:

Figure 5:

Attention computation using FlexAttention with our proposed custom mask.

Figure 6:

Figure 6:

Sample from MDLM (Sahoo et al., 2024a) of length L = 1024 and T = 5K diffusion steps. The generative perplexity of this sample under GPT2-Large is 69.26 and its entropy is 5.6.

Figure 7:

Figure 7:

Sample from BD3-LM for block size L′ = 16 of length L = 2031 under T = 5K diffusion steps (trained with a context length of L = 1024). The generative perplexity of this sample under GPT2-Large is 24.3, and its entropy is 5.5.

Figure 8:

Figure 8:

Sample from an AR model (Sahoo et al., 2024a) with length L = 2003 (trained with a context length of L = 1024). The generative perplexity of this sample under GPT2-Large is 10.6 and its entropy is 5.5.

ACKNOWLEDGMENTS AND DISCLOSURE OF FUNDING

This work was partially funded by the National Science Foundation under awards DGE-1922551, CAREER awards 2046760 and 2145577, and by the National Institute of Health under award MIRA R35GM151243. Marianne Arriola is supported by a NSF Graduate Research Fellowship under award DGE-2139899 and a Hopper-Dean/Bowers CIS Deans Excellence Fellowship. We thank Databricks MosaicML for providing access to computational resources.

Footnotes

REFERENCES

  1. Achiam Josh, Adler Steven, Agarwal Sandhini, Ahmad Lama, Akkaya Ilge, Florencia Leoni Aleman Diogo Almeida, Altenschmidt Janko, Altman Sam, Anadkat Shyamal, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. [Google Scholar]
  2. Austin Jacob, Daniel D Johnson Jonathan Ho, Tarlow Daniel, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems, 34:17981–17993, 2021. [Google Scholar]
  3. Avdeyev Pavel, Shi Chenlai, Tan Yuhao, Dudnyk Kseniia, and Zhou Jian. Dirichlet diffusion score model for biological sequence generation. In International Conference on Machine Learning, pp. 1276–1301. PMLR, 2023. [Google Scholar]
  4. Bai Yuntao, Kadavath Saurav, Kundu Sandipan, Askell Amanda, Kernion Jackson, Jones Andy, Chen Anna, Goldie Anna, Mirhoseini Azalia, Cameron McKinnon, et al. Constitutional ai: Harmlessness from ai feedback. arXiv preprint arXiv:2212.08073, 2022. [Google Scholar]
  5. Cai Tianle, Li Yuhong, Geng Zhengyang, Peng Hongwu, Jason D Lee Deming Chen, and Dao Tri. Medusa: Simple llm inference acceleration framework with multiple decoding heads. arXiv preprint arXiv:2401.10774, 2024. [Google Scholar]
  6. Campbell Andrew, Benton Joe, Valentin De Bortoli Thomas Rainforth, Deligiannidis George, and Doucet Arnaud. A continuous time framework for discrete denoising models. Advances in Neural Information Processing Systems, 35:28266–28279, 2022. [Google Scholar]
  7. Chang Huiwen, Zhang Han, Jiang Lu, Liu Ce, and William T Freeman. Maskgit: Masked generative image transformer. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 11315–11325, 2022. [Google Scholar]
  8. Chelba Ciprian, Mikolov Tomas, Schuster Mike, Ge Qi, Brants Thorsten, Koehn Phillipp, and Robinson Tony. One billion word benchmark for measuring progress in statistical language modeling, 2014. [Google Scholar]
  9. Chen Boyuan, MonsóD Diego Martí, Yilun Du, Simchowitz Max, Tedrake Russ, and Sitzmann Vincent. Diffusion forcing: Next-token prediction meets full-sequence diffusion. Advances in Neural Information Processing Systems, 37:24081–24125, 2025. [Google Scholar]
  10. Chen Ting, Zhang Ruixiang, and Hinton Geoffrey. Analog bits: Generating discrete data using diffusion models with self-conditioning. arXiv preprint arXiv:2208.04202, 2022. [Google Scholar]
  11. Cohan Arman, Dernoncourt Franck, Doo Soon Kim Trung Bui, Kim Seokhwan, Chang Walter, and Goharian Nazli. A discourse-aware attention model for abstractive summarization of long documents. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), 2018. doi: 10.18653/v1/n18-2097. URL http://dx.doi.org/10.18653/v1/n18-2097. [DOI] [Google Scholar]
  12. Dai Zihang, Yang Zhilin, Yang Yiming, Carbonell Jaime, Le Quoc V, and Salakhutdinov Ruslan. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. [Google Scholar]
  13. Dao Tri, Fu Dan, Ermon Stefano, Rudra Atri, and Christopher Ré. Flashattention: Fast and memoryefficient exact attention with io-awareness. Advances in Neural Information Processing Systems, 35:16344–16359, 2022. [Google Scholar]
  14. Dhariwal Prafulla and Nichol Alex. Diffusion models beat gans on image synthesis, 2021. URL https://arxiv.org/abs/2105.05233. [Google Scholar]
  15. Dieleman Sander, Sartran Laurent, Roshannai Arman, Savinov Nikolay, Ganin Yaroslav, Richemond Pierre H Arnaud, Strudel Robin, Dyer Chris, Durkan Conor, et al. Continuous diffusion for categorical data. arXiv preprint arXiv:2211.15089, 2022. [Google Scholar]
  16. Dong Juechu, Feng Boyuan, Guessous Driss, Liang Yanbo, and He Horace. Flex attention: A programming model for generating optimized attention kernels. arXiv preprint arXiv:2412.05496, 2024. [Google Scholar]
  17. Gloeckle Fabian, Idrissi Badr Youbi, Rozière Baptiste, David Lopez-Paz, and Gabriel Synnaeve. Better & faster large language models via multi-token prediction. arXiv preprint arXiv:2404.19737, 2024. [Google Scholar]
  18. Goel Shrey, Thoutam Vishrut, Marroquin Edgar Mariano, Gokaslan Aaron, Firouzbakht Arash, Vincoff Sophia, Kuleshov Volodymyr, Kratochvil Huong T, and Chatterjee Pranam. Memdlm: De novo membrane protein design with masked discrete diffusion protein language models. arXiv preprint arXiv:2410.16735, 2024. [Google Scholar]
  19. Gokaslan Aaron, Cohen Vanya, Pavlick Ellie, and Tellex Stefanie. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019. [Google Scholar]
  20. Aaron Gokaslan A Cooper Feder, Collins Jasmine, Seguin Landan, Jacobson Austin, Patel Mihir, Frankle Jonathan, Stephenson Cory, and Kuleshov Volodymyr. Commoncanvas: Open diffusion models trained on creative-commons images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8250–8260, 2024. [Google Scholar]
  21. Graves Alex, Srivastava Rupesh Kumar, Atkinson Timothy, and Gomez Faustino. Bayesian flow networks. arXiv preprint arXiv:2308.07037, 2023. [Google Scholar]
  22. Gu Jiatao, Bradbury James, Xiong Caiming, Li Victor OK, and Socher Richard. Non-autoregressive neural machine translation. arXiv preprint arXiv:1711.02281, 2017. [Google Scholar]
  23. Gu Jiatao, Wang Changhan, and Zhao Junbo. transformer Levenshtein. Advances in neural information processing systems, 32, 2019. [PMC free article] [PubMed] [Google Scholar]
  24. Gulrajani Ishaan and Tatsunori B Hashimoto. Likelihood-based diffusion language models. Advances in Neural Information Processing Systems, 36, 2024. [Google Scholar]
  25. Gupta Agrim, Yu Lijun, Sohn Kihyuk, Gu Xiuye, Hahn Meera, Fei-Fei Li, Essa Irfan, Jiang Lu, and Lezama Jose. Photorealistic video generation with diffusion models, 2023. URL https://arxiv.org/abs/2312.06662. [Google Scholar]
  26. Han Xiaochuang, Kumar Sachin, and Tsvetkov Yulia. Ssd-lm: Semi-autoregressive simplex-based diffusion language model for text generation and modular control. arXiv preprint arXiv:2210.17432, 2022. [Google Scholar]
  27. Han Xiaochuang, Kumar Sachin, Tsvetkov Yulia, and Ghazvininejad Marjan. David helps goliath: Inference-time collaboration between small specialized and large general diffusion lms. arXiv preprint arXiv:2305.14771, 2023. [Google Scholar]
  28. Hao Shibo, Sukhbaatar Sainbayar, Su DiJia, Li Xian, Hu Zhiting, Weston Jason, and Tian Yuandong. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, 2024. [Google Scholar]
  29. He Zhengfu, Sun Tianxiang, Wang Kuanning, Huang Xuanjing, and Qiu Xipeng. Diffusionbert: Improving generative masked language models with diffusion models. arXiv preprint arXiv:2211.15029, 2022. [Google Scholar]
  30. Ho Jonathan and Salimans Tim. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022. [Google Scholar]
  31. Ho Jonathan, Jain Ajay, and Abbeel Pieter. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020. [Google Scholar]
  32. Ho Jonathan, Salimans Tim, Gritsenko Alexey, Chan William, Norouzi Mohammad, and Fleet David J. Video diffusion models. arXiv:2204.03458, 2022. [Google Scholar]
  33. Hoogeboom Emiel, Gritsenko Alexey A, Bastings Jasmijn, Poole Ben, Rianne van den Berg, and Tim Salimans. Autoregressive diffusion models. arXiv preprint arXiv:2110.02037, 2021a. [Google Scholar]
  34. Hoogeboom Emiel, Nielsen Didrik, Jaini Priyank, Forré Patrick, and Welling Max. Argmax flows and multinomial diffusion: Learning categorical distributions. Advances in Neural Information Processing Systems, 34:12454–12465, 2021b. [Google Scholar]
  35. Israel Daniel, Grover Aditya, and Van den Broeck Guy. Enabling autoregressive models to fill in masked tokens. arXiv preprint arXiv:2502.06901, 2025. [Google Scholar]
  36. Kingma Diederik, Salimans Tim, Poole Ben, and Ho Jonathan. Variational diffusion models. Advances in neural information processing systems, 34:21696–21707, 2021. [Google Scholar]
  37. Kong Deqian, Zhao Minglu, Xu Dehong, Pang Bo, Wang Shu, Honig Edouardo, Si Zhangzhang, Li Chuan, Xie Jianwen, Xie Sirui, et al. Scalable language models with posterior inference of latent thought vectors. arXiv preprint arXiv:2502.01567, 2025. [Google Scholar]
  38. Kou Siqi, Hu Lanxiang, He Zhezhi, Deng Zhijie, and Zhang Hao. CLLMs: Consistency large language models. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=8uzBOVmh8H. [Google Scholar]
  39. Li Xiang, Thickstun John, Gulrajani Ishaan, Liang Percy S, and Hashimoto Tatsunori B. Diffusion-lm improves controllable text generation. Advances in Neural Information Processing Systems, 35: 4328–4343, 2022. [Google Scholar]
  40. Li Xiner, Zhao Yulai, Wang Chenyu, Scalia Gabriele, Eraslan Gokcen, Nair Surag, Biancalani Tommaso, Ji Shuiwang, Regev Aviv, Levine Sergey, et al. Derivative-free guidance in continuous and discrete diffusion models with soft value-based decoding. arXiv preprint arXiv:2408.08252, 2024. [Google Scholar]
  41. Liu Haotian, Li Chunyuan, Wu Qingyang, and Lee Yong Jae. Visual instruction tuning. Advances in neural information processing systems, 36:34892–34916, 2023. [PMC free article] [PubMed] [Google Scholar]
  42. Lou Aaron, Meng Chenlin, and Ermon Stefano. Discrete diffusion modeling by estimating the ratios of the data distribution. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=CNicRIVIPA. [Google Scholar]
  43. Marcus Mitch, Santorini Beatrice, and Marcinkiewicz Mary Ann. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. [Google Scholar]
  44. Merity Stephen, Xiong Caiming, Bradbury James, and Socher Richard. Pointer sentinel mixture models, 2016. [Google Scholar]
  45. Nisonoff Hunter, Xiong Junhao, Allenspach Stephan, and Listgarten Jennifer. Unlocking guidance for discrete state-space diffusion and flow models. arXiv preprint arXiv:2406.0157 2, 2024. [Google Scholar]
  46. Ou Jingyang, Nie Shen, Xue Kaiwen, Zhu Fengqi, Sun Jiacheng, Li Zhenguo, and Li Chongxuan. Your absorbing discrete diffusion secretly models the conditional distributions of clean data. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=sMyXP8Tanm. [Google Scholar]
  47. Paperno Denis, Kruszewski Germán, Lazaridou Angeliki, Ngoc Quan Pham Raffaella Bernardi, Pezzelle Sandro, Baroni Marco, Boleda Gemma, and Fernandez Raquel. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, Berlin, Germany, August 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/P16-1144. [Google Scholar]
  48. Peebles William and Xie Saining. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4195–4205, 2023. [Google Scholar]
  49. Radford Alec, Wu Jeffrey, Child Rewon, Luan David, Amodei Dario, Sutskever Ilya, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. [Google Scholar]
  50. Sahoo Subham Sekhar, Arriola Marianne, Gokaslan Aaron, Marroquin Edgar Mariano, Rush Alexander M, Schiff Yair, Chiu Justin T, and Kuleshov Volodymyr. Simple and effective masked diffusion language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024a. URL https://openreview.net/forum?id=L4uaAR4ArM. [Google Scholar]
  51. Sahoo Subham Sekhar, Gokaslan Aaron, De Sa Christopher, and Kuleshov Volodymyr. Diffusion models with learned adaptive noise. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024b. URL https://openreview.net/forum?id=loMa99A4p8. [Google Scholar]
  52. Sahoo Subham Sekhar, Morris John Xavier, Gokaslan Aaron, Biswas Srijeeta, Shmatikov Vitaly, and Kuleshov Volodymyr. Zero-order diffusion guidance for inverse problems, 2024c. URL https://openreview.net/forum?id=JBgBrnhLLL. [Google Scholar]
  53. Sanchez Guillaume, Fan Honglu, Spangher Alexander, Levi Elad, Ammanamanchi Pawan Sasanka, and Biderman Stella. Stay on topic with classifier-free guidance. arXiv preprint arXiv:2306.17806, 2023. [Google Scholar]
  54. Santilli Andrea, Severino Silvio, Postolache Emilian, Maiorca Valentino, Mancusi Michele, Marin Riccardo, and Rodola Emanuele. Accelerating transformer inference for translation via parallel decoding. In Rogers Anna, Boyd-Graber Jordan, and Okazaki Naoaki (eds.), Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12336–12355, Toronto, Canada, July 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.acl-long.689. URL https://aclanthology.org/2023.acl-long.689. [DOI] [Google Scholar]
  55. Schiff Yair, Subham Sekhar Sahoo Hao Phung, Wang Guanghan, Boshar Sam, Dalla-torre Hugo, Bernardo P de Almeida, Alexander Rush, Thomas Pierrot, and Volodymyr Kuleshov. Simple guidance mechanisms for discrete diffusion models. arXiv preprint arXiv:2412.10193, 2024. [PMC free article] [PubMed] [Google Scholar]
  56. Shi Jiaxin, Han Kehang, Wang Zhe, Doucet Arnaud, and Titsias Michalis. Simplified and generalized masked diffusion for discrete data. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=xcqSOfHt4g. [Google Scholar]
  57. Si Phillip, Bishop Allan, and Kuleshov Volodymyr. Autoregressive quantile flows for predictive uncertainty estimation. In International Conference on Learning Representations, 2022. [Google Scholar]
  58. Si Phillip, Chen Zeyi, Subham Sekhar Sahoo Yair Schiff, and Kuleshov Volodymyr. Semiautoregressive energy flows: exploring likelihood-free training of normalizing flows. In International Conference on Machine Learning, pp. 31732–31753. PMLR, 2023. [Google Scholar]
  59. Sohl-Dickstein Eric Weiss Jascha, Maheswaranathan Niru, and Ganguli Surya. Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pp. 2256–2265. PMLR, 2015. [Google Scholar]
  60. Song Jiaming, Meng Chenlin, and Ermon Stefano. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020. [Google Scholar]
  61. Song Yang and Ermon Stefano. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019. [Google Scholar]
  62. Su Jianlin, Lu Yu, Pan Shengfeng, Murtadha Ahmed, Wen Bo, and Liu Yunfeng. Roformer: Enhanced transformer with rotary position embedding. arXiv preprint arXiv:2104.09864, 2021. [Google Scholar]
  63. Sun Haoran, Yu Lijun, Dai Bo, Schuurmans Dale, and Dai Hanjun. Score-based continuous-time discrete diffusion models. arXiv preprint arXiv:2211.16750, 2022. [Google Scholar]
  64. Tian Keyu, Jiang Yi, Yuan Zehuan, Peng Bingyue, and Wang Liwei. Visual autoregressive modeling: Scalable image generation via next-scale prediction. Advances in neural information processing systems, 37:84839–84865, 2025. [Google Scholar]
  65. Uria Benigno, Murray Iain, and Larochelle Hugo. A deep and tractable density estimator. In International Conference on Machine Learning, pp. 467–475. PMLR, 2014. [Google Scholar]
  66. Vaswani Ashish, Shazeer Noam, Parmar Niki, Uszkoreit Jakob, Jones Llion, Aidan N Gomez Łukasz Kaiser, and Polosukhin Illia. Attention is all you need. Advances in neural information processing systems, 30, 2017. [Google Scholar]
  67. Wang Yingheng, Schiff Yair, Gokaslan Aaron, Pan Weishen, Wang Fei, De Sa Christopher, and Kuleshov Volodymyr. InfoDiffusion: Representation learning using information maximizing diffusion models. In Krause Andreas, Brunskill Emma, Cho Kyunghyun, Engelhardt Barbara, Sabato Sivan, and Scarlett Jonathan (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 36336–36354. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/wang23ah.html. [Google Scholar]
  68. Wu Tong, Fan Zhihao, Liu Xiao, Zheng Hai-Tao, Gong Yeyun, yelong shen Jian Jiao, Li Juntao, zhongyu wei Jian Guo, Duan Nan, and Chen Weizhu. AR-diffusion: Auto-regressive diffusion model for text generation. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=0EG6qUQ4xE. [Google Scholar]
  69. Ye Jiacheng, Gong Shansan, Chen Liheng, Zheng Lin, Gao Jiahui, Shi Han, Wu Chuan, Jiang Xin, Li Zhenguo, Bi Wei, et al. Diffusion of thoughts: Chain-of-thought reasoning in diffusion language models. arXiv preprint arXiv:2402.07754, 2024. [Google Scholar]
  70. Zhang Xiang, Zhao Junbo Jake, and LeCun Yann. Character-level convolutional networks for text classification. In NIPS, 2015. [Google Scholar]
  71. Zhao Lingxiao, Ding Xueying, and Akoglu Leman. Pard: Permutation-invariant autoregressive diffusion for graph generation. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=x4Kk4FxLs3. [Google Scholar]
  72. Zheng Kaiwen, Chen Yongxin, Mao Hanzi, Liu Ming-Yu, Zhu Jun, and Zhang Qinsheng. Masked diffusion models are secretly time-agnostic masked models and exploit inaccurate categorical sampling. arXiv preprint arXiv:2409.02908, 2024. [Google Scholar]

RESOURCES