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 categories as ‘one-hot’ column vectors in the space for the simplex . Let the -th category denote a special [MASK] token, where is its one-hot vector. We define as a sequence of tokens, where for all tokens , and use to denote the set of all such sequences. Throughout the work, we simplify notation and refer to the token sequence as and an individual token as . Finally, let Cat (·;) be a categorical distribution with probability .
2.1. Autoregressive Models
Consider a sequence of tokens drawn from the data distribution . Autoregressive (AR) models define a factorized distribution of the form
| (1) |
where each is parameterized directly with a neural network. As a result, AR models may be trained efficiently via next token prediction. However, AR models take steps to generate tokens due to the sequential dependencies.
2.2. Discrete Denoising Diffusion Probabilistic Models
Diffusion models fit a model to reverse a forward corruption process (Sohl-Dickstein et al., 2015; Ho et al., 2020; Sahoo et al., 2024b). This process starts with clean data and defines latent variables for , which represent progressively noisier versions of . Given a discretization into steps, we define and . For brevity, we drop j from and below; in general, denotes the time step preceding .
The D3PM framework (Austin et al., 2021) defines as a Markov forward process acting independently on each token where is the diffusion matrix. The matrix can model various transformations, including masking, random token changes, and related word substitutions.
An ideal diffusion model is the reverse of the process . The D3PM framework defines as
| (2) |
where the denoising base model predicts clean token given the noisy sequence , and the reverse posterior is defined following Austin et al. (2021) in Suppl. B.3.
The diffusion model 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):
| (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 into blocks of length with (we assume that B is an integer). We denote each block from token at positions to for blocks as for simplicity. Our likelihood factorizes over blocks as
| (4) |
and each is modeled using discrete diffusion over a block of tokens. Specifically, we define a reverse diffusion process as in (2), but restricted to block :
| (5) |
We obtain a principled learning objective by applying the NELBO in (3) to each term in (4) to obtain
| (6) |
where each is an instance of (3) applied to . Since the model is conditioned on , we make the dependence on , explicit in . We denote the sum of these terms (itself a valid NELBO).
Model Architecture
Crucially, we parameterize the base denoiser models using a single neural network . The neural network outputs not only the probabilities , but also computational artifacts for efficient training. This will enable us to compute the loss in parallel for all blocks in a memory-efficient manner. Specifically, we parameterize using a transformer (Vaswani et al., 2017) with a block-causal attention mask. The transformer is applied to L tokens, and tokens in block b attend to tokens in blocks 1 to . When is trained, yields predictions for denoised tokens in block based on noised and clean .
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 , to denote the keys and values at block , and we define to support these as input and output. The full signature of is
| (7) |
where are the predictions for the clean , and , is the key-value cache in the forward pass of , and , are keys and values cached on a forward pass of over (hence the inputs and , are equivalent).
3.2. Efficient Training and Sampling Algorithms
Ideally, we wish to compute the loss in one forward pass of . However, observe that denoising requires a forward pass on this noisy input, while denoising the next blocks requires running on the clean version . 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 , for the full sequence in a first forward pass . We then compute denoised predictions for all blocks using . Each token passes through twice.
Vectorized Training
Naively, we would compute the logits by applying in a loop times. We propose a vectorized implementation that computes in one forward pass on the concatenation of clean data with noisy data obtained by applying a noise level to each block . We design an attention mask for 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 to sample from the conditional distribution , where the context conditioning is generated using cross-attention with pre-computed keys and values ,. 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 , # of blocks , forward |
| noise process , model , loss |
| repeat |
| Sample |
| , , ⊳ KV cache |
| , , |
| Let |
| Take gradient step on |
| until converged |
Algorithm 2.
Block Diffusion Sampling
| Input: # blocks , model , diffusion sampling algorithm SAMPLE |
| , , ⊳ output & KV cache |
| for to do |
| , , |
| end for |
| return |
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 for tokens where is a one-hot encoding of the mask token, and is a strictly decreasing function in , with and . We employ the linear schedule where the probability of masking a token at time is . 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):
| (8) |
where is the instantaneous rate of change of under the continuous-time extension of (3) that takes . The NELBO is tight for but becomes a looser approximation of the true negative log-likelihood for (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 (see Suppl. B.4). Surprisingly, we find a two point perplexity gap between our block diffusion model for 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 tokens, our block diffusion model for only computes the cross-entropy for masked tokens so that . 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 by designing the forward process to fully mask tokens, i.e. . 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 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 | ≤ 25.56 |
| + tuned schedule | 22.88 |
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 . 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 . We denote a batch of sequences as , with each . We obtain the batch NELBO estimator below, where is sampled in sequence and block :
| (9) |
The variance of the gradient estimator over batches for each batch is:
| (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 for ,. 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 and approximately 1 after the specified range . Consequently, is linear within the range: .
5.3. Data-Driven Clipped Schedules Across Block Sizes
As the optimal mask rates may differ depending on the block size , 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 .
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 ,. 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 that minimizes both the variance of the NELBO and the test perplexity.
Table 2:
Perplexities (PPLs; ↓) and variances of the NELBO (Var. NELBO; ↓). Models are trained on LM1B using a linear schedule for 65B tokens, then finetuned for 10B tokens.
|
|
|
|
|
|||||
|---|---|---|---|---|---|---|---|---|
| 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 for 850K gradient steps and fine-tune under varying 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 ,. 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 | ≤ 30.60 |
| ≤ 29.83 | |
| ≤ 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 | ≤ 22.27 |
| ≤ 21.68 | |
| ≤ 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 | 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 | 798 | 9982 |
We also examine the sample quality of BD3-LMs through quantitative and qualitative analyses. In Table 7, we generate sequences of lengths , 2048 and measure their generative perplexity under GPT2-Large. To sample 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 ,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.
|
|
|
|||
|---|---|---|---|---|
| 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 | 33.4 | 1K | 31.5 | 2K |
| 30.4 | 1K | 28.2 | 2K | |
| 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 diffusion steps per block, matching their experimental setting (yielding ≥40K NFEs), and 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 , 16.
| Noise schedule | PPL | Var. NELBO |
|---|---|---|
|
| ||
|
L’ = 4 Clipped |
29.21 |
6.24 |
| 29.38 | 10.33 | |
| Linear | 30.18 | 23.45 |
| Logarithmic | 30.36 | 23.53 |
| Square root | 31.41 | 26.43 |
|
| ||
|
L’ = 16 Clipped |
31.42 |
3.60 |
| 31.12 | 3.58 | |
| Linear | 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 , we compare with logarithmic and square root schedules that also encourage heavy masking. As lighter masking is optimal for , we compare with square and cosine schedules.
Efficiency of Training Algorithm
In the BD3-LM training algorithm (Sec. 3.2), we compute using two options. We may perform two forward passes through the network (precomputing keys and values for the full sequence , 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 is factorized over blocks, which we refer to as for simplicity, drawn from the data distribution . Specifically, we will factorize the likelihood over blocks of length , then perform diffusion in each block over discretization steps. Let to denote the Kullback-Leibler divergence, , be shorthand for and . We derive the NELBO as follows:
| (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 for states . Consider the noise schedule function , which is a strictly decreasing function in satisfying and . Denote the mask index as . The diffusion matrix is defined by Austin et al. (2021) as:
| (12) |
The diffusion matrix for the forward marginal is:
| (13) |
where
B.1. Forward Process
Under the D3PM framework (Austin et al., 2021), the forward noise process applied independently for each token is defined using diffusion matrices as
| (14) |
B.2. Reverse Process
Let denote the diffusion matrix for the forward marginal. We obtain the reverse posterior using the diffusion matrices:
| (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 in Eq. 11. We employ the SUBS-parameterization proposed in Sahoo et al. (2024b) which simplifies the denoising model for masked diffusion. In particular, we enforce the following constraints on the design of by leveraging the fact that there only exists two possible states in the diffusion process .
Zero Masking Probabilities. We set (as the clean sequence doesn’t contain masks).
Carry-Over Unmasking. The true posterior for the case where is (if a token is unmasked in the reverse process, it is never remasked). Thus, we simplify the denoising model by setting .
As a result, we will only approximate the posterior . Let denote a token in the -th position in block . The diffusion loss term becomes:
is simply the discrete-time diffusion loss for the block ; hence, from Sahoo et al. (2024a) (Suppl. B.1), we get:
| (16) |
Lastly, we obtain a tighter approximation of the likelihood by taking the diffusion steps (Sahoo et al., 2024a), for which :
| (17) |
For the continuous time case, Sahoo et al. (2024a) (Suppl. A.2.4) show the reconstruction loss reduces to 0 as . Using this, we obtain:
| (18) |
The prior loss also reduces to 0 because which ensures and ; see Sahoo et al. (2024a) (Suppl. A.2.4).
Finally, we obtain a simple objective that is a weighted average of cross-entropy terms:
| (19) |
The above NELBO is invariant to the choice of noise schedule ; 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 ,. The block diffusion NELBO is equivalent to the AR NLL when modeling a single token:
| (20) |
Recall that our denoising model employs the SUBS-parameterization proposed in Sahoo et al. (2024b). The “carry-over unmasking” property ensures that , as an unmasked token is simply copied over from from the input of the denoising model to the output. Hence, (20) reduces to following:
| (21) |
For single-token generation we recover the autoregressive NLL.
B.5. Tightness of the NELBO
For block sizes , we show that . Consider , where we recover the autoregressive NLL (see Suppl B.4):
| (22) |
Consider the ELBO for block size :
| (23) |
We show that , and this holds for all by induction. Let correspond to the token in position of block . We derive the below inequality:
| (24) |
B.6. Specialized Attention Masks
We aim to model conditional probabilities for all blocks simultaneously by designing an efficient training algorithm with our transformer backbone. However, modeling all B conditonal terms requires processing both the noised sequence and the conditional context for all .
Rather than calling the denoising network times, we process both sequences simultaneously by concatenating them as input to a transformer. We update this sequence of length tokens using a custom attention mask for efficient training.
The full attention mask is comprised of four smaller attention masks:
where and are used to update the representation of and is used to update the representation of . We define these masks as follows:
(Block-diagonal mask): Self-attention mask within noised blocks
(Offset block-causal mask): Cross-attention to conditional context
(Block-causal mask): Attention mask for updating
We visualize an example attention mask for and block size in 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 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:
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 and batch size .
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 tokens. Since most examples consist of only a single sentence, block diffusion modeling for larger block sizes 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 for 850K gradient steps. Then, we fine-tune under varying 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 and sequence from a different partition of the uniform interval .
This low-discrepancy sampler is used for evaluation. For training, each masking probability may be sampled from a “clipped” range . During training, we uniformly sample under the low-discrepancy sampler. We then apply a linear interpolation to ensure that the masking probability is linear within the desired range: .
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 . 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 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 . 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 K diffusion steps. Since block diffusion performs diffusion steps for each block , SSD-LM undergoes generation steps. Thus to fairly compare with SSD-LM, we also report generative perplexity for 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 , even though the number of generation steps is bounded by the sequence length. For sample length and vocabulary size , the sampler requires sampling uniform variables and performing logarithmic operations on them.
We adopt the first-hitting sampler proposed by Zheng et al. (2024) that requires sampling uniform variables, and thus greatly improves sampling speed especially when . 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 . Thus, the first timestep where a token is unmasked can be analytically sampled as follows (assuming a linear schedule where ):
| (25) |
where denotes the number of masked tokens, and corresponds to the first timestep where 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:
an [EOS] token is sampled
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:
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:
Attention computation using FlexAttention with our proposed custom mask.
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:
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:
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
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Dhariwal Prafulla and Nichol Alex. Diffusion models beat gans on image synthesis, 2021. URL https://arxiv.org/abs/2105.05233. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- Gokaslan Aaron, Cohen Vanya, Pavlick Ellie, and Tellex Stefanie. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019. [Google Scholar]
- 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]
- Graves Alex, Srivastava Rupesh Kumar, Atkinson Timothy, and Gomez Faustino. Bayesian flow networks. arXiv preprint arXiv:2308.07037, 2023. [Google Scholar]
- 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]
- Gu Jiatao, Wang Changhan, and Zhao Junbo. transformer Levenshtein. Advances in neural information processing systems, 32, 2019. [PMC free article] [PubMed] [Google Scholar]
- Gulrajani Ishaan and Tatsunori B Hashimoto. Likelihood-based diffusion language models. Advances in Neural Information Processing Systems, 36, 2024. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- Ho Jonathan and Salimans Tim. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022. [Google Scholar]
- Ho Jonathan, Jain Ajay, and Abbeel Pieter. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020. [Google Scholar]
- Ho Jonathan, Salimans Tim, Gritsenko Alexey, Chan William, Norouzi Mohammad, and Fleet David J. Video diffusion models. arXiv:2204.03458, 2022. [Google Scholar]
- 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]
- 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]
- 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]
- Kingma Diederik, Salimans Tim, Poole Ben, and Ho Jonathan. Variational diffusion models. Advances in neural information processing systems, 34:21696–21707, 2021. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Merity Stephen, Xiong Caiming, Bradbury James, and Socher Richard. Pointer sentinel mixture models, 2016. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Si Phillip, Bishop Allan, and Kuleshov Volodymyr. Autoregressive quantile flows for predictive uncertainty estimation. In International Conference on Learning Representations, 2022. [Google Scholar]
- 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]
- 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]
- Song Jiaming, Meng Chenlin, and Ermon Stefano. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020. [Google Scholar]
- Song Yang and Ermon Stefano. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- 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]
- Zhang Xiang, Zhao Junbo Jake, and LeCun Yann. Character-level convolutional networks for text classification. In NIPS, 2015. [Google Scholar]
- 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]
- 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]








