DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinations
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) often hallucinate, producing unfaithful or factually incorrect outputs by misrepresenting the provided context or incorrectly recalling internal knowledge. Recent studies have identified specific attention heads within the Transformer architecture, known as retrieval heads, responsible for extracting relevant contextual information. We hypothesise that masking these retrieval heads can induce hallucinations and that contrasting the outputs of the base LLM and the masked LLM can reduce hallucinations. To this end, we propose Decoding by Contrasting Retrieval Heads (DeCoRe), a novel training-free decoding strategy that amplifies information found in the context and model parameters. DeCoRe mitigates potentially hallucinated responses by dynamically contrasting the outputs of the base LLM and the masked LLM, using conditional entropy as a guide. Our extensive experiments confirm that DeCoRe significantly improves performance on tasks requiring high contextual faithfulness, such as summarisation (XSum by 18.6%), instruction following (MemoTrap by 10.9%), and open-book question answering (NQ-Open by 2.4% and NQ-Swap by 5.5%).
Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Builds on 50 of its 73 references that are in the map. First posted on arXiv 24 Oct 2024.
Builds on
50 of 73 references.
References · 50
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Mistral 7Bcited by 3,164
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
38 more
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2024Qwen2 Technical Reportcited by 2,120
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 695
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 596
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
- 2023A Survey of Hallucination in Large Foundation Modelscited by 368
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 356
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2023How Language Model Hallucinations Can Snowballcited by 311
- 2019Depth-Adaptive Transformercited by 236
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2024Large Legal Fictions: Profiling Legal Hallucinations in Large Language Modelscited by 150
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
- 2024The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Modelscited by 88
- 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 79
- 2023Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Modelscited by 67
- 2023FactKB: Generalizable Factuality Evaluation using Language Models Enhanced with Factual Knowledgecited by 55
- 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decodingcited by 49
- 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 45
- 2021BERTnesia: Investigating the capture and forgetting of knowledge in BERTcited by 40
- 2023Creating Trustworthy LLMs: Dealing with Hallucinations in Healthcare AIcited by 33
- 2023The Benefits of Bad Advice: Autocontrastive Decoding across Model Layerscited by 29
- 2024The Hallucinations Leaderboard -- An Open Effort to Measure Hallucinations in Large Language Modelscited by 17
Built on by
Citing papers per year: 2025: 10; 2026: 15.
25 papers.
Sort:
By area:
- 2025Steering off Course: Reliability Challenges in Steering Language Modelscited by 34
- 2025PiCSAR: Probabilistic Confidence Selection And Ranking for Reasoning Chainscited by 10
- 2025HICD: Hallucination-Inducing via Attention Dispersion for Contrastive Decoding to Mitigate Hallucinations in Large Language Modelscited by 7
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 7
- 2025Revisiting Long-context Modeling from Context Denoising Perspectivecited by 5
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capabilitycited by 4
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
- 2026Understanding and Mitigating Hallucinations in Multimodal Chain-of-Thought Modelscited by 3
- 2025An Analysis of Decoding Methods for LLM-based Agents for Faithful Multi-Hop Question Answeringcited by 2
- 2026Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalizationcited by 2
- 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Modelscited by 1
- 2026Think Less, Know More: State-Aware Reasoning Compression with Knowledge Guidance for Efficient Reasoningcited by 1
13 more
- 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decodingcited by 1
- 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalizationcited by 1
- 2025SSFO: Self-Supervised Faithfulness Optimization for Retrieval-Augmented Generationcited by 0
- 2026Temporal Guidance for Large Language Modelscited by 0
- 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreementcited by 0
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
- 2026APCD: Adaptive Path-Contrastive Decoding for Reliable Large Language Model Generationcited by 0
- 2026FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAGcited by 0
- 2026Logit-Contribution Scoring Identifies Non-Literal Retrieval Headscited by 0
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Modelscited by 0
- 2026Information-Guided Frontier Decoding: Contextual Utility-Driven Commitment in dMLLMscited by 0
- 2026Invisible Ink, Visible Lies: How Production Watermarking Causes LLMs to Hallucinatecited by 0
- 2026MAPLE: A Multi-Axis Parametric Knowledge Extraction Lens for LLM Evaluationcited by 0
- 2026MAPLE: A Multi-Axis Parametric Knowledge Extraction Lens for LLM Evaluation14 Oct 2026
- 2026Invisible Ink, Visible Lies: How Production Watermarking Causes LLMs to Hallucinate4 Oct 2026
- 2026Information-Guided Frontier Decoding: Contextual Utility-Driven Commitment in dMLLMs27 Aug 2026
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Models14 Aug 2026
- 2026Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads1 Jul 2026
- 2026FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAG4 Jun 2026
- 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalization2 Jun 2026
- 2026APCD: Adaptive Path-Contrastive Decoding for Reliable Large Language Model Generation10 May 2026
- 2026Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalization24 Apr 2026
- 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decoding24 Apr 2026
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Models17 Apr 2026
- 2026Think Less, Know More: State-Aware Reasoning Compression with Knowledge Guidance for Efficient Reasoning10 Apr 2026
13 more
- 2026Understanding and Mitigating Hallucinations in Multimodal Chain-of-Thought Models28 Mar 2026
- 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement10 Feb 2026
- 2026Temporal Guidance for Large Language Models29 Jan 2026
- 2025Revisiting Long-context Modeling from Context Denoising Perspective7 Oct 2025
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distribution19 Sep 2025
- 2025PiCSAR: Probabilistic Confidence Selection And Ranking for Reasoning Chains29 Aug 2025
- 2025SSFO: Self-Supervised Faithfulness Optimization for Retrieval-Augmented Generation24 Aug 2025
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models6 Jun 2025
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capability15 May 2025
- 2025Steering off Course: Reliability Challenges in Steering Language Models6 Apr 2025
- 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Models4 Apr 2025
- 2025An Analysis of Decoding Methods for LLM-based Agents for Faithful Multi-Hop Question Answering30 Mar 2025
- 2025HICD: Hallucination-Inducing via Attention Dispersion for Contrastive Decoding to Mitigate Hallucinations in Large Language Models17 Mar 2025
- 2025PiCSAR: Probabilistic Confidence Selection And Ranking for Reasoning Chainscited by 10
- 2026Understanding and Mitigating Hallucinations in Multimodal Chain-of-Thought Modelscited by 3
- 2026Think Less, Know More: State-Aware Reasoning Compression with Knowledge Guidance for Efficient Reasoningcited by 1
- 2026Think Less, Know More: State-Aware Reasoning Compression with Knowledge Guidance for Efficient Reasoning10 Apr 2026
- 2026Understanding and Mitigating Hallucinations in Multimodal Chain-of-Thought Models28 Mar 2026
- 2025PiCSAR: Probabilistic Confidence Selection And Ranking for Reasoning Chains29 Aug 2025
- 2025Steering off Course: Reliability Challenges in Steering Language Modelscited by 34
- 2025HICD: Hallucination-Inducing via Attention Dispersion for Contrastive Decoding to Mitigate Hallucinations in Large Language Modelscited by 7
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 7
- 2025Revisiting Long-context Modeling from Context Denoising Perspectivecited by 5
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capabilitycited by 4
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
- 2026Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalizationcited by 2
- 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Modelscited by 1
- 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalizationcited by 1
- 2026Temporal Guidance for Large Language Modelscited by 0
- 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreementcited by 0
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
12 most cited of 15 All 15 (JSON)
- 2026Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads1 Jul 2026
- 2026FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAG4 Jun 2026
- 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalization2 Jun 2026
- 2026APCD: Adaptive Path-Contrastive Decoding for Reliable Large Language Model Generation10 May 2026
- 2026Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalization24 Apr 2026
- 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Models17 Apr 2026
- 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement10 Feb 2026
- 2026Temporal Guidance for Large Language Models29 Jan 2026
- 2025Revisiting Long-context Modeling from Context Denoising Perspective7 Oct 2025
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distribution19 Sep 2025
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models6 Jun 2025
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capability15 May 2025
12 newest of 15 All 15 (JSON)