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

面向上下文的解码方法用于忠实的视觉-语言生成

Context-Aware Decoding for Faithful Vision-Language Generation

Department of Computer Science, George Mason University(计算机科学系,乔治·马歇尔大学)

Mehrdad Fazli, Bowen Wei, Ziwei Zhu

AI总结:

本文提出了一种无需训练的上下文嵌入注入方法,通过利用上下文嵌入信号在解码过程中保持视觉一致性,有效减少视觉-语言模型中的幻觉问题。

摘要:

幻觉,即生成与视觉输入不一致的响应,仍然是大型视觉-语言模型(LVLMs)的一个关键限制,尤其是在开放性任务如图像描述和视觉推理中。在本工作中,我们探究了驱动幻觉的逐层生成动态,并提出了一种无需训练的缓解策略。利用Logit Lens,我们研究了LVLMs在解码器层中如何构建下一个令牌分布,揭示出一个显著的承诺深度差距:真实令牌的概率质量更早积累在它们的最终候选者上,而幻觉令牌则较晚。基于这一发现,我们引入了上下文嵌入注入(CEI),这是一种轻量级的方法,利用最后一个输入令牌的隐藏状态——上下文嵌入——作为地面真实信号,以在整个解码过程中保持视觉一致性并抑制幻觉。在CHAIR、AMBER和MMHal-Bench基准(最大令牌长度为512)上进行评估,CEI在三种LVLMs上均优于最先进的基线,其动态变体产生了最低的整体幻觉率。通过将新颖的机理洞察与可扩展的干预相结合,本工作推进了LVLMs中幻觉缓解的发展。

英文摘要:

Hallucinations, generating responses inconsistent with the visual input, remain a critical limitation of large vision-language models (LVLMs), especially in open-ended tasks such as image captioning and visual reasoning. In this work, we probe the layer-wise generation dynamics that drive hallucinations and propose a training-free mitigation strategy. Employing the Logit Lens, we examine how LVLMs construct next-token distributions across decoder layers, uncovering a pronounced commitment-depth gap: truthful tokens accumulate probability mass on their final candidates earlier than hallucinatory ones. Drawing on this discovery, we introduce Context Embedding Injection (CEI), a lightweight method that harnesses the hidden state of the last input token-the context embedding-as a grounding signal to maintain visual fidelity throughout decoding and curb hallucinations. Evaluated on the CHAIR, AMBER, and MMHal-Bench benchmarks (with a maximum token length of 512), CEI outperforms state-of-the-art baselines across three LVLMs, with its dynamic variant yielding the lowest overall hallucination rates. By integrating novel mechanistic insights with a scalable intervention, this work advances the mitigation of hallucinations in LVLMs.

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

↑