arXiv:2602.04268cs.CV2026-02中稿 · CVPR被引 2

通过平滑键值缓存减少多模态大模型幻觉

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

  • 用注意力熵动态调节键值缓存的平滑强度
  • 幻觉率从41.8降至18.2,F1提升至79.2
  • 无需训练,适配各类多模态模型

尽管多模态大语言模型在各类任务上取得显著进展,幻觉(生成与视觉不一致的对象、属性或关系)仍是其可靠部署的主要障碍。与纯语言模型不同,多模态模型需基于视觉输入进行生成,但现有模型在解码过程中常出现语义漂移,导致输出随序列长度增加而偏离视觉事实。为此,我们提出KVSmooth,一种无需训练、可即插即用的方法,通过注意力熵引导的自适应平滑来缓解幻觉。具体而言,KVSmooth对键值缓存中的键和值进行指数移动平均(EMA),并利用注意力分布熵动态量化每个标记的下沉程度,以自适应调整平滑强度。相比计算开销大的重训练或对比解码方法,该方法推理高效,无需额外训练或模型修改。大量实验表明,KVSmooth显著降低幻觉(CHAIR_S从41.8降至18.2),同时提升整体性能(F1分数从77.5升至79.2),实现精度与召回率同步提升。相比之下,先前方法常以牺牲一方为代价,验证了本方法的有效性与通用性。

原文摘要 · Abstract (English)

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.

多模态幻觉抑制推理优化

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