GenTron: 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

Introduction

While Transformers have revolutionized Natural Language Processing and computer vision perception, visual generation has long been dominated by CNN-based U-Net architectures, such as those found in Stable Diffusion. GenTron introduces a new family of generative models that successfully scales Diffusion Transformers (DiTs) to over 3 billion parameters, establishing them as a powerful backbone for high-quality text-to-image (T2I) and text-to-video (T2V) synthesis.

Methodology

The development of GenTron followed a systematic three-stage evolution to adapt the original DiT architecture for complex, open-world generation.

Architectural Adaptation

The original DiT was designed for class-conditioned generation using adaptive layer norm (adaLN). GenTron transitions this to handle free-form text prompts. A critical finding was that cross-attention significantly outperforms adaLN for text conditioning. Cross-attention allows the model to perform spatially-aware lookups of the text prompt, whereas adaLN applies global modulations that lack the granularity required for complex descriptions.

Comparison of (a) adaLN-Zero and (b) Cross-attention architectures in GenTron.

Scaling and Video Extension

GenTron was scaled from a 900M parameter base (GenTron-XL/2) to a 3B parameter model (GenTron-G/2) by increasing depth and hidden dimensions. To enable video generation, temporal self-attention layers were integrated. A novel Motion-Free Guidance (MFG) technique was introduced, where motion modeling is intermittently disabled during training. This allows the model to leverage both image and video datasets simultaneously, preserving high spatial quality while learning temporal dynamics.

Key Insights

  • Cross-Attention for Text: The shift to cross-attention is vital for alignment with complex prompts, enabling the model to associate specific visual regions with corresponding text tokens.
  • Scaling Benefits: Increasing parameters to 3B significantly improved the model's "rationalization"—its ability to render logical layouts and fine details.
  • Motion as Guidance: Treating motion as a conditioning signal via MFG allows for adjustable motion strength during inference, ensuring temporal coherence without sacrificing frame sharpness.

Evaluation and Results

GenTron demonstrates state-of-the-art performance across multiple benchmarks. In human preference studies, GenTron-G/2 achieved a 51.1% win rate against SDXL in visual quality. On the T2I-CompBench, it surpassed previous models like PixArt-α in compositional tasks involving color, shape, and spatial relationships.

Examples of high-quality image generation and temporally coherent video sequences produced by GenTron.

Conclusion

GenTron proves that Transformers are a highly scalable and effective alternative to U-Nets for large-scale generative media. While current models are trained at 512x512 resolution, the architecture's scalability suggests a clear path toward higher resolutions and longer video durations as more data becomes available.

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: 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