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

LiT:探究用于图像生成的简单线性扩散Transformer

LiT: Delving into a Simple Linear Diffusion Transformer for Image Generation

HKU(香港大学);Shanghai AI Lab(上海人工智能实验室);Huawei Noah’s Ark Lab(华为诺亚实验室);UCAS(中国科学院大学);THUsz(华中科技大学)
Jiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen, Chengyue Wu, Songyang Zhang, Shuchen Xue, Yong Liu, Taiqiang Wu, Xihui Liu, Kaipeng Zhang, Shifeng Zhang, Wenq… 展开作者

Jiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen, Chengyue Wu, Songyang Zhang, Shuchen Xue, Yong Liu, Taiqiang Wu, Xihui Liu, Kaipeng Zhang, Shifeng Zhang, Wenqi Shao, Zhenguo Li, Ping Luo

AI总结:

本文提出将预训练扩散Transformer转换为线性注意力版本LiT,通过5条实用指南实现高效图像生成,仅用20%-33%训练步骤达到相当性能,并推广至文本到图像任务。

摘要:

在本文中,我们研究如何将预训练的扩散Transformer(DiT)转换为线性DiT,因为其具有简单性、并行性和图像生成效率。通过详细探索,我们提供了一套即用型解决方案,涵盖从线性注意力设计到优化策略。我们的核心贡献包括5条实用指南:1)在简单线性注意力中应用深度卷积足以用于图像生成。2)在线性注意力中使用更少的头数可带来无延迟增加的性能提升。3)继承完全收敛的预训练DiT的权重。4)加载除线性注意力相关参数外的所有参数。5)混合知识蒸馏:使用预训练的教师DiT帮助学生线性DiT的训练,不仅监督预测的噪声,还监督反向扩散过程的方差。这些指南促成了我们提出的线性扩散Transformer(LiT),它作为具有纯线性注意力的DiT的安全高效替代基线。在类别条件256×256和512×512 ImageNet生成中,LiT可分别仅使用DiT训练步骤的20%和33%从DiT快速适应,同时达到相当的性能。LiT还与基于Mamba或门控线性注意力的方法相媲美。此外,相同的指南可推广到文本到图像生成:LiT可从PixArt-Σ快速转换以生成高质量图像,保持相当的GenEval分数。

英文摘要:

In this paper, we investigate how to convert a pre-trained Diffusion Transformer (DiT) into a linear DiT, as its simplicity, parallelism, and efficiency for image generation. Through detailed exploration, we offer a suite of ready-to-use solutions, ranging from linear attention design to optimization strategies. Our core contributions include 5 practical guidelines: 1) Applying depth-wise convolution within simple linear attention is sufficient for image generation. 2) Using fewer heads in linear attention provides a free-lunch performance boost without increasing latency. 3) Inheriting weights from a fully converged, pre-trained DiT. 4) Loading all parameters except those related to linear attention. 5) Hybrid knowledge distillation: using a pre-trained teacher DiT to help the training of the student linear DiT, supervising not only the predicted noise but also the variance of the reverse diffusion process. These guidelines lead to our proposed \underline{L}inear D\underline{i}ffusion \underline{T}ransformer (LiT), which serves as a safe and efficient alternative baseline for DiT with pure linear attention. In class-conditional 256$\times$256 and 512$\times$512 ImageNet generation, LiT can be quickly adapted from DiT using only $20\%$ and $33\%$ of DiT's training steps, respectively, while achieving comparable performance. LiT also rivals methods based on Mamba or Gated Linear Attention. Moreover, the same guidelines generalize to text-to-image generation: LiT can be swiftly converted from PixArt-$Σ$ to generate high-quality images, maintaining comparable GenEval scores.

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

↑