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

KVSmooth: 通过键值平滑缓解多模态大语言模型中的幻觉

KVSmooth: Mitigating Hallucination in Multi-modal Large Language Models through Key-Value Smoothing

Siyu Jiang, Feiyang Chen, Xiaojin Zhang, Kun He

AI总结:

KVSmooth通过键值平滑技术有效缓解多模态大语言模型中的幻觉问题,提升生成精度和召回率。

摘要:

尽管多模态大语言模型(MLLMs)在多样任务上取得了显著进展,但幻觉——即生成视觉不一致的对象、属性或关系——仍然是其可靠部署的主要障碍。与纯语言模型不同,MLLMs必须将生成过程建立在视觉输入之上。然而,现有模型在解码过程中常常出现语义漂移,导致输出随着序列长度的增加而偏离视觉事实。为了解决这个问题,我们提出了KVSmooth,一种无需训练且即插即用的方法,通过执行注意力-熵引导的自适应平滑来减轻幻觉。具体而言,KVSmooth对KV缓存中的键和值应用指数移动平均(EMA),同时通过注意力分布的熵动态量化每个token的sink度,以自适应调整平滑强度。与计算成本高昂的重新训练或对比解码方法不同,KVSmooth在推理过程中高效运行,无需额外训练或模型修改。广泛的实验表明,KVSmooth显著减少了幻觉(CHAIR_S从41.8→18.2),同时提高了整体性能(F1分数从77.5→79.2),实现了同时提高精度和召回率。相比之下,先前方法往往提高一个方面而牺牲另一个方面,验证了我们方法的有效性和通用性。

英文摘要:

Despite the significant progress of Multimodal Large Language Models (MLLMs) across diverse tasks, hallucination -- corresponding to the generation of visually inconsistent objects, attributes, or relations -- remains a major obstacle to their reliable deployment. Unlike pure language models, MLLMs must ground their generation process in visual inputs. However, existing models often suffer from semantic drift during decoding, causing outputs to diverge from visual facts as the sequence length increases. To address this issue, we propose KVSmooth, a training-free and plug-and-play method that mitigates hallucination by performing attention-entropy-guided adaptive smoothing on hidden states. Specifically, KVSmooth applies an exponential moving average (EMA) to both keys and values in the KV-Cache, while dynamically quantifying the sink degree of each token through the entropy of its attention distribution to adaptively adjust the smoothing strength. Unlike computationally expensive retraining or contrastive decoding methods, KVSmooth operates efficiently during inference without additional training or model modification. Extensive experiments demonstrate that KVSmooth significantly reduces hallucination ($\mathit{CHAIR}_{S}$ from $41.8 \rightarrow 18.2$) while improving overall performance ($F_1$ score from $77.5 \rightarrow 79.2$), achieving higher precision and recall simultaneously. In contrast, prior methods often improve one at the expense of the other, validating the effectiveness and generality of our approach.

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

↑