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

IKOD:缓解大型视觉-语言模型中的视觉注意力退化

IKOD: Image-Attention-Guided Key-Value Merging against Object Hallucination in the Decoding of Large Vision-Language Models

Jiabing Yang, Chenhang Cui, Yixiang Chen, Tao Yu, Yan Huang, Liang Wang

AI总结:

针对LVLMs中随序列增长视觉注意力退化导致幻觉加剧的问题,提出IKOD协作解码策略,通过键值合并利用高注意力短序列logits,无需训练即可缓解幻觉并提升综合能力。

摘要:

近年来,大型视觉-语言模型(LVLMs)的进展已在多个领域展现出显著的进步。然而,这些模型仍面临将视觉与语言整合以进行协作推理的固有挑战,这常常导致“幻觉”现象,即输出与对应图像不符。为应对这些问题已做出诸多努力,但每种方法各有局限,例如计算成本高或数据集标注昂贵。近期研究表明,LVLMs存在一种长期偏差,即随着序列长度增长,幻觉增加,但其根本原因仍知之甚少。基于对LVLMs中注意力机制的广泛研究,我们分析了这种长期偏差与视觉注意力之间的关系。在我们的研究中,我们识别出当前LVLMs中一个一致的现象:模型对视觉输入的注意力随生成序列增长而减弱,我们假设这是导致观察到的幻觉增加的关键因素。基于这些见解,我们提出了图像注意力引导的键值合并协作解码(IKOD),一种生成更聚焦于图像序列的协作解码策略。该方法通过键值合并从具有更高图像注意力的较短序列中导出logits,并将其与原始解码的logits相结合,有效缓解注意力退化并抑制幻觉,同时不引入过多推理成本。在幻觉基准和综合基准上的大量实验表明,IKOD在缓解幻觉和提升LVLMs综合能力方面具有卓越有效性。重要的是,IKOD无需额外训练或外部工具,使其成为一种适用于多种模型的轻量级高效框架。

英文摘要:

Large vision-language models (LVLMs) exhibit strong visual understanding and language generation capabilities yet remain prone to object hallucination, producing plausible descriptions unsupported by the input image. Analyzing generation dynamics across eight diverse LVLMs, we observe that cross-modal visual attention steadily decays as generation unfolds because appended text tokens continuously expand the softmax denominator; consequently, hallucinated objects consistently appear later and under lower image attention than grounded mentions. Unlike existing training-free remedies that rely on input perturbations or external models, we propose IKOD (Image-attention-guided Key-value merging against Object hallucination in Decoding), a collaborative decoder that directly compresses the competing text context within the native key-value (KV) cache. At each step, IKOD keeps visual tokens intact and merges low-attention text entries into a compact auxiliary cache, fusing the resulting image-focused distribution with the base branch to correct ungrounded predictions while preserving linguistic fluency. An adaptive variant (IKOD-A) further schedules collaboration strength online from the measured attention decay under a single universal configuration. Extensive experiments across hallucination and general multimodal benchmarks on eight diverse LVLMs demonstrate that IKOD and IKOD-A consistently mitigate object hallucination while preserving object recall and general multimodal capabilities at minimal inference cost. Code is available at https://github.com/jiabingyang01/IKOD.

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

↑