Diffusion-based language models apply the denoising diffusion idea to text generation. Instead of predicting the next token autoregressively, these models learn to iteratively refine a noisy sequence into coherent text. In this report, we explain the mathematical foundation of diffusion language modeling (forward and reverse processes and score matching), compare it to traditional Transformer LLMs, describe the training process in detail, and survey how these models perform on benchmarks (especially reasoning tasks like GSM8K and MMLU).

1. Mathematical Derivation of Diffusion for Language

Forward (Diffusion) Process: A diffusion model defines a Markov noising process that gradually perturbs real data into random noise. Formally, given an initial text sequence (usually represented in some vector form) drawn from the data distribution, we construct a series of latent variables such that is essentially pure noise (Diffusion Guided Language Modeling). Each step adds a bit of noise: for example, in a continuous diffusion model (analogous to image diffusion), we might add Gaussian noise to word embeddings. A common variance-preserving schedule defines:

  • Continuous case: , where is Gaussian noise (Diffusion Guided Language Modeling). Here (or equivalently a noise level ) is a decreasing function of (time step) controlling the signal-to-noise ratio. Initially (so is the original text embedding) and by the final step , so that is almost pure noise. At each small step, we have a transition that adds a bit of noise (e.g. ) (). This defines a forward diffusion chain that progressively corrupts the text representation.
  • Discrete case: For text, can also be a sequence of discrete tokens. In a discrete diffusion process, one defines a noising scheme on tokens (e.g. randomly replacing tokens with masks or other tokens). For instance, a simple discrete diffusion might, at each step , replace each token with a special blank token [MASK] with some probability . Over steps, the sequence moves from the original text to a fully masked or random sequence . Recent work designs more linguistically-informed noising: for example, Masked-Diffusion LM gradually “soft-masks” more informative words first (e.g. content words) and leaves simpler words (e.g. stopwords) to be corrupted later () (). This yields a forward process that starts by obscuring the key content of a sentence and ends with an almost fully corrupted sequence.

Reverse (Denoising) Process: The generative model learns the reverse of the diffusion process, i.e. a step-by-step procedure to convert noise back into data. If the forward process is , the reverse process is parameterized as – at each step the model tries to remove a bit of noise from . In theory, if we know the score function (the gradient of log-density of the true noised data at time ), we could invert the process exactly (Diffusion Guided Language Modeling). In practice, diffusion models train a neural network to approximate this score function and thus predict how to go from to (Diffusion Guided Language Modeling). The reverse process is also Markov: starting from pure noise , the model applies successive transformations to produce a sample from the learned distribution (Diffusion Guided Language Modeling). Each reverse step uses the network’s output – for example, a predicted denoised or predicted noise – to compute . This process gradually transitions from Gaussian noise to a realistic text distribution (Diffusion Guided Language Modeling).

Score Matching Objective: How does the model learn the reverse step? The key insight is that denoising at each step is related to estimating the score (the gradient of log-probability) of the data distribution under noise. Training often uses a form of denoising score matching: we sample a random timestep and a noised example , then train the network to predict the original signal (or the noise added) so that it learns . In continuous diffusion models, this is typically done by a mean-squared error (MSE) loss between the network’s output and the actual noise added to (Diffusion Guided Language Modeling). Intuitively, the network learns to point back toward the clean data from a noisy input. In denoising diffusion probabilistic models (DDPM), this training objective can be derived from the variational lower-bound of , but a simpler formulation is often used: minimize , where is the model’s predicted noise given the noisy input (Diffusion Guided Language Modeling). This is equivalent (up to weighting) to matching the score function. In discrete diffusion, one cannot directly add Gaussian noise, so score matching is less straightforward. Instead, discrete diffusion LMs often predict the clean tokens using cross-entropy at each step, which effectively pushes the model to approximate the correct discrete score. For example, Masked-Diffusion LM’s loss at each step is a cross-entropy between the model’s predicted token distribution and the true original tokens, with higher weight on those tokens that were corrupted at this step () (). By training on all levels of noise (from very noisy to almost clean), the model learns how to incrementally reconstruct text.

