Scalable Diffusion Models with Transformers

William Peebles, Saining Xie
12/19/2022
cs.CVcs.LG

Official code: facebookresearch/DiT (8,676 stars, last commit 2024-05-31).

Abstract

We explore a new class of diffusion models based on the transformer architecture. We train latent diffusion models of images, replacing the commonly-used U-Net backbone with a transformer that operates on latent patches. We analyze the scalability of our Diffusion Transformers (DiTs) through the lens of forward pass complexity as measured by Gflops. We find that DiTs with higher Gflops -- through increased transformer depth/width or increased number of input tokens -- consistently have lower FID. In addition to possessing good scalability properties, our largest DiT-XL/2 models outperform all prior diffusion models on the class-conditional ImageNet 512x512 and 256x256 benchmarks, achieving a state-of-the-art FID of 2.27 on the latter.

View on arXivView PDF

Code Implementations(1)

Official PyTorch Implementation of "Scalable Diffusion Models with Transformers"

8,676816Python, Jupyter NotebookDec 16, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{peebles2022scalable,
  title  = {Scalable Diffusion Models with Transformers},
  author = {William Peebles and Saining Xie},
  year   = {2022},
  eprint = {2212.09748},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09748}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.09748.svg)](https://codeofpaper.com/paper/2212.09748)

Discussion