arXiv:2502.01969cs.CVcs.AI2025-02被引 28

通过动态校准注意力分布,有效减少视觉语言模型的虚构对象问题。

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

  • 提出动态注意力校准模块,基于对比学习自适应调整注意力分布。
  • 在多个基准上显著降低幻觉率,提升多模态对齐效果。
  • 轻量级插件设计,适配不同模型架构,无需重新训练。

大型视觉语言模型(LVLM)虽具备强大的多模态推理能力,但极易产生对象幻觉,即生成与图像内容不符的回应。现有工作将此归因于视觉标记注意力图对特定位置存在虚假聚焦,并通过重排视觉标记来缓解。然而我们发现,不同LVLM在注意力与空间位置间存在差异关联,导致静态方案难以泛化。为此,我们通过空白图像实验揭示了图像标记引入的位置依赖偏见,并从中移除该偏见即可显著减少幻觉,验证了注意力校准的核心思想。在此基础上,提出动态注意力校准(DAC),一种轻量级、可即插即用的模块,利用对比学习动态强制位置不变性。相比静态基线,DAC能鲁棒且可学习地适应不同模型与输入,提供通用解决方案。在多个基准上的综合实验表明,DAC显著降低对象幻觉并提升多模态对齐能力,在多种LVLM架构上取得最优性能。代码已开源。

原文摘要 · Abstract (English)

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.

视觉语言模型注意力校准幻觉抑制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。