Denoising Process and Text Generation: After training, generating text is done by iterative sampling: start from random noise and apply the learned reverse model times to obtain a final sequence . In a continuous embedding diffusion model (e.g. Diffusion-LM), we would start with as a sequence of Gaussian noise vectors, and the model iteratively denoises them into a sequence of word embeddings that represents a plausible sentence (Diffusion-LM Improves Controllable Text Generation | OpenReview). Once we have the final clean embedding , we decode it into actual text (e.g. by mapping each embedding to the nearest token in the vocabulary or by having the model output a probability distribution over tokens). Li et al. (2022) note that Diffusion-LM “iteratively denoises a sequence of Gaussian vectors into word vectors” – essentially turning pure noise into a coherent sequence of word embeddings (Diffusion-LM Improves Controllable Text Generation | OpenReview). In a discrete diffusion model, generation can start from a fully masked sequence and the model will gradually fill in tokens until the output is fully formed. Because the model considers the entire sequence at each step (not just one prefix as in autoregressive generation), it can modify any part of the sequence as needed, yielding a flexible generation process.

Conditional Text Generation: Diffusion LMs can be conditioned on prompts or prefixes similarly to decoder-only LLMs, but the mechanism is different. Rather than feeding a prefix once and then generating tokens left-to-right, a diffusion model can incorporate a prefix through the conditioning of each denoising step. For example, we can concatenate the prefix with the output sequence and treat known prefix tokens as fixed (un-noised) during the forward diffusion. At generation time, we supply the prefix tokens (kept clean) along with noise for the rest of the sequence, and then run the denoising process. This way, the model produces a continuation that is influenced by the prefix at every step. In practice, researchers also use techniques like cross-attention to feed a conditional input to the diffusion model’s network ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research). This is analogous to how image diffusion models condition on text prompts. Because diffusion generation is not constrained to proceed left-to-right, it naturally supports tasks like infilling (predicting missing parts of text) or editing: one can start with a partially corrupted text (with a gap or some tokens noised out) and let the model fill it in. In fact, Diffusion-LM showed strong performance on text infilling tasks, matching a specialized autoregressive infilling model’s quality (). This highlights a major advantage of diffusion LMs: they treat generation as iterative refinement of the whole sequence, which makes out-of-order generation and global adjustments straightforward.

Summary of the Diffusion Process: To summarize mathematically, diffusion-based language modeling defines a forward corrupting distribution and learns a reverse generative distribution , where is a simple prior (e.g. spherical Gaussian or uniform over tokens) (Diffusion Guided Language Modeling). The model is trained such that approximates the true data generating process. In the idealized continuous case, the neural network (or an equivalent parameterization) converges to the true noise-to-data mapping, so that sampling and simulating the reverse process yields (Diffusion Guided Language Modeling). In practice, a finite number of steps (e.g. 50, 100, or 1000 steps) is used and various numerical sampling techniques (ancestral sampling, improved ODE/SDE solvers, etc.) can trade off speed and quality. The outcome is a model that generates text by denoising, rather than by sequentially extending text.

2. Comparison with Traditional Decoder-Only LLMs

