Hunyuan-DiT: A Powerful Multi-Resolution Diffusion Transformer with Fine-Grained Chinese Understanding

Zhimin Li, Jianwei Zhang, Qin Lin, Jiangfeng Xiong, Yanxin Long, Xinchi Deng, Yingfang Zhang, Xingchao Liu, Minbin Huang, Zedong Xiao, Dayou Chen, Jiajun He, Jiahao Li, Wenyue Li, Chen Zhang, Rongwei Quan, Jianxiang Lu, Jiabin Huang, Xiaoyan Yuan, Xiaoxiao Zheng, Yixuan Li, Jihong Zhang, Chao Zhang, Meng Chen, Jie Liu, Zheng Fang, Weiyan Wang, Jinbao Xue, Yangyu Tao, Jianchen Zhu, Kai Liu, Sihuan Lin, Yifu Sun, Yun Li, Dongdong Wang, Mingtao Chen, Zhichao Hu, Yan Chen, Yuhong Liu, Wei Liu, Di Wang, Yong Yang, Jie Jiang, Qinglin LuOpenReview 2024 · DOI

Introduction

Tencent’s Hunyuan-DiT represents a significant advancement in text-to-image (T2I) generation, specifically tailored to bridge the linguistic and cultural gap in existing diffusion models. While models like Stable Diffusion and DALL-E 3 have set high benchmarks for English-centric generation, they often struggle with the nuances of the Chinese language, including idioms, traditional poetry, and regional cultural elements. Hunyuan-DiT addresses these challenges by combining a Diffusion Transformer (DiT) architecture with a sophisticated data pipeline and multi-turn dialogue capabilities, establishing a new state-of-the-art for Chinese-to-image generation.

Addressing the Language Barrier in T2I Models

Existing generative systems frequently encounter a "language barrier" when processing Chinese prompts. They often fail to accurately depict specific cultural items, such as regional cuisines or traditional artistic styles. Hunyuan-DiT was built from the ground up to understand fine-grained Chinese prompts while supporting high-resolution, multi-aspect ratio generation.

Hunyuan-DiT demonstrates superior understanding of Chinese regional cuisines, such as this detailed rendering of Mapo Tofu.

Architectural Innovations

The researchers moved beyond traditional U-Net structures, adopting a transformer-based backbone. Key technical innovations include:

  • QK-Norm and Extra LayerNorms: These additions improve training stability and prevent numerical overflows during FP16 training.
  • Dual Text Encoders: By fusing a bilingual CLIP with a multilingual T5, the model can process long-form prompts (up to 256 tokens), capturing both broad semantic concepts and intricate details.
  • Centralized Interpolative RoPE: Adapting Rotary Positional Embeddings for 2D space allows the model to generalize effectively across various resolutions and aspect ratios.
  • Skip Modules: The inclusion of U-Net-style skip connections between transformer blocks facilitates better feature fusion, improving performance metrics like FID.

Data Strategy: The "Data Convoy"

Data quality is central to Hunyuan-DiT's performance. The authors implemented a "data convoy" pipeline—an iterative process of adding, filtering, and evaluating data.

  • Tiered Data Quality: Billions of pairs were categorized into "Copper," "Silver," and "Gold" tiers, with the highest-quality data reserved for final model refinement.
  • MLLM Caption Refinement: To address noisy web-scale captions, a fine-tuned Multimodal Large Language Model (MLLM) was used to generate structured, detailed descriptions.
  • Multi-turn Dialogue: An integrated prompt enhancement system allows users to refine images through natural conversation, leveraging an MLLM to track dialogue history.

Performance and Benchmarking

In evaluations against both open-source (SDXL, PixArt-α) and closed-source (DALL-E 3, MidJourney v6) models, Hunyuan-DiT (1.5B parameters) demonstrated exceptional results. It outperformed all open-source alternatives in text-image consistency and aesthetics. In human evaluations, it ranked third overall, trailing only DALL-E 3 and SD3, while matching MidJourney v6 in subject clarity.

An ink-wash style generation depicting a solitary figure on a boat, showcasing the model's grasp of traditional Chinese artistic aesthetics.

Qualitatively, the model excels in Chinese-specific contexts where Western models often produce generic results. Whether depicting "Kunqu Opera" or traditional ink-wash aesthetics, Hunyuan-DiT provides a level of cultural fidelity previously unseen in T2I models.

Conclusion and Future Directions

Hunyuan-DiT sets a new benchmark for culturally aware image generation. While the model currently utilizes the SDXL VAE, future work will explore more advanced VAE architectures to further enhance latent space quality. Additionally, the team aims to refine evaluation protocols to better identify specific failure points, such as background artifacts or anatomical distortions, ensuring continued improvement in generation fidelity.

Summary updated

BibTeX
@misc{li2024hunyuan,
  author = {Zhimin Li and Jianwei Zhang and Qin Lin and Jiangfeng Xiong and Yanxin Long and Xinchi Deng and Yingfang Zhang and Xingchao Liu and Minbin Huang and Zedong Xiao and Dayou Chen and Jiajun He and Jiahao Li and Wenyue Li and Chen Zhang and Rongwei Quan and Jianxiang Lu and Jiabin Huang and Xiaoyan Yuan and Xiaoxiao Zheng and Yixuan Li and Jihong Zhang and Chao Zhang and Meng Chen and Jie Liu and Zheng Fang and Weiyan Wang and Jinbao Xue and Yangyu Tao and Jianchen Zhu and Kai Liu and Sihuan Lin and Yifu Sun and Yun Li and Dongdong Wang and Mingtao Chen and Zhichao Hu and Xiao Xiao and Yan Chen and Yuhong Liu and Wei Liu and Di Wang and Yong Yang and Jie Jiang and Qinglin Lu},
  title = {{Hunyuan-DiT: A Powerful Multi-Resolution Diffusion Transformer with Fine-Grained Chinese Understanding}},
  year = {2024},
  eprint = {2405.08748},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.08748},
}
Figure