Back to Multimodal Mind Map
中文·English
👁️ MultimodalID: dit-3dvae

DiT & 3D Causal VAE

DiT 与 3D Causal VAE
🎯Core Definition
DiT (Diffusion Transformer) replaces the U-Net with a pure Transformer as the diffusion backbone — the underlying architecture of Sora, SD3 and FLUX. Two core designs:
📌Overview
Patchify: the latent map zRh×w×cz \in \mathbb{R}^{h \times w \times c} is cut into p×pp \times p patches and linearly embedded into T=hpwpT = \frac{h}{p} \cdot \frac{w}{p} tokens of dimension dd (video adds 3D spatio-temporal positional encoding). Larger patches mean fewer tokens and cheaper compute at the cost of spatial detail (typically p=2p = 2).
📌Overview
AdaLN conditioning: timestep tt and condition cc are not concatenated into tokens; an MLP maps them to per-token scale/shift that modulate LayerNorm:
📌Overview
h=γ(t,c)LN(x)+β(t,c),(γ,β)=MLP(Emb(t),Emb(c))h = \gamma(t, c) \odot \operatorname{LN}(x) + \beta(t, c), \quad (\gamma, \beta) = \operatorname{MLP}(\operatorname{Emb}(t), \operatorname{Emb}(c))
📌Overview
Sora uses AdaLN-Zero: the MLP output is zero-initialized and the modulation sits before the residual branch, so the model starts as an identity mapping — more stable and faster to converge, with fewer parameters and less compute than cross-attention injection.
📌Overview
Sora 3D causal VAE: video is compressed into latent space before the DiT — a causal 8×8 spatial, 4× temporal compression of F×H×W×3F \times H \times W \times 3 into F/4×H/8×W/8×16F/4 \times H/8 \times W/8 \times 16, a 8×8×4=256×8 \times 8 \times 4 = 256\times volume reduction. Causal (current frame and earlier only) means fixed-length blocks at training but frame-wise or variable-length streaming at inference — any duration shares one latent space.
💡Use Cases
text-to-video backbones (Sora), flagship text-to-image (SD3/FLUX MMDiT); interviews ask for token-count math of patchify and why AdaLN-Zero stabilizes training.
Key Problems Solved
U-Net's local inductive bias under-models long-range temporal dependencies and scales poorly with data; DiT provides a scalable uniform Transformer, and the 3D VAE's 256× compression keeps minute-long, high-res video tractable — the enabling combination behind Sora.
🎯5 High-Frequency Exam Points
1
How does DiT patchify work; given a h×w×ch\times w\times c latent and patch pp, how many tokens?
2
How does AdaLN inject tt/condition, and why does AdaLN-Zero zero-init the MLP output?
3
What are Sora's 3D causal VAE spatio-temporal compression ratios; why causal in time?
4
DiT vs U-Net diffusion backbones; why did SD3/FLUX also switch to DiT?
5
How does the 3D causal VAE support arbitrary-length video training and inference?
📖 In-depth Guide:📄 diffusion-models
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "DiT & 3D Causal VAE"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardVideo GenerationNext CardDiffusion vs GAN vs Autoregressive

🔗 More Multimodal Knowledge Cards

ASR (Whisper)Audio RepresentationClassifier-Free GuidanceCLIP Applications