Zubnet AIसीखेंWiki › Diffusion Transformer
Models

Diffusion Transformer

DiT
एक architecture जो diffusion models में traditionally use होने वाले U-Net backbone को एक Transformer से replace करती है। DiT attention mechanism को image generation पर apply करती है, वही scaling behavior enable करते हुए जिसने LLMs को इतना powerful बनाया। Sora, Flux, Stable Diffusion 3, और अधिकांश state-of-the-art image और video generators DiT या variants use करते हैं।

यह क्यों matter करता है

DiT ने language और image generation की दुनिया को एक single architectural paradigm के नीचे unify किया: Transformer। इसका मतलब है कि LLMs के लिए develop किए गए scaling laws, training techniques, और optimization strategies काफी हद तक image और video generation में transfer होती हैं। यही वजह है कि image quality इतनी तेज़ी से improve हुई है — ये field language जैसी same scaling curve पर ride कर रही है।

Deep Dive

The original DiT paper (Peebles & Xie, 2023) showed that simply replacing the U-Net with a standard Transformer and scaling it up produced better image quality. The Transformer processes image patches (similar to Vision Transformers) with added conditioning from the diffusion timestep and class labels. The key finding: DiT follows clear scaling laws — larger models and more compute produce predictably better images, just like with LLMs.

From U-Net to Transformer

U-Nets process images at multiple resolutions, downsampling then upsampling with skip connections. This inductive bias was useful when compute was limited, but it introduces architectural complexity and doesn't scale as cleanly. Transformers, with their uniform architecture, are simpler to scale and benefit more from additional compute and data. The trade-off: Transformers are more memory-hungry due to the quadratic attention over all image patches.

MM-DiT: Multi-Modal DiT

Stable Diffusion 3 and Flux use MM-DiT (Multi-Modal DiT), which processes text and image tokens through separate streams that interact via cross-attention. This is more effective than the simpler text-conditioning used in the original DiT. The text stream uses a frozen text encoder (like T5 or CLIP), and the image stream uses the diffusion process. The two streams exchange information at each Transformer block.

संबंधित अवधारणाएँ

← सभी Terms
← Diffusion Model Distillation →