Diffusion language models differ from standard transformer LLMs (like GPT-style decoder-only models) in both generation procedure and training objective, though they often use similar network components (Transformers) under the hood.

  • Autoregressive vs. Iterative Generation: Traditional LLMs generate text one token at a time in a left-to-right fashion. They condition only on the previously generated tokens (due to causal masking in the Transformer) and output the next token distribution. In contrast, diffusion models generate the entire sequence through multiple refinement steps. At each denoising step, a diffusion LM looks at a noisy whole sequence and produces a slightly cleaner version. This means diffusion models have access to global context at every generation step, whereas autoregressive models only have partial context when predicting each token. The diffusion approach avoids the problem of exposure bias (where an autoregressive model might drift due to compounding small errors in early token predictions ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research)) – if the diffusion model makes a mistake at one step, it can potentially fix it in subsequent steps (Diffusion Guided Language Modeling). This iterative global refinement can lead to fewer incoherent or degenerate repetitions. (Indeed, one motivation for diffusion-based text generation is to mitigate issues like repetitive outputs from autoregressive models ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research) ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research).)
  • Model Architecture: Despite the different approach, many diffusion LMs use Transformer networks similar to those in standard LLMs. For example, a recent large diffusion LM (LLaDA) “employs a Transformer as the mask predictor, with an architecture similar to existing LLMs” (Large Language Diffusion Models). The key difference is that diffusion Transformers are not unidirectional – no causal masking is used, since the model needs to consider the entire corrupted sequence to denoise it (Large Language Diffusion Models). In essence, the network operates more like a Transformer encoder (which attends bidirectionally) rather than a decoder. The time step is typically encoded (via a sinusoidal or learned embedding) and fed into the network as an additional conditioning, so the model knows how much noise it is supposed to remove at that step. Aside from time-conditioning and the lack of causal mask, the network layers (self-attention, feed-forward sublayers, etc.) are analogous to those in GPT or BERT models. Because the model sees the full sequence, it cannot leverage the efficient cache mechanism that decoder-only models use for sequential generation. In fact, LLaDA’s authors note that their model is “incompatible with KV caching” due to the need to attend to a different corrupted input at each iteration (Large Language Diffusion Models). This can make inference slower, as discussed later.
  • Training Objective: Standard LLMs are trained via maximum likelihood estimation – typically minimizing cross-entropy on next-token prediction for each position. This teacher-forcing setup directly optimizes the likelihood of the training data under the model. Diffusion LMs, on the other hand, are trained via a denoising (score-matching) objective rather than next-token prediction. They do not use causal context and do not explicitly factorize the joint probability into an autoregressive product of conditional probabilities. Instead, they learn the joint distribution through the diffusion process. This leads to some practical differences: (1) A diffusion LM’s loss is computed over entire corrupted sequences (or over all noised tokens at a given step), rather than over a single next-token – effectively it learns to model text in a holistic way. (2) The diffusion training can be seen as optimizing a variational bound or matching scores, which does not guarantee the same level of next-token accuracy as direct MLE. Indeed, early diffusion LMs tend to have higher perplexity (worse predictive likelihood) than comparable autoregressive LMs (Diffusion Guided Language Modeling). For example, researchers observed that diffusion LMs “exhibit poor perplexity and generation quality compared to auto-regressive models” of similar size/training (Diffusion Guided Language Modeling), especially when diffusion LMs were in their infancy. This gap arises because diffusion models trade off some next-token fidelity for the ability to generate with global coherence and control.
  • Use of Pretrained Models: Traditional LLMs often leverage large pretrained models or fine-tune them for tasks. Diffusion LMs can also incorporate pretraining in creative ways. For instance, one approach is to initialize the diffusion model’s embedding space or token decoder from a pretrained language model (like using a BERT or GPT embedding matrix) (). Chen et al. (2023) did this by using a pretrained encoder’s representations as the starting point, so the diffusion model benefits from linguistic knowledge learned by BERT (). The diffusion model then only needs to learn the transition (denoising) function. This hybrid strategy blurs the line between diffusion LMs and standard LMs, effectively re-using Transformer components inside the diffusion framework.
  • Generation Flexibility: Because diffusion is not bound to generating left-to-right, it can natively support non-sequential generation tasks. Infilling, as mentioned, is one; others include editing a sentence by re-noising certain parts and denoising them (which autoregressive models struggle with unless specifically trained for it). Diffusion LMs also allow plug-and-play control: one can guide the generation by applying an external classifier or likelihood to intermediate steps (a technique known as classifier guidance or classifier-free guidance). In image domains, this has enabled things like modifying style or content on the fly (Diffusion Guided Language Modeling). In text, Diffusion-LM showed that by computing gradients from attribute classifiers and adjusting the latent variables during generation, the model can achieve fine-grained control (e.g. enforcing a syntactic form or topic) that autoregressive models find difficult without retraining () (). Autoregressive models do have methods like prompting or prefix-tuning for control, but directly altering the generation trajectory (like biasing certain tokens probabilities) often leads to cascading errors in AR models (Diffusion Guided Language Modeling). Diffusion’s iterative correction property is more forgiving to such interventions (Diffusion Guided Language Modeling).
  • Sampling Speed: A drawback of diffusion models is that generation typically requires many iterative steps, whereas a standard LLM only needs to do one forward pass per token. For example, to generate an -token output, an autoregressive model performs forward passes (with caching to reduce cost), while a diffusion model might do denoising steps (with each step processing tokens simultaneously). If is large (50, 100, or more), diffusion can be slower. Some diffusion LMs use fewer steps (e.g. 20-50) or apply accelerated sampling techniques to mitigate this, but there is still generally a latency trade-off. Researchers are actively exploring how to reduce the number of diffusion steps needed or use adaptive schedules to speed up text diffusion (). In one study, a “soft-masked” diffusion LM achieved better efficiency than prior diffusion models, but it still had to do iterative refinement () (). In summary, autoregressive LLMs currently enjoy faster inference due to their one-pass decoding, whereas diffusion LLMs offer more flexible generation at the cost of multiple iterations.

