mlsanityData to 14 Oct 2026

DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinations

arXiv 2410.18860 ↗First posted 24 Oct 2024cs.CL cs.AIcited by 25

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  7. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  8. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  10. 2023Mistral 7Bcited by 3,164
  11. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  12. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
38 more
  1. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  2. 2024Qwen2 Technical Reportcited by 2,120
  3. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  4. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  5. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  6. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  7. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  8. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  9. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  10. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
  11. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
  12. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
  13. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 695
  14. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  15. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  16. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 596
  17. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  18. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
  19. 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
  20. 2023A Survey of Hallucination in Large Foundation Modelscited by 368
  21. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 356
  22. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
  23. 2023How Language Model Hallucinations Can Snowballcited by 311
  24. 2019Depth-Adaptive Transformercited by 236
  25. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  26. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
  27. 2024Large Legal Fictions: Profiling Legal Hallucinations in Large Language Modelscited by 150
  28. 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
  29. 2024The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Modelscited by 88
  30. 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 79
  31. 2023Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Modelscited by 67
  32. 2023FactKB: Generalizable Factuality Evaluation using Language Models Enhanced with Factual Knowledgecited by 55
  33. 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decodingcited by 49
  34. 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 45
  35. 2021BERTnesia: Investigating the capture and forgetting of knowledge in BERTcited by 40
  36. 2023Creating Trustworthy LLMs: Dealing with Hallucinations in Healthcare AIcited by 33
  37. 2023The Benefits of Bad Advice: Autocontrastive Decoding across Model Layerscited by 29
  38. 2024The Hallucinations Leaderboard -- An Open Effort to Measure Hallucinations in Large Language Modelscited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 10; 2026: 15.

25 papers.

Sort:

By area:

  1. 2025Steering off Course: Reliability Challenges in Steering Language Modelscited by 34
  2. 2025PiCSAR: Probabilistic Confidence Selection And Ranking for Reasoning Chainscited by 10
  3. 2025HICD: Hallucination-Inducing via Attention Dispersion for Contrastive Decoding to Mitigate Hallucinations in Large Language Modelscited by 7
  4. 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 7
  5. 2025Revisiting Long-context Modeling from Context Denoising Perspectivecited by 5
  6. 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capabilitycited by 4
  7. 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
  8. 2026Understanding and Mitigating Hallucinations in Multimodal Chain-of-Thought Modelscited by 3
  9. 2025An Analysis of Decoding Methods for LLM-based Agents for Faithful Multi-Hop Question Answeringcited by 2
  10. 2026Preference Heads in Large Language Models: A Mechanistic Framework for Interpretable Personalizationcited by 2
  11. 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Modelscited by 1
  12. 2026Think Less, Know More: State-Aware Reasoning Compression with Knowledge Guidance for Efficient Reasoningcited by 1
13 more
  1. 2026Context-Fidelity Boosting: Enhancing Faithful Generation through Watermark-Inspired Decodingcited by 1
  2. 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalizationcited by 1
  3. 2025SSFO: Self-Supervised Faithfulness Optimization for Retrieval-Augmented Generationcited by 0
  4. 2026Temporal Guidance for Large Language Modelscited by 0
  5. 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreementcited by 0
  6. 2026A Systematic Study of Training-Free Methods for Trustworthy Large Language Modelscited by 0
  7. 2026APCD: Adaptive Path-Contrastive Decoding for Reliable Large Language Model Generationcited by 0
  8. 2026FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAGcited by 0
  9. 2026Logit-Contribution Scoring Identifies Non-Literal Retrieval Headscited by 0
  10. 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Modelscited by 0
  11. 2026Information-Guided Frontier Decoding: Contextual Utility-Driven Commitment in dMLLMscited by 0
  12. 2026Invisible Ink, Visible Lies: How Production Watermarking Causes LLMs to Hallucinatecited by 0
  13. 2026MAPLE: A Multi-Axis Parametric Knowledge Extraction Lens for LLM Evaluationcited by 0