Inject to Heal: Alleviating hallucination in LVLMs via Context Embedding Injection

Mehrdad Fazli, Bowen Wei, Ziwei Zhu


Abstract
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. Data and code are available at https://github.com/mehrdadfazli/CEI.
Anthology ID:
2026.findings-acl.2048
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
41177–41193
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.2048/
DOI:
Bibkey:
Cite (ACL):
Mehrdad Fazli, Bowen Wei, and Ziwei Zhu. 2026. Inject to Heal: Alleviating hallucination in LVLMs via Context Embedding Injection. In Findings of the Association for Computational Linguistics: ACL 2026, pages 41177–41193, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Inject to Heal: Alleviating hallucination in LVLMs via Context Embedding Injection (Fazli et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.2048.pdf
Checklist:
 2026.findings-acl.2048.checklist.pdf