Introduction
The field of generative modeling has seen a significant shift with the advent of diffusion models. Traditionally, these models have relied on the convolutional U-Net as their primary architectural backbone. While U-Nets have proven effective, the broader deep learning landscape has increasingly converged on the Transformer architecture due to its superior scalability and flexibility. This paper introduces Diffusion Transformers (DiT), a class of models that replaces the U-Net with a transformer-based backbone, demonstrating that the inductive biases of convolutions are not strictly necessary for high-quality image synthesis.
The Diffusion Transformer (DiT) Architecture
DiT models operate within the Latent Diffusion Model (LDM) framework, where the diffusion process occurs in a compressed latent space. The core innovation is the DiT block, which processes latent representations as sequences of tokens.
The architecture follows a standard "patchification" process similar to Vision Transformers (ViT). An input latent tensor is decomposed into small patches (e.g., 2x2 or 4x4) and embedded into a sequence. To handle the conditioning required for diffusion—specifically the timestep $t$ and class label $c$—the authors explored various mechanisms, finding that adaptive layer norm (adaLN-Zero) provided the best performance. This method initializes each transformer block as an identity function, which accelerates training and improves final image quality.
Scaling Laws and Performance
A central finding of this work is that diffusion models follow predictable scaling laws. By increasing the model depth and width (from Small to XLarge) or by decreasing the patch size (which increases the number of tokens), the model's performance improves consistently.
As shown in the scaling analysis, there is a strong correlation between total computational cost (Gflops) and the Fréchet Inception Distance (FID). This suggests that performance gains are primarily driven by compute, regardless of whether that compute is added through model depth or spatial resolution (patch size).
Results and Comparison
DiT-XL/2, the largest model variant with the smallest patch size, achieves state-of-the-art results on the ImageNet benchmark. On class-conditional ImageNet 256×256, it reached a record-breaking FID of 2.27. Furthermore, it scales effectively to higher resolutions, outperforming previous pixel-space models like ADM on ImageNet 512×512 with an FID of 3.04.
Qualitatively, the models produce sharp, semantically coherent images across a wide range of categories, from animals to complex landscapes. The results demonstrate that transformers can capture the complex distributions of natural images as effectively as, or better than, traditional convolutional architectures.
Conclusion
Diffusion Transformers represent a significant step toward unifying generative modeling with the Transformer architecture. By demonstrating that U-Net inductive biases are optional and that diffusion models scale predictably with compute, this work opens new avenues for large-scale generative modeling. Future work will likely focus on extending DiT to text-to-image tasks and exploring the limits of scaling these models further.
Summary updated