arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.02730cs.CV
收藏

U-DiTs:U形扩散Transformer中的令牌下采样

U-DiTs: Downsample Tokens in U-Shaped Diffusion Transformers

Huawei Noah’s Ark Lab(华为诺亚方舟实验室);State Key Lab of General AI, School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院通用人工智能国家重点实验室)

Yuchuan Tian, Zhijun Tu, Hanting Chen, Jie Hu, Chao Xu, Yunhe Wang

AI总结:

针对扩散Transformer摒弃U-Net架构的问题,研究发现U-Net风格DiT存在冗余,通过对自注意力的查询-键-值元组做令牌下采样,提出U形DiT(U-DiTs),以远低于DiT-XL/2的计算成本实现更优性能。

摘要:

扩散Transformer(DiTs,扩散Transformer)将Transformer架构引入扩散任务,用于隐空间图像生成。凭借由一系列Transformer块串联而成的各向同性架构,DiTs展现出极具竞争力的性能与良好的可扩展性;但与此同时,DiTs及其后续改进方案摒弃U-Net的做法值得重新思考。为此,我们开展了一项简单的对照实验,将采用U-Net架构的DiT与各向同性DiT进行对比。结果表明,U-Net架构仅在U-Net归纳偏置的作用下取得微弱优势,这说明U-Net风格的DiT存在潜在冗余。受U-Net骨干网络特征以低频成分为主这一发现的启发,我们对自注意力的查询-键-值元组执行令牌下采样,尽管计算量大幅降低,却带来了性能的进一步提升。基于令牌下采样的自注意力,本文提出了一系列U形DiT(U-DiTs),并通过大量实验证明了U-DiT模型的卓越性能。所提出的U-DiT仅需DiT-XL/2六分之一的计算成本,性能即可超越后者。代码可在https://github.com/YuchuanTian/U-DiT获取。

英文摘要:

Diffusion Transformers (DiTs) introduce the transformer architecture to diffusion tasks for latent-space image generation. With an isotropic architecture that chains a series of transformer blocks, DiTs demonstrate competitive performance and good scalability; but meanwhile, the abandonment of U-Net by DiTs and their following improvements is worth rethinking. To this end, we conduct a simple toy experiment by comparing a U-Net architectured DiT with an isotropic one. It turns out that the U-Net architecture only gain a slight advantage amid the U-Net inductive bias, indicating potential redundancies within the U-Net-style DiT. Inspired by the discovery that U-Net backbone features are low-frequency-dominated, we perform token downsampling on the query-key-value tuple for self-attention that bring further improvements despite a considerable amount of reduction in computation. Based on self-attention with downsampled tokens, we propose a series of U-shaped DiTs (U-DiTs) in the paper and conduct extensive experiments to demonstrate the extraordinary performance of U-DiT models. The proposed U-DiT could outperform DiT-XL/2 with only 1/6 of its computation cost. Codes are available at https://github.com/YuchuanTian/U-DiT.

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

↑