Decoding by Contrasting Knowledge: Enhancing LLMs' Confidence on Edited Facts
Not on the map. Why?
Abstract (arXiv)
The knowledge within large language models (LLMs) may become outdated quickly. While in-context editing (ICE) is currently the most effective method for knowledge editing (KE), it is constrained by the black-box modeling of LLMs and thus lacks interpretability. Our work aims to elucidate the superior performance of ICE on the KE by analyzing the impacts of in-context new knowledge on token-wise distributions. We observe that despite a significant boost in logits of the new knowledge, the performance of is still hindered by stubborn knowledge. Stubborn knowledge refers to as facts that have gained excessive confidence during pretraining, making it hard to edit effectively. To address this issue and further enhance the performance of ICE, we propose a novel approach termed Decoding by Contrasting Knowledge (DeCK). DeCK derives the distribution of the next token by contrasting the logits obtained from the newly edited knowledge guided by ICE with those from the unedited parametric knowledge. Our experiments consistently demonstrate that DeCK enhances the confidence of LLMs in edited facts. For instance, it improves the performance of LLaMA3-8B-instruct on MQuAKE by up to 219%, demonstrating its capability to strengthen ICE in the editing of stubborn knowledge. Our work paves the way to develop the both effective and accountable KE methods for LLMs. (The source code is available at: https://deck-llm.meirtz.com)
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Builds on 31 of its 34 references that are in the map. First posted on arXiv 19 May 2024.
Builds on
31 of 34 references.
References · 31
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2022Mass-Editing Memory in a Transformercited by 976
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2022Memory-Based Model Editing at Scalecited by 443
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 367
19 more
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
- 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
- 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
- 2020Modifying Memories in Transformer Modelscited by 222
- 2020Editable Neural Networkscited by 154
- 2023EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Modelscited by 97
- 2023Combating Misinformation in the Age of LLMs: Opportunities and Challengescited by 94
- 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 78
- 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
- 2024Understanding and Patching Compositional Reasoning in LLMscited by 45
- 2024KG-Rank: Enhancing Large Language Models for Medical QA with Knowledge Graphs and Ranking Techniquescited by 37
- 2024DeepEdit: Knowledge Editing as Decoding with Constraintscited by 33
- 2023Retrieval-Generation Synergy Augmented Large Language Modelscited by 26
- 2024SLANG: New Concept Comprehension of Large Language Modelscited by 20
- 2024Retrieval-enhanced Knowledge Editing in Language Models for Multi-Hop Question Answeringcited by 20
- 2024Comparing Hallucination Detection Metrics for Multilingual Generationcited by 18
- 2024FMint: Bridging Human Designed and Data Pretrained Models for Differential Equation Foundation Modelcited by 18
- 2024Is Factuality Enhancement a Free Lunch For LLMs? Better Factuality Can Lead to Worse Context-Faithfulnesscited by 17
- 2024Editing Factual Knowledge and Explanatory Ability of Medical Large Language Modelscited by 10
Built on by
Citing papers per year: 2024: 13; 2025: 17; 2026: 6.
36 papers.
Sort:
By area:
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
- 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 80
- 2025AnyEdit: Edit Any Knowledge Encoded in Language Modelscited by 74
- 2024Context-DPO: Aligning Language Models for Context-Faithfulnesscited by 50
- 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Modelscited by 38
- 2024Uncovering Overfitting in Large Language Model Editingcited by 36
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinkingcited by 19
- 2024MSP-MVS: Multi-Granularity Segmentation Prior Guided Multi-View Stereocited by 16
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Routercited by 16
- 2024Adaptive Token Biaser: Knowledge Editing via Biasing Key Entitiescited by 14
24 more
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
- 2024DVP-MVS: Synergize Depth-Edge and Visibility Prior for Multi-View Stereocited by 11
- 2025ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generationcited by 11
- 2024StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Modelscited by 9
- 2025Research on the Design of a Short Video Recommendation System Based on Multimodal Information and Differential Privacycited by 9
- 2024A Survey of Calibration Process for Black-Box LLMscited by 8
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansioncited by 8
- 2025GeoEdit: Geometric Knowledge Editing for Large Language Modelscited by 6
- 2025Large Language Models as Computable Approximations to Solomonoff Inductioncited by 6
- 2025Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarizationcited by 6
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generationcited by 6
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networkscited by 5
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Modelscited by 5
- 2024LM-PUB-QUIZ: A Comprehensive Framework for Zero-Shot Evaluation of Relational Knowledge in Language Modelscited by 4
- 2025Tutorial on Using Machine Learning and Deep Learning Models for Mental Illness Detectioncited by 3
- 2025Fact or Guesswork? Evaluating Large Language Models' Medical Knowledge with Structured One-Hop Judgmentscited by 2
- 2024PFME: A Modular Approach for Fine-grained Hallucination Detection and Editing of Large Language Modelscited by 1
- 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulationcited by 1
- 2026Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learningcited by 1
- 2025First-place Solution for Streetscape Shop Sign Recognition Competitioncited by 0
- 2026The Model Agreed, But Didn't Learn: Diagnosing Surface Compliance in Large Language Modelscited by 0
- 2026Scientific Knowledge-driven Decoding Constraints Improving the Reliability of LLMscited by 0
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Toolscited by 0
- 2026Beyond Binary Edits Robust Multimodal Knowledge Editing with Adversarial Subspace Alignmentcited by 0
- 2026Beyond Binary Edits Robust Multimodal Knowledge Editing with Adversarial Subspace Alignment22 May 2026
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Tools20 May 2026
- 2026Scientific Knowledge-driven Decoding Constraints Improving the Reliability of LLMs8 Apr 2026
- 2026The Model Agreed, But Didn't Learn: Diagnosing Surface Compliance in Large Language Models7 Apr 2026
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generation12 Feb 2026
- 2026Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learning27 Jan 2026
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Models5 Jul 2025
- 2025Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarization2 Jul 2025
- 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulation16 Jun 2025
- 2025Large Language Models as Computable Approximations to Solomonoff Induction21 May 2025
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generation20 Apr 2025
- 2025Research on the Design of a Short Video Recommendation System Based on Multimodal Information and Differential Privacy27 Mar 2025
24 more
- 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinking25 Mar 2025
- 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Models20 Mar 2025
- 2025GeoEdit: Geometric Knowledge Editing for Large Language Models27 Feb 2025
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Models24 Feb 2025
- 2025ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generation21 Feb 2025
- 2025Fact or Guesswork? Evaluating Large Language Models' Medical Knowledge with Structured One-Hop Judgments20 Feb 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025AnyEdit: Edit Any Knowledge Encoded in Language Models8 Feb 2025
- 2025Tutorial on Using Machine Learning and Deep Learning Models for Mental Illness Detection3 Feb 2025
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networks17 Jan 2025
- 2025First-place Solution for Streetscape Shop Sign Recognition Competition6 Jan 2025
- 2024Context-DPO: Aligning Language Models for Context-Faithfulness18 Dec 2024
- 2024A Survey of Calibration Process for Black-Box LLMs17 Dec 2024
- 2024DVP-MVS: Synergize Depth-Edge and Visibility Prior for Multi-View Stereo16 Dec 2024
- 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capability29 Nov 2024
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024
- 2024Uncovering Overfitting in Large Language Model Editing10 Oct 2024
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Router3 Oct 2024
- 2024StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Models16 Sep 2024
- 2024LM-PUB-QUIZ: A Comprehensive Framework for Zero-Shot Evaluation of Relational Knowledge in Language Models28 Aug 2024
- 2024Can Editing LLMs Inject Harm?29 Jul 2024
- 2024MSP-MVS: Multi-Granularity Segmentation Prior Guided Multi-View Stereo27 Jul 2024
- 2024PFME: A Modular Approach for Fine-grained Hallucination Detection and Editing of Large Language Models29 Jun 2024
- 2024Adaptive Token Biaser: Knowledge Editing via Biasing Key Entities18 Jun 2024
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
- 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 80
- 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinkingcited by 19
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
- 2025Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarizationcited by 6
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generationcited by 6
- 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generation12 Feb 2026
- 2025Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarization2 Jul 2025
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generation20 Apr 2025
- 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinking25 Mar 2025
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Models24 Feb 2025
- 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capability29 Nov 2024
- 2026Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learningcited by 1
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Toolscited by 0
- 2026Beyond Binary Edits Robust Multimodal Knowledge Editing with Adversarial Subspace Alignmentcited by 0
- 2026Beyond Binary Edits Robust Multimodal Knowledge Editing with Adversarial Subspace Alignment22 May 2026
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Tools20 May 2026
- 2026Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learning27 Jan 2026
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Routercited by 16
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Router3 Oct 2024
- 2024Can Editing LLMs Inject Harm?29 Jul 2024
- 2025AnyEdit: Edit Any Knowledge Encoded in Language Modelscited by 74
- 2024Uncovering Overfitting in Large Language Model Editingcited by 36
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024MSP-MVS: Multi-Granularity Segmentation Prior Guided Multi-View Stereocited by 16
- 2024Adaptive Token Biaser: Knowledge Editing via Biasing Key Entitiescited by 14
- 2024DVP-MVS: Synergize Depth-Edge and Visibility Prior for Multi-View Stereocited by 11
- 2024StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Modelscited by 9
- 2025Research on the Design of a Short Video Recommendation System Based on Multimodal Information and Differential Privacycited by 9
- 2024A Survey of Calibration Process for Black-Box LLMscited by 8
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansioncited by 8
- 2025GeoEdit: Geometric Knowledge Editing for Large Language Modelscited by 6
- 2025Large Language Models as Computable Approximations to Solomonoff Inductioncited by 6
12 most cited of 21 All 21 (JSON)
- 2026Scientific Knowledge-driven Decoding Constraints Improving the Reliability of LLMs8 Apr 2026
- 2026The Model Agreed, But Didn't Learn: Diagnosing Surface Compliance in Large Language Models7 Apr 2026
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Models5 Jul 2025
- 2025Large Language Models as Computable Approximations to Solomonoff Induction21 May 2025
- 2025Research on the Design of a Short Video Recommendation System Based on Multimodal Information and Differential Privacy27 Mar 2025
- 2025GeoEdit: Geometric Knowledge Editing for Large Language Models27 Feb 2025
- 2025Fact or Guesswork? Evaluating Large Language Models' Medical Knowledge with Structured One-Hop Judgments20 Feb 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025AnyEdit: Edit Any Knowledge Encoded in Language Models8 Feb 2025
- 2025Tutorial on Using Machine Learning and Deep Learning Models for Mental Illness Detection3 Feb 2025
- 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networks17 Jan 2025
- 2025First-place Solution for Streetscape Shop Sign Recognition Competition6 Jan 2025
12 newest of 21 All 21 (JSON)