In practice, the choice isn’t strictly either-or. Hybrid models have been proposed: for example, Diffusion Guided Language Modeling (DGLM) uses a diffusion model to propose a semantic outline of the text, and then a pretrained autoregressive decoder (GPT-style) to realize that outline into fluent text (Diffusion Guided Language Modeling) (Diffusion Guided Language Modeling). Such approaches try to get the best of both worlds – the guidance and global planning from diffusion and the fluency and speed of a traditional LLM. This underscores that diffusion models are not an entirely different architecture so much as a different generative paradigm. Indeed, a commentator noted that “diffusion is not an architecture, it’s a training objective” – many diffusion LLMs use Transformers internally, but train them in a novel way to generate text via refinement rather than one-shot prediction.

3. Training Process for Diffusion LMs

Training a diffusion-based language model involves preparing the textual data, defining a noise schedule, and optimizing the model to reconstruct text from noisy inputs. Below, we break down key aspects of this process:

Data Preparation and Preprocessing: Diffusion LMs typically train on large text corpora just like standard LLMs. There is no fundamental difference in the source of data – e.g., web text, books, Wikipedia, code, etc. For instance, LLaDA (a large diffusion LM) was trained on 2.3 trillion tokens of diverse data (web text with filtering, code, math, multilingual data), following a protocol “closely aligned with existing LLMs” (Large Language Diffusion Models). Text is tokenized into subword tokens (BPE or similar). One consideration is sequence length: since the diffusion model denoises entire sequences, we fix a maximum sequence length (e.g. 512, 1024, or even 4096 tokens for LLaDA (Large Language Diffusion Models)) and either pad or truncate texts to that length. To handle varying lengths, some training examples can be shorter – LLaDA explicitly varied 1% of sequences to random shorter lengths to improve the model’s ability to handle end-of-sequence properly (Large Language Diffusion Models). Usually, special tokens like <bos>/<eos> or padding are used similarly to how they are in normal LMs. If the task is unconditional generation, the model trains on full sequences. For conditional generation (say, prompt to continuation), one can format each training example as a prompt+completion and possibly condition the diffusion model on the prompt (e.g. by concatenating or using separate encoder). Data preprocessing must also establish the initial representations for tokens: some diffusion LMs initialize with pretrained word embeddings or encode tokens into continuous vectors via an embedding matrix. These embeddings serve as for the diffusion forward process.

Forward Corruption Schedule: We define a schedule of noise levels that determines how the input is corrupted at each step. A common choice in continuous diffusion is a linear schedule or the improved cosine schedule from Nichol & Dhariwal (2021), which gradually increases noise variance from 0 to 1 over steps. In text diffusion, some modifications are used: for example, Li et al. (2022) adopted a sqrt noise schedule to slowly increase such that (with small ) (), which puts less noise on the first few steps to stabilize training on difficult (high-noise) cases. In discrete masking diffusion, the schedule might be described in terms of an increasing masking probability or distortion. For instance, at you might mask 10% of tokens, at you mask 100%. Chen et al. (2023) use an importance-based schedule: they bucket words by importance and corrupt higher-important words earlier (). Essentially, in their case is higher for important words at early , meaning those words have a greater chance of being replaced by noise sooner. Regardless of the specifics, the forward process is applied to every training sequence to generate a corrupted version .

In implementation, one usually samples a random timestep for each training example each iteration (rather than progressively corrupting the same example through all steps every time). This is called training with random timesteps and is done for efficiency – it means the model’s loss is an expectation over timesteps, which we approximate by random sampling. For a given ground truth sequence , we sample , then produce by applying the forward diffusion (which can be done in one go thanks to closed-form: in the continuous case, where ). In a masked discrete setup, we would randomly decide which tokens to mask according to the total noise level at . For example, LLaDA’s training procedure was: “For a training sequence , we randomly sample , mask each token independently with the same probability to obtain , and then estimate the objective via this sample” (Large Language Diffusion Models). This Monte Carlo estimate of the loss over timesteps is a standard way diffusion models are trained.

