Abstract
How does a neural network turn random numbers into a photograph, a video or a paragraph? Generative models differ in four separable choices: the training objective, the representation they generate in, the network backbone and the sampling procedure. Five modelling approaches recur in the literature: variational autoencoders, generative adversarial networks, normalizing flows, autoregressive models and diffusion models, which learn to undo a gradual noising process, joined since 2022 by flow matching. Current systems combine them. Stable Diffusion runs diffusion inside an autoencoder’s latent space; Meta’s Movie Gen trains a transformer with flow matching inside a VAE-style video compressor; Meta’s MusicGen generates audio autoregressively. Autoregressive transformers remain the default baseline for text, and the diffusion language models examined here have shown speed and some distinctive abilities without settling whether they can match autoregression at equal compute. This reader explains each family from first principles, with worked arithmetic, and annotates the founding papers. For security, the key results are that Stable Diffusion and Imagen emitted near-copies of some heavily duplicated training images, that tested detectors generalise poorly to new generators and real-world media, and that tested watermarks and embedded metadata can be removed.
The picture: a one-way street from data to noise
Take a photograph, shrink every pixel value slightly toward zero and add a little Gaussian noise. Repeat that for a thousand small steps. Somewhere in the middle the picture becomes a grainy ghost; by the end it is close to pure Gaussian static, with only a faint residual trace of the original.1 Each step is trivial to compute and needs no knowledge of what the picture showed. The forward direction is easy.
Now try to run the film backwards. The static does not determine which photograph produced it, so the reverse direction cannot recover a particular picture. What a model can learn is the small, local question at each step: given an image at this noise level, what is the distribution of slightly less noisy images it probably came from? If a neural network answers that well for every noise level, then sampling step after step (a thousand steps in the original DDPM sampler; later samplers use fewer) turns fresh static into a sample from the model’s learned distribution of pictures.1 That sample can be a near-copy of a training image, as the memorisation section shows.2 Song and colleagues put the asymmetry in one line: “Creating noise from data is easy; creating data from noise is generative modeling.”3
That is diffusion in one paragraph.4
What every generator is trying to do
A generative model is trained on samples (photographs, audio clips, sentences) drawn from some unknown distribution, and must learn to produce new samples that look as if they came from the same distribution. Two things are usually wanted: sampling (draw new examples) and sometimes likelihood (say how probable a given example is under the model). Different families buy these at different prices. Some give exact likelihoods; GANs give none; how their samples compare is an empirical question that depends on the benchmark. This reader also uses a framework of three practical axes: sample quality, coverage of the whole distribution (does the model produce every kind of face, or only a few), and cost (to train, and to draw each sample).
It also helps to keep four design choices apart, because papers often change only one of them. The objective is what the network is trained to do (maximise a variational bound, fool a discriminator, predict noise, predict the next token). The representation is the space it works in (pixels, an autoencoder’s latent grid, discrete tokens). The backbone is the network architecture (a convolutional U-Net, a transformer). The sampler is the procedure that turns a trained network into outputs (one pass, many denoising steps, an ODE solver). The families below are mostly modelling approaches, defined by objective or factorisation.
Variational autoencoders (2013): compress, then decode
Diederik Kingma and Max Welling posted “Auto-Encoding Variational Bayes” on 20 December 2013.5 The setting is a model in which each data point x is generated from a hidden code z: draw z from a prior, then pass it through a decoder network to get a distribution over x. A standard Gaussian prior is a common choice and the one used in the paper’s example (its Section 3). The paper’s setting (Section 2) is the case where the marginal likelihood p(x) is intractable, “so we cannot evaluate or differentiate the marginal likelihood”, and the true posterior p(z|x), which answers “which codes could have produced this image?”, is intractable too; its examples include a decoder that is a neural network with a nonlinear hidden layer.5
Their move was to train a second network alongside the decoder: a “recognition model” q(z|x), now called the encoder, that approximates the posterior.5 The training objective is the variational lower bound on log-likelihood, usually called the evidence lower bound or ELBO. It has two terms: reconstruct the input well from a code sampled from the encoder, and keep the encoder’s distribution close (in KL divergence) to the prior so that random codes from the prior decode to sensible outputs.
The obstacle was the gradient of that objective with respect to the encoder’s parameters, because the expectation is taken over samples whose distribution depends on those parameters. The usual Monte Carlo estimator for such gradients exists, but the paper says it “exhibits very high variance” and is impractical.5 The second contribution, the reparameterisation trick, rewrites the draw as a deterministic function of the encoder’s outputs plus independent noise: z = μ + σ ⊙ ε with ε from a standard normal. The randomness now sits outside the parameter-dependent part, so ordinary backpropagation gives a low-variance gradient. The paper calls the resulting estimator SGVB and the full algorithm AEVB.5
VAE image samples are often soft. One explanation applies to a common configuration: with a Gaussian decoder of fixed variance, the reconstruction term amounts to pixel-wise squared error, and when the model is uncertain the squared-error-optimal output is the average of the plausible images, which is blurry. Rombach and colleagues, designing the autoencoder for latent diffusion, added a perceptual loss and a patch-based adversarial loss to avoid “bluriness introduced by relying solely on pixel-space losses such as L2 or L1 objectives.”6 VAE-style autoencoders reappear later in this reader as compressors: one latent-diffusion variant imposes “a slight KL-penalty towards a standard normal on the learned latent, similar to a VAE”, and Movie Gen’s video autoencoder “is based on a variational autoencoder”.67
Generative adversarial networks (2014): the forger and the detective
On 10 June 2014 Ian Goodfellow and seven co-authors posted “Generative Adversarial Nets” (the arXiv record lists it as “Generative Adversarial Networks”).8 A generator G maps random noise to samples; a discriminator D looks at a sample and outputs the probability that it is real. D is trained to tell real from fake; G is trained to fool D. The paper writes this as a two-player minimax game over a value function V(D, G) = E[log D(x)] + E[log(1 − D(G(z)))], with D maximising and G minimising.8
For a fixed generator the best discriminator is D(x) = p_data(x) / (p_data(x) + p_g(x)), defined where either density is non-zero. Substituting it shows the game’s global optimum is reached exactly when the generator’s distribution equals the data distribution, and there D equals 1/2 on the data’s support.8
Two failure modes are widely reported. Mode collapse is named in the original paper as “the Helvetica scenario”, in which G “collapses too many values of z to the same value of x” if it is trained too long without updating D.8 The model then produces a few convincing outputs and ignores the rest of the distribution. Instability follows from the game itself: two networks chasing each other need not converge. Dhariwal and Nichol summarised the observations in 2021: GANs then held the state of the art on most image benchmarks, but “capture less diversity” than likelihood-based models and are “often difficult to train, collapsing without carefully selected hyperparameters and regularizers.”9
A vanilla GAN generator produces a sample in a single network evaluation,8 which contrasts with the many evaluations diffusion samplers use.
Normalizing flows (2016 to 2018): an invertible warp
A normalizing flow builds the generator as a bijection between a simple distribution and the data space, of the same dimensionality. In a discrete flow each layer has a Jacobian determinant that is cheap to compute, and the change-of-variables formula then gives an exact log-likelihood. Dinh, Sohl-Dickstein and Bengio’s Real NVP (May 2016) offered exact log-likelihood computation, exact and efficient sampling, exact and efficient inference of latent variables, and an interpretable latent space.10 Its coupling layers update half of the variables with a scale and shift computed from the other half; because the inverse never needs to invert those scale and shift networks, “these functions can be arbitrarily complex and difficult to invert”.10 Kingma and Dhariwal’s Glow (July 2018) added invertible 1x1 convolutions.11 Grathwohl and colleagues’ FFJORD (October 2018) defined the map by an ordinary differential equation instead. The log-density then changes by the integral of the vector field’s divergence (the trace of its Jacobian), which FFJORD estimates with Hutchinson’s stochastic trace estimator; this allows “unrestricted” neural network architectures for the vector field, at the cost of solving an ODE and of estimation noise.12
In one comparison table on CIFAR-10, from the 2023 consistency-models paper, Glow is listed at an FID of 48.9, against 2.92 for StyleGAN2-ADA and 3.17 for DDPM (lower is better; FID is discussed below).13 The continuous-time flow idea matters for what follows: the probability-flow ODE turns a diffusion model into such a flow, and flow matching trains one directly.
Diffusion’s origin (2015): borrowing from thermodynamics
On 12 March 2015 Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan and Surya Ganguli posted “Deep Unsupervised Learning using Nonequilibrium Thermodynamics”.4 The forward process slowly destroys structure in the data by repeated small Gaussian (or, for binary data, binomial) steps; the model learns a reverse process that restores it.
The key technical observation, which the paper attributes to Feller in 1949, is that for Gaussian and binomial diffusion in the limit of small step size, the reverse of a diffusion step has the same functional form as the forward step.4 A long chain of easy-to-learn steps replaces one hard step. The paper drew on statistical physics, trained models “with thousands of layers or time steps”, on data from a two-dimensional swiss roll to CIFAR-10 images.4
DDPM (2020): the recipe that improved sample quality
Jonathan Ho, Ajay Jain and Pieter Abbeel’s “Denoising Diffusion Probabilistic Models”, posted 19 June 2020, made a handful of choices that turned the 2015 framework into a strong image generator.1
The forward schedule. They set T = 1000 steps and a noise variance β that rises linearly from 10⁻⁴ at the first step to 0.02 at the last.1 Each forward step scales the previous image by √(1 − β) and adds noise of variance β. Writing α = 1 − β and ᾱ for the running product of the α values up to step t, the noisy image at any step can be produced in one jump from the clean image x₀:
x_t = √ᾱ_t · x₀ + √(1 − ᾱ_t) · ε, with ε drawn from a standard normal.1
Predict the noise. Instead of predicting the clean image or the reverse step’s mean, the network ε_θ(x_t, t) predicts the noise ε that was added. The paper derives the full variational bound, then reports that a simplified loss works better for sample quality: the plain squared error between true and predicted noise, averaged over uniformly drawn t.1 Sampling (the paper’s Algorithm 2) starts from pure noise and, at each of the thousand steps, subtracts a scaled noise estimate, rescales the result, and adds a small fresh noise term, except at the final step, where no noise is added.1
The network. A U-Net with self-attention; the CIFAR-10 model had 35.7 million parameters.1
The numbers. On unconditional CIFAR-10, the model reached an Inception score of 9.46 and an FID of 3.17, which the abstract calls state of the art; on 256x256 LSUN its sample quality was “similar to ProgressiveGAN”.1 Its likelihood was weak: the simplified-loss model’s negative log-likelihood bound was 3.75 bits per dimension, and the authors state that their models “do not have competitive log likelihoods compared to other likelihood-based models”.1 Nichol and Dhariwal’s “Improved Denoising Diffusion Probabilistic Models” (February 2021) addressed two of those limits within a year: with a few modifications DDPMs reached competitive log-likelihoods, and learning the reverse-process variances allowed sampling with about an order of magnitude fewer forward passes with little loss of quality.14
A worked noising and denoising step (illustrative)
The following arithmetic is my own, using DDPM’s published schedule and forward equation.1 Take one pixel whose value, scaled to the range −1 to 1, is x₀ = 0.8. Under the linear schedule, ᾱ at t = 500 works out to about 0.0786, so √ᾱ ≈ 0.280 and √(1 − ᾱ) ≈ 0.960. Draw ε = −0.5. Then:
x₅₀₀ = 0.280 × 0.8 + 0.960 × (−0.5) ≈ 0.224 − 0.480 = −0.256.
In this draw the noise term (0.480) is a little over twice the signal term (0.224); the noise multiplier itself is about 3.4 times the signal multiplier. Suppose the trained network looks at the whole noisy image and predicts ε̂ = −0.45, close but not exact. The clean-pixel estimate implied by this single noisy state is (x₅₀₀ − 0.960 × ε̂) / 0.280 = (−0.256 + 0.432) / 0.280 ≈ 0.63. A noise error of 0.05 became a pixel error of about 0.17, because it was divided by 0.280. At t = 100, by contrast, ᾱ ≈ 0.897, the multipliers are about 0.947 and 0.321, and the same 0.05 noise error moves the pixel estimate by only about 0.017. By t = 1000, ᾱ is about 0.00004, so √ᾱ ≈ 0.006 and almost nothing of the original survives.
The calculation shows error amplification: at high noise, pixel-level estimates are loose. It is consistent with what the DDPM authors observed when they decoded clean-image predictions along the reverse process: “Large scale image features appear first and details appear last.”1 That is an empirical observation about their models, not a law of every sampler.
The score and SDE view (2020): one equation for two lines of work
A second line of research reached similar results from a different starting point. Yang Song and Stefano Ermon’s “Generative Modeling by Estimating Gradients of the Data Distribution” (July 2019) perturbed data with several levels of Gaussian noise, trained one network to estimate the score at each level, and sampled with annealed Langevin dynamics, using “gradients corresponding to gradually decreasing noise levels”.15 The score is ∇ₓ log p(x), the gradient of the log-density of the noised distribution: at every point in image space it gives the local direction in which log-density increases fastest. Langevin dynamics follows that direction while adding random noise, so it samples rather than climbing to a single peak.
DDPM’s abstract notes that its best objective rests on “a novel connection between diffusion probabilistic models and denoising score matching with Langevin dynamics”.1 The connection can be written in one line for the Gaussian noising kernel: conditioned on the clean image x₀, the score of the noised image is −ε / √(1 − ᾱ_t). A network trained to predict ε from x_t, averaging over many x₀, therefore estimates −√(1 − ᾱ_t) times the score of the noised marginal distribution, which is the denoising score matching result; Song and colleagues state that the DDPM objective “implicitly computes scores at each noise scale”.3
On 26 November 2020 Yang Song, Jascha Sohl-Dickstein, Diederik Kingma, Abhishek Kumar, Stefano Ermon and Ben Poole unified the two lines in “Score-Based Generative Modeling through Stochastic Differential Equations” (ICLR 2021, oral).3 Let the number of noise steps go to infinity, and noising becomes a stochastic differential equation, dx = f(x, t) dt + g(t) dW, where f is a drift, g sets the noise rate and dW is a Wiener-process increment. A 1982 result of Anderson, which the paper cites, says the time-reverse of such a diffusion is also a diffusion: dx = [f(x, t) − g(t)² ∇ₓ log p_t(x)] dt + g(t) dW̄, running backwards in time.3 The only unknown in the reverse equation is the score at each time, which is what the network learns. In this framework the earlier score-based models and DDPM are discretisations of two particular SDEs, which the paper names variance-exploding and variance-preserving.3
The paper’s most consequential result is the probability-flow ODE. For every such SDE there is a deterministic ordinary differential equation, dx = [f(x, t) − ½ g(t)² ∇ₓ log p_t(x)] dt, whose trajectories share the SDE’s marginal distributions at every time.3 With the true score the marginals match exactly; with a learned score substituted, the ODE defines a continuous flow of its own, whose likelihood can be computed by the change-of-variables formula, subject to the numerical solver’s tolerance and, where the divergence is estimated with the Skilling-Hutchinson trace estimator as in the paper’s appendix, to estimation error; sampling can use off-the-shelf ODE solvers. The paper reported two headline results from different model variants on CIFAR-10: an FID of 2.20 and Inception score of 9.89 from a deep variance-exploding model (NCSN++), and a likelihood of 2.99 bits per dimension on uniformly dequantized CIFAR-10 from a deep sub-VP model (DDPM++). It also showed the first 1024x1024 images from a score-based model.3
Did diffusion beat GANs?
The claim
Prafulla Dhariwal and Alex Nichol’s “Diffusion Models Beat GANs on Image Synthesis” (11 May 2021) made the claim in its title.9 Through architecture ablations of the U-Net and classifier guidance (use the gradient of a separately trained image classifier to push samples toward a class, trading diversity for fidelity), their model ADM reached FIDs of 2.97 on ImageNet 128x128, 4.59 at 256x256 and 7.72 at 512x512.9
Three kinds of evidence, of different strength
Quality. In the paper’s ImageNet 256x256 table, guided ADM scored FID 4.59 with precision 0.82, against BigGAN-deep’s 6.95 and 0.87.9 FID favours diffusion; precision, a fidelity measure, slightly favours the GAN.
Coverage. In the same comparison, recall, which the authors use as a measure of distribution coverage, was 0.52 for guided ADM against 0.28 for BigGAN-deep; at 512x512 it was 0.53 for the two-stage ADM-G plus ADM-U configuration and 0.42 for the single guided model, against 0.29.9 Within these reported settings, coverage is the clearest advantage.
Compute. The paper’s appendix converts training costs to V100-days. On ImageNet 256x256 it estimates BigGAN-deep at 128 to 256 V100-days for an FID of 6.95. The headline guided diffusion model took 962 V100-days for 4.59, and a model trained for 393 V100-days reached 6.49; both totals include 46 V100-days of classifier training. The same table lists a two-stage configuration, a guided 64x64 model followed by an upsampling diffusion model (ADM-G plus ADM-U), at 126 V100-days for FID 4.93.9 That is a better FID at roughly comparable estimated training cost, with two caveats: the BigGAN figures are rough estimates converted from TPU time, and two-stage sampling runs two diffusion models over many steps. It is a reported result at similar estimated cost, not a controlled comparison of architectures. Sampling cost points the other way: the authors list as a limitation that diffusion models “are still slower than GANs at sampling time due to the use of multiple denoising steps”.9
GAN results also kept improving. In the DiT paper’s ImageNet 256x256 table, StyleGAN-XL is listed at FID 2.30 and the best diffusion entry at 2.27; on CIFAR-10 the consistency-models paper lists StyleGAN-XL at 1.85, against 3.17 for DDPM and 2.20 for the score SDE.1613 These are figures reported under each table’s evaluation protocol, and differences in the second decimal place should not be read as decisive.
What FID measures, and why the numbers are argued over
FID, introduced by Heusel and colleagues in 2017, embeds real and generated images with an Inception network trained on ImageNet, fits a Gaussian to each set of embeddings and reports the squared Wasserstein-2 (Fréchet) distance between the two Gaussians: the squared difference of the means plus a trace term comparing the covariances.17 Two later studies questioned what it rewards. Kynkäänniemi and colleagues (ICLR 2023) showed that the feature space is so close to ImageNet class predictions that aligning the histograms of top-N classifications between generated and real images “can reduce FID substantially — without actually improving the quality of results”.18 Stein and colleagues ran a large human evaluation across the models and datasets they studied, found that “no existing metric strongly correlates with human evaluations” among those tested, and found that diffusion models’ human-judged realism “is not reflected in commonly reported metrics such as FID”, partly through over-reliance on Inception-V3.19 FID comparisons are therefore meaningful only within one dataset, resolution, conditioning setup and evaluation protocol, and small gaps between families carry little weight.
Latent diffusion (2021): do the expensive part somewhere smaller
Pixel-space diffusion is expensive because every one of many denoising steps runs a large network over every pixel. Rombach, Blattmann, Lorenz, Esser and Ommer’s “High-Resolution Image Synthesis with Latent Diffusion Models” (20 December 2021, CVPR 2022) cites pixel-space models that needed 150 to 1,000 V100-days to train and about five days on one A100 to produce 50,000 samples.6
They split the job in two. First, train an autoencoder once, with a perceptual loss and a patch-based adversarial loss, that shrinks each spatial dimension of the image by a downsampling factor f and decodes it back. Second, train the diffusion model in the autoencoder’s latent space, using the same noise-prediction loss with latents in place of pixels.6 The paper describes the autoencoder’s job as “perceptual compression”, removing imperceptible detail, and uses “semantic compression” for what the generative model then learns, the composition and content of images.6 They tried f from 1 (pixel space) to 32 and found that f = 4 to 16 balanced efficiency and quality: f = 1 or 2 trained slowly, and f = 32 lost too much information.6
The second contribution was cross-attention conditioning. A domain-specific encoder τ_θ turns the conditioning input (a text prompt, a layout, a class) into a sequence of vectors; inside the U-Net, cross-attention layers take queries from the image features and keys and values from that sequence, so each image location can attend to the relevant words.6 Their text-to-image model had 1.45 billion parameters and was trained on LAION-400M.6 The text-encoder side of conditioning is the subject of the reader on tokenization and embeddings.
Stable Diffusion v1 is a released latent diffusion model. Its repository describes it as “a latent text-to-image diffusion model” with an 860M-parameter U-Net, a frozen 123M-parameter CLIP ViT-L/14 text encoder and a “downsampling-factor 8 autoencoder”, running on a GPU with at least 10 GB of memory. The model “was pretrained on 256x256 images and then finetuned on 512x512 images”, on subsets of LAION-5B.20 The Hugging Face diffusers LoRA script adapts it by training only low-rank adapters inserted into the U-Net’s attention projections.21 The mechanism is covered in the reader on fine-tuning and low-rank adaptation.
The compression arithmetic (illustrative)
My arithmetic, using figures from the cited sources. A 512x512 RGB image has 512 × 512 × 3 = 786,432 values. A downsampling factor of 8 gives a 64 × 64 spatial grid, and the DiT paper, which uses Stable Diffusion’s pretrained autoencoder, describes 512x512 images becoming 64x64x4 latents.16 That is 64 × 64 × 4 = 16,384 values: 48 times fewer scalars, and 64 times fewer spatial positions (4,096 against 262,144). How much compute this saves per denoising step depends on the network’s layers and widths, so the ratio is not an end-to-end speed-up. In pure text-to-image generation the decoder runs once after the last denoising step; training, and image-to-image uses, also require running the encoder on input images.620
Classifier-free guidance (2022)
Classifier guidance needed a separate classifier trained on noisy images. Jonathan Ho and Tim Salimans removed it (“Classifier-Free Diffusion Guidance”, posted 26 July 2022; a short version appeared at a NeurIPS 2021 workshop).22 Train one network that is sometimes given the condition c and sometimes, with probability p_uncond, a null token in its place, so the same network learns both a conditional and an unconditional noise prediction. At sampling time, combine them:
ε̃ = (1 + w) · ε(x, c) − w · ε(x).
The guidance weight w extrapolates away from the unconditional prediction, toward images more typical of the condition.22 On 64x64 ImageNet with p_uncond = 0.1, FID was best at a small weight (1.55 at w = 0.1) and rose steadily as w grew, while Inception score climbed from 53.7 at w = 0 to over 160 at w = 0.9.22 The authors read this pattern, together with the samples, as a trade-off between sample quality and diversity similar to classifier guidance. The cost is two forward passes per step instead of one, which they list as a disadvantage.22
Later papers often write the scale as s = 1 + w: latent diffusion reports “s = 1.5” and DiT “cfg=1.50”, both w = 0.5 in Ho and Salimans’s notation.616 Stable Diffusion’s v1-3 and v1-4 checkpoints were trained with 10 percent of text conditioning dropped “to improve classifier-free guidance sampling”, in the repository’s words.20
Flow matching (2022): learn the velocity along chosen paths
The probability-flow ODE showed that a trained diffusion model defines a smooth current from noise to data. Yaron Lipman, Ricky Chen, Heli Ben-Hamu, Maximilian Nickel and Matt Le asked whether one could train such a current directly (“Flow Matching for Generative Modeling”, 6 October 2022).23
The picture: choose, for each training image x₁, a path that carries a noise sample x₀ to it over time t from 0 to 1. The simplest is a straight line, ψ_t = (1 − (1 − σ_min) t) x₀ + t x₁, with a tiny residual width σ_min.23 Along that conditional path the velocity is constant. Train a network v_θ(x, t) by plain regression to predict that velocity at points along such paths. The paper’s central result is that regressing onto these per-example (“conditional”) velocities gives the same gradients as regressing onto the intractable velocity field of the whole data distribution.23 Sampling integrates the learned ODE from noise to data with a standard solver.
Diffusion paths are a special case: choose the Gaussian paths that a diffusion process induces, and flow matching becomes another way to train a diffusion model. For the straight-line choice, which the paper calls the optimal-transport (OT) path, the conditional paths are “guaranteed to stay straight”; the trajectories of the learned marginal field need not be. In the paper’s ImageNet 64x64 illustration, sample paths of the OT-trained model reduced noise roughly linearly, while those of the diffusion-trained models visibly removed noise mostly near the end.23 In a controlled comparison with the same U-Net and training settings, the OT version gave the best or equal-best figures on CIFAR-10 and ImageNet at 32 and 64 pixels. On CIFAR-10 it scored 2.99 bits per dimension and FID 6.35 with 142 function evaluations of an adaptive solver, against 3.12, 7.48 and 274 for the DDPM loss; on ImageNet 32 the likelihood difference was 0.01 bits (3.53 against 3.54).23 Liu, Gong and Liu’s rectified flow, posted a month earlier, also learns straight-path transport and adds “recursively applying rectification” to straighten paths further; in their experiments this gave good samples even with a single Euler step.24
Two prominent later systems use this family of objectives. Stability AI’s Stable Diffusion 3 paper (March 2024) trains with rectified flow and reports that it outperformed established diffusion formulations in a large-scale study, with models up to 8 billion parameters.25 Meta’s Movie Gen (October 2024) uses “the Flow Matching training objective” for a 30-billion-parameter video model.7 Diffusion and flow matching share the ODE framework for sampling; they differ in the training path and the regression target, and samplers can be chosen separately.
Diffusion transformers (2022): swap the backbone
Before late 2022 the convolutional U-Net was, in the DiT paper’s words, “the de-facto choice of backbone” for diffusion.16 William Peebles and Saining Xie’s “Scalable Diffusion Models with Transformers” (19 December 2022) replaced it with a vision transformer operating on patches of the latent.16 A 32x32x4 latent is cut into p × p patches, each becomes a token, and a stack of transformer blocks predicts the noise and a diagonal covariance; the timestep and class enter through adaptive layer normalisation (“adaLN-Zero”).16 The transformer itself is the one described in the reader on large language models and the transformer. Following Improved DDPM and ADM, DiT trains the noise head with the simplified mean-squared-error loss and the covariance head with the full variational loss; the comparison holds this diffusion formulation fixed and changes the backbone.1614
Their main measurement was compute. Across four model sizes (S, B, L, XL) and three patch sizes, FID at 400,000 training steps fell as forward-pass Gflops rose, with a correlation of −0.93 between Gflops and FID; halving the patch size quadruples the token count and “at least” quadruples total Gflops while leaving the parameter count essentially unchanged, and it improved quality.16 DiT-XL/2, at 118.6 Gflops per forward pass and trained for 7 million steps, reached an FID of 2.27 on class-conditional ImageNet 256x256 with guidance, against 3.60 for latent diffusion in the same table, and 3.04 at 512x512.16
The paper closes by suggesting DiT as a backbone for text-to-image models. Stable Diffusion 3’s authors describe their architecture as building on DiT, with separate weights for text and image tokens.25
Faster sampling (2023): consistency models
Many network evaluations per sample make diffusion slow to sample, the limitation Dhariwal and Nichol listed.9 Yang Song, Prafulla Dhariwal, Mark Chen and Ilya Sutskever’s “Consistency Models” (2 March 2023, ICML 2023) proposed a target for one-step generation.13 The probability-flow ODE gives every noise sample a deterministic trajectory ending at an image. A consistency model is trained so that every point on the same trajectory maps to the same endpoint: the “self-consistency” property, with a boundary condition that at the smallest noise level the function returns its input.13 Such a model can jump from noise to an image in one evaluation, or alternate denoising and partial re-noising for a few steps.
They can be trained by distillation from a pretrained diffusion model or from scratch. Distilled, they reported one-step FIDs of 3.55 on CIFAR-10 and 6.20 on ImageNet 64x64, and two-step FIDs of 2.93 and 4.70.13 In the same paper’s ImageNet 64x64 table, ADM is listed at 2.07 with 250 evaluations and BigGAN-deep at 4.06 with one; trained from scratch, the one-step consistency figure was 13.0.13 The paper reports network-evaluation counts and FID, not wall-clock times: the reduction from hundreds of evaluations to one or two is the measured result.
The families side by side
| Family | Key paper | Core idea | How you sample | Strengths | Weaknesses |
|---|---|---|---|---|---|
| Variational autoencoder | Kingma and Welling, 20135 | Encoder to a latent code, decoder back; maximise the ELBO | Draw a code from the prior, decode once | Likelihood bound, one-pass sampling, usable latent space | Soft samples with fixed-variance Gaussian decoders and pixel losses6 |
| GAN | Goodfellow et al., 20148 | Generator trained to fool a discriminator in a minimax game | One generator evaluation | Sharp samples, one-pass sampling | Mode collapse and unstable training reported; no likelihood9 |
| Normalizing flow | Dinh et al., 201610; Kingma and Dhariwal, 201811 | Bijection with tractable Jacobian | One inverse pass (or an ODE solve for continuous flows) | Exact likelihood for discrete flows; estimated for continuous flows12 | Bijection and determinant constraints; weaker samples in the cited comparison13 |
| Autoregressive | van den Oord et al., 2016 (images)26; Copet et al., 2023 (audio)27 | Factorise the joint distribution into a product of next-element conditionals | One element (or token group) at a time | Exact likelihood; parallel teacher-forced training and scoring | Serial generation for long outputs28 |
| Diffusion / score | Sohl-Dickstein et al., 20154; Ho et al., 20201; Song et al., 20203 | Learn to reverse gradual noising by predicting noise or score | Many denoising steps (SDE or ODE) | Regression objective, coverage in reported comparisons, guidance | Slow sampling; memorised some duplicated training data2 |
| Flow matching | Lipman et al., 202223; Liu et al., 202224 | Regress a velocity field along chosen noise-to-data paths | Integrate an ODE | Straight conditional paths, simple training | Fewer steps trade quality for evaluations; rectified flow reports one-step results after reflow24 |
| Consistency model | Song et al., 202313 | Map any point on an ODE trajectory to its endpoint | One to a few steps | Few network evaluations | Quality below many-step diffusion in the reported tables |
Text: where autoregression is the default baseline
Autoregressive language models factorise the probability of a sequence into a product of next-token probabilities and generate by predicting the next token given all previous ones; the reader on large language models and the transformer covers why that recipe works. Two properties matter here. It gives an exact likelihood, and training and scoring are parallel because the whole known sequence is fed in at once (teacher forcing). Generation is serial: under ordinary decoding, a thousand-token answer requires a thousand sequential generation decisions. Speculative decoding softens this by letting a small model draft several tokens that the large model verifies in one parallel pass, with “2X-3X” latency improvements reported on T5-XXL while preserving the target model’s output distribution.28 The family is not text-only: MusicGen generates music as a single-stage transformer language model over streams of compressed audio tokens.27
Diffusion offers parallel generation and, with samplers that permit re-masking such as LLaDA’s, the ability to revise earlier choices, which is why people keep trying it for text.29 The obstacle is that text is discrete. There is no small Gaussian nudge to a word, so the continuous machinery does not transfer directly. Discrete diffusion goes back to the 2015 paper, which used a binary process, and Austin and colleagues’ D3PM (July 2021) generalised it with structured corruption matrices, including an absorbing state that links diffusion to masked language models.30
Discrete diffusion: SEDD (2023)
Aaron Lou, Chenlin Meng and Stefano Ermon’s “Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution” (25 October 2023, ICML 2024 oral) supplied a discrete analogue of the score.31 In a continuous space the score says which nearby direction is more probable. In a discrete space the analogue is a set of ratios: how much more probable is this sequence if one token is changed to another? The forward process corrupts tokens toward uniformly random tokens or toward an absorbing MASK token (the version that worked best), and a transformer learns the ratios through a new loss, score entropy.31
Trained on OpenWebText and evaluated by zero-shot unconditional perplexity on five datasets (LAMBADA, WikiText2, PTB, WikiText103 and One Billion Words), the absorbing-state model’s perplexity bounds were below the GPT-2 values in the paper’s table at the same size on most of them. At the medium size, for example, its bound was 31.04 on WikiText2 against GPT-2’s 31.80. On LAMBADA and One Billion Words, its bounds were above GPT-2’s values.31 The comparison is uneven in two ways the paper states: the diffusion figures are upper bounds, so a bound above GPT-2’s value does not show that the exact perplexity is worse, and the authors recomputed GPT-2’s values in an unconditional setting for every dataset except One Billion Words.31 The paper’s Figure 1 compares unconditional samples by generative perplexity: depending on step count, SEDD matched GPT-2 samples with 32 times fewer network evaluations or improved on them by 6 to 8 times.31 That is a count of evaluations for a sample-quality proxy, not a wall-clock or exact-likelihood result, and it was obtained at GPT-2 scale.
LLaDA (2025): an 8-billion-parameter masked diffusion model
Shen Nie and colleagues’ “Large Language Diffusion Models” (14 February 2025, revised October 2025) asked whether the abilities of large language models depend on autoregression.29 LLaDA masks each token independently with probability t, trains a transformer without a causal mask to predict all masked tokens at once, and generates by starting from a fully masked response, predicting every token, then re-masking the least confident predictions and repeating.29 The model was pretrained from scratch on 2.3 trillion tokens using 0.13 million H800 GPU-hours, then fine-tuned on 4.5 million instruction pairs.29
For the base models, against LLaMA3 8B Base (trained on 15 trillion tokens), LLaDA 8B Base scored 65.9 against 65.4 on MMLU and 70.3 against 48.7 on GSM8K, but trailed on BBH, HellaSwag and PIQA (for example 49.7 against 62.1 on BBH).29 For the instruction-tuned models, on a task of supplying the line before a given line of a Chinese poem, LLaDA 8B Instruct scored 45.6 against GPT-4o’s 34.3, while trailing badly on the forward direction (51.8 against 82.7).29 LLaDA reported scores comparable to its own autoregressive baselines at some budgets and tasks; its comparisons with LLaMA3 and GPT-4o involve different training runs and data.29 The authors’ scaling comparison with their own baselines used the same data, with identical architectures at the 1B scale and slightly different sizes above it, up to a budget the limitations section puts below 10²³ FLOPs. The same section notes that LLaDA’s generation length is a fixed hyperparameter, that no KV cache or other system optimisation was applied to LLaDA, and that it had no reinforcement-learning alignment.29
Mercury (2025): a commercial diffusion language model
Inception Labs’ “Mercury: Ultra-Fast Language Models Based on Diffusion” (17 June 2025) describes commercial diffusion language models that generate tokens in parallel “in a coarse-to-fine manner”.32 Its speed figures are throughput claims, attributed to measurements by the benchmarking firm Artificial Analysis: Mercury Coder Mini at 1,109 output tokens per second and Mercury Coder Small at 737 on NVIDIA H100 GPUs. The “up to 10x faster than frontier speed-optimized LLMs” claim refers to that throughput.32 On the Copilot Arena code-completion platform the report says Mercury Coder Mini tied for second on user preference; for latency, its text gives an average of 25 ms while its Copilot Arena table lists 0.25 seconds, an inconsistency the report does not resolve.32 The report does not state parameter counts, and its speed comparisons are API against API, so serving infrastructure is part of what is measured.
Where diffusion language models stand
The case for them is parallel generation, the ability to fill in the middle of a sequence, and freedom from a fixed left-to-right order, which LLaDA’s reversal result illustrates. Several limitations of early full-sequence masked models have been addressed by hybrids. Arriola and colleagues’ block diffusion (ICLR 2025) generates block by block, diffusing within each block, which supports “flexible-length generation” and KV caching.33 On training cost, Nie and colleagues’ 2024 scaling study found masked diffusion models needed “approximately 16 times more computational resources” than autoregressive models to reach comparable validation loss.34 A follow-up by Wang and colleagues (October 2026, revised November 2026) argues that the 16x figure reflects scoring with the evidence lower bound and full-sequence, decoder-only training. Their multiple is read by taking each diffusion variant’s loss at 10²⁰ FLOPs and finding the autoregressive compute that reaches the same loss. With ELBO scoring they reproduced a figure close to the published one, 17.8x; rescoring the same checkpoints with the exact likelihood under the model’s own decoding order gave 12.8x; changing training, architecture and block size together (block diffusion with an encoder–decoder) gave 7.8x at block size 32, 4.6x at block size 8 and 3.0x at block size 4.35
Among the studies examined here, none shows a diffusion language model matching a frontier autoregressive model at equal compute, and none shows that one cannot. The measured compute gap depends strongly on how likelihood is scored and on whether the model is a pure masked diffusion model or a block hybrid.
What diffusion models memorise
The question and the definition
A diffusion model is trained to reconstruct training images from noisy versions of them. Carlini and colleagues contrast this with GANs, whose generators are “only trained using indirect information about the training data”: diffusion models “are explicitly trained to reconstruct the training set”.2 The objective does not by itself imply that whole training images will be reproduced at generation time; that is an empirical question, which “Extracting Training Data from Diffusion Models” (Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, Borja Balle, Daphne Ippolito and Eric Wallace; arXiv preprint 30 January 2023, USENIX Security, August 2023) addressed.362
Their definition is deliberately conservative. An image counts as extractable if an algorithm that does not receive the image as input can make the model produce an output within a set distance of it. The distance is the Euclidean distance divided by the square root of the input dimension, and the match threshold in the Stable Diffusion experiment was 0.15. A separate condition, “eidetic memorization”, additionally requires that at most k training examples lie within that distance of the image.2 The authors report that prompting for “A Photograph of Barack Obama” produced a recognisable Obama but no near-copy of any particular training image, so it does not count, although such outputs “could still cause privacy harms”.2
The Stable Diffusion experiment
The target was Stable Diffusion v1.4, which the paper describes as an 890-million-parameter model trained on 160 million images.2 The threat model gives the attacker query access to the model, generating images from prompts. The experiment was targeted: the authors used their knowledge of the public training set to choose captions of heavily duplicated images as prompts, generated many images per prompt, and flagged prompts for which many different random seeds produced nearly the same image, a sign that the model was reproducing something it had memorised. The attack used captions as prompts and the model’s outputs; the training images were used only to evaluate whether outputs matched.2
In total they generated 175 million images. Of the candidates, 94 met the 0.15 distance threshold, and manual inspection found 13 more near-copies, a total of 107 in the USENIX version (the arXiv preprint gives an inconsistent total of 109).236 In this run the ranking identified 50 memorised images before its first false positive.2 Extracted images were mostly ones duplicated many times in the training data, which the authors note is partly a product of searching for duplicates.2 Of the extracted images, 58 percent were photographs with a recognisable person as the main subject, 17 percent products for sale and 14 percent logos or posters; 35 percent carried an explicit non-permissive copyright notice, and 61 percent had no explicit notice but might fall under general copyright.2
Imagen and outliers
Google’s Imagen, a 2-billion-parameter model trained on some non-public data, was tested on a smaller targeted set: of the 1,000 most-duplicated prompts examined, 23 yielded images the authors identified as memorised, a rate they call “significantly higher” than in the Stable Diffusion run.2 Targeting the 500 most out-of-distribution training images, they extracted 3 from Imagen that were unique in its training set; the same method found none in Stable Diffusion among the 10,000 most-outlying images.2 The authors propose Imagen’s higher capacity, longer training and smaller dataset as explanations; the experiment does not isolate which factor matters.2
Controlled experiments and comparison with GANs
To study causes they trained their own models on CIFAR-10: 16 diffusion models, each on a random half of the data, with about a million unconditional generations in total, which reproduced 1,280 training images.2 Two kinds of comparison with GANs were made on the models they tested. In membership inference, which asks whether a given image was in the training set, the diffusion models leaked more than the GANs. In unconditional generation, the best DDPM models reproduced about twice as many training images as GANs of comparable FID, and better diffusion models reproduced more than weaker ones.2
Defences were tested and found partial. Deduplicating CIFAR-10 (removing 5,275 of 50,000 images) reduced regenerated examples from 1,280 to 986. In the authors’ codebase, differentially private training with DP-SGD made CIFAR-10 training diverge even at privacy budgets of ε ≥ 50, although they note other work showing DP-SGD can be applied to small-scale diffusion models without substantial degradation.2 Dockhorn and colleagues’ differentially private diffusion models, for example, improved the state-of-the-art FID on MNIST from 56.2 to 23.4 at ε = 1, δ = 10⁻⁵.37 Inserted synthetic “canary” images showed that some reached maximum exposure after being duplicated only twice.2
What the result does and does not show
It shows that large text-to-image diffusion models emitted near-copies of some training images, including identifiable people and copyrighted material, to an attacker with query access who targeted heavily duplicated content. The 107 images are unique extracted examples from one targeted run; they are not an estimate of how often an ordinary generation copies its training data. Somepalli and colleagues measured a different quantity: using image-retrieval similarity against a 12-million-image subset of the training data, about 1.88 percent of Stable Diffusion generations from a sample of LAION captions exceeded their similarity threshold.38 That is a threshold exceedance on their sample and search corpus, not an adjudicated replication rate. Stein and colleagues found memorisation on CIFAR-10 but “not necessarily” on ImageNet among the models they studied, and that none of the metrics they tested separates memorisation from underfitting or mode shrinkage.19 Whether models that can regenerate training images legally “contain” them is outside the paper’s scope and contested.2 For the attack-taxonomy view of extraction and inference attacks, see MITRE ATLAS: what the AI attack matrix knows, and how it knows it.
Synthetic media and detection
Corvi and colleagues (November 2022) tested detectors built for GAN images on images from diffusion models and found that “detectors trained only on GAN images work poorly on these new images”, and that resizing and compression of the kind applied by social networks reduce performance further.39 Deepfake-Eval-2024 (Chandra and colleagues, March 2025) collected 45 hours of video, 56.5 hours of audio and 1,975 images flagged as suspect in 2024, from 88 websites in 52 languages, through a detection platform’s users, a social-media bot and posts flagged by X Community Notes.40 The paper compares each open-source detector’s AUC on the new set with its AUC on its original publication’s test data, taken from the original paper or rerun by the benchmark authors where not provided, and reports average drops of 50 percent for video, 48 percent for audio and 45 percent for image models. The three video AUC pairs in its Table 3 imply an average relative drop of about 41 percent (my arithmetic), a discrepancy the paper does not explain; commercial and fine-tuned detectors did better but “do not yet reach the accuracy of deepfake forensic analysts”.40 These are AUC figures, not false-negative rates at any particular operating threshold. NIST’s November 2024 overview describes automated detection as “a constant cat-and-mouse game” in which detectors “may only perform well on specific generators”.41
Watermarking and provenance address the problem from the generator’s side. Saberi and colleagues (ICLR 2024) proved, for watermarks that perturb images only slightly, a trade-off between the rate at which watermarked images are missed and the rate at which unwatermarked images are falsely flagged, once a diffusion-based “purification” (noising and denoising) is applied. Empirically, that purification removed the low-perturbation watermarks they tested, a different attack defeated the higher-perturbation schemes they tested, and watermarks could be spoofed onto real images so that genuine content was misclassified as generated.42 NIST summarised the image-watermark literature as of 2024 in similar terms: “most current watermarking schemes have been consistently found vulnerable to removal”. It notes that schemes built into the whole generation process, such as tree-ring watermarks, fall outside the noise-and-denoise proof, but that even these have been found removable “given either sufficient access to the watermark detector or a large dataset of watermarked images”.41
The C2PA specification takes a different approach: it signs metadata about an asset’s origin and edit history, for images, audio and video.41 A hard binding lets a validator confirm that “this manifest belongs with this asset” and that “the asset has not been modified”.43 The specification’s validation states are narrower than that summary. A manifest is Valid if it is well-formed, unmodified since signing, correctly signed and its credential not revoked; it is Trusted if, in addition, the signing credential is trusted. An asset is Valid if the portions covered by its content bindings have not been modified since the active manifest was produced, and bindings may exclude some metadata.43 The claim is signed by a hardware or software claim generator using the signer’s credential, which need not identify the person who made the content. The assertions inside, such as which tool created the asset, are statements by the signer or gathered at claim time, and the specification leaves the consumer to use “the identity of the signer, along with other trust signals, to decide whether the assertions made about an asset are true”.43 NIST notes that embedded metadata “can similarly be stripped altogether, as it often is when files are shared”, that as of 2024 C2PA had been evaluated mainly through the coalition’s own harms modelling, and that third-party experts have raised concerns about security and complexity.41 A missing credential is therefore not evidence that content is synthetic.41
Biometric spoofing
Face morphing attacks create one image that verifies against two people, so that two individuals can share one identity document. Damer and colleagues’ MorDIFF (February 2023) used a diffusion autoencoder to interpolate two faces’ latent representations and decode a morph.44 On all four face-recognition models tested, at false match rates of 1 percent and 0.1 percent, verification was more vulnerable to MorDIFF than to the GAN-based representation-level morphs MIPGAN I and II, and MorDIFF’s success rates were in most cases close to those of the best image-level morphs.44 Detection is a separate question: in cross-dataset tests of two morphing-attack detector architectures, each trained on three datasets (six configurations), no morph type was detected perfectly, and for most detectors MorDIFF was “not the most, nor the least accurately detected morph type”.44 Face-based checks are discussed further in Proving Your Age Without Proving Who You Are.
Reading list
- Kingma and Welling, [Auto-Encoding Variational Bayes](https://arxiv.org/abs/1312.6114) (2013). Read for the reparameterisation trick, a low-variance pathwise gradient estimator for the variational objective in differentiable continuous-latent models.5
- Goodfellow et al., [Generative Adversarial Nets](https://arxiv.org/abs/1406.2661) (2014; arXiv record title “Generative Adversarial Networks”). Read for the minimax formulation and the original description of mode collapse.8
- Sohl-Dickstein et al., [Deep Unsupervised Learning using Nonequilibrium Thermodynamics](https://arxiv.org/abs/1503.03585) (2015). Read for the physics-derived argument that small noising steps have learnable reversals.4
- Ho, Jain and Abbeel, [Denoising Diffusion Probabilistic Models](https://arxiv.org/abs/2006.11239) (2020). Read for the noise-prediction objective and the simple loss that most later image diffusion work starts from.1
- Song et al., [Score-Based Generative Modeling through Stochastic Differential Equations](https://arxiv.org/abs/2011.13456) (2020). Read for the SDE unification and the probability-flow ODE, which links diffusion to continuous flows, flow matching and consistency models.3
- Dhariwal and Nichol, [Diffusion Models Beat GANs on Image Synthesis](https://arxiv.org/abs/2105.05233) (2021). Read the ImageNet comparison tables and the appendix compute-comparison table together.9
- Rombach et al., [High-Resolution Image Synthesis with Latent Diffusion Models](https://arxiv.org/abs/2112.10752) (2021). Read for the split between perceptual compression and generation, the design behind Stable Diffusion.6
- Ho and Salimans, [Classifier-Free Diffusion Guidance](https://arxiv.org/abs/2207.12598) (2022). Read for the guidance formula behind the “guidance scale” setting in many image generators.22
- Lipman et al., [Flow Matching for Generative Modeling](https://arxiv.org/abs/2210.02747) (2022). Read for the conditional-path regression result; with rectified flow (Liu et al., 2022 (opens in a new tab)), the basis of the objectives used by Stable Diffusion 3 and Movie Gen.2324257
- Peebles and Xie, [Scalable Diffusion Models with Transformers](https://arxiv.org/abs/2212.09748) (2022). Read for the evidence that diffusion quality tracks backbone compute.16
- Song et al., [Consistency Models](https://arxiv.org/abs/2303.01469) (2023). Read for the self-consistency idea behind one- and few-step generation.13
- Lou, Meng and Ermon, [Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution](https://arxiv.org/abs/2310.16834) (2023). Read for how the score idea carries over to discrete tokens.31
- Nie et al., [Large Language Diffusion Models](https://arxiv.org/abs/2502.09992) (2025). Read as the largest from-scratch masked diffusion language model of disclosed size in this reader, with its own limitations section.29
- Inception Labs, [Mercury: Ultra-Fast Language Models Based on Diffusion](https://arxiv.org/abs/2506.17298) (2025). Read as a vendor report; its speed figures are the vendor’s account of third-party API throughput measurements, and its latency text and table disagree.32
- Carlini et al., [Extracting Training Data from Diffusion Models](https://www.usenix.org/system/files/usenixsecurity23-carlini.pdf) (2023). Read for the extraction definition, the defences tested and their limits.2
What a security practitioner should take from this
Memorisation was found where the study looked: duplicated and outlying records. The authors searched for duplicated images and, separately, for outliers; the extracted Stable Diffusion images were mostly heavily duplicated, and three unique outliers were extracted from Imagen. The paper gives no estimate of how memorised records divide between these classes overall. If you train or fine-tune a generative model on sensitive images, such as medical scans or identity photos, the cited work supports perceptual deduplication (which reduced but did not remove regeneration in their test) and canary audits before release.2 The authors caution that if a future diffusion model were trained on sensitive data, the kinds of data extracted “would likely be drawn from this sensitive data distribution”.2 Differential privacy is the principled defence; it diverged in the authors’ CIFAR-10 implementation but has worked for small-scale diffusion models in other work.237
The extraction attack used query access plus knowledge of the training data.2 By my inference, untested in the cited work, rate limiting and monitoring for many generations of the same prompt could raise the cost for a hosted model, while downloaded weights bypass any provider’s limits and leave only the attacker’s own compute as a bound.
Measure detectors on your own media at your own threshold. Tested detectors generalised poorly across generators and from academic benchmarks to in-the-wild media.3940 Benchmark AUC does not tell you the false-negative rate at a deployed operating point. Treat a detector’s output as one signal. For identity proofing, the measured threat is a morph, an image combining two identities, being falsely matched by face recognition.44 In my judgment, untested by the cited studies, that argues for controls on how reference photos are captured and verified, and for call-back or out-of-band confirmation of high-value requests, alongside any media classifier.
Provenance verifies a credential and a binding, not the truth of a claim. A valid C2PA manifest shows that a non-revoked credential signed assertions and that the bound portions of the asset are unchanged since signing; it does not establish who authored the content, and its evidentiary weight depends on the signer and the trust context. Embedded metadata is often stripped in sharing, and the low-perturbation watermarks tested in the cited work could be removed or forged.434142
Conclusion
Diffusion models learn to reverse a gradual noising process, sampled over a thousand steps in the original DDPM and over far fewer in later samplers. That recipe, and its flow-matching relative, underpins prominent image and video systems such as Stable Diffusion and Movie Gen, while autoregressive models remain the default for text and appear in audio systems such as MusicGen. The probability-flow ODE linked diffusion to continuous flows, flow matching and consistency models; transformer backbones such as DiT were a separate change to the network. The older families persist as components: VAE-style autoencoders compress, an adversarial loss trained one latent-diffusion autoencoder. Against GANs, diffusion showed better coverage in the reported setups; equal-budget comparisons remain uncertain, and FID has been observed to disagree with human judgments of realism. In the studies covered here, diffusion language models have not been shown to match autoregressive ones at equal compute; one 2026 study finds a smaller measured gap under newer protocols. For defenders, the studies covered here show three limits: diffusion models emitted near-copies of some heavily duplicated training images to a targeted attacker; tested detectors lost much of their benchmark performance on new generators and real-world media; and tested watermarks and embedded metadata could be removed. Provenance credentials establish which credential signed a claim about the bound content, not whether the claim is true or who authored the content.
Footnotes
- Jonathan Ho, Ajay Jain and Pieter Abbeel, “Denoising Diffusion Probabilistic Models”, arXiv:2006.11239, first posted 19 June 2020, revised 16 December 2020. https://arxiv.org/abs/2006.11239 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
- Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, Borja Balle, Daphne Ippolito and Eric Wallace, “Extracting Training Data from Diffusion Models”, Proceedings of the 32nd USENIX Security Symposium, 9–11 August 2023. https://www.usenix.org/system/files/usenixsecurity23-carlini.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25
- Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon and Ben Poole, “Score-Based Generative Modeling through Stochastic Differential Equations”, arXiv:2011.13456, first posted 26 November 2020, revised 10 February 2021; ICLR 2021 (oral). https://arxiv.org/abs/2011.13456 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Jascha Sohl-Dickstein, Eric A. Weiss, Niru Maheswaranathan and Surya Ganguli, “Deep Unsupervised Learning using Nonequilibrium Thermodynamics”, arXiv:1503.03585, first posted 12 March 2015, revised 18 November 2015. https://arxiv.org/abs/1503.03585 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Diederik P. Kingma and Max Welling, “Auto-Encoding Variational Bayes”, arXiv:1312.6114, first posted 20 December 2013, latest revision 10 December 2022. https://arxiv.org/abs/1312.6114 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser and Björn Ommer, “High-Resolution Image Synthesis with Latent Diffusion Models”, arXiv:2112.10752, first posted 20 December 2021, revised 13 April 2022; CVPR 2022. https://arxiv.org/abs/2112.10752 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- Adam Polyak and colleagues (Meta), “Movie Gen: A Cast of Media Foundation Models”, arXiv:2410.13720, first posted 17 October 2024, revised 26 February 2025. https://arxiv.org/abs/2410.13720 (opens in a new tab) ↩1 ↩2 ↩3
- Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville and Yoshua Bengio, “Generative Adversarial Nets” (arXiv record title “Generative Adversarial Networks”), arXiv:1406.2661, 10 June 2014. https://arxiv.org/abs/1406.2661 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Prafulla Dhariwal and Alex Nichol, “Diffusion Models Beat GANs on Image Synthesis”, arXiv:2105.05233, first posted 11 May 2021, revised 1 June 2021. https://arxiv.org/abs/2105.05233 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- Laurent Dinh, Jascha Sohl-Dickstein and Samy Bengio, “Density estimation using Real NVP”, arXiv:1605.08803, first posted 27 May 2016, revised 27 February 2017; ICLR 2017. https://arxiv.org/abs/1605.08803 (opens in a new tab) ↩1 ↩2 ↩3
- Diederik P. Kingma and Prafulla Dhariwal, “Glow: Generative Flow with Invertible 1x1 Convolutions”, arXiv:1807.03039, first posted 9 July 2018. https://arxiv.org/abs/1807.03039 (opens in a new tab) ↩1 ↩2
- Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever and David Duvenaud, “FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Models”, arXiv:1810.01367, first posted 2 October 2018. https://arxiv.org/abs/1810.01367 (opens in a new tab) ↩1 ↩2
- Yang Song, Prafulla Dhariwal, Mark Chen and Ilya Sutskever, “Consistency Models”, arXiv:2303.01469, first posted 2 March 2023, revised 31 May 2023; ICML 2023. Comparison figures from its Tables 1 and 2. https://arxiv.org/abs/2303.01469 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Alex Nichol and Prafulla Dhariwal, “Improved Denoising Diffusion Probabilistic Models”, arXiv:2102.09672, 18 February 2021. https://arxiv.org/abs/2102.09672 (opens in a new tab) ↩1 ↩2
- Yang Song and Stefano Ermon, “Generative Modeling by Estimating Gradients of the Data Distribution”, arXiv:1907.05600, first posted 12 July 2019. https://arxiv.org/abs/1907.05600 (opens in a new tab) ↩
- William Peebles and Saining Xie, “Scalable Diffusion Models with Transformers”, arXiv:2212.09748, first posted 19 December 2022, revised 2 March 2023. https://arxiv.org/abs/2212.09748 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler and Sepp Hochreiter, “GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium”, arXiv:1706.08500, first posted 26 June 2017, revised 12 January 2018 (introduces the Fréchet Inception Distance). https://arxiv.org/abs/1706.08500 (opens in a new tab) ↩
- Tuomas Kynkäänniemi, Tero Karras, Miika Aittala, Timo Aila and Jaakko Lehtinen, “The Role of ImageNet Classes in Fréchet Inception Distance”, arXiv:2203.06026, first posted 11 March 2022, revised 14 February 2023; ICLR 2023. https://arxiv.org/abs/2203.06026 (opens in a new tab) ↩
- George Stein, Jesse C. Cresswell, Rasa Hosseinzadeh and colleagues, “Exposing flaws of generative model evaluation metrics and their unfair treatment of diffusion models”, arXiv:2306.04675, first posted 7 June 2023, revised 30 October 2023. https://arxiv.org/abs/2306.04675 (opens in a new tab) ↩1 ↩2
- CompVis, “Stable Diffusion” repository README, GitHub, accessed 26 November 2026. https://github.com/CompVis/stable-diffusion (opens in a new tab) ↩1 ↩2 ↩3
- Hugging Face, “LoRA” (diffusers training guide), Hugging Face documentation, accessed 26 November 2026. https://huggingface.co/docs/diffusers/training/lora (opens in a new tab) ↩
- Jonathan Ho and Tim Salimans, “Classifier-Free Diffusion Guidance”, arXiv:2207.12598, 26 July 2022 (a short version appeared at the NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications). https://arxiv.org/abs/2207.12598 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel and Matt Le, “Flow Matching for Generative Modeling”, arXiv:2210.02747, first posted 6 October 2022, revised 8 February 2023. https://arxiv.org/abs/2210.02747 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Xingchao Liu, Chengyue Gong and Qiang Liu, “Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow”, arXiv:2209.03003, 7 September 2022. https://arxiv.org/abs/2209.03003 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Patrick Esser, Sumith Kulal, Andreas Blattmann and colleagues (Stability AI), “Scaling Rectified Flow Transformers for High-Resolution Image Synthesis”, arXiv:2403.03206, 5 March 2024. https://arxiv.org/abs/2403.03206 (opens in a new tab) ↩1 ↩2 ↩3
- Aaron van den Oord, Nal Kalchbrenner and Koray Kavukcuoglu, “Pixel Recurrent Neural Networks”, arXiv:1601.06759, first posted 25 January 2016, revised 19 August 2016. https://arxiv.org/abs/1601.06759 (opens in a new tab) ↩
- Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi and Alexandre Défossez (Meta), “Simple and Controllable Music Generation”, arXiv:2306.05284, first posted 8 June 2023. https://arxiv.org/abs/2306.05284 (opens in a new tab) ↩1 ↩2
- Yaniv Leviathan, Matan Kalman and Yossi Matias, “Fast Inference from Transformers via Speculative Decoding”, arXiv:2211.17192, first posted 30 November 2022, revised 18 May 2023. https://arxiv.org/abs/2211.17192 (opens in a new tab) ↩1 ↩2
- Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen and Chongxuan Li, “Large Language Diffusion Models”, arXiv:2502.09992, first posted 14 February 2025, revised 18 October 2025. https://arxiv.org/abs/2502.09992 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Jacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow and Rianne van den Berg, “Structured Denoising Diffusion Models in Discrete State-Spaces”, arXiv:2107.03006, first posted 7 July 2021. https://arxiv.org/abs/2107.03006 (opens in a new tab) ↩
- Aaron Lou, Chenlin Meng and Stefano Ermon, “Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution”, arXiv:2310.16834, first posted 25 October 2023, revised 6 June 2024; ICML 2024 (oral). https://arxiv.org/abs/2310.16834 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Inception Labs (Samar Khanna, Siddhant Kharbanda, Shufan Li and colleagues), “Mercury: Ultra-Fast Language Models Based on Diffusion”, arXiv:2506.17298, 17 June 2025. https://arxiv.org/abs/2506.17298 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Marianne Arriola and colleagues, “Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models”, arXiv:2503.09573, first posted 12 March 2025; ICLR 2025. https://arxiv.org/abs/2503.09573 (opens in a new tab) ↩
- Shen Nie, Fengqi Zhu, Chao Du, Tianyu Pang, Qian Liu, Guangtao Zeng, Min Lin and Chongxuan Li, “Scaling up Masked Diffusion Models on Text”, arXiv:2410.18514, first posted 24 October 2024; ICLR 2025. https://arxiv.org/abs/2410.18514 (opens in a new tab) ↩
- Guanghan Wang, Bing He, Zhan Shi, Benoit Dumoulin, Hanqing Lu and Volodymyr Kuleshov, “Revisiting the 16x Pretraining Compute Gap between Diffusion and Autoregressive Language Models”, arXiv:2610.17590, first posted 13 October 2026, revised 3 November 2026 (preprint). https://arxiv.org/abs/2610.17590 (opens in a new tab) ↩
- Nicholas Carlini and colleagues, “Extracting Training Data from Diffusion Models”, arXiv:2301.13188, 30 January 2023 (preprint; its Stable Diffusion total of 109 is corrected to 107 in the USENIX version). https://arxiv.org/abs/2301.13188 (opens in a new tab) ↩1 ↩2
- Tim Dockhorn, Tianshi Cao, Arash Vahdat and Karsten Kreis, “Differentially Private Diffusion Models”, arXiv:2210.09929, first posted 18 October 2022; Transactions on Machine Learning Research, August 2023. https://arxiv.org/abs/2210.09929 (opens in a new tab) ↩1 ↩2
- Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping and Tom Goldstein, “Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Models”, arXiv:2212.03860, first posted 7 December 2022, revised 12 December 2022. https://arxiv.org/abs/2212.03860 (opens in a new tab) ↩
- Riccardo Corvi, Davide Cozzolino, Giada Zingarini, Giovanni Poggi, Koki Nagano and Luisa Verdoliva, “On the detection of synthetic images generated by diffusion models”, arXiv:2211.00680, 1 November 2022. https://arxiv.org/abs/2211.00680 (opens in a new tab) ↩1 ↩2
- Nuria Alina Chandra, Hannah Lee, Ryan Murtfeldt and colleagues, “Deepfake-Eval-2024: A Multi-Modal In-the-Wild Benchmark of Deepfakes Circulated in 2024”, arXiv:2503.02857, first posted 4 March 2025, revised 27 May 2026. https://arxiv.org/abs/2503.02857 (opens in a new tab) ↩1 ↩2 ↩3
- National Institute of Standards and Technology, “Reducing Risks Posed by Synthetic Content: An Overview of Technical Approaches to Digital Content Transparency”, NIST AI 100-4, November 2024. https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-4.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Mehrdad Saberi, Vinu Sankar Sadasivan, Keivan Rezaei, Aounon Kumar, Atoosa Chegini, Wenxiao Wang and Soheil Feizi, “Robustness of AI-Image Detectors: Fundamental Limits and Practical Attacks”, arXiv:2310.00076, first posted 29 September 2023, revised 14 February 2024; ICLR 2024. https://arxiv.org/abs/2310.00076 (opens in a new tab) ↩1 ↩2
- Coalition for Content Provenance and Authenticity, “C2PA Technical Specification 2.2” (Content Credentials), accessed 26 November 2026. https://spec.c2pa.org/specifications/specifications/2.2/specs/ContentCredentials.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Naser Damer, Meiling Fang, Patrick Siebke, Jan Niklas Kolf, Marco Huber and Fadi Boutros, “MorDIFF: Recognition Vulnerability and Attack Detectability of Face Morphing Attacks Created by Diffusion Autoencoders”, arXiv:2302.01843, first posted 3 February 2023, revised 11 March 2023. https://arxiv.org/abs/2302.01843 (opens in a new tab) ↩1 ↩2 ↩3 ↩4

SecSIG