Home Knowledge Base Diffusion Transformer (DiT)

Diffusion Transformer (DiT) is the architecture that replaces the traditional U-Net backbone in diffusion models with a pure Transformer design — using self-attention over patched latent representations to generate images, video, and other media with superior scaling properties compared to convolutional U-Nets, where scaling model size and compute directly improves generation quality following predictable scaling laws, making DiT the architecture behind state-of-the-art systems like DALL-E 3, Stable Diffusion 3, and Sora.

Why Replace U-Net with Transformers

DiT Architecture

Input latent z (e.g., 32×32×4 from VAE)
         ↓
[Patchify]: Split into p×p patches → sequence of tokens
         ↓
[Positional embedding + timestep embedding]
         ↓
[DiT Block 1]: LayerNorm → Self-Attention → MLP (with adaptive conditioning)
[DiT Block 2]: ... (repeated N times)
...
[DiT Block N]
         ↓
[Unpatchify]: Reconstruct spatial dimensions
         ↓
Predicted noise ε (or velocity v)

Adaptive Layer Norm (adaLN-Zero)

Scaling Properties

ModelParametersFID-50K (ImageNet 256)
DiT-S/233M68.4
DiT-B/2130M43.5
DiT-L/2458M23.3
DiT-XL/2675M9.62
DiT-XL/2 + cfg675M2.27

DiT in Practice

SystemArchitectureScale
Stable Diffusion 3 (Stability AI)MM-DiT (multimodal DiT)~3B
DALL-E 3 (OpenAI)DiT variant~12B (estimated)
Sora (OpenAI)Spacetime DiTUnknown (large)
PixArt-α/ΣDiT with T5 text encoder600M
Flux (Black Forest Labs)DiT variant~12B

DiT vs. U-Net

PropertyU-NetDiT
ArchitectureConv + attentionPure transformer
ScalingSaturates ~2BScales to 100B+
Training efficiencyGood at small scaleBetter at large scale
Spatial inductive biasStrong (convolution)Weak (learned)
Hardware utilizationMixed opsUniform matmul → GPU-optimal

The Diffusion Transformer is the architectural evolution that enabled diffusion models to scale into the frontier generative AI era — by replacing the U-Net's convolutional backbone with Transformers, DiT unlocked the same scaling laws that made LLMs powerful, allowing image and video generation models to improve predictably with more compute and data, making it the standard architecture for all major generative AI systems from 2024 onward.

diffusion transformerditscalable diffusiondit architecturelatent diffusion transformer

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.