Improving Contextual Faithfulness of Large Language Models via Retrieval Heads-Induced Optimization
Lei Huang, Xiaocheng Feng, Weitao Ma, Yuchun Fan, Xiachong Feng, Yangfan Ye, Weihong Zhong, Yuxuan Gu, Baoxin Wang, Dayong Wu, Guoping Hu, Bing Qin
Abstract
Ensuring contextual faithfulness in retrievalaugmented large language models (LLMs) is crucial for building trustworthy informationseeking systems, particularly in long-form question-answering (LFQA) scenarios. In this work, we identify a salient correlation between LFQA faithfulness and retrieval heads, a set of attention heads responsible for retrieving contextual information. Leveraging this insight, we propose RHIO 1 , a framework designed to teach LLMs to explicitly discriminate between faithful and unfaithful generations. RHIO first augments unfaithful samples that simulate realistic model-intrinsic errors by selectively masking retrieval heads. Then, these samples are incorporated into joint training, enabling the model to distinguish unfaithful outputs from faithful ones conditioned on control tokens. Furthermore, these control tokens are leveraged to self-induce contrastive outputs, amplifying their difference through contrastive decoding. Additionally, to facilitate the evaluation of contextual faithfulness, we also introduce Ground-Bench, a comprehensive benchmark compiled from five existing LFQA datasets. Extensive experimental results on GroundBench demonstrate that RHIO significantly improves faithfulness, even outperforming GPT-4o 2 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Teaching Large Language Models to Maintain Contextual Faithfulness via Synthetic Tasks and Reinforcement Learning cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Teaching Large Language Models to Maintain Contextual Faithfulness via Synthetic Tasks and Reinforcement Learning cites RECOMP: Improving Retrieval-Augmented LMs with Context Compression and Selective Augmentation
- Copy-Paste to Mitigate Large Language Model Hallucinations cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
- Copy-Paste to Mitigate Large Language Model Hallucinations cites Teaching Large Language Models to Maintain Contextual Faithfulness via Synthetic Tasks and Reinforcement Learning
- Copy-Paste to Mitigate Large Language Model Hallucinations cites ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generation
- ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generation cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Cited by top-tier papers6
- ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented GenerationPengcheng Huang, Zhenghao Liu, Yukun Yan, Haiyan Zhao et al.NeurIPS 2025 · 11 citations
- Teaching Large Language Models to Maintain Contextual Faithfulness via Synthetic Tasks and Reinforcement LearningShuzheng Si, Haozhe Zhao, Cheng Gao, Yuzhuo Bai et al.AAAI 2026 · 4 citations
- Copy-Paste to Mitigate Large Language Model HallucinationsYongchao Long, Yingying Zhang, Xianbin Wen, Xian Wu et al.ICLR 2026 · 2 citations
- When LLMs Read Tables Carelessly: Measuring and Reducing Data Referencing ErrorsYuqing Yang, Qi Zhu, Zhen Han, Boran Han et al.ACL 2026
- One for All: Update Parameterized Knowledge Across Multiple Models with Once EditWeitao Ma, Xiyuan Du, Xiaocheng Feng, Lei Huang et al.ACL 2025
Builds on15
- Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
- QUARK: Controllable Text Generation with Reinforced UnlearningXiming Lu, Sean Welleck, Jack Hessel, Liwei Jiang et al.NeurIPS 2022 · 290 citations
- RECOMP: Improving Retrieval-Augmented LMs with Context Compression and Selective AugmentationFangyuan Xu, Weijia Shi, Eunsol ChoiICLR 2024 · 260 citations
- When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric MemoriesAlex Mallen, Akari Asai, Victor Zhong, Rajarshi Das et al.ACL 2023 · 233 citations
Related papers
- FaithEval: Can Your Language Model Stay Faithful to Context, Even If "The Moon is Made of Marshmallows"Yifei Ming, Senthil Purushwalkam, Shrey Pandit, Zixuan Ke et al.ICLR 2025
- DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate HallucinationsAryo Pradipta Gema, Chen Jin, Ahmed Abdulaal, Tom Diethe et al.EMNLP Findings 2025 · 2 citations
- Context-DPO: Aligning Language Models for Context-FaithfulnessBaolong Bi, Shaohan Huang, Yiwei Wang, Tianchi Yang et al.ACL Findings 2025 · 2 citations
- Generate, Discriminate, Evolve: Enhancing Context Faithfulness via Fine-Grained Sentence-Level Self-EvolutionKun Li, Tianhua Zhang, Yunxiang Li, Hongyin Luo et al.ACL Findings 2025
- LongFaith: Enhancing Long-Context Reasoning in LLMs with Faithful Synthetic DataCehao Yang, Xueyuan Lin, Chengjin Xu, Xuhui Jiang et al.ACL Findings 2025 · 3 citations
