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.
Introduction
In the rapidly evolving landscape of generative AI, Diffusion Transformers (DiTs) have recently gained prominence by replacing traditional U-Net backbones with isotropic stacks of transformer blocks. While this shift enabled impressive scalability, it discarded the hierarchical structure of the U-Net—a design long considered optimal for denoising tasks due to its inherent ability to filter high-frequency noise.
This research investigates whether the abandonment of the U-Net architecture was premature. While plain DiTs are powerful, they are often computationally inefficient, processing every token at full resolution throughout the network. By re-integrating the U-shaped hierarchical structure with transformer blocks, the authors propose U-DiTs (U-shaped Diffusion Transformers), reclaiming the U-Net's inductive bias without sacrificing the scalability of transformers.
Methodology: The U-Shaped Transformer
The development of U-DiT proceeded in two primary stages. Initially, the researchers constructed a "Naive DiT-UNet," where each stage of a standard U-Net was composed of DiT blocks. However, this simple architectural swap yielded only marginal performance gains, suggesting that the hierarchical structure alone was insufficient to unlock significant efficiency.
The breakthrough came with the introduction of Radical Token Downsampling. Observing that U-Net features are predominantly low-frequency, the authors hypothesized that processing every token at high resolution is redundant. Unlike previous attention-downsampling methods that only target Keys and Values, U-DiT downsamples the entire Query, Key, and Value (QKV) tuple.
This is achieved through a Pixel-UnShuffle operation, which reorganizes a feature map into four parallel, lower-resolution versions. These paths are processed through self-attention independently, and the results are merged back using Pixel-Shuffle. This approach is effectively "lossless" in terms of information but reduces the token count for the attention mechanism by 75%, significantly cutting computational overhead. To further enhance performance, the model incorporates modern LLM techniques such as RoPE2D (rotary positional embeddings), SwishGLU activations, and re-parameterization.
Experimental Results
The U-DiT models were evaluated on the ImageNet 256×256 and 512×512 benchmarks. The results demonstrate a substantial leap in both efficiency and generative quality.
Efficiency and Scalability
One of the most striking findings is the computational efficiency of the U-DiT architecture. The U-DiT-B (Base) model achieves a superior FID (Fréchet Inception Distance) compared to the much larger DiT-XL/2, while requiring only 1/6th of the GFLOPs.
Quantitative Performance
On the ImageNet 256×256 benchmark, the U-DiT-L (Large) model reached an FID of 10.08 after 400K training steps. This significantly outperforms the original DiT-L/2 (FID 23.27) and the DiT-XL/2 (FID 19.47). When utilizing classifier-free guidance (cfg=1.5), the U-DiT-L achieved an exceptional FID of 3.37, setting a new standard for efficiency-focused generative models.
Discussion and Conclusion
The success of U-DiT suggests that the spatial hierarchy of a U-Net provides a critical "denoising shortcut." Isotropic transformers must expend significant parameters and training data to learn these spatial relationships from scratch. By contrast, the U-shaped architecture focuses the model's capacity on coarse object structures, which dominate the denoising process.
While the current implementation shows immense promise, the authors note that the U-shaped architecture is more complex to implement than simple isotropic stacks. Future work will focus on scaling U-DiTs to even higher resolutions and exploring their potential in video generation, where the computational savings of token downsampling could be even more impactful.
Codes are available at https://github.com/YuchuanTian/U-DiT.
Summary updated