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

通过自适应注意力调制缓解扩散模型中的幻觉

Mitigating Hallucinations in Diffusion Models through Adaptive Attention Modulation

University of Maryland(马里兰大学)

Trevine Oorloff, Yaser Yacoob, Abhinav Shrivastava

AI总结:

针对扩散模型生成图像中的幻觉问题,提出自适应注意力调制(AAM),通过温度缩放和掩蔽扰动调节自注意力,显著提升图像保真度并降低幻觉比例。

摘要:

扩散模型虽然在生成逼真图像方面日益强大,但明显受到幻觉的阻碍——即与训练数据分布不一致的不真实或不正确的特征。在这项工作中,我们提出了自适应注意力调制(AAM),一种通过分析和调制扩散模型中的自注意力机制来缓解幻觉的新方法。我们假设早期去噪步骤中的自注意力可能无意中放大或抑制特征,从而促成幻觉。为了应对这一点,AAM在自注意力层的softmax操作中引入了一种温度缩放机制,在推理过程中动态调制注意力分布。此外,AAM采用了一种掩蔽扰动技术,以破坏早期阶段的噪声,否则这些噪声可能传播到后期阶段并表现为幻觉。大量实验表明,AAM有效减少了幻觉伪影,增强了生成图像的保真度和可靠性。例如,所提出的方法在Hands数据集上将FID分数提高了20.8%,并将幻觉图像的百分比(以绝对值计)降低了12.9%。

英文摘要:

Diffusion models, while increasingly adept at generating realistic images, are notably hindered by hallucinations -- unrealistic or incorrect features inconsistent with the trained data distribution. In this work, we propose Adaptive Attention Modulation (AAM), a novel approach to mitigate hallucinations by analyzing and modulating the self-attention mechanism in diffusion models. We hypothesize that self-attention during early denoising steps may inadvertently amplify or suppress features, contributing to hallucinations. To counter this, AAM introduces a temperature scaling mechanism within the softmax operation of the self-attention layers, dynamically modulating the attention distribution during inference. Additionally, AAM employs a masked perturbation technique to disrupt early-stage noise that may otherwise propagate into later stages as hallucinations. Extensive experiments demonstrate that AAM effectively reduces hallucinatory artifacts, enhancing both the fidelity and reliability of generated images. For instance, the proposed approach improves the FID score by 20.8% and reduces the percentage of hallucinated images by 12.9% (in absolute terms) on the Hands dataset.

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

↑