↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

What SDXL-Turbo is

A diffusion model makes an image by denoising many times: SDXL's usual recipe is 20 or more U-Net steps, each run twice for classifier-free guidance. SDXL-Turbo is SDXL with new U-Net weights, trained by adversarial diffusion distillation (ADD) to give a usable image in one to four steps, with no guidance at all.

The page records it at 512 × 512 pixels (a 64 × 64 × 4 latent) on the prompt a red apple on a wooden table, seed 0, guidance 0: once in a single step and once in four. The model is SDXL's: a 2,567 M-parameter U-Net, an 84 M VAE and two CLIP text encoders of 123 M and 695 M parameters. Next to it the page runs SDXL base itself on the identical input, so every difference you see comes from the weights.

One step from pure noise

The sampler starts at the last training timestep, , where the latent is pure noise scaled by . The U-Net predicts the noise in it (reading so its input has unit variance), and one Euler step to removes all of it:

The One step from noise panel shows this for both checkpoints. A denoiser trained with a squared error learns the mean of all clean images that could lie under the noise. At almost nothing of the image survives, so SDXL base's best guess of is a blur: the average of every apple on every table the prompt allows. Turbo's weights were trained to commit to one sharp sample instead.

Adversarial diffusion distillation

Sauer et al. initialise a student from the pretrained diffusion model and train it on two losses at once. The student gets a noised training image at one of a few timesteps (four in the paper, the last at with zero terminal SNR) and returns a clean estimate :

  • Distillation. The student's image is noised again with the teacher's forward process, , the frozen teacher (SDXL for the XL model) denoises it, and the student is pulled towards the teacher's answer: , where sg stops the gradient. With a suitable weighting its gradient equals that of score distillation sampling, the loss DreamFusion used to optimise 3D scenes with a 2D diffusion model.
  • Adversarial. A discriminator judges whether looks like a real image. It is a frozen pretrained feature network (DINOv2 ViT-S worked best in the paper's ablation) with small trainable heads on several of its layers, conditioned on the prompt's text embedding and on an image embedding, and trained with a hinge loss and an R1 penalty. The frozen-features-plus-heads design follows StyleGAN-T's discriminator.

The distillation term keeps the student faithful to the teacher's composition and prompt following; the adversarial term is what makes a single step sharp, because a blurry average is exactly what a discriminator rejects.

What changes from SDXL

The What changes from SDXL panel compares the two checkpoints tensor by tensor. The architecture is untouched: all 1,680 U-Net tensors have the same shapes, and the configs differ only in sample_size (128 → 64, the 512-pixel default). The text encoders are the same files, byte for byte, and all 248 VAE tensors are identical. Only the U-Net moved, and not far:

No tensor is left unchanged, and the largest change of any block is 3.9 %, in a ResNet block of the last up level. Hover the tiles of the U-Net panel to see each block's share, and open the transformer block for its ten layers one by one. A small, spread-out move in weight space is enough to turn a model that blurs at one step into one that does not.

Because the student needs no guidance, only the prompt is encoded and the U-Net runs once per step, against SDXL's 20 Euler steps × 2 passes. The Where each token lands maps show, for the one step at , how much attention each latent pixel's query pays to each prompt token, averaged over the heads and layers of the chosen transformer block; the last map sums the 68 padding tokens.

Four steps

For more detail Turbo can take four steps at timesteps 999, 749, 499 and 249 ( = 14.61, 4.08, 1.61, 0.69, then 0). These are trailing timesteps: spaced evenly from the end, so the first step starts at pure noise. Lin et al. pointed out that the common leading spacing never starts from , which leaves a sampler beginning from a state the model was not trained on; a one-step model has to start there.

Each step is an Euler-ancestral step: it predicts , steps deterministically down to , and adds fresh noise of size so the total noise matches the next level:

The Four steps strip shows , , and the fresh noise of every step; at the last step and the noise is multiplied by zero. The 1 step vs 4 steps · Turbo vs SDXL base card runs both checkpoints through the same sampler, seed and prompt, so the rows of each pair differ only in the U-Net's numbers.

Where it came from

Earlier routes to few-step sampling distil the sampler's trajectory: progressive distillation halves the step count repeatedly, and consistency models learn to jump from any noise level to the trajectory's end (see the Consistency and LCM tabs). Both lose sharpness at one step. GANs such as StyleGAN-T are one-step by design but fell behind diffusion models on large text-to-image data. ADD puts a GAN's discriminator on a diffusion student, keeping the teacher's knowledge through the distillation loss.

The follow-up, latent adversarial diffusion distillation (LADD), moves the discriminator into latent space and builds it from the teacher's own features instead of DINOv2, which let the same recipe distil Stable Diffusion 3 at high resolution. The base model this tab distils is on the SDXL tab.

Papers

  1. Adversarial Diffusion Distillation Axel Sauer, Dominik Lorenz, Andreas Blattmann, Robin Rombach · ECCV 2024 Introduces ADD and SDXL-Turbo: a student initialised from the diffusion model, trained with an adversarial loss and a distillation loss from the frozen teacher.
  2. SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis Dustin Podell et al. · ICLR 2024 The base model whose architecture, text encoders and VAE Turbo keeps unchanged, and whose U-Net the page compares with Turbo's.
  3. Common Diffusion Noise Schedules and Sample Steps are Flawed Shanchuan Lin, Bingchen Liu, Jiashi Li, Xiao Yang · WACV 2024 Zero terminal SNR and trailing timestep spacing, so sampling starts from pure noise at the last timestep, as both of Turbo's runs do.
  4. DreamFusion: Text-to-3D using 2D Diffusion Ben Poole, Ajay Jain, Jonathan T. Barron, Ben Mildenhall · ICLR 2023 Score distillation sampling, the loss ADD's distillation term reduces to with the right weighting.
  5. StyleGAN-T: Unlocking the Power of GANs for Fast Large-Scale Text-to-Image Synthesis Axel Sauer et al. · ICML 2023 A one-step text-to-image GAN whose discriminator, a frozen feature network with trainable heads, ADD builds on.
  6. Fast High-Resolution Image Synthesis with Latent Adversarial Diffusion Distillation Axel Sauer et al. · arXiv 2024 LADD: the discriminator moves into latent space and uses the teacher's own features, distilling Stable Diffusion 3.

See also