arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.02531cs.LGcs.AI
收藏

基于现代Hopfield动力学的几何感知注意力引导:通过现代Hopfield动力学实现扩散模型的几何感知注意力引导

Directional Attention Guidance for Diffusion Models via Sparse Hopfield Retrieval

Department of AI Convergence(人工智能融合学院)

Kwanyoung Kim

AI总结:

本文提出几何感知注意力引导方法,通过分析注意力扩展中的现代Hopfield动力学,证明了稀疏-密集差异的两个方向性性质,从而提供一种无需训练的插拔式扩展规则,提升扩散模型生成质量。

摘要:

分类器自由引导(CFG)在扩散模型中提高了样本质量,但其双步推理和对空条件训练的依赖限制了其在少步场景中的应用。注意力空间引导作为一种互补范式,解决了这一缺口,但为何先前的稀疏-密集注意力引导有效仍不清楚。我们通过分析注意力扩展中的现代Hopfield动力学,证明了在共享条件下的稀疏-密集差异的两个方向性性质,从而证明其作为方向一致的加速信号。在此基础上,我们提出了几何感知注意力引导(GAG),一种无需训练的插拔式扩展规则,将差异分解为与检索方向平行和正交的分量,放大与收敛方向一致的分量,同时抑制离流形噪声;稳定性来源于弱收缩性质。我们进一步将此扩展解释为注意力空间中的第一阶Anderson加速,为注意力扩展方法提供了统一视角。GAG是一种通用方法,能够跨架构(UNet, MMDiT)和采样场景(多步、少步)泛化,一致地在多种架构上提升生成质量,包括FLUX.1、最近的FLUX.2和Qwen-Image,且计算开销极低。

英文摘要:

Classifier-Free Guidance (CFG) improves sample quality in diffusion models, but its dual-pass inference and null-condition training limit its use in few-step regimes. Attention-space guidance is a single-pass alternative, yet why sparse-versus-dense attention guidance works remains elusive. We analyze attention extrapolation through Modern Hopfield dynamics and establish two directional properties of the sparse-dense discrepancy under shared conditioning that identify it as an acceleration direction toward the dominant stored pattern. Building on this, we propose Directional Attention Guidance (DAG), a training-free, single-pass rule that amplifies only the component of the discrepancy aligned with the retrieval direction; stability follows from a weak contraction property, and an analysis inside real cross-attention layers shows that this alignment is observed throughout sampling. DAG generalizes across UNet and MMDiT backbones and multi-step and few-step regimes, improving text alignment and human-preference scores on every backbone tested, including FLUX.1, FLUX.2, and Qwen-Image, at a small added cost per image over the base sampler.

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

↑