Zubnet AIAprenderWiki › Diffusion Transformer
Models

Diffusion Transformer

DiT
Una arquitectura que reemplaza el backbone U-Net tradicionalmente usado en modelos de difusión con un Transformer. DiT aplica el mecanismo de atención a la generación de imágenes, habilitando el mismo comportamiento de escalamiento que hizo tan poderosos a los LLMs. Sora, Flux, Stable Diffusion 3 y la mayoría de generadores de imagen y video de última generación usan DiT o variantes.

Por qué importa

DiT unificó los mundos de generación de lenguaje e imagen bajo un único paradigma arquitectónico: el Transformer. Esto significa que las leyes de escalamiento, técnicas de entrenamiento y estrategias de optimización desarrolladas para LLMs se transfieren en gran medida a generación de imágenes y video. Es por qué la calidad de imagen ha mejorado tan rápidamente — el campo monta la misma curva de escalamiento que el lenguaje.

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.

Conceptos relacionados

← Todos los términos
← Diffusion Model Distillation →