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

归一化注意力引导:扩散模型的通用负向引导

Normalized Attention Guidance: Universal Negative Guidance for Diffusion Models

University of Surrey(萨里大学)

Dar-Yen Chen, Hmrishav Bandyopadhyay, Kai Zou, Yi-Zhe Song

AI总结:

本文提出归一化注意力引导(NAG),一种无需训练、基于L1归一化注意力外推的通用负向引导方法,解决了少步采样下CFG失效问题,可跨架构和模态即插即用,并显著提升文本对齐、保真度和人类感知质量。

摘要:

负向引导——明确抑制不需要的属性——仍然是扩散模型中的一个根本性挑战,尤其是在少步采样机制下。虽然无分类器引导(Classifier-Free Guidance, CFG)在标准设置下表现良好,但在激进的采样步数压缩下,由于正分支和负分支之间的预测发散,CFG会失效。我们提出了归一化注意力引导(Normalized Attention Guidance, NAG),这是一种高效、无需训练的机制,通过基于L1的归一化和细化在注意力空间中进行外推。NAG在CFG失效的地方恢复了有效的负向引导,同时保持了保真度。与现有方法不同,NAG能够跨架构(UNet、DiT)、跨采样机制(少步、多步)和跨模态(图像、视频)进行泛化,作为一个通用的即插即用组件,计算开销极小。通过大量实验,我们证明了在文本对齐(CLIP Score)、保真度(FID、PFID)和人类感知质量(ImageReward)方面的一致改进。我们的消融研究验证了每个设计组件,而用户研究则证实了人们对NAG引导输出的显著偏好。作为一种与模型无关、无需重新训练的推理时方法,NAG为所有现代扩散框架提供了轻松的负向引导——伪代码见附录!

英文摘要:

Negative guidance -- explicitly suppressing unwanted attributes -- remains a fundamental challenge in diffusion models, particularly in few-step sampling regimes. While Classifier-Free Guidance (CFG) works well in standard settings, it fails under aggressive sampling step compression due to divergent predictions between positive and negative branches. We present Normalized Attention Guidance (NAG), an efficient, training-free mechanism that applies extrapolation in attention space with L1-based normalization and refinement. NAG restores effective negative guidance where CFG collapses while maintaining fidelity. Unlike existing approaches, NAG generalizes across architectures (UNet, DiT), sampling regimes (few-step, multi-step), and modalities (image, video), functioning as a \textit{universal} plug-in with minimal computational overhead. Through extensive experimentation, we demonstrate consistent improvements in text alignment (CLIP Score), fidelity (FID, PFID), and human-perceived quality (ImageReward). Our ablation studies validate each design component, while user studies confirm significant preference for NAG-guided outputs. As a model-agnostic inference-time approach requiring no retraining, NAG provides effortless negative guidance for all modern diffusion frameworks -- pseudocode in the Appendix!

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

↑