U-DiTs: Downsample Tokens in U-Shaped Diffusion Transformers

Yuchuan Tian, Zhijun Tu, Hanting Chen, Jie Hu, Chao Xu +1 more
5/1/2024

No official code found. Best implementation: YuchuanTian/U-DiT (241 stars, last commit 2024-09-30).

Abstract

Diffusion Transformers (DiTs) introduce the transformer architecture to diffusion tasks for latent-space image generation. With an isotropic architecture that chains a series of transformer blocks, DiTs demonstrate competitive performance and good scalability; but meanwhile, the abandonment of U-Net by DiTs and their following improvements is worth rethinking. To this end, we conduct a simple toy experiment by comparing a U-Net architectured DiT with an isotropic one. It turns out that the U-Net architecture only gain a slight advantage amid the U-Net inductive bias, indicating potential redundancies within the U-Net-style DiT. Inspired by the discovery that U-Net backbone features are low-frequency-dominated, we perform token downsampling on the query-key-value tuple for self-attention that bring further improvements despite a considerable amount of reduction in computation. Based on self-attention with downsampled tokens, we propose a series of U-shaped DiTs (U-DiTs) in the paper and conduct extensive experiments to demonstrate the extraordinary performance of U-DiT models. The proposed U-DiT could outperform DiT-XL/2 with only 1/6 of its computation cost. Codes are available at https://github.com/YuchuanTian/U-DiT.

View on arXivView PDF

Code Implementations(1)

YuchuanTian/U-DiTCommunity100%

[NeurIPS 2024] The official code of "U-DiTs: Downsample Tokens in U-Shaped Diffusion Transformers"

24112PythonMay 7, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tian2024udits,
  title  = {U-DiTs: Downsample Tokens in U-Shaped Diffusion Transformers},
  author = {Yuchuan Tian and Zhijun Tu and Hanting Chen and Jie Hu and Chao Xu and Yunhe Wang},
  year   = {2024},
  eprint = {2405.02730},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.02730},
  url    = {https://arxiv.org/abs/2405.02730},
  journal = {NEURIPS 2024 2024}
}

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/2405.02730.svg)](https://codeofpaper.com/paper/2405.02730)

Discussion