2025-06-13 · 专家 · 机器学习 · 计算机视觉

Fine-Grained Perturbation Guidance via Attention Head Selection

这篇论文提出了通过注意力头选择进行细粒度扰动引导的方法,以增强扩散模型在图像生成中的质量和风格控制。

更新于 2025-10-13。作者:Donghoon Ahn、Jiwon Kang、Sanghyun Lee、Minjae Kim、Jaewon Min、Wooseok Jang、Saungwu Lee、Sayak Paul、Susung Hong、Seungryong Kim。

中文摘要

近期在扩散模型中的指导方法通过扰动模型构建隐式弱模型来引导反向采样。在这些方法中,注意力扰动在无分类器指导的不确定性场景中表现出强大的经验性能。然而,现有的注意力扰动方法缺乏确定扰动应用位置的原则性方法,特别是在扩散变换器(DiT)架构中,与质量相关的计算分布在各个层之间。在本文中,我们研究了注意力扰动的粒度,从层级别到单个注意力头,发现特定的注意力头控制着不同的视觉概念,如结构、风格和纹理质量。基于这一洞察,我们提出了“HeadHunter”,这是一个系统框架,用于迭代选择与用户中心目标一致的关注头,从而实现对生成质量和视觉属性的精细控制。此外,我们引入了SoftPAG,它通过线性插值将每个选定的注意力头的注意力图向单位矩阵插值,提供了一个连续的旋钮来调整扰动强度并抑制伪影。我们的方法不仅缓解了现有层级别扰动的过度平滑问题,还通过组合性头选择实现了对特定视觉风格的针对性操作。我们在包括Stable Diffusion 3和FLUX.1在内的现代大规模基于DiT的文本到图像模型上验证了我们的方法,证明了在一般质量增强和特定风格指导方面的优越性能。我们的工作首次对扩散模型中的注意力扰动进行了头部级别的分析,揭示了注意力层中的可解释专业化,并使得有效扰动策略的实用设计成为可能。

英文摘要

Recent guidance methods in diffusion models steer reverse sampling by perturbing the model to construct an implicit weak model and guide generation away from it. Among these approaches, attention perturbation has demonstrated strong empirical performance in unconditional scenarios where classifier-free guidance is not applicable. However, existing attention perturbation methods lack principled approaches for determining where perturbations should be applied, particularly in Diffusion Transformer (DiT) architectures where quality-relevant computations are distributed across layers. In this paper, we investigate the granularity of attention perturbations, ranging from the layer level down to individual attention heads, and discover that specific heads govern distinct visual concepts such as structure, style, and texture quality. Building on this insight, we propose "HeadHunter", a systematic framework for iteratively selecting attention heads that align with user-centric objectives, enabling fine-grained control over generation quality and visual attributes. In addition, we introduce SoftPAG, which linearly interpolates each selected head's attention map toward an identity matrix, providing a continuous knob to tune perturbation strength and suppress artifacts. Our approach not only mitigates the oversmoothing issues of existing layer-level perturbation but also enables targeted manipulation of specific visual styles through compositional head selection. We validate our method on modern large-scale DiT-based text-to-image models including Stable Diffusion 3 and FLUX.1, demonstrating superior performance in both general quality enhancement and style-specific guidance. Our work provides the first head-level analysis of attention perturbation in diffusion models, uncovering interpretable specialization within attention layers and enabling practical design of effective perturbation strategies.

解读

一句话总结

这篇论文提出了通过注意力头选择进行细粒度扰动引导的方法,以增强扩散模型在图像生成中的质量和风格控制。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt