GenTron: Delving Deep into Diffusion Transformers for Image and Video Generation

Shoufa Chen, Mengmeng Xu, Jiawei Ren, Yuren Cong, Sen He, Yanping Xie, Animesh Sinha, Ping Luo, Tao Xiang, Juan-Manuel Pérez-Rúa · DOI

Introduction

For several years, the U-Net architecture has served as the backbone for state-of-the-art diffusion models. However, as generative AI moves toward larger scales and more complex modalities, the limitations of convolutional neural networks (CNNs) in terms of scalability and flexibility have become apparent. GenTron addresses this by adapting the Diffusion Transformer (DiT) framework for high-quality text-to-image (T2I) and text-to-video (T2V) synthesis.

Architecture and Text Conditioning

GenTron explores the scaling laws of Transformers in the generative domain, scaling up to a "Giant" version (GenTron-G/2) with over 3 billion parameters. A key challenge in this transition is effectively integrating complex text prompts. While original DiT models used simple class labels, GenTron evaluates two primary conditioning methods: Adaptive Layer Norm (adaLN) and Cross-Attention.

Architectural comparison of (a) adaLN-Zero and (b) Cross-attention conditioning mechanisms.

The researchers found that Cross-Attention is superior for complex prompts, as it allows the model to spatially map specific words to regions of the generated image, whereas adaLN treats text as a global signal, often failing at intricate compositional tasks.

Video Synthesis and Motion-Free Guidance

To extend GenTron to video, the architecture incorporates temporal self-attention layers. A common issue in T2V models is the "quality tax," where spatial visual quality degrades when the model attempts to learn motion. GenTron introduces Motion-Free Guidance (MFG) to mitigate this. By intermittently disabling motion modeling during training and using a guidance scale during inference, the model can decouple appearance from motion, producing videos that maintain the crispness of static images.

Experimental Results

GenTron demonstrates significant improvements over established baselines. In human preference studies, GenTron-G/2 achieved a 51.1% win rate against SDXL in visual quality. Furthermore, on the T2I-CompBench benchmark, it showed superior performance in attribute binding and compositional accuracy.

Qualitative examples showcasing GenTron's performance across diverse image prompts and temporally coherent video sequences.

The scaling of the Transformer backbone allows the model to better understand the structural layout of the world, leading to more realistic renderings of complex scenes compared to smaller models. This "rationalization" effect is particularly evident in the model's ability to render complex objects and spatial relationships correctly.

Conclusion

GenTron represents a pivotal step in moving diffusion models toward Transformer-based architectures. By scaling parameters and introducing novel guidance techniques, it achieves state-of-the-art results in both image and video generation. Future work will focus on improving compute efficiency and extending the duration of synthesized video clips.

Summary updated

BibTeX
@inproceedings{chen2024gentron,
  author = {Shoufa Chen and Mengmeng Xu and Jiawei Ren and Yuren Cong and Sen He and Yanping Xie and Animesh Sinha and Ping Luo and Tao Xiang and Juan-Manuel Pérez-Rúa},
  title = {{GenTron: Delving Deep into Diffusion Transformers for Image and Video Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00616},
}
Figure