arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.00760cs.CVcs.AIcs.LG
收藏

平滑能量引导:利用降低注意力能量曲率引导扩散模型

Smoothed Energy Guidance: Guiding Diffusion Models with Reduced Energy Curvature of Attention

University of Washington(华盛顿大学);Korea University(高丽大学)

Susung Hong

AI总结:

本文提出平滑能量引导(SEG),一种无需训练和条件的扩散模型引导方法,通过降低自注意力能量景观曲率并引入查询模糊方法,在提升生成质量的同时减少副作用,实现帕累托改进。

摘要:

条件扩散模型在视觉内容生成方面取得了显著成功,能够在各个领域生成高质量样本,这在很大程度上归功于无分类器引导(CFG)。近期将引导扩展到无条件模型的尝试依赖于启发式技术,导致生成质量次优并产生非预期效应。在本工作中,我们提出平滑能量引导(SEG),这是一种新颖的无需训练且无需条件的方法,利用自注意力机制基于能量的视角来增强图像生成。通过定义自注意力的能量,我们引入一种方法降低注意力能量景观的曲率,并将输出用作无条件预测。在实践中,我们通过调整高斯核参数来控制能量景观的曲率,同时保持引导尺度参数固定。此外,我们提出一种查询模糊方法,该方法等效于模糊整个注意力权重,而不会在令牌数量上产生二次复杂度。在我们的实验中,SEG在质量和副作用减少两方面均实现了帕累托改进。代码可在 https://github.com/SusungHong/SEG-SDXL 获取。

英文摘要:

Conditional diffusion models have shown remarkable success in visual content generation, producing high-quality samples across various domains, largely due to classifier-free guidance (CFG). Recent attempts to extend guidance to unconditional models have relied on heuristic techniques, resulting in suboptimal generation quality and unintended effects. In this work, we propose Smoothed Energy Guidance (SEG), a novel training- and condition-free approach that leverages the energy-based perspective of the self-attention mechanism to enhance image generation. By defining the energy of self-attention, we introduce a method to reduce the curvature of the energy landscape of attention and use the output as the unconditional prediction. Practically, we control the curvature of the energy landscape by adjusting the Gaussian kernel parameter while keeping the guidance scale parameter fixed. Additionally, we present a query blurring method that is equivalent to blurring the entire attention weights without incurring quadratic complexity in the number of tokens. In our experiments, SEG achieves a Pareto improvement in both quality and the reduction of side effects. The code is available at https://github.com/SusungHong/SEG-SDXL.

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

↑