Training Loss Function: As discussed in Section 1, the loss is typically a form of denoising error. Two common formulations are:

  • Continuous Noise Prediction Loss: The model outputs a prediction of the noise added. The loss can be (where is the actual noise added to get ). This was used in Diffusion-LM (with being the sequence of noisy word embeddings). Equivalently, some implementations have the model predict the clean data or directly and minimize mean squared error on that. All these are mathematically related to score-matching and the variational bound from DDPM (Diffusion Guided Language Modeling). The loss may be weighted by factors (like or SNR) to account for different noise levels, but many works (following Ho et al. 2020) use a simplified loss where each timestep is equally weighted.
  • Cross-Entropy Reconstruction Loss: If the model produces a categorical distribution over tokens (discrete output) at each step, we can directly use cross-entropy. Masked-Diffusion LM takes this approach: at each diffusion step, it maps the continuous hidden state back to vocabulary logits (through a linear layer) and computes a cross-entropy against the original tokens (). Crucially, they only want to predict the tokens that are supposed to be “generated” at that step – e.g. the ones that were corrupted. They achieve this by masking out or down-weighting tokens that were already uncorrupted. In their loss , higher weight is put on the tokens that are masked at step (harder words that are being generated later) (). This guides the model to focus on generating the missing pieces at each stage. The cross-entropy objective explicitly ties the model’s outputs to actual vocabulary, which “connects the continuous space and discrete space in a more straightforward way” (). It also avoids having to do nearest-neighbor rounding of embeddings, which was a known difficulty in continuous diffusion LMs () ().

Some diffusion LMs combine the two approaches. For example, one can have the model output both a continuous correction and a token prediction. Generally, the loss is summed (or averaged) over the timesteps (if not already sampled as one per example). Training aims to minimize the expected loss over the data distribution and noise. Modern implementations often follow the noise prediction (MSE) loss for simplicity and proven effectiveness (Diffusion Guided Language Modeling), but the choice of loss can affect training stability for text. (Text involves a high-dimensional space and discrete variables, so some found that purely continuous objectives can be unstable (). The introduction of cross-entropy terms has been shown to stabilize and improve performance () ().)

Optimization and Training Pipeline: The training loop resembles that of any large neural network. The model (often a Transformer) is initialized (sometimes with some pretrained weights for embeddings or Transformers as noted). We iterate over batches of text sequences. For each sequence in a batch, we sample a , corrupt the sequence to , and feed (plus the conditioning and any prompt, if used) into the model. We compute the loss (MSE or cross-entropy or combined) for that sample. After processing the batch, we take an optimizer step (usually AdamW or similar). Large diffusion LMs are trained with huge compute: e.g., LLaDA 8B was trained for the equivalent of 2.3T tokens – on the order of millions of GPU hours – comparable to training a similarly sized autoregressive LM on that data (Large Language Diffusion Models). Learning rate schedules (warmup, cosine decay, etc.) and regularization are applied similarly as in standard LLM training (Large Language Diffusion Models).

One difference is that because diffusion models do not reuse past computations like autoregressive models (no caching), the memory and compute per training example can be higher if using long sequences. However, practitioners often reduce sequence length or batch size to manage this, or use gradient checkpointing. Another consideration is teacher forcing vs. self-training: autoregressive LMs always train on ground-truth prefixes, whereas diffusion LMs train on corrupted data which is not a prefix of the truth but a stochastically altered version. This can make diffusion LM training a bit harder to converge (the model must learn to handle a wide range of noisy inputs). Indeed, Li et al. (2022) reported that their diffusion models required more training steps to reach good performance, and sometimes benefited from curriculum on noise levels. Using high-quality embeddings or pretrained language features can help the model not start from scratch on understanding text ().

Sampling and Decoding: Although not part of training per se, it’s worth noting how generation is done after training, as it involves some design choices. When we deploy a diffusion LM, we often choose a number of inference steps (which could be less than training if we use an accelerated sampler like DDIM). We start with random noise and apply the model times. At each step, if the model outputs a distribution over tokens (discrete), we have to decide how to sample or pick tokens. Some approaches directly sample a token at the final step (after obtaining embeddings, do argmax or nucleus sampling on the model’s final predicted distribution). Others produce a soft output (an embedding or probability for each token at each position) and use that to pick tokens. In Diffusion-LM’s continuous approach, after the last denoising step we get a sequence of word embeddings, and they simply chose the nearest neighbor token for each embedding to form the final text (). Because of the stochastic nature, one can generate multiple candidates and possibly select by a scoring function (like picking the output with highest likelihood under a pretrained LM, etc., as a reranker – though this is optional).

Training Pipeline Summary: In pseudocode form, training looks like:

