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

通过注意力校准缓解大视觉-语言模型中的物体幻觉

Mitigating Object Hallucinations in Large Vision-Language Models via Attention Calibration

Younan Zhu, Linwei Tao, Minjing Dong, Chang Xu

AI总结:

本文提出动态注意力校准方法,通过对比学习动态强制位置不变性,有效缓解大视觉-语言模型中的物体幻觉问题,并在多个基准测试中取得最佳性能。

摘要:

大型视觉-语言模型(LVLMs)虽然展现出出色的多模态推理能力,但仍然极易产生物体幻觉,即模型生成的响应与视觉内容不一致。近期研究表明,这种现象源于LVLMs固有的偏见,其中视觉token的注意力图对某些位置存在伪关注,为此提出通过重新排序视觉token来缓解这一问题。然而我们发现不同LVLMs在注意力与空间位置之间的相关性不同,使得现有静态解决方案难以泛化到其他LVLMs。首先,我们通过一个玩具实验研究图像token引入的注意力偏见,其中将空白图像输入模型以捕捉其位置依赖性偏见。然后我们从原始注意力图中移除这种偏见,这已经导致幻觉显著减少。这一概念验证验证了注意力校准的核心直觉。基于这一见解,我们提出动态注意力校准(DAC),这是一个轻量、即插即用的模块,利用对比学习动态强制位置不变性。与静态基线不同,DAC以稳健且可学习的方式适应不同模型和输入,提供了一种可泛化的解决方案,以缓解LVLMs中的注意力相关幻觉。在多个基准测试中的全面实验表明,DAC在减少物体幻觉的同时提高了多模态对齐能力。我们的方法在各种LVLM架构上实现了各指标的最先进性能。我们的代码可在https://github.com/johnnyzyn/attention-calibration获取。

英文摘要:

Large Vision-Language Models (LVLMs) exhibit impressive multimodal reasoning capabilities but remain highly susceptible to object hallucination, where models generate responses that are not factually aligned with the visual content. Recent works attribute this issue to an inherent bias of LVLMs where the vision token attention map has spurious focus on certain positions, and propose to mitigate this issue by reordering visual tokens. However, we find that different LVLMs exhibit different correlations between attention and spatial position, which makes existing static solutions difficult to generalize to other LVLMs. To begin with, we investigate the attention bias introduced by image tokens through a toy experiment, in which a blank image is fed into the model to capture its position-dependent bias. We then remove this bias from the original attention map, which already leads to a substantial reduction in hallucinations. This proof of concept validates the core intuition behind attention calibration. Building upon this insight, we propose Dynamic Attention Calibration (DAC), a lightweight, plug-and-play module that leverages contrastive learning to dynamically enforce positional invariance. Unlike static baselines, DAC adapts to different models and inputs in a robust and learnable manner, offering a generalizable solution to mitigate attention-related hallucinations in LVLMs. Comprehensive experiments across multiple benchmarks demonstrate that DAC significantly reduces object hallucination while improving general multimodal alignment. Our method achieves state-of-the-art performance across diverse LVLM architectures on various metrics. Our code is available at https://github.com/johnnyzyn/attention-calibration.

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

↑