arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.16726cs.CVcs.LG
收藏

EDiT:具有线性压缩注意力的高效扩散Transformer

EDiT: Efficient Diffusion Transformers with Linear Compressed Attention

Samsung, AI Center Cambridge(三星人工智能中心剑桥)

Philipp Becker, Abhinav Mehrotra, Ruchika Chavhan, Malcolm Chadwick, Luca Morreale, Mehdi Noroozi, Alberto Gil Ramos, Sourav Bhattacharya

AI总结:

本文提出高效扩散Transformer(EDiT)及多模态MM-EDiT架构,通过引入线性压缩注意力与混合注意力方案,在保持图像质量的同时实现高达2.2倍的加速。

摘要:

扩散Transformer(DiTs)已成为文本到图像合成的主导架构,能生成高质量且逼真的图像。然而,DiTs中注意力的二次扩展特性阻碍了在更高分辨率或资源有限的设备上生成图像。本工作提出了一种高效扩散Transformer(EDiT),以缓解传统DiTs和多模态DiTs(MM-DiTs)中的这些效率瓶颈。首先,我们提出一种新颖的线性压缩注意力方法,该方法使用多层卷积网络用局部信息调制查询,同时对键和值进行空间聚合。其次,我们为多模态输入制定了一种混合注意力方案,将用于图像与图像交互的线性注意力和涉及提示交互的标准缩放点积注意力相结合。合并这两种方法产生了一种富有表现力的、线性时间的多模态高效扩散Transformer(MM-EDiT)。我们通过将它们集成到PixArt-Sigma(传统DiT)和Stable Diffusion 3.5-Medium(MM-DiT)中,证明了EDiT和MM-EDiT架构的有效性,在蒸馏后实现了高达2.2倍的加速,且图像质量相当。

英文摘要:

Diffusion Transformers (DiTs) have emerged as a leading architecture for text-to-image synthesis, producing high-quality and photorealistic images. However, the quadratic scaling properties of the attention in DiTs hinder image generation with higher resolution or on devices with limited resources. This work introduces an efficient diffusion transformer (EDiT) to alleviate these efficiency bottlenecks in conventional DiTs and Multimodal DiTs (MM-DiTs). First, we present a novel linear compressed attention method that uses a multi-layer convolutional network to modulate queries with local information while keys and values are aggregated spatially. Second, we formulate a hybrid attention scheme for multimodal inputs that combines linear attention for image-to-image interactions and standard scaled dot-product attention for interactions involving prompts. Merging these two approaches leads to an expressive, linear-time Multimodal Efficient Diffusion Transformer (MM-EDiT). We demonstrate the effectiveness of the EDiT and MM-EDiT architectures by integrating them into PixArt-Sigma (conventional DiT) and Stable Diffusion 3.5-Medium (MM-DiT), achieving up to 2.2x speedup with comparable image quality after distillation.

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

↑