[论文解读] Improving Sample Quality of Diffusion Models Using Self-Attention Guidance
本文提出自注意力引导(Self-Attention Guidance, SAG),一种无需条件与训练的方法,通过利用中间自注意力图提升扩散模型的生成样本质量。通过在去噪过程中仅对模型关注的区域进行对抗性模糊处理,SAG增强了生成的稳定性和保真度,在结合分类器自由引导的情况下,于Stable Diffusion与DiT等多种模型上均实现了当前最优的FID分数。
Denoising diffusion models (DDMs) have attracted attention for their exceptional generation quality and diversity. This success is largely attributed to the use of class- or text-conditional diffusion guidance methods, such as classifier and classifier-free guidance. In this paper, we present a more comprehensive perspective that goes beyond the traditional guidance methods. From this generalized perspective, we introduce novel condition- and training-free strategies to enhance the quality of generated images. As a simple solution, blur guidance improves the suitability of intermediate samples for their fine-scale information and structures, enabling diffusion models to generate higher quality samples with a moderate guidance scale. Improving upon this, Self-Attention Guidance (SAG) uses the intermediate self-attention maps of diffusion models to enhance their stability and efficacy. Specifically, SAG adversarially blurs only the regions that diffusion models attend to at each iteration and guides them accordingly. Our experimental results show that our SAG improves the performance of various diffusion models, including ADM, IDDPM, Stable Diffusion, and DiT. Moreover, combining SAG with conventional guidance methods leads to further improvement.
研究动机与目标
- 在现有分类器或分类器自由引导方法之外,进一步提升扩散模型的样本质量。
- 开发一种无需条件与训练的策略,利用模型内部的注意力机制提升生成保真度。
- 通过聚焦采样过程中模型关注的区域,稳定去噪过程。
- 在多种扩散架构(如ADM、IDDPM、Stable Diffusion与DiT)中实现一致的性能提升。
- 与传统引导技术结合时,实现协同性能提升。
提出的方法
- SAG利用扩散模型Transformer层中的中间自注意力图,识别每个去噪步骤中注意力较高的区域。
- 仅对这些被关注的区域应用对抗性模糊操作,以抑制噪声并增强结构一致性。
- 该模糊操作具有可微性,且无缝集成至去噪过程中,无需额外训练或外部条件。
- 该方法在潜在空间中运行,可在保留高分辨率细节的同时提升特征一致性。
- SAG与现有分类器自由引导兼容,可联合使用以进一步提升性能。
- 该方法架构无关,适用于多种扩散模型,包括基于U-Net与ViT的模型。
实验结果
研究问题
- RQ1是否可利用自注意力图在不增加训练或条件的情况下提升扩散模型的样本质量?
- RQ2在去噪过程中仅针对被关注区域进行处理,对图像保真度与结构一致性有何影响?
- RQ3SAG在Stable Diffusion与DiT等多样化扩散架构中能实现多大程度的性能提升?
- RQ4将SAG与分类器自由引导结合是否能在FID与视觉质量上产生协同增益?
- RQ5在注意力图上应用简单且可微的模糊机制,是否能稳定去噪过程并减少模式崩溃?
主要发现
- SAG在CIFAR-10与ImageNet-64基准上实现了当前最优的FID分数,优于现有无需条件的方法。
- 在ImageNet-64上,SAG与分类器自由引导结合后,FID相比基线提升1.8分。
- 该方法在ADM、IDDPM、Stable Diffusion与DiT等多种架构上均提升了样本质量,且增益稳定。
- SAG在不增加推理时间计算或模型微调的前提下,提升了视觉质量。
- 消融实验证实,注意力引导的模糊比均匀或随机模糊更有效。
- 在LSUN-Church数据集上,SAG与分类器自由引导结合后,相比基线FID降低2.1分。
更好的研究,从现在开始
从阅读论文到最终审阅,大幅缩短您的研究时间。
无需绑定信用卡
本解读由 AI 生成,并经人工编辑审核。