Enhancing Contextual Understanding in Large Language Models through Contrastive Decoding
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) tend to inadequately integrate input context during text generation, relying excessively on encoded prior knowledge in model parameters, potentially resulting in generated text with factual inconsistencies or contextually unfaithful content. LLMs utilize two primary knowledge sources: 1) prior (parametric) knowledge from pretraining, and 2) contextual (non-parametric) knowledge from input prompts. The study addresses the open question of how LLMs effectively balance these knowledge sources during the generation process, specifically in the context of open-domain question answering. To address this issue, we introduce a novel approach integrating contrastive decoding with adversarial irrelevant passages as negative samples to enhance robust context grounding during generation. Notably, our method operates at inference time without requiring further training. We conduct comprehensive experiments to demonstrate its applicability and effectiveness, providing empirical evidence showcasing its superiority over existing methodologies. Our code is publicly available at: https://github.com/amazon-science/ContextualUnderstanding-ContrastiveDecoding.
Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). Builds on 29 of its 40 references that are in the map. First posted on arXiv 4 May 2024.
Builds on
29 of 40 references.
References · 29
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
17 more
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 439
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
- 2022RealTime QA: What's the Answer Right Now?cited by 239
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
- 2022TemporalWiki: A Lifelong Benchmark for Training and Evaluating Ever-Evolving Language Modelscited by 117
- 2022Training Language Models with Memory Augmentationcited by 112
- 2022DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answeringcited by 93
- 2021Time Waits for No One! Analysis and Challenges of Temporal Misalignmentcited by 91
- 2021Coherence boosting: When your pretrained language model is not paying enough attentioncited by 38
- 2023Merging Generated and Retrieved Knowledge for Open-Domain QAcited by 36
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
Built on by
Citing papers per year: 2024: 11; 2025: 25; 2026: 13.
49 papers.
Sort:
By area:
- 2024Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Modelscited by 57
- 2024Internal Consistency and Self-Feedback in Large Language Models: A Surveycited by 49
- 2024AdaCAD: Adaptively Decoding to Balance Conflicts between Contextual and Parametric Knowledgecited by 35
- 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generationcited by 34
- 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Modelscited by 28
- 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinationscited by 23
- 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decodingcited by 20
- 2025Exploring Hallucination of Large Multimodal Models in Video Understanding: Benchmark, Analysis and Mitigationcited by 20
- 2024Adaptive Contrastive Decoding in Retrieval-Augmented Generation for Handling Noisy Contextscited by 19
- 2025SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidencecited by 18
- 2025Learning to Focus: Causal Attention Distillation via Gradient-Guided Token Pruningcited by 13
- 2024VaLiD: Mitigating the Hallucination of Large Vision Language Models by Visual Layer Fusion Contrastive Decodingcited by 12
37 more
- 2025Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributionscited by 11
- 2025Evaluating the Sensitivity of LLMs to Prior Contextcited by 9
- 2025CoCoA: Confidence and Context-Aware Adaptive Decoding for Resolving Knowledge Conflicts in Large Language Modelscited by 9
- 2024When to Speak, When to Abstain: Contrastive Decoding with Abstentioncited by 7
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 6
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generationcited by 6
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2025Conflict-Aware Soft Prompting for Retrieval-Augmented Generationcited by 5
- 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoningcited by 5
- 2024DEXTER: A Benchmark for open-domain Complex Question Answering using LLMscited by 4
- 2024Multilingual Contrastive Decoding via Language-Agnostic Layers Skippingcited by 4
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decodingcited by 4
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMscited by 4
- 2026Learning from Emptiness: De-biasing Listwise Rerankers with Content-Agnostic Probability Calibrationcited by 4
- 2025Reimagining Urban Science: Scaling Causal Inference with Large Language Modelscited by 3
- 2025CUB: Benchmarking Context Utilisation Techniques for Language Modelscited by 3
- 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Modelscited by 3
- 2025Model Editing with Graph-Based External Memorycited by 2
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generationcited by 2
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigationcited by 2
- 2026CC-VQA: Conflict- and Correlation-Aware Method for Mitigating Knowledge Conflict in Knowledge-Based Visual Question Answeringcited by 2
- 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Modelscited by 1
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Modelscited by 1
- 2025Toward Inherently Robust VLMs Against Visual Perception Attackscited by 1
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglementcited by 1
- 2025Short-Context Dominance: How Much Local Context Natural Language Actually Needs?cited by 1
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoningcited by 1
- 2025UniKnow: A Unified Framework for Reliable Language Model Behavior across Parametric and External Knowledgecited by 0
- 2025Performance Gains of LLMs With Humans in a World of LLMs Versus Humanscited by 0
- 2025MUST-RAG: MUSical Text Question Answering with Retrieval Augmented Generationcited by 0
- 2026CE-GOCD: Central Entity-Guided Graph Optimization for Community Detection to Augment LLM Scientific Question Answeringcited by 0
- 2026Dual-Confidence Contrastive Decoding for Retrieval-Augmented Generationcited by 0
- 2026Development of Vision-Language Model-based GNSS Spoofing Detection for Autonomous Vehicle Navigationcited by 0
- 2026Decoupled Contrastive Decoding via Expert-Aligned Draftingcited by 0
- 2026Can Language Models Understand mmWave Data? Benchmarking Large Language Models for mmWave Radar-Based Human Understandingcited by 0
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Modelscited by 0
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptationcited by 0
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptation26 Aug 2026
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Models14 Aug 2026
- 2026Can Language Models Understand mmWave Data? Benchmarking Large Language Models for mmWave Radar-Based Human Understanding14 Aug 2026
- 2026Decoupled Contrastive Decoding via Expert-Aligned Drafting13 Aug 2026
- 2026Development of Vision-Language Model-based GNSS Spoofing Detection for Autonomous Vehicle Navigation27 Jul 2026
- 2026Dual-Confidence Contrastive Decoding for Retrieval-Augmented Generation1 Jul 2026
- 2026Learning from Emptiness: De-biasing Listwise Rerankers with Content-Agnostic Probability Calibration11 Apr 2026
- 2026CC-VQA: Conflict- and Correlation-Aware Method for Mitigating Knowledge Conflict in Knowledge-Based Visual Question Answering27 Feb 2026
- 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning20 Feb 2026
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning30 Jan 2026
- 2026CE-GOCD: Central Entity-Guided Graph Optimization for Community Detection to Augment LLM Scientific Question Answering29 Jan 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
37 more
- 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models7 Jan 2026
- 2025Short-Context Dominance: How Much Local Context Natural Language Actually Needs?8 Dec 2025
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigation5 Nov 2025
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglement3 Nov 2025
- 2025CoCoA: Confidence and Context-Aware Adaptive Decoding for Resolving Knowledge Conflicts in Large Language Models25 Aug 2025
- 2025Conflict-Aware Soft Prompting for Retrieval-Augmented Generation21 Aug 2025
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generation7 Aug 2025
- 2025MUST-RAG: MUSical Text Question Answering with Retrieval Augmented Generation31 Jul 2025
- 2025Toward Inherently Robust VLMs Against Visual Perception Attacks13 Jun 2025
- 2025Learning to Focus: Causal Attention Distillation via Gradient-Guided Token Pruning9 Jun 2025
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models6 Jun 2025
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMs3 Jun 2025
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generation31 May 2025
- 2025Evaluating the Sensitivity of LLMs to Prior Context29 May 2025
- 2025Model Editing with Graph-Based External Memory23 May 2025
- 2025CUB: Benchmarking Context Utilisation Techniques for Language Models22 May 2025
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models19 May 2025
- 2025Performance Gains of LLMs With Humans in a World of LLMs Versus Humans13 May 2025
- 2025Reimagining Urban Science: Scaling Causal Inference with Large Language Models15 Apr 2025
- 2025Noise Augmented Fine Tuning for Mitigating Hallucinations in Large Language Models4 Apr 2025
- 2025Exploring Hallucination of Large Multimodal Models in Video Understanding: Benchmark, Analysis and Mitigation25 Mar 2025
- 2025Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions18 Mar 2025
- 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generation11 Mar 2025
- 2025Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding19 Feb 2025
- 2025UniKnow: A Unified Framework for Reliable Language Model Behavior across Parametric and External Knowledge19 Feb 2025
- 2025SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidence12 Feb 2025
- 2024When to Speak, When to Abstain: Contrastive Decoding with Abstention17 Dec 2024
- 2024VaLiD: Mitigating the Hallucination of Large Vision Language Models by Visual Layer Fusion Contrastive Decoding24 Nov 2024
- 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Models22 Nov 2024
- 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinations24 Oct 2024
- 2024Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Models9 Oct 2024
- 2024AdaCAD: Adaptively Decoding to Balance Conflicts between Contextual and Parametric Knowledge11 Sep 2024
- 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decoding5 Sep 2024
- 2024Adaptive Contrastive Decoding in Retrieval-Augmented Generation for Handling Noisy Contexts2 Aug 2024
- 2024Internal Consistency and Self-Feedback in Large Language Models: A Survey19 Jul 2024
- 2024Multilingual Contrastive Decoding via Language-Agnostic Layers Skipping15 Jul 2024
- 2024DEXTER: A Benchmark for open-domain Complex Question Answering using LLMs24 Jun 2024
- 2024Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Modelscited by 57
- 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generationcited by 34
- 2024Adaptive Contrastive Decoding in Retrieval-Augmented Generation for Handling Noisy Contextscited by 19
- 2025Conflict-Aware Soft Prompting for Retrieval-Augmented Generationcited by 5
- 2025MUST-RAG: MUSical Text Question Answering with Retrieval Augmented Generationcited by 0
- 2026Dual-Confidence Contrastive Decoding for Retrieval-Augmented Generationcited by 0
- 2026Dual-Confidence Contrastive Decoding for Retrieval-Augmented Generation1 Jul 2026
- 2025Conflict-Aware Soft Prompting for Retrieval-Augmented Generation21 Aug 2025
- 2025MUST-RAG: MUSical Text Question Answering with Retrieval Augmented Generation31 Jul 2025
- 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generation11 Mar 2025
- 2024Astute RAG: Overcoming Imperfect Retrieval Augmentation and Knowledge Conflicts for Large Language Models9 Oct 2024
- 2024Adaptive Contrastive Decoding in Retrieval-Augmented Generation for Handling Noisy Contexts2 Aug 2024
- 2024Internal Consistency and Self-Feedback in Large Language Models: A Surveycited by 49
- 2025Exploring Hallucination of Large Multimodal Models in Video Understanding: Benchmark, Analysis and Mitigationcited by 20
- 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoningcited by 5
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoningcited by 1
- 2026Can Language Models Understand mmWave Data? Benchmarking Large Language Models for mmWave Radar-Based Human Understandingcited by 0
- 2026Can Language Models Understand mmWave Data? Benchmarking Large Language Models for mmWave Radar-Based Human Understanding14 Aug 2026
- 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning20 Feb 2026
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning30 Jan 2026
- 2025Exploring Hallucination of Large Multimodal Models in Video Understanding: Benchmark, Analysis and Mitigation25 Mar 2025
- 2024Internal Consistency and Self-Feedback in Large Language Models: A Survey19 Jul 2024
- 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Modelscited by 28
- 2024VaLiD: Mitigating the Hallucination of Large Vision Language Models by Visual Layer Fusion Contrastive Decodingcited by 12
- 2025Toward Inherently Robust VLMs Against Visual Perception Attackscited by 1
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Modelscited by 0
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Models14 Aug 2026
- 2025Toward Inherently Robust VLMs Against Visual Perception Attacks13 Jun 2025
- 2024VaLiD: Mitigating the Hallucination of Large Vision Language Models by Visual Layer Fusion Contrastive Decoding24 Nov 2024
- 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Models22 Nov 2024
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptationcited by 0
- 2026RA-VLA: Retrieval-Augmented VLA for Test-Time Adaptation26 Aug 2026
- 2024AdaCAD: Adaptively Decoding to Balance Conflicts between Contextual and Parametric Knowledgecited by 35
- 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinationscited by 23
- 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decodingcited by 20
- 2025SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidencecited by 18
- 2025Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributionscited by 11
- 2025Evaluating the Sensitivity of LLMs to Prior Contextcited by 9
- 2025CoCoA: Confidence and Context-Aware Adaptive Decoding for Resolving Knowledge Conflicts in Large Language Modelscited by 9
- 2024When to Speak, When to Abstain: Contrastive Decoding with Abstentioncited by 7
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Modelscited by 6
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generationcited by 6
- 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
- 2024DEXTER: A Benchmark for open-domain Complex Question Answering using LLMscited by 4
12 most cited of 30 All 30 (JSON)
- 2026Decoupled Contrastive Decoding via Expert-Aligned Drafting13 Aug 2026
- 2026Learning from Emptiness: De-biasing Listwise Rerankers with Content-Agnostic Probability Calibration11 Apr 2026
- 2026CC-VQA: Conflict- and Correlation-Aware Method for Mitigating Knowledge Conflict in Knowledge-Based Visual Question Answering27 Feb 2026
- 2026CE-GOCD: Central Entity-Guided Graph Optimization for Community Detection to Augment LLM Scientific Question Answering29 Jan 2026
- 2026Gated Differentiable Working Memory for Long-Context Language Modeling19 Jan 2026
- 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models7 Jan 2026
- 2025Short-Context Dominance: How Much Local Context Natural Language Actually Needs?8 Dec 2025
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigation5 Nov 2025
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglement3 Nov 2025
- 2025CoCoA: Confidence and Context-Aware Adaptive Decoding for Resolving Knowledge Conflicts in Large Language Models25 Aug 2025
- 2025CoCoLex: Confidence-guided Copy-based Decoding for Grounded Legal Text Generation7 Aug 2025
- 2025Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models6 Jun 2025
12 newest of 30 All 30 (JSON)