Mitigating Hallucinations in Diffusion Models through Adaptive Attention Modulation

Trevine Oorloff, Yaser Yacoob, Abhinav Shrivastava
2/24/2025
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{oorloff2025mitigating,
  title  = {Mitigating Hallucinations in Diffusion Models through Adaptive Attention Modulation},
  author = {Trevine Oorloff and Yaser Yacoob and Abhinav Shrivastava},
  year   = {2025},
  eprint = {2502.16872},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16872v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.16872.svg)](https://codeofpaper.com/paper/2502.16872)

Discussion