D$^2$iT: Dynamic Diffusion Transformer for Accurate Image Generation
Weinan Jia, Mengqi Huang, Nan Chen, Lei Zhang, Zhendong Mao
TL;DR
This paper addresses the fixed-region compression limitation in diffusion-based image generation by introducing a two-stage, information-density-aware framework. It combines Dynamic VAE (DVAE), which encodes image regions at variable downsampling rates based on local content, with Dynamic Diffusion Transformer (D$^2$iT), which predicts multi-grained noise through a Dynamic Grain Transformer and a Dynamic Content Transformer. The approach unifies global structural coherence and local detail by coupling coarse noise prediction with region-specific fine corrections and introduces a multi-grained loss to optimize across granularities. Empirical results on FFHQ and ImageNet demonstrate substantial quality gains with competitive efficiency, validating the effectiveness of dynamic, region-aware diffusion for high-fidelity image generation.
Abstract
Diffusion models are widely recognized for their ability to generate high-fidelity images. Despite the excellent performance and scalability of the Diffusion Transformer (DiT) architecture, it applies fixed compression across different image regions during the diffusion process, disregarding the naturally varying information densities present in these regions. However, large compression leads to limited local realism, while small compression increases computational complexity and compromises global consistency, ultimately impacting the quality of generated images. To address these limitations, we propose dynamically compressing different image regions by recognizing the importance of different regions, and introduce a novel two-stage framework designed to enhance the effectiveness and efficiency of image generation: (1) Dynamic VAE (DVAE) at first stage employs a hierarchical encoder to encode different image regions at different downsampling rates, tailored to their specific information densities, thereby providing more accurate and natural latent codes for the diffusion process. (2) Dynamic Diffusion Transformer (D$^2$iT) at second stage generates images by predicting multi-grained noise, consisting of coarse-grained (less latent code in smooth regions) and fine-grained (more latent codes in detailed regions), through an novel combination of the Dynamic Grain Transformer and the Dynamic Content Transformer. The strategy of combining rough prediction of noise with detailed regions correction achieves a unification of global consistency and local realism. Comprehensive experiments on various generation tasks validate the effectiveness of our approach. Code will be released at https://github.com/jiawn-creator/Dynamic-DiT.
