arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09454cs.CV
收藏

D$^2$iT: 用于精确图像生成的动态扩散Transformer

D$^2$iT: Dynamic Diffusion Transformer for Accurate Image Generation

University of Science and Technology of China(中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院)

Weinan Jia, Mengqi Huang, Nan Chen, Lei Zhang, Zhendong Mao

AI总结:

针对DiT固定压缩忽略图像区域信息密度差异的问题,提出两阶段动态扩散Transformer(D$^2$iT)框架,通过DVAE动态编码潜码、D$^2$iT预测多粒度噪声,实现全局一致性与局部真实感统一,提升图像生成质量。

摘要:

扩散模型因其生成高保真度图像的能力而广受认可。尽管扩散Transformer(DiT)架构具有出色的性能和可扩展性,但它在扩散过程中对不同图像区域应用固定压缩,忽略了这些区域中自然存在的信息密度差异。然而,大压缩会导致局部真实感有限,小压缩则增加计算复杂度并损害全局一致性,最终影响生成图像的质量。为解决这些局限性,我们提出通过识别不同区域的重要性来动态压缩不同图像区域,并引入一种新颖的两阶段框架以增强图像生成的有效性和效率:(1)第一阶段的动态变分自动编码器(DVAE)采用分层编码器,根据不同图像区域的特定信息密度以不同下采样率对其进行编码,从而为扩散过程提供更准确自然的潜码。(2)第二阶段的动态扩散Transformer(D$^2$iT)通过动态粒度Transformer和动态内容Transformer的新颖组合,预测多粒度噪声(包括平滑区域的粗粒度噪声和细节区域的细粒度噪声)来生成图像。将噪声的粗略预测与细节区域校正相结合的策略实现了全局一致性和局部真实感的统一。在各种生成任务上的综合实验验证了我们方法的有效性。代码将在https://github.com/jiawn-creator/Dynamic-DiT发布。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