for each batch of sequences {x0}:
    for each x0 in batch:
        t ~ Uniform({1,...,T})
        x_t = Corrupt(x0, t)        # add noise or mask tokens according to schedule
        pred = Model(x_t, t)        # predict noise or tokens
        loss_i = LossFunction(pred, x0, t)  # compare prediction with original x0 (or noise)
    loss_batch = average(loss_i)
    optimize(loss_batch)  # backprop and update model

Over time, the model learns to handle all levels of noise. Data augmentation (like shuffling sentences, etc.) is usually not needed beyond the noise itself providing plenty of variation. One must monitor validation perplexity or a sample-based metric because standard next-token perplexity isn’t directly minimized. Instead, some use an imputed perplexity (by converting the generated outputs probability or by using an external LM to gauge quality). If using cross-entropy loss parts, validation can directly measure that. In practice, diffusion LMs are often evaluated by generating samples and measuring quality or control accuracy, rather than just perplexity.

4. Benchmark Performance and Reasoning Evaluation

Early diffusion-based LMs were not aimed at beating standard LLMs on classic language benchmarks, but rather at offering controllability and other benefits. As a result, initial models (with smaller scales) underperformed GPT-like models on fluency and perplexity. For example, Diffusion-LM (Li et al. 2022), which was focused on controllable generation, acknowledged that it had higher perplexity and slower decoding than an equivalently sized autoregressive LM (). Diffusion-LM excelled at controlled generation (outperforming other controllable generation methods on fine-grained control tasks) but “finds that the Diffusion-LM has higher perplexity” and slower convergence (). Similarly, DiffuSeq (Gong et al. 2023) demonstrated the ability to generate diverse continuations, but it was noted that the text quality (in terms of fluency) was a bit lower than a strong Transformer LM (). Overall, a consistent finding was that autoregressive Transformers remained superior on straightforward language modeling metrics (like BLEU, perplexity) while diffusion models offered advantages in flexibility.

However, very recently researchers have scaled up diffusion LMs and evaluated them on mainstream benchmarks. The results are promising: a large diffusion-based LM can match or even exceed the performance of traditional LLMs on many tasks. For instance, a 8-billion-parameter diffusion LM named LLaDA was directly compared to GPT-style models (like LLaMA family). Impressively, LLaDA 8B surpassed LLaMA2 7B on nearly all of 15 standard NLP benchmarks in zero- and few-shot settings, and performed on par with a LLaMA3 8B model (Large Language Diffusion Models). In other words, given similar model size and training data, the diffusion model’s zero-shot capabilities were comparable to a state-of-the-art autoregressive model. This is a significant milestone indicating diffusion LMs are closing the gap in general language ability.

Specifically for reasoning and knowledge benchmarks like GSM8K (math word problems) and MMLU (Massive Multitask Language Understanding, a knowledge exam), the diffusion LM showed strong results. In one report, “on tasks such as MMLU and GSM8K, LLaDA exhibits even stronger scalability”, narrowing the gap with autoregressive models at larger scales (Large Language Diffusion Models). For example, at 8B parameters, the diffusion model achieved around mid-60% accuracy on MMLU and high-70% accuracy on GSM8K in few-shot evaluation (Large Language Diffusion Models). These numbers are in the same ballpark (or slightly better in some cases) as those achieved by comparable decoder-only models. (For context, LLaMA2-7B achieves roughly 50-55% on MMLU, and GPT-3 6.7B was much lower; 65%+ is approaching the performance of 13B+ models.) On GSM8K, 78% is remarkably high – likely this involves using few-shot prompting or the model’s inherent chain-of-thought ability. It suggests the diffusion LM learned to perform multi-step reasoning or was able to leverage its training on code/math data effectively. Overall, these results indicate that diffusion LMs can handle complex reasoning tasks about as well as standard LLMs of similar size.

It’s worth noting that to achieve this parity, the diffusion LM had to be trained on a huge amount of data (trillions of tokens) with a very large model – so the successes are in part due to scaling, just as with regular LLMs. After training, they also applied supervised fine-tuning (SFT) to teach the model to follow instructions, which improved its performance on benchmarks (Large Language Diffusion Models) (Large Language Diffusion Models). With SFT, LLaDA’s results came close to an instruct-tuned LLaMA, though not surpassing it in all cases (they did not yet use RLHF, and hypothesize that adding it could further close any small gaps (Large Language Diffusion Models)). This shows that diffusion LMs can be adapted in the familiar way (fine-tuning on QA or following data) to improve their practical performance on user-facing tasks.

