arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.12206cs.CVcs.CL
收藏

PAINT:关注信息丰富的标记以缓解大型视觉-语言模型中的幻觉

PAINT: Paying Attention to INformed Tokens to Mitigate Hallucination in Large Vision-Language Model

Virginia Tech(弗吉尼亚理工大学)

Kazi Hasan Ibn Arif, Sajib Acharjee Dip, Khizar Hussain, Lang Zhang, Chris Thomas

AI总结:

针对LVLM幻觉问题,提出PAINT框架,通过选择性增强局部与汇总视觉标记的注意力权重,在MSCOCO上降低幻觉率62.3%。

摘要:

大型视觉-语言模型(LVLMs)在理解和描述视觉内容方面展现了卓越的能力,在各种视觉-语言任务中取得了最先进的性能。然而,这些模型经常生成包含输入图像中不存在的对象或细节的描述,这种现象通常被称为幻觉。我们的工作通过分析Transformer层中自注意力的模式来研究这一问题的关键原因。我们发现,幻觉往往源于LLM深层中视觉标记注意力权重的逐渐减弱。一些先前的工作天真地增强所有视觉标记的注意力以缓解此问题,导致幻觉减少效果次优。为了解决这个问题,我们识别出两组关键的视觉标记,它们促进视觉信息从视觉编码器向LLM的传递。局部标记编码图像中存在的对象的接地信息,而汇总标记捕获图像的总体聚合表示。重要的是,这两组标记需要不同程度的权重增强。为此,我们提出了PAINT(关注信息丰富的标记),这是一个即插即用的框架,干预LLM的自注意力机制,通过实验学习的边际选择性地增强局部和汇总标记的注意力权重。在MSCOCO图像字幕数据集上的评估表明,与基线模型相比,我们的方法将幻觉率降低了高达62.3%,同时保持了准确性。代码可在https://github.com/hasanar1f/PAINT获取。

英文摘要:

Large Vision Language Models (LVLMs) have demonstrated remarkable capabilities in understanding and describing visual content, achieving state-of-the-art performance across various vision-language tasks. However, these models often generate descriptions containing objects or details that are absent in the input image, a phenomenon commonly known as hallucination. Our work investigates the key reasons behind this issue by analyzing the pattern of self-attention in transformer layers. We find that hallucinations often arise from the progressive weakening of attention weight to visual tokens in the deeper layers of the LLM. Some previous works naively boost the attention of all visual tokens to mitigate this issue, resulting in suboptimal hallucination reduction. To address this, we identify two critical sets of visual tokens that facilitate the transfer of visual information from the vision encoder to the LLM. Local tokens encode grounded information about objects present in an image, while summary tokens capture the overall aggregated representation of the image. Importantly, these two sets of tokens require different levels of weight enhancement. To this end, we propose \textbf{PAINT} (\textbf{P}aying \textbf{A}ttention to \textbf{IN}formed \textbf{T}okens), a plug-and-play framework that intervenes in the self-attention mechanism of the LLM, selectively boosting the attention weights of local and summary tokens with experimentally learned margins. Evaluation on the MSCOCO image captioning dataset demonstrate that our approach reduces hallucination rates by up to 62.3\% compared to baseline models while maintaining accuracy. Code is available at \href{https://github.com/hasanar1f/PAINT}{https://github.com/hasanar1f/PAINT}

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

↑