Taming Knowledge Conflicts in Language Models
Not on the map. Why?
Abstract (arXiv)
Language Models (LMs) often encounter knowledge conflicts when parametric memory contradicts contextual knowledge. Previous works attribute this conflict to the interplay between "memory heads" and "context heads", attention heads assumed to promote either memory or context exclusively. In this study, we go beyond this fundamental assumption by uncovering a critical phenomenon we term the superposition of contextual information and parametric memory, where highly influential attention heads simultaneously contribute to both memory and context. Building upon this insight, we propose Just Run Twice (JuICE), a test-time attention intervention method that steers LMs toward either parametric beliefs or contextual knowledge without requiring fine-tuning. JuICE identifies a set of reliable attention heads and leverages a dual-run approach to mitigate the superposition effects. Extensive experiments across 11 datasets and 6 model architectures demonstrate that JuICE sets the new state-of-the-art performance and robust generalization, achieving significant and consistent improvement across different domains under various conflict types. Finally, we theoretically analyze knowledge conflict and the superposition of contextual information and parametric memory in attention heads, which further elucidates the effectiveness of JuICE in these settings. Our code is available at https://github.com/GaotangLi/JUICE.
Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). Builds on 55 of its 66 references that are in the map. First posted on arXiv 14 Mar 2025.
Builds on
55 of 66 references.
References · 55
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2022Toy Models of Superpositioncited by 971
- 2022In-context Learning and Induction Headscited by 964
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
38 more
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 369
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 356
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 341
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2024Knowledge Conflicts for LLMs: A Surveycited by 283
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2024Tool Learning with Large Language Models: A Surveycited by 223
- 2023Knowledge Editing for Large Language Models: A Surveycited by 194
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
- 2016Linear Algebraic Structure of Word Senses, with Applications to Polysemycited by 165
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 144
- 2024Tug-of-War Between Knowledge: Exploring and Resolving Knowledge Conflicts in Retrieval-Augmented Language Modelscited by 93
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 91
- 2024Stable LM 2 1.6B Technical Reportcited by 90
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
- 2023Context-faithful Prompting for Large Language Modelscited by 80
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
- 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 51
- 2023Resolving Knowledge Conflicts in Large Language Modelscited by 50
- 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 48
- 2024Blinded by Generated Contexts: How Language Models Merge Generated and Retrieved Contexts When Knowledge Conflicts?cited by 48
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 47
- 2024How Easily do Irrelevant Inputs Skew the Responses of Large Language Models?cited by 44
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 40
- 2024IRCAN: Mitigating Knowledge Conflicts in LLM Generation via Identifying and Reweighting Context-Aware Neuronscited by 38
- 2023Scaling Laws for Associative Memoriescited by 35
- 2024Understanding Finetuning for Factual Knowledge Extractioncited by 32
- 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Modelscited by 31
- 2024Discerning and Resolving Knowledge Conflicts through Adaptive Decoding with Contextual Information-Entropy Constraintcited by 27
- 2023Intuitive or Dependent? Investigating LLMs' Behavior Style to Conflicting Promptscited by 23
- 2023Mitigating Temporal Misalignment by Discarding Outdated Factscited by 21
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 15
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2025: 8; 2026: 22.
30 papers.
Sort:
By area:
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2025Task Matters: Knowledge Requirements Shape LLM Responses to Context-Memory Conflictcited by 16
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilizationcited by 11
- 2025Can LLMs Reconcile Knowledge Conflicts in Counterfactual Reasoningcited by 7
- 2026Where Knowledge Collides: A Mechanistic Study of Intra-Memory Knowledge Conflict in Language Modelscited by 5
- 2025How Training Data Shapes the Use of Parametric and In-Context Knowledge in Language Modelscited by 4
- 2025Idea2Plan: Exploring AI-Powered Research Planningcited by 4
- 2025Geometric-disentangelment Unlearningcited by 4
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoningcited by 4
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMscited by 3
- 2026SHIFT: Gate-Modulated Activation Steering for Knowledge Conflict Mitigation in Retrieval-Augmented Generationcited by 3
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigationcited by 2
18 more
- 2026Three Regimes of Context-Parametric Conflict: A Predictive Framework and Empirical Validationcited by 2
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Modelscited by 2
- 2026Diagnosing Knowledge Conflict in Multimodal Long-Chain Reasoningcited by 1
- 2026Evaluating Evidence Grounding Under User Pressure in Instruction-Tuned Language Modelscited by 1
- 2026From Context-Aware to Conflict-Aware: Generalizing Contrastive Decoding for Knowledge Conflict in LLMscited by 1
- 2026Navigating Unreliable Parametric and Contextual Knowledge: Explicit Knowledge Conflict Resolution for LLM Inferencecited by 1
- 2026Slow to See, Slow to Suppress: Understanding the Effects of Modality in Context-Memory Conflictscited by 1
- 2026CRAFT: Causal Responsibility and Failure Tracing in Medical Vision Language Modelscited by 1
- 2026AI Knows What's Wrong But Cannot Fix It: Helicoid Dynamics in Frontier LLMs Under High-Stakes Decisionscited by 0
- 2026How Do Language Models Choose Between Context and Memory?cited by 0
- 2026Large Language Models in Resolving Contextual Knowledge Conflictscited by 0
- 2026Memory vs. Context? Influential Factors of Factual Recall in Language Modelscited by 0
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMscited by 0
- 2026Who Warmed the Archives? LLMs Overestimate Historical Warmthcited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparitiescited by 0
- 2026Suppressing Pressure, Amplifying Evidence: Self-Guided Attention Steering to Mitigate Sycophancy and Stubbornnesscited by 0
- 2026Knowledge Interaction in Hypernetwork-based Continual Learning: Conflict and Compositioncited by 0
- 2026Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflictscited by 0
- 2026Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflicts14 Oct 2026
- 2026Knowledge Interaction in Hypernetwork-based Continual Learning: Conflict and Composition11 Oct 2026
- 2026Suppressing Pressure, Amplifying Evidence: Self-Guided Attention Steering to Mitigate Sycophancy and Stubbornness3 Oct 2026
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparities30 Sep 2026
- 2026CRAFT: Causal Responsibility and Failure Tracing in Medical Vision Language Models30 Sep 2026
- 2026Who Warmed the Archives? LLMs Overestimate Historical Warmth27 Sep 2026
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMs22 Sep 2026
- 2026Memory vs. Context? Influential Factors of Factual Recall in Language Models21 Sep 2026
- 2026Large Language Models in Resolving Contextual Knowledge Conflicts2 Sep 2026
- 2026How Do Language Models Choose Between Context and Memory?1 Sep 2026
- 2026Slow to See, Slow to Suppress: Understanding the Effects of Modality in Context-Memory Conflicts31 Aug 2026
- 2026SHIFT: Gate-Modulated Activation Steering for Knowledge Conflict Mitigation in Retrieval-Augmented Generation26 Jun 2026
18 more
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Models18 Jun 2026
- 2026Navigating Unreliable Parametric and Contextual Knowledge: Explicit Knowledge Conflict Resolution for LLM Inference18 Jun 2026
- 2026From Context-Aware to Conflict-Aware: Generalizing Contrastive Decoding for Knowledge Conflict in LLMs9 Jun 2026
- 2026Three Regimes of Context-Parametric Conflict: A Predictive Framework and Empirical Validation12 May 2026
- 2026Evaluating Evidence Grounding Under User Pressure in Instruction-Tuned Language Models20 Mar 2026
- 2026AI Knows What's Wrong But Cannot Fix It: Helicoid Dynamics in Frontier LLMs Under High-Stakes Decisions12 Mar 2026
- 2026Diagnosing Knowledge Conflict in Multimodal Long-Chain Reasoning16 Feb 2026
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoning4 Feb 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026Where Knowledge Collides: A Mechanistic Study of Intra-Memory Knowledge Conflict in Language Models14 Jan 2026
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMs25 Nov 2025
- 2025Geometric-disentangelment Unlearning21 Nov 2025
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigation5 Nov 2025
- 2025Idea2Plan: Exploring AI-Powered Research Planning28 Oct 2025
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilization5 Oct 2025
- 2025How Training Data Shapes the Use of Parametric and In-Context Knowledge in Language Models29 Sep 2025
- 2025Can LLMs Reconcile Knowledge Conflicts in Counterfactual Reasoning15 Jun 2025
- 2025Task Matters: Knowledge Requirements Shape LLM Responses to Context-Memory Conflict6 Jun 2025
- 2025Geometric-disentangelment Unlearningcited by 4
- 2025Geometric-disentangelment Unlearning21 Nov 2025
- 2025Task Matters: Knowledge Requirements Shape LLM Responses to Context-Memory Conflictcited by 16
- 2025LLM Microscope: What Model Internals Reveal About Answer Correctness and Context Utilizationcited by 11
- 2026Where Knowledge Collides: A Mechanistic Study of Intra-Memory Knowledge Conflict in Language Modelscited by 5
- 2025How Training Data Shapes the Use of Parametric and In-Context Knowledge in Language Modelscited by 4
- 2025Idea2Plan: Exploring AI-Powered Research Planningcited by 4
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMscited by 3
- 2025COMPASS: Context-Modulated PID Attention Steering System for Hallucination Mitigationcited by 2
- 2026Three Regimes of Context-Parametric Conflict: A Predictive Framework and Empirical Validationcited by 2
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Modelscited by 2
- 2026Evaluating Evidence Grounding Under User Pressure in Instruction-Tuned Language Modelscited by 1
- 2026From Context-Aware to Conflict-Aware: Generalizing Contrastive Decoding for Knowledge Conflict in LLMscited by 1
- 2026Navigating Unreliable Parametric and Contextual Knowledge: Explicit Knowledge Conflict Resolution for LLM Inferencecited by 1
12 most cited of 21 All 21 (JSON)
- 2026Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflicts14 Oct 2026
- 2026Knowledge Interaction in Hypernetwork-based Continual Learning: Conflict and Composition11 Oct 2026
- 2026Suppressing Pressure, Amplifying Evidence: Self-Guided Attention Steering to Mitigate Sycophancy and Stubbornness3 Oct 2026
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparities30 Sep 2026
- 2026Who Warmed the Archives? LLMs Overestimate Historical Warmth27 Sep 2026
- 2026Memory vs. Context? Influential Factors of Factual Recall in Language Models21 Sep 2026
- 2026Large Language Models in Resolving Contextual Knowledge Conflicts2 Sep 2026
- 2026How Do Language Models Choose Between Context and Memory?1 Sep 2026
- 2026Right Knowledge, Wrong Answer: Characterizing Parametric Temporal Conflict in Open-Weight Language Models18 Jun 2026
- 2026Navigating Unreliable Parametric and Contextual Knowledge: Explicit Knowledge Conflict Resolution for LLM Inference18 Jun 2026
- 2026From Context-Aware to Conflict-Aware: Generalizing Contrastive Decoding for Knowledge Conflict in LLMs9 Jun 2026
- 2026Three Regimes of Context-Parametric Conflict: A Predictive Framework and Empirical Validation12 May 2026
12 newest of 21 All 21 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024DYNAMICQA: Tracing Internal Knowledge Conflicts in Language Models
- 2024Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documents
- 2025Tracing Facts or just Copies? A critical investigation of the Competitions of Mechanisms in Large Language Models
- 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models
- 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Models
- 2025"Lost-in-the-Later": Framework for Quantifying Contextual Grounding in Large Language Models
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs
- 2026To Copy or Not to Copy: Copying Is Easier to Induce Than Recall