Beyond these big benchmarks, diffusion LMs have been tested on other aspects:

  • Controllability Benchmarks: Diffusion models shine in controlled text generation. Li et al. (2022) evaluated Diffusion-LM on tasks like generating text with a specified semantic content or syntactic form. They achieved a much higher success rate on satisfying multiple simultaneous control constraints compared to methods like FUDGE or conditional fine-tuning () (). For example, Diffusion-LM could enforce that a sentence has a given sentiment and uses a particular syntax tree, with far greater accuracy than an autoregressive model guided post-hoc (). This kind of fine-grained controllable generation is a diffusion model’s forte, whereas traditional LLMs struggle unless explicitly fine-tuned for those controls.
  • Text Quality and Diversity: Metrics like BLEU, ROUGE, and text diversity scores have been used to compare diffusion vs AR generation. Generally, diffusion LMs produce more diverse outputs (less mode collapse) and handle long-range dependencies well, but sometimes at the cost of slight grammatical mistakes or lower BLEU. The Apple PLANNER model (which uses latent diffusion + an AR decoder) reported higher diversity and less repetition than a pure GPT-2 on paragraph generation ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research) ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research). Diffusion’s randomness and global view help avoid getting stuck in repetitive loops. Human evaluations in some studies found that, given enough refinement steps, the gap in fluency between diffusion and AR text is small – e.g. humans rated Diffusion-LM’s infilled sentences as equally coherent as those from an autoregressive model () ().
  • Perplexity and LM Benchmarks: When evaluated as language models (perplexity on a test corpus), diffusion models initially lagged. For instance, in one analysis, a diffusion LM had a perplexity notably higher than a same-size Transformer LM (). This is expected because diffusion models do not explicitly maximize likelihood of the exact next-token sequences. But as model size grew and techniques improved, this gap is shrinking. If one uses a diffusion LM to sample many continuations and then estimates an effective perplexity, one might get closer to normal LMs, but this is not a typical way to compute perplexity. Instead, researchers focus on downstream task performance (which is ultimately what MMLU, GSM8K measure). On those metrics, as discussed, large diffusion LMs are now competitive.

In summary, diffusion-based language models have evolved from a niche idea to a viable alternative to autoregressive LMs. They bring unique advantages in generation flexibility, controllability, and possibly mitigating exposure bias, while historically having disadvantages in speed and perplexity. The latest research shows that with sufficient scale and careful design, diffusion LMs can match traditional Transformers on many NLP benchmarks, including challenging reasoning tasks (Large Language Diffusion Models) (Large Language Diffusion Models). This suggests that diffusion training does not inherently limit the model’s ability to understand and generate complex language – it was more a question of scale and training maturity. We are likely to see further improvements, such as combining diffusion and autoregressive techniques, or new sampling methods that make diffusion decoding faster. For now, diffusion LMs offer an exciting complementary approach to sequence generation, with competitive performance and unique capabilities that could address some weaknesses of standard LLMs.

Sources:

  1. Sohl-Dickstein et al. (2015); Ho et al. (2020) – Denoising Diffusion Probabilistic Models (foundational work for diffusion models) (Diffusion Guided Language Modeling) (Diffusion Guided Language Modeling).
  2. Li et al. (2022) – Diffusion-LM: Improving Controllable Text Generation (NeurIPS 2022) (Diffusion-LM Improves Controllable Text Generation | OpenReview) ().
  3. Chen et al. (2023) – Masked-Diffusion LM with Soft-Masked Noise (EMNLP 2023) () ().
  4. Lovelace et al. (2023) – Diffusion Guided Language Modeling (DGLM) (Diffusion Guided Language Modeling) (Diffusion Guided Language Modeling).
  5. Gulrajani et al. (2024) – Large Language Diffusion Models (LLaDA) (Large Language Diffusion Models) (Large Language Diffusion Models).
  6. Apple ML Research (2024) – PLANNER: Latent Language Diffusion for Paragraph Generation ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research) ( Enhancing Paragraph Generation with a Latent Language Diffusion Model - Apple Machine Learning Research).
  7. Diffusion model surveys – e.g. Medium/AssemblyAI articles on diffusion in NLP () () (background and related work).
  8. Benchmark results from LLaDA (2024) – showing diffusion LM performance on MMLU, GSM8K, etc. (Large Language Diffusion Models) (Large Language Diffusion Models).