Introduction
Discrete diffusion models are a class of generative models that extend the success of diffusion probabilistic models to data in discrete state spaces (such as text sequences, tokens, or categorical data). Like their continuous counterparts, discrete diffusion models define a noising (forward) process that gradually corrupts data into random noise and a learned denoising (reverse) process that transforms noise back into data. The key difference is that all variables are discrete, requiring different corruption mechanisms and training objectives than Gaussian diffusion models. This report provides a deep dive into discrete diffusion models, covering their methodology (training procedures, inference algorithms, objective functions, and data considerations) and theoretical foundations (why and how they correctly learn target distributions, both unconditional and conditional). We include rigorous mathematical derivations and highlight influential papers in this area – notably “Simple and Effective Masked Diffusion Language Models” by Sahoo et al. (NeurIPS 2024) and “Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution” by Lou et al. (ICML 2024), among others. Throughout, we adopt a formal but accessible approach, with equations and citations to ground the discussion in established results.
Methodology of Discrete Diffusion Models
Forward (Noising) Process
At the heart of a diffusion model is a Markov forward process that adds noise to the data in small steps. In discrete diffusion, this forward process is defined by a sequence of transition probabilities that gradually convert an initial data sample into a high-entropy “noise” sample . Formally, one specifies a family of conditional distributions for , where is the original data and is a fully corrupted version. Each lies in the same discrete space as (e.g. sequences of tokens from a vocabulary). The forward process is typically chosen to be easy to simulate and to have a known stationary distribution (the distribution as ). For example, might randomly replace some of the symbols in with noise symbols, gradually destroying information (Simple and Effective Masked Diffusion Language Models) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). In general, one can represent the forward step by a transition matrix over the discrete state space, so that:
meaning is drawn from a categorical distribution obtained by applying matrix to the one-hot representation of (Simple and Effective Masked Diffusion Language Models). The product determines the overall corruption from to , and is designed such that as increases, approaches a stationary noise distribution (e.g. uniform over all symbols, or all tokens replaced by a special noise token) (Simple and Effective Masked Diffusion Language Models). Ensuring a stationary distribution means that for sufficiently large , is essentially independent of .
Absorbing state (masking) vs. general corruption: Early works allowed general transition matrices (e.g. any stochastic matrix ) to corrupt data (Simple and Effective Masked Diffusion Language Models). However, a particularly effective choice is to use an absorbing state – introduce a special noise symbol (like a mask token [MASK]) that tokens eventually transition into (Simple and Effective Masked Diffusion Language Models) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). For example, in text diffusion one can define that at each step, any token either stays the same or turns into [MASK] with some probability. Once a token becomes [MASK] (the absorbing state), it tends to remain [MASK] at later steps. This masked forward process has equal to an all-masked sequence with high probability. Empirically, focusing on masking noise has yielded the best performance in language diffusion models (Simple and Effective Masked Diffusion Language Models). More broadly, other corruption schemes have been explored: uniform noise (each symbol can turn into any symbol uniformly at random) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces), or noise guided by embedding proximity (to mimic Gaussian noise in an embedding space) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). Each choice of influences the difficulty of the denoising task; for instance, multinomial diffusion with uniform transition probabilities was an early approach ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces), while later work showed that introducing structured noise (like masks or similarity-based perturbations) can improve results ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces).
As an illustrative example, consider an absorbing forward process for text. Let be a schedule (in ) controlling the corruption at step . We could define for each token position that: with probability , the token is replaced by [MASK], and with probability it stays the same. If a token is already [MASK], it remains [MASK] (absorbing state). If we increase over time, more tokens get masked at each step. By , the sequence is fully [MASK] with high probability (the stationary distribution is the all-mask state). In a continuous-time view, one can think of as the fraction of original content remaining at time . The forward process then “interpolates” between the original data (at , ) and pure noise (at , ) (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). Sahoo et al. (2024) formalize this interpolation perspective by writing the marginal distribution of given as:
where is represented as a one-hot vector and is the base noise distribution (e.g. puts probability 1 on [MASK] for absorbing diffusion) (Simple and Effective Masked Diffusion Language Models). This means each token of equals the original token with probability , or otherwise is drawn from (the noise). By ( small), is nearly pure noise. This Markov chain is the inference model or forward variational distribution in a latent-variable view () ().
Reverse (Denoising) Process and Model Parameterization
The generative model is the reverse-time Markov chain that learns to invert the forward noising process. It starts from the final noise distribution and aims to reconstruct data by going through reverse steps: , where is a known prior (usually taken to be the stationary distribution of the forward process, e.g. all tokens [MASK] or uniform noise) () (). Each transition is modeled by a neural network (with parameters ) that takes a partially noised input and produces a distribution over the previous step . In discrete diffusion, these conditional distributions are typically categorical over the discrete state space (for example, a categorical distribution over all vocabulary tokens for each position in a sequence) (). The neural network often outputs logits or probabilities for each possible symbol at each position. Because and are of the same dimensionality (e.g. same sequence length), one common architecture is a Transformer encoder that processes (together with an embedding of the time step ) and produces a categorical distribution for each token position of . This resembles a masked language model predicting masked tokens, except that the network conditions on a noised input rather than a fully observed one.
Conditional independence and factorization: A simplifying assumption often used is that given , the distribution of factorizes over components (e.g. positions) (). This is exact in special cases (e.g. if the forward process treats each coordinate independently and the model approximates the exact posterior), or it can be an approximation to make modeling tractable. In practice, although the network output for each token position may be dependent (due to self-attention across the sequence), the final predicted distribution is usually factorized as , meaning the model outputs a categorical distribution for each token position independently. This yields a tractable loss and sampling scheme, akin to treating each corrupted token as a separate classification task. Notably, Austin et al. (2021) introduced Discrete Denoising Diffusion Probabilistic Models (D3PMs) in which all these distributions are categorical and often factorized over data dimensions () ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces).
Parameterization via direct prediction: An important design in diffusion models is how the network parameterizes the conditional . In continuous diffusion, one can predict the noise or the original clean data; similarly, in discrete diffusion, one can either predict the previous state directly or attempt to predict the original (clean data) from the current noisy and then derive from that prediction (). The latter approach is a form of Rao-Blackwellization that can simplify training objectives. For instance, one can train a network to predict the original data (or its distribution) given the current noisy state and time . Then, using the known forward process probabilities , one can compute an induced distribution for . Sahoo et al. (2024) adopt this strategy for masked diffusion: if at a certain position is not [MASK], the model assumes it is already a clean token and leaves it unchanged ( in that case) (Simple and Effective Masked Diffusion Language Models). If is [MASK], the model uses its predicted (which is essentially a guess for the original token at that position) to sample what was. In their parameterization, for a masked position one sets:
where is the one-hot for [MASK], and is a one-hot (or distribution) for the model’s predicted original token (Simple and Effective Masked Diffusion Language Models). Intuitively, if at time a token is masked, then at time it could either have still been [MASK] or have been the true token – the model’s prediction supplies the probability of the true token. This yields an efficient sampler and a simplified loss function, because the model essentially learns to directly reconstruct from for masked positions. Indeed, Sahoo et al.’s objective becomes a weighted mixture of masked language modeling (MLM) losses, i.e. cross-entropy terms for predicting original tokens at various masking levels (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). We will discuss this in more detail under Objective Functions.
Training Procedures and Objective Functions
Discrete diffusion models are typically trained by maximum likelihood, using a variational inference framework analogous to continuous diffusion models. The model’s log-likelihood is intractable to compute directly (because of the latent sequence ), so training optimizes the evidence lower bound (ELBO). We introduce latent variables for the forward noisy states and write the ELBO via Jensen’s inequality:
This expected log-probability can be expanded and rearranged into a sum of Kullback–Leibler (KL) divergences between the model’s transition distributions and the forward process posteriors at each step () (). After some algebra, the ELBO (to maximize) is given by:
Here is the true posterior distribution of the previous state given the current corrupted state and the original data, which is computed from the forward process via Bayes’ rule, and is the model’s estimate for that posterior (). The first term is the KL between the forward process’s final state distribution and the chosen prior ; this can be made zero by design (setting for the stationary distribution) (). The remaining terms involve KL divergences at each time step and a final reconstruction term . In practice, these terms correspond to familiar loss components:
- Each is a conditional cross-entropy loss measuring how well the model predicts the distribution of the less-noisy state given a noisy input . Expanding the KL, we get . The entropy is fixed by the forward process, so minimizing this KL is equivalent to minimizing the expected negative log-likelihood of the true under the model. In other words, the model is trained to denoise one step: given a sample , predict the distribution of its predecessor . This can be seen as a classification task (predicting ’s value for each component) and is often implemented as such.
- The final term is a reconstruction loss from the first noising step back to the data. It ensures the model can reconstruct from a slightly noised version .
Summing these yields the overall training objective (maximize ELBO or equivalently minimize the sum of these losses). Many works simplify or reweight this objective. For instance, Ho et al. (2020) in continuous diffusion found that a simpler weighted objective (treating each step equally) worked well. In discrete diffusion, Austin et al. (2021) introduced an auxiliary cross-entropy loss in addition to the ELBO, effectively directly training the model to predict from intermediate samples (a technique akin to denoising score matching) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). Sahoo et al. (2024) derive a particularly simple loss for the absorbing-state case: by integrating out intermediate states, they obtain a mixture of masked language modeling losses, which is a weighted average of cross-entropy terms for predicting the original tokens at various masking ratios (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). Concretely, their Rao-Blackwellized objective avoids needing to explicitly model every ; instead, the model learns to predict original tokens for all levels of noise in one go, similar to a BERT-style MLM but with carefully chosen weights corresponding to a valid variational bound (Simple and Effective Masked Diffusion Language Models). This not only simplified training but also improved performance, closing much of the gap between diffusion and autoregressive models on language modeling benchmarks (Simple and Effective Masked Diffusion Language Models).
Another recent training strategy is the score-matching approach adapted to discrete spaces. Instead of explicitly maximizing log-likelihood via an ELBO, one can train the model to match the “score function” of the data distribution. In continuous diffusion, score matching trains a neural network to output the gradient of log-density for noisy data at noise level ; this is equivalent to denoising autoencoding and has theoretical advantages. However, in discrete spaces, is not defined. Lou et al. (2024) propose to learn probability ratios instead of scores: the model outputs for each state and a neighboring state a value approximating the ratio (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). This collection of ratios is called the concrete score, analogous to the score function in continuous space (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). They restrict “neighbors” to those that differ in one token (Hamming distance 1), which defines a local neighborhood graph over the discrete space (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). The Score Entropy loss they introduce is a generalization of cross-entropy that trains to match the true ratio for all neighbor pairs (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou) (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). In an equation, if we treat as fixed and sum over neighbors , the score entropy loss term is:
which has the form of a cross-entropy (second term) plus a regularization (first term) (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). Minimizing this encourages to equal the true ratio. This approach does not require computing the normalizing constant of and sidesteps some difficulties of direct likelihood training (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou) (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). After learning , one can construct a discrete diffusion sampler (via a continuous-time Markov chain) that uses these learned ratios to propagate from noise to data. We will discuss this method further in the Relevant Papers section, as it is a key innovation for discrete diffusion.
In summary, training a discrete diffusion model typically involves simulating the forward noising process on data samples and training the reverse model to predict either the previous step or the original data at various noise levels. The loss function can be seen as a sum of classification losses (cross-entropies) for each diffusion step. Modern approaches simplify this by merging many classification steps into a single objective (e.g. the masked language modeling mixture in MDLM (Simple and Effective Masked Diffusion Language Models)) or by introducing new losses like score entropy that directly target the data distribution ratios without an explicit ELBO.
Inference and Sampling Mechanisms
Once a discrete diffusion model is trained, generating a new sample is achieved by ancestral sampling along the reverse Markov chain. One first draws from the prior (by design this is easy, e.g. sample each token as [MASK] or from a uniform distribution). Then, for , one draws . The final generated by this process is a sample from , the model’s learned distribution. In essence, the model iteratively denoises the sample, removing a little noise at each step until a complete data sample emerges (Simple and Effective Masked Diffusion Language Models). Because each step is typically inexpensive (a forward pass of a Transformer over a short sequence), the main cost is that such steps are required. Diffusion models often use to steps in continuous domains; in discrete domains, can also be large, but recent work aims to reduce or accelerate sampling. Lou et al. (2024) formulate their diffusion in continuous time and can trade off speed for quality – e.g. they report achieving good text quality with up to 32× fewer network evaluations than an autoregressive model by using longer diffusion time steps ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). This is analogous to using larger step sizes or advanced ODE/SDE solvers in continuous diffusion to speed up generation.
A distinctive feature of discrete diffusion (especially masked diffusion) is that sampling does not necessarily generate tokens in left-to-right order as autoregressive models do. Instead, the generation can fill in many parts in parallel or in arbitrary order. For example, Sahoo et al.’s MDLM starts with an all [MASK] sequence and at each reverse step randomly selects some masked positions to replace with predicted tokens (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). Over many steps, the sequence gradually transitions from all masks to all real tokens in a random order of reveal. This non-sequential sampling can be advantageous: it has the potential for faster partial generation and avoids the left-to-right bias, allowing the model to plan or rethink earlier tokens while sampling later ones. In practice, however, diffusion models often still require many iterations, so the wall-clock speed can be slower than a single-pass autoregressive model. Research is ongoing into adaptive schedules where the model can dynamically decide to stop diffusion early when the sample has converged, or skip certain steps, to speed up generation without sacrificing quality.
Another benefit of the diffusion framework is in controllable generation and infilling. Since diffusion generates by gradually refining noise, one can easily incorporate conditions or constraints by changing the sampling procedure:
- Conditional diffusion (global conditions): If we want to condition on some attribute (e.g. class label or a prompt embedding), we can condition the model on that information at every step. In implementation, this could be done by providing as an additional input to the Transformer (e.g. concatenating a text prompt, or adding a learned embedding for the label). The training would then maximize the conditional log-likelihood , which is achieved by simply including in the conditioning of the reverse process during training as well. The forward process typically does not corrupt (we assume the condition is given and fixed), so is available at all times. The theoretical training objective in the conditional case is analogous to the unconditional case but conditioned on ; at optimum the model will learn under appropriate conditions, as we discuss later. Classifier-guidance (as used in continuous diffusion) is also possible: one trains both an unconditional and a conditional model (or a joint model that can take or null), and at sampling time, the predictions can be adjusted to favor the conditional likelihood (this was not yet heavily explored in text diffusion, as direct conditioning has been sufficient in many cases).
- Infilling and partial observations: Diffusion models naturally handle infilling (e.g. generating missing parts of a sequence given other parts). One way to do this is to treat known parts as already denoised and only diffuse the unknown parts. For example, to fill in a missing span in a sentence (with given prefix and suffix), one can start the diffusion process from an initial state where the known tokens are fixed (not masked) and the missing positions are masked. During the forward process, we never corrupt the known prefix/suffix (i.e. for those positions so they remain unchanged), while the unknown positions follow the standard noising schedule. Thus will contain the prefix/suffix intact and random noise (masks) elsewhere. The reverse model is then applied as usual, but it is always conditioned on (or aware of) the known parts and only generates content in the masked regions. This yields an efficient infilling algorithm that was demonstrated by Lou et al. (2024) – their model can perform controllable text infilling with high quality, matching nucleus sampling baselines ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). In image terms, this is analogous to image inpainting using diffusion by keeping certain pixels fixed.
- Arbitrary length generation: Discrete diffusion models can also generate variable-length outputs. One approach is to include a special end-of-sequence token in the vocabulary and allow the model to determine when to terminate a sequence. MDLM, for instance, can generate “arbitrary lengths of text semi-autoregressively” (Simple and Effective Masked Diffusion Language Models). In practice, they might achieve this by iteratively generating a block of tokens and then allowing the model to continue further if a continuation mask is present. Another approach is to treat sequence length as part of the diffusion state – e.g. start with a maximal length of masks and let the model learn to either fill a position with [END] (indicating the sequence should end there) or a real token, thereby effectively learning length as well. The details vary by implementation, but diffusion does not inherently require a fixed length the way some architectures do.
Data considerations: When applying discrete diffusion to real data, a few practical considerations arise:
- Large vocabulary sizes: In language modeling, the vocabulary can be 30k tokens or more. This means the output distribution is high-dimensional (for each position, it’s a distribution over 30k possibilities). Training and sampling remain feasible with modern hardware, but this is more memory-intensive than a continuous diffusion where one typically predicts just two parameters (mean and variance) per dimension. Some works reduce complexity by operating at character-level or using smaller subword sets, or by factorizing the output distribution if possible. Efficient implementation of the softmax for very large vocabularies (e.g. using sampling or clustering techniques) can help when scaling up.
- Balancing noise schedule: If the forward process noise is too aggressive (e.g. turning tokens to masks too quickly), the model might struggle to learn a good reverse step. Conversely, if noise is too gentle (small changes each step) but is limited, the model might not reach a fully random prior and hence cannot sample freely. Schedules (the choice of or over time) are often tuned or learned. A common choice is to space out the noise such that some fixed amount of information (say an equal fraction of entropy) is lost at each step – this was the idea behind the mutual information schedule in Austin et al. (2021) () (). That schedule aims to make each denoising task equally difficult, which can stabilize training.
- Order-agnostic generation: Discrete diffusion by design is not tied to a particular generation order (unlike autoregressive left-to-right). Some models like Autoregressive Diffusion Models (ARDM) by Hoogeboom et al. (2021) interpret diffusion in a way that generalizes orderings of generation ([2110.02037] Autoregressive Diffusion Models - arXiv). ARDM showed that by carefully structuring the forward process (e.g. an ordering where certain tokens are scheduled to be generated earlier or later), one can recover autoregressive models as a special case of diffusion. While ARDM is a bit tangential (it blurs the line between AR and diffusion by randomizing order), it underscores that diffusion models can generate in flexible orders. In practice, most diffusion language models either generate fully in parallel (all tokens refined together) or random order (mask-based filling). One can also simulate left-to-right generation with diffusion: e.g. start by masking all tokens, then unmask one token at a time in sequence from left to right. This is essentially absorbing diffusion with an imposed order bias. It may not leverage the full parallelism but can incorporate diffusion’s ability to revisit earlier decisions (since one could allow already generated tokens to be corrupted again slightly to adjust them if needed, unlike strict AR).
- Pretrained embeddings and reusing models: An interesting line is connecting diffusion models with pretrained masked language models. For example, DiffusionBERT (He et al., 2023) builds on a BERT architecture to create a generative model (Improving Generative Masked Language Models with Diffusion …). It leverages the knowledge in BERT (which is trained on denoising tasks) and fine-tunes it for generation via a diffusion-like procedure. This kind of approach can bootstrap the diffusion model with strong linguistic knowledge, combining the benefits of traditional MLMs with diffusion sampling. Sahoo et al. (2024) also note that their masked diffusion objective can be seen as a principled variational formulation of masked language modeling (Simple and Effective Masked Diffusion Language Models) – thus one can view generative BERTs as a special case or precursor of diffusion, and possibly use their weights as initialization for faster training.
In summary, inference in discrete diffusion involves simulating a Markov chain from noise to data using the learned conditional distributions. The process is flexible, allowing non-monotonic generation order and easy conditioning or infilling. The trade-off is that many iterative steps are required, but ongoing research (e.g. continuous-time formulations or partial parallelism) is mitigating this. Next, we delve into why these procedures correctly learn the desired distributions, i.e. the theoretical guarantees underpinning discrete diffusion modeling.
Theoretical Guarantees in Discrete Diffusion Modeling
Despite the complexity of the training procedure, discrete diffusion models have solid theoretical foundations ensuring that, in the limit of perfect modeling and enough steps, they can learn the data distribution (both unconditionally and conditionally). We outline the key theoretical justifications, drawing from probability theory, Markov chains, and information theory.
Convergence to the Data Distribution (Unconditional Case)
A well-trained diffusion model is guaranteed to produce samples from the data distribution under certain idealized conditions. Intuitively, if at every reverse step the model produces the exact conditional distribution that matches the true posterior (the distribution of the previous clean state given the current noisy state and the original data), then by running the reverse Markov chain, one exactly inverts the forward noising process. This means starting from (the noise prior), after perfect reverse transitions one obtains distributed as . Formally, one can show that if (i.e. the prior is the forward process’s stationary distribution) and for all , then the marginal equals the true data distribution. This is a consequence of the Chapman-Kolmogorov equation for Markov chains and the fact that when the conditionals are matched. In other words, the generative process becomes the time-reversal of the forward process, which by construction started from . Therefore at the end of the reverse chain has the same law as the start of the forward chain (the data) () ().
The training objective (ELBO) is designed such that its global optimum is achieved when these conditionals match exactly. Maximizing the ELBO is equivalent to minimizing the KL divergence between the data distribution and the model distribution , since diffusion models belong to the class of latent variable models for which the ELBO is a tight bound on the log-likelihood when the posterior matches () (). In fact, one can show the ELBO gap (difference between data log-likelihood and ELBO) equals (). Thus, if the model perfectly matches all those conditional distributions ( for each ), the ELBO equals the true log-likelihood and exactly. While in practice we cannot reach zero KL due to finite model capacity and finite data, this theoretical optimum provides a clear target: the training will push toward as far as the model class allows.
Another perspective uses the idea of detailed balance and Markov chain reversibility. If one were to design a Markov chain whose stationary distribution is , one way is to ensure detailed balance: for some transition probabilities, where is the target stationary distribution. Diffusion models do not explicitly enforce detailed balance (the forward process is not stationary w.rt , it goes to noise instead), but they achieve a related condition in a time inhomogeneous manner. Essentially, diffusion breaks a difficult distribution transformation (noise data) into a sequence of small, tractable transitions. Each transition is learned such that it locally matches the true data ratio. For example, consider one step: we want to equal the Bayes posterior . By Bayes’ rule:
This posterior is intractable in general (since involves summing over many paths), but the model implicitly learns to approximate it by observing many examples of . At optimum, the model’s odds for vs. an alternative given should equal the true odds, i.e.:
This simplifies (via the above Bayes expression) to a ratio involving and , which are known from the forward process. Thus the model’s conditionals are forced to encode the correct likelihood ratios between possible predecessors, which is exactly what is needed to reconstruct the data distribution. In fact, Lou et al. (2024) take this idea further by directly parameterizing such ratios (their concrete score); their score entropy loss explicitly trains the model to satisfy for neighboring states (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou) (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). If all local ratio constraints hold on a connected state space, the global distribution must match as well (this is analogous to how knowing the gradient of everywhere determines up to normalization in continuous spaces). Thus, score-based methods and ELBO-based methods are ultimately enforcing that the model’s local transition probabilities align with the data distribution, guaranteeing correct global behavior.
Information-theoretically, one can view the diffusion training as gradually minimizing the divergence between model and data. Initially, at (complete noise), the model and data distributions are both (by design) equal to the noise prior, so they trivially match. As we go one step backward, the model introduces some information (based on ) to produce ; the KL between the model’s distribution and the true distribution is reduced in proportion to how well the model matches that step. Summing over all steps, the total KL between and is bounded by the sum of stepwise KLs (this is essentially the telescoping sum in the ELBO). By minimizing each term, we ensure no large divergence is introduced at any intermediate step, hence the overall divergence shrinks. In the limit of infinite capacity and training, one would expect . This provides a consistency guarantee: diffusion models are asymptotically consistent estimators of the data distribution under the ELBO objective.
Another guarantee comes from viewing diffusion as a kind of iterative refinement procedure. Each reverse step can be seen as a small denoising autoencoder that adds a bit of mutual information with the original data. If denotes the mutual information between and , the forward process causes to drop with increasing (since more noise means less information about the original remains). A well-trained reverse process will increase the mutual information as decreases (we get closer to the original). In an ideal scenario, between and itself is maximal (trivial), and (complete noise independent of ). Diffusion guarantees that the total information gain across all reverse steps can equal the information lost by the forward steps. In contrast, a single-step generative model (like a VAE) might not be able to recover all information in one go if it has limited capacity. Diffusion spreads the reconstruction task across many steps, each handling a small piece of the puzzle. This intuition is backed by the ELBO formulation: each can be seen as how much additional information about is correctly captured at step . The sum of these KLs relates to the difference in entropy between data and noise. By minimizing the KLs, the model ensures that it recovers the entropy difference – effectively learning all the structure in the data by the time it reaches . In information-theoretic terms, diffusion models achieve near equality in the data processing inequality chain from noise to data, which means no information about is lost in the reverse generative process. This underpins their ability to match complex distributions given sufficient model size and diffusion steps.
Conditional Distribution Learning
For conditional discrete diffusion models (learning for some condition ), the theoretical guarantees are analogous, assuming is always provided and not corrupted. The model now aims to reproduce the conditional data distribution given . The forward process can be defined as , usually with the property that is unchanged throughout (i.e. where only is noised from ). The reverse model is factorized as . Training maximizes via a conditional ELBO which has the same form except all distributions are now conditioned on . Because the condition is given, the optimal solution is for for each . If achieved, then by the same reasoning as the unconditional case, . In practice, this means if we train the model on a large dataset of pairs (e.g. sentences with class labels or parallel translations, etc.), the model will learn to generate faithful to . Diffusion has an advantage here: since generation is not one-step, it can often better handle ambiguous or broad conditions by introducing appropriate variability at different steps. Also, classifier-free guidance (setting a higher weight on conditional vs. unconditional predictions) can be applied to discrete models similarly to continuous ones, to trade off fidelity to vs. diversity. The theoretical guarantee remains that as long as the model can represent the conditional distributions and we minimize the KL at each step, the chain will produce correct conditional samples.
One subtle point is when is a partial observation of (like a prefix in text or a patch in an image). In that case, one typically incorporates into the state itself (for instance, and prefix tokens are never corrupted). The model then only predicts the unknown parts. The correctness guarantee still holds because effectively we are modeling the distribution of the missing parts given the observed parts – which is exactly the conditional distribution the data defines. By keeping the known parts fixed in the forward process, we ensure the reverse model sees them as conditioning context and never alters them. Thus, the model learns correctly. Indeed, diffusion models naturally accommodate Bayesian inference in this sense: starting from a prior over all variables, fixing some variables (conditioning) and denoising the rest yields the conditional distribution for the rest. This is a powerful property stemming from the Markov chain structure and the ability to clamp certain variables.
Connection to Probability Theory and Markov Chains
The soundness of discrete diffusion models can be framed in terms of Markov chain theory. The forward process is a Markov chain that by design is ergodic or at least reaches a stationary distribution by . Often is approximately independent of for large . The reverse chain is a time-inhomogeneous Markov chain (different transition kernels at each time step) that aims to invert this transformation. A fundamental result used implicitly is that if a forward chain has a tractable transition kernel, one can write an analytic form for the time-reversal of that chain, which is another Markov process (generally with time-reversed kernels and dependencies on the future state). In continuous-time diffusion (SDEs), this is given by the Fokker-Planck time reversal formula; in discrete time, it’s given by Bayes’ rule for each two-step of the chain. Discrete diffusion training essentially performs approximate inference to find this reversed Markov chain.
The existence of a reverse chain that exactly yields the data distribution is guaranteed by the fact that the data distribution is the initial distribution of the forward chain. More concretely, is arbitrary (the empirical data). By running the forward chain, one obtains a joint distribution . The reverse of this exact joint is which obviously, when started from , returns . Our model seeks to equal this reverse joint. The ELBO being tight means for all those latent trajectories, implying marginally . Thus, one way to see diffusion models is as follows: they are performing a structured variational inference where the approximate posterior is forced to be in the same family as a parameterized prior (the reverse chain), and at optimum the approximate posterior equals the true posterior. This is in contrast to, say, a VAE where the approximate posterior might be too restricted to ever match the true posterior, leaving a gap. In diffusion, by making the reverse chain flexible (deep network) and the time granularity fine enough, one can represent the true reverse process almost arbitrarily well.
From a Markov chain mixing perspective, the forward chain mixes the data into noise, and the reverse chain unmixes it. Because the forward chain is typically chosen to be irreducible and with a known stationary distribution (e.g. uniform or all-mask), it has a unique stationary law. If is large enough, is effectively drawn from that stationary law regardless of . This justifies using a simple prior (we often take exactly equal to this stationary law, making the KL at zero) (). Then the major task is to learn the intermediate kernels. Each is in fact also a Markov kernel (of the backward-in-time chain given the true posterior). The model doesn’t depend on explicitly, but is trained to approximate the aggregate posterior: . In other words, it marginalizes out . This aggregate posterior is exactly the reverse kernel of the unconditional Markov chain that evolves from to . By learning to match it, we ensure the unconditional reverse chain (which is what we use for sampling) has the correct marginal distribution. This alignment can also be seen as solving a sequence of minimization problems: for each , is the minimizer of . This decouples the learning across time steps in theory (though in practice the network is shared and trained jointly). Each of these problems is convex in the space of distributions, and the global optimum is when all are solved. Thus we have a set of fixed-point equations which define the correct model. This viewpoint assures that if our parameterization can represent the true conditionals, gradient descent on the ELBO will converge (in the limit of data and capacity) to the solution where equals the true reverse chain.
Information-Theoretic Considerations
Discrete diffusion models also have interpretations in terms of entropy and information. The forward process increases entropy of the distribution (each step adds uncertainty/noise). The data distribution typically has low entropy (structure, syntax, etc., in language) compared to pure noise. By , the entropy is high (close to maximum if is uniform). The reverse process must decrease entropy step by step, concentrating probability mass into the patterns that form valid data. This sounds like it might violate the -theorem (entropy non-decreasing in a closed system), but here the system isn’t closed: the model injects information learned from the dataset at each step, effectively acting as an “external intervention” that reduces uncertainty. The ELBO can be seen as tracking this entropy reduction. In fact, one can derive that the total KL divergence equals (telescope sum), plus possibly the at (). Each term is non-negative by Gibbs’ inequality, so any mismatch at a given time contributes to the final divergence. One can interpret as an excess entropy the model fails to remove at step . If all such mismatches are zero, the model has perfectly removed the noise and uncertainty introduced by the forward step, leading to a final Kullback-Leibler of zero (perfect modeling).
Another information-theoretic view is to consider the Fisher information or score matching. In continuous domains, minimizing score matching loss corresponds to matching the Fisher divergence between model and data, which is weaker than KL but under some conditions can still guarantee the model converges to data distribution (since the only distribution whose score function matches the data’s is the data distribution itself, up to a constant). In discrete domains, the “score” is replaced by these ratio constraints as discussed (the concrete score). Lou et al. (2024) proved that their score entropy loss, when minimized, ensures the model’s generative process has the same stationary distribution as the data, thus achieving an equivalent guarantee to likelihood-based training but via a different route. The advantage is that score entropy provides a more stable gradient signal in discrete space (no issues with delta distributions or large jumps) ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution) ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). It’s also connected to maximizing entropy in certain conditional distributions to avoid trivial solutions.
Finally, consider the extreme case . Then diffusion is just a single-step VAE: adds noise and tries to remove it. The ELBO then has one KL and one recon term. It might be hard to optimize or might get stuck with a small latent bottleneck. As increases, we spread the task out. In the limit as and each step is infinitesimally small (a continuous-time chain), one can prove (for continuous diffusions) that the only solution of matching all local conditionals is the true distribution. For discrete, one can conceive a similar limit where at each infinitesimal step, only an infinitesimal fraction of a token is corrupted (this would correspond to using a continuous-time Markov jump process). In that limit, one can derive a differential equation (master equation) for how the distribution evolves. The stationary solution of the reverse-time master equation will be if the model matches the generator of that master equation. This is basically the approach Lou et al. use with CTMC theory. Sahoo et al. note that their simpler approach avoids requiring CTMC theory by working with finite steps and an absorbing state directly (Simple and Effective Masked Diffusion Language Models), but both approaches are compatible with the same theoretical endpoint.
In conclusion, discrete diffusion models are backed by strong theoretical guarantees similar to continuous diffusion: by designing a corruption process that is reversible in theory and training a powerful model to approximate that reversal, we ensure convergence to the data distribution in the idealized limit. Unconditionally this means ; conditionally it means . These guarantees rely on sufficient model capacity and proper minimization of the objective, but they provide a solid foundation explaining why diffusion works for discrete data, even in cases (like language) where alternative approaches long dominated.
Mathematical Derivations and Deeper Insights
To solidify understanding, here we dive into some mathematical details of the learning process and distributions in discrete diffusion, providing derivations for key formulas mentioned above and interpreting them rigorously.
Derivation of the ELBO and Training Objective
Starting from the joint distribution of data and latents, , and the variational posterior , we derive the evidence lower bound. We have:
by Jensen’s inequality (treating the summation as expectation under ). Now we consider the right-hand side of the ELBO. Expanding the log:
Now we add and subtract certain terms to telescope the sum. Notice (this is just rewriting the chain in reverse order by Bayes’ rule for each step). So:
Recognizing each term as a KL (since is the negative entropy of which is constant w.rt ), we get:
This matches the earlier expression (with the sign flipped for a minimization viewpoint) () (). Each expectation is taken under the joint (which factorizes as ). Thus, the loss breaks into terms for each .
For a concrete case, say : the term is . If is the last step, basically says, given final noise and original , what was ? But if is maximal noise, likely equals [MASK] for most positions except maybe some chance of being the original if is tiny. The model must learn that distribution. For smaller , these posteriors can be more concentrated (less ambiguous).
We can derive one simple case explicitly: one-step diffusion (). Then is our corruption (e.g. mask some tokens of ), and is the model’s reconstruction distribution. The ELBO becomes . If we set , the second term vanishes. So training just maximizes , which is exactly a masked language modeling objective (predict original from a corrupted version ). This shows how MLM can be seen as a trivial diffusion model with one step. It’s consistent with Sahoo et al.’s observation that their diffusion objective reduces to MLM losses (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). For multiple , diffusion strings together many such objectives for progressively harder corruptions.
Posterior Computation for Discrete Forward Processes
A crucial quantity in training is , the posterior distribution of the previous state given the current state and original data. We use Bayes’ rule:
All terms on the RHS are (in principle) computable from the forward process. is the distribution of an intermediate state after steps of corruption applied to . And is similarly after steps. In many discrete setups, these have closed forms. For example, in an independent masking process with probability at each step, can be described as: each token of survives unmasked up to time with probability , and if it gets masked the first time at step , by time it will be mask (since mask is absorbing). If instead we had a non-absorbing uniform noise, a token might change to something else many times. In general, one can compute by multiplying the transition matrices: if is one-hot for token , then is the entry of (Simple and Effective Masked Diffusion Language Models). For large , this tends to (the stationary distribution entry for ) (Simple and Effective Masked Diffusion Language Models).
Given these, can often be factorized over components if the corruption is independent per component. For instance, if is obtained by possibly masking each token of , then knowing and , the posterior for each token is: if (the th token) is non-mask, then must equal (because that token was not corrupted at step ). If is mask, then was either mask (if it was already corrupted before) or it was the original token which got corrupted at step . Thus,
Given the process: at step , token is masked with probability , not masked with , we plug in: , and (at it’s still the original, if it hasn’t been corrupted earlier). Also is the probability that original token got masked by time . If we assume no other source of noise, that is exactly (the token got masked at step in this scenario). Thus, the above probability becomes . However, this simplistic calculation ignored that the token might have been masked earlier. A more precise calculation would consider the event that it survived unmasked till and then got masked at . In fact, (the probability it was masked by or at step ). Meanwhile, (survived unmasked up to ). And . So the formula gives:
This is the posterior probability that if we see a mask at time , it was the original token just one step ago (and got masked at step ). The complement of this probability is that it was already a mask at . The model doesn’t directly know , but it can learn to predict it. In fact, if the network outputs a guess for that position, one can form the model’s equivalent of this posterior by replacing with in the formula. That’s precisely what Sahoo et al. did in their parameterization (Simple and Effective Masked Diffusion Language Models), using in place of and plugging into the fraction. This yields the same structure as the true posterior, but with the true data replaced by the model’s prediction, enabling end-to-end training without needing at inference.
Concrete Score Matching and Probability Ratio Estimation
We now give more mathematical insight into the score entropy method by Lou et al. Instead of modeling directly, they model ratios for neighboring states of . If one could get these ratios exactly equal to for all neighbors, it implies and are proportional on a densely connected graph of states, which in turn implies (because one can reach any state from any other through a series of neighbor steps, multiplying ratios). The challenge is to enforce these infinitely many constraints. In practice, one samples pairs and trains a network to output (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). This resembles an energy-based model without normalization, since if we had such that , then . So one could have and try to enforce . They avoid explicitly parameterizing or computing a partition function (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou).
The score entropy loss was given as (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou):
To derive intuition, consider optimizing this w.rt for fixed distribution . For a fixed , the inner sum is minimized when for each neighbor , . This gives , hence at optimum. In other words, the loss is zero iff equals the true ratio for all pairs. It’s also strictly convex in each (for positive domain), so the solution is unique. Thus minimizing score entropy indeed forces the ratios to match. The name “score entropy” comes from the similarity to cross-entropy: if we interpret (for neighbors ) as analogous to a target probability (not normalized across though), the loss tries to fit to that target. The extra term (without log) prevents trivial zero solutions and ensures convexity.
Once is learned, how to generate samples? Lou et al. use a continuous-time Markov chain where from state , the exit rate to a neighbor is proportional to (which the model provides up to scale). This defines a generator matrix for a CTMC that, under mild conditions, will have as stationary distribution. Simulating this CTMC from an initial noise state eventually yields a sample from . They call this Score Entropy Discrete Diffusion (SEDD) ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). In practice, they discretize the time or use an ODE solver. The theoretical guarantee is that if is exact, the CTMC’s stationary distribution is the data distribution, so samples are asymptotically exact. This method is more mathematically involved than the standard discrete diffusion, but it showcases an alternative route to guarantee convergence by directly focusing on reversibility and stationarity (ensuring detailed balance in a local sense).
Estimation Techniques and Model Interpretations
From a parameter estimation perspective, both ELBO training and score entropy are doing moment matching in disguise. ELBO training via gradient descent will adjust such that for each and each value of , the expected sufficient statistics under equal those under . In simple terms, if the model consistently overestimates the probability of a certain token in when is given, the gradient will decrease the logits for that token. This is very similar to how an HMM or other latent model would be trained with EM to match posterior counts. The difference is we do it in one stage with direct gradients. Score entropy similarly ensures that for each neighbor relation , the model’s predicted ratio matches the empirical ratio. One can see this as matching the model’s local equilibrium with the data’s local equilibrium.
Finally, a probabilistic interpretation of discrete diffusion is that it defines a path distribution over a space of trajectories from noise to data. Each sample from the data can be seen as being generated by first drawing a noisy trajectory . Different diffusion models (different matrices) generate different kinds of trajectories. Some might have high variance (random jumps), others more structured gradual changes. The training aligns the path probabilities with those that would be observed if one started from real data and diffused it. This has a flavor of pathwise maximum likelihood, ensuring that not just the endpoints (noise and data) match in distribution, but the intermediate correlations are learned as well. This rich structure allows diffusion models to capture complex multi-modal distributions effectively. For instance, if data has two modes, the diffusion model will learn to go into one or the other mode as decreases, whereas a VAE with one latent step might struggle if modes are far apart. The multi-step nature gives a kind of iterative mixture decomposition of the distribution.
In conclusion, the mathematical underpinnings of discrete diffusion are robust: the combination of variational reasoning, Markov chain analysis, and score matching principles provides multiple viewpoints that all confirm that these models, when trained properly, will learn the target distribution. The derivations above illustrate in detail how the objectives are constructed and why minimizing them yields the desired result. They also highlight how discrete diffusion links to classic ideas like Bayesian inference (through posteriors), energy-based modeling (through ratios), and EM (through moment matching of conditionals).
Relevant Papers and Advances in Discrete Diffusion Modeling
Research on discrete diffusion models is rapidly evolving. Here we analyze two key papers in depth and mention other influential works that have shaped the field:
1. Simple and Effective Masked Diffusion Language Models (Sahoo et al., NeurIPS 2024)
Goal and Contributions: This work, often abbreviated as MDLM, focuses on applying diffusion to language modeling and closing the gap with autoregressive (AR) models. Prior to this, diffusion models significantly underperformed AR models (like Transformers) in terms of log-likelihood (perplexity) on text (Simple and Effective Masked Diffusion Language Models). Sahoo et al. show that with a simple masked discrete diffusion approach and modern training techniques, diffusion LMs can achieve competitive perplexity – in fact, they reach a new state-of-the-art among diffusion-based LMs, approaching that of AR models (Simple and Effective Masked Diffusion Language Models). They specifically concentrate on an absorbing-state diffusion (using [MASK] noise) and derive a Rao-Blackwellized objective that simplifies training while remaining a valid ELBO (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models). This objective ends up being a weighted mixture of classical masked language modeling losses, which means they can leverage efficient training of an encoder-only (BERT-like) model and still perform generation via iterative sampling.
Methodology: The forward process in MDLM is pure masking. They found that supporting more general noising (like random token replacement) did not yield better results than just masking-out tokens, so they restrict to that case (Simple and Effective Masked Diffusion Language Models). The reverse model is a Transformer encoder that at each step replaces some masks with actual tokens. To allow arbitrary length output, they design the system to generate an end-of-sequence token when needed, and they can start from a sequence of masks longer than the training sequences to get longer outputs (semi-autoregressively appending text) (Simple and Effective Masked Diffusion Language Models). One highlight is their sampler: instead of strictly following the Markov chain step by step for all positions, they use a random order schedule to choose which masked positions to fill next (Simple and Effective Masked Diffusion Language Models). This is still a valid sampling scheme (it corresponds to a specific way of interleaving diffusion steps for different positions) and it allows them to generate a token roughly in steps for a sequence of length if they fill one token per step. In practice, they also experiment with filling multiple tokens per step to speed up sampling. This flexibility is something AR models lack (which are bound to fill one token per step left-to-right).
Rao-Blackwellized Objective: The core theoretical contribution is deriving a simplified loss. By analytically marginalizing out the intermediate in the ELBO (instead of having the network predict it directly), they obtain a training loss that directly ties to predicting . Essentially, they use the formula (), which we saw earlier, and by plugging this into the KL terms, they manage to cancel out the need to predict . The final loss is a sum (over ) of terms of the form with appropriate weights. Each such term looks like a masked language model loss: predict the original sentence from a partially masked version . Indeed, they report “our objective has a simple form – it is a mixture of classical masked language modeling losses” (Simple and Effective Masked Diffusion Language Models). This is significant because it means one can pre-train a diffusion model exactly like a BERT, using all the tricks known for MLM (like efficient batching of random masks, etc.), and still have a principled likelihood-based model. By contrast, earlier diffusion models had to sample a particular time per training example or treat different times separately with a weighting. MDLM effectively trains all noise levels together in one go (similar to continuous diffusions where one can sample a noise level per image, but here done in a combined way due to linearity of expectations).
Results: On language benchmarks (WikiText-103, One Billion Words), MDLM yields perplexities much lower than previous diffusion models and approaching Transformer AR models (Simple and Effective Masked Diffusion Language Models). They even demonstrate generation on DNA sequences, suggesting the method is broadly applicable to other discrete sequences (Simple and Effective Masked Diffusion Language Models | OpenReview). Importantly, they show they can generate coherent text and handle long-range structure better in some cases than AR models, likely because the model can fill in any part of the sequence at any time (mitigating exposure bias and long-distance error propagation issues of AR generation). The paper also provides a detailed ablation, confirming that techniques like large batch training, learning rate schedules, and model scaling (the “modern engineering practices”) contributed to their strong results (Simple and Effective Masked Diffusion Language Models). Overall, MDLM establishes that diffusion is a viable alternative for language generation, not just a toy: “simple masked discrete diffusion is more performant than previously thought” (Simple and Effective Masked Diffusion Language Models).
Relation to other work: MDLM builds on Austin et al. (2021) D3PM ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces) but simplifies the noise process to masking only. They also compare to Diffusion-LM (Li et al. 2022) which was an earlier approach embedding discrete text into continuous space for diffusion – MDLM’s fully discrete approach performs better on likelihood since it doesn’t suffer from embedding approximation issues. They cite that absorbing diffusion connects diffusion to autoregressive models and masked models ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces), which they leverage. They also manage to avoid continuous-time machinery like Lou et al. by focusing on the discrete-time formulation (Simple and Effective Masked Diffusion Language Models). In short, MDLM is a milestone showing that with the right objective and training recipe, discrete diffusion can compete with autoregression in NLP tasks.
2. Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (Lou, Meng, Ermon, ICML 2024)
Goal and Contributions: This paper addresses the theoretical gap in applying score-based diffusion to discrete data. Standard diffusion in continuous spaces relies on score matching (learning ) which doesn’t directly translate to discrete domains. Previous attempts to do discrete diffusion didn’t fully leverage the score matching view and often had inferior performance. Lou et al. introduce the Score Entropy Discrete Diffusion (SEDD) framework, which generalizes score matching via the concept of concrete scores (the probability ratios) (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou) and the score entropy loss. The key contribution is showing that this approach dramatically improves the performance of discrete diffusion models on language modeling – they report 25–75% perplexity reduction compared to prior diffusion LMs, making diffusion competitive with and even outperforming some autoregressive models of similar size ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). They specifically highlight beating GPT-2 and generating text with higher fidelity without needing tricks like temperature, and enabling controlled generation easily ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution).
Methodology: SEDD defines a continuous-time Markov process on discrete states. Instead of having discrete steps, they consider an infinitesimal generator where any single token can randomly change to another token (a neighbor in the state graph) at some small rate. By integrating these changes over time, one recovers a diffusion-like process. The score of the model in this context is defined not as a gradient, but as the ratio of stationary probabilities between neighboring states (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). They denote for neighbor of . As explained, neighbors are chosen as states that differ by one token to keep the graph manageable (Language Modeling by Estimating the Ratios of the Data Distribution | Aaron Lou). The network is trained with the score entropy loss to fit these ratios. This is done by sampling random data and (presumably) sampling a random position and a random replacement token at that position as a neighbor, then applying the loss. A challenge is that is not known exactly (because we don’t know for an arbitrary not in the dataset). They likely approximate this by assuming if is in the dataset and differs by one token, is low unless also appears in data. In practice, perhaps they treat as empirical frequency and similarly for some . Or they turn it around and try to enforce consistency: if both and are seen in data, then the ratio should match their frequency ratio. They might also simulate a forward/backward process to get ratio estimates. (The exact training procedure details would be in the paper – given the results, it clearly worked effectively.)
After training , to generate text they simulate the continuous-time reverse chain. In simple terms, one can start from an all-[MASK] state and continuously “simulate” jumps according to the learned rates until a stopping time when an equilibrium is reached. Because it’s continuous-time, they can use fewer steps by taking larger integration steps if needed. They demonstrate that by adjusting the integration discretization, one can sample with fewer model evaluations at some cost to quality, thus giving a compute-quality trade-off ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution).
Theoretical insight: By relying on score matching, SEDD avoids directly parameterizing . This means they don’t need an autoregressive decomposition or an ELBO; they only need to ensure is expressive enough to cover the needed ratios. This is somewhat like training an energy-based model, but instead of chasing a moving target via MCMC, they have a direct objective. The “score entropy” is provably proper (it has global minimum at the true data ratios) and more stable than naive score matching for discrete data (which would involve differences of one-hot probabilities). They integrate this with stochastic differential equations for discrete spaces (the analog of Langevin dynamics but on a discrete state space). This is quite novel, as it merges diffusion probabilistic modeling with the theory of continuous-time Markov chains.
Results: Empirically, SEDD’s results are impressive: they mention up to 6–8× better generative perplexity than an un-annealed GPT-2, meaning their samples are more likely under the data distribution than GPT-2’s without temperature tuning ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). Generative perplexity refers to how well the generated text matches real text statistics, and getting such a boost indicates SEDD produces less degenerate or repetitive text. They also achieve controlled generation (like infilling) inherently by the nature of the diffusion process without needing special training ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). Their perplexities (evaluating ) are also very low, competitive with standard Transformers for similar sizes ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution). These results position SEDD as a breakthrough that addresses the previous shortcomings of diffusion in language.
Comparison with MDLM: Both MDLM and SEDD drastically improve discrete diffusion for text, but their approaches differ. MDLM stays within the discrete-time ELBO framework and finds simplifications there, whereas SEDD introduces a new continuous-time, score-based framework. MDLM’s advantage is simplicity and leveraging existing infrastructure (it’s closer to how one would train a BERT, just with a different objective weighting). SEDD’s advantage is theoretical elegance and possibly even better performance, since it directly learns the “ideal” object (the data ratio). Sahoo et al. actually remark that their method avoids needing CTMC theory “for ex. SEDD” (Simple and Effective Masked Diffusion Language Models), implying SEDD, while effective, is more complex theoretically. Both papers together show the richness of approaches in discrete diffusion: one can succeed via a variational route or a score-matching route.
Other Influential Works:
- D3PM (Austin et al., 2021) – Introduced the general framework for discrete diffusion models ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). They explored different noise types (uniform, Gaussian-like, absorbing) and even combined ELBO with an auxiliary loss ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). D3PM demonstrated generation on text (character-level) and images (CIFAR-10) and showed that discrete diffusion could reach likelihoods on par with continuous diffusion for images ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces). This was a foundational paper that inspired many subsequent works. For example, their introduction of absorbing states connected diffusion to autoregressive models ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces), laying groundwork for masked diffusion later.
- Hoogeboom et al., 2021 (Multinomial Diffusion & ARDM) – They earlier proposed a specific case of discrete diffusion (multinomial diffusion) and the Autoregressive Diffusion Models which unified ordering. Their work showed that by carefully choosing the corruption process (even an ordering bias), one could improve performance on text ([PDF] Generative Diffusion Models in Discrete-State Spaces). While not as widely cited as D3PM, it brought up the idea of using diffusion for sequences and how it relates to AR generation.
- Diffusion-LM (Li et al., 2022) – This work took a different angle by mapping discrete text to a continuous space (via an autoencoder or embedding) and then applying continuous diffusion in that space (Diffusion-LM Improves Controllable Text Generation - arXiv). They managed controllable generation by guiding the diffusion in latent space. The benefit was reusing powerful continuous techniques, but the drawback was the inference needed to go back to discrete text. Diffusion-LM achieved promising results in controllability (like generating text with certain attributes) and showed diffusion can outperform some plug-and-play methods. However, its likelihood was not as high as AR models. The later discrete approaches (like MDLM, SEDD) have since surpassed Diffusion-LM by eliminating the “translation” to continuous. Nonetheless, Diffusion-LM is influential as a first demonstration of diffusion for text and for introducing self-conditioning (where the model conditions on its own intermediate prediction to improve consistency, an idea also applicable in discrete diffusion).
- DiffusionBERT (He et al., 2023) – This paper improved generative masked language modeling by combining BERT pretraining with a diffusion-like generation scheme (Improving Generative Masked Language Models with Diffusion …). They found that a vanilla BERT can be adapted to generate text by iteratively masking and reconstructing. This is essentially a discrete diffusion process with a pre-trained model. Their results indicated that such a model can generate texts with diversity and some quality approaching a GPT-2 in certain settings (Improving Generative Masked Language Models with Diffusion …). It didn’t fully match AR perplexity, but it offered a cheaper way (in terms of not training from scratch) to get a generative model. DiffusionBERT shows the connection and possible synergy between traditional MLMs and diffusion generative models.
- Improving Discrete Diffusion via Structured Corruptions (Han et al., 2023) – In a NeurIPS 2023 workshop paper () (), the authors suggest leveraging the inherent structure in discrete data by using non-uniform corruption that prefers semantically plausible replacements. For example, in text, more common words might be corrupted later than rare words (or vice versa), or certain parts of speech might be held out longer. They argue this can bias generation to get global structure right first. They indeed show improved likelihood on a small dataset by ordering the corruption such that some categories of tokens (like very frequent words) are generated later (). This idea of frequency-based or category-based diffusion is reminiscent of how one might generate a sentence: maybe decide on the content words first, then fill in function words. While preliminary, it highlights that the design of can incorporate linguistic knowledge to aid the model.
- Graph Diffusion and Others: Discrete diffusion is not only for text. It’s also being applied to graph generation (where nodes or edges are discrete variables) and even reinforcement learning (discrete actions). The methodology remains similar: define a way to noise a graph (e.g. randomly add/remove edges) and then learn to reverse it. Score-based ideas like SEDD can also apply if one defines a neighbor graph of states. These domains benefit from diffusion’s ability to generate globally coherent structures rather than one element at a time.
Summary of Impact: The papers discussed collectively push discrete diffusion from a niche idea to a competitive modeling approach. Sahoo et al. demonstrated practical viability and simplicity (through an ELBO that mirrors MLM), and Lou et al. provided a new theoretical foundation (through score entropy) that breaks previous performance barriers. D3PM and related earlier works established the groundwork and design space (what kind of transitions, losses, etc., are possible), and other derivative works have refined specific aspects (like speed, conditional generation, or leveraging pretraining). The trend suggests that future language models might incorporate diffusion or hybrid AR-diffusion techniques to combine the strengths of both. Already, one can imagine using an AR model to quickly generate a draft and a diffusion model to refine it, or vice versa. Since diffusion models are not constrained to generate in order, they might handle certain long-range dependencies more gracefully (though AR models are also very strong with Transformers).
In conclusion, discrete diffusion modeling has rapidly advanced in both theory and practice. Methodologically, we now understand how to construct and train these models (via ELBO or score matching) and how to sample from them efficiently. Theoretically, we have guarantees of their correctness and insights into their behavior through Markov chains and probability ratio matching. The recent papers by Sahoo et al. and Lou et al. represent state-of-the-art approaches that significantly narrow the gap with traditional methods, each bringing a unique perspective (variational vs. score-based). As research continues, we expect to see further improvements, perhaps combining ideas (e.g. using score entropy objectives within a multi-step ELBO, or using mask-based training for a score model), and applications to a wider range of discrete data (such as code generation, musical notation, or structured output like parse trees). The detailed understanding developed in this report should equip one with the knowledge to navigate and contribute to this exciting area of generative modeling.
References: The analysis above draws on foundational and recent works in discrete diffusion. Key references include Austin et al. (2021) for D3PM ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces) ([2107.03006] Structured Denoising Diffusion Models in Discrete State-Spaces), Hoogeboom et al. (2021) for multinomial diffusion, Sohl-Dickstein et al. (2015) for the original diffusion concept, Sahoo et al. (2024) for masked diffusion language models (Simple and Effective Masked Diffusion Language Models) (Simple and Effective Masked Diffusion Language Models), and Lou et al. (2024) for score entropy discrete diffusion ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution) ([2310.16834] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution), among others. These works collectively establish the methodology and theory we have discussed, demonstrating both the effectiveness and correctness of discrete diffusion models in learning complex unconditional and conditional distributions.