mlsanityData to 7 Oct 2026

Decoding by Contrasting Knowledge: Enhancing LLMs' Confidence on Edited Facts

arXiv 2405.11613 ↗First posted 19 May 2024cs.CLcited by 36

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

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  4. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
  5. 2022Mass-Editing Memory in a Transformercited by 976
  6. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
  7. 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
  8. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  9. 2021Editing Factual Knowledge in Language Modelscited by 548
  10. 2022Memory-Based Model Editing at Scalecited by 443
  11. 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
  12. 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 367
19 more
  1. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
  2. 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
  3. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
  4. 2020Modifying Memories in Transformer Modelscited by 222
  5. 2020Editable Neural Networkscited by 154
  6. 2023EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Modelscited by 97
  7. 2023Combating Misinformation in the Age of LLMs: Opportunities and Challengescited by 94
  8. 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 78
  9. 2022A Survey of Knowledge Enhanced Pre-trained Language Modelscited by 76
  10. 2024Understanding and Patching Compositional Reasoning in LLMscited by 45
  11. 2024KG-Rank: Enhancing Large Language Models for Medical QA with Knowledge Graphs and Ranking Techniquescited by 37
  12. 2024DeepEdit: Knowledge Editing as Decoding with Constraintscited by 33
  13. 2023Retrieval-Generation Synergy Augmented Large Language Modelscited by 26
  14. 2024SLANG: New Concept Comprehension of Large Language Modelscited by 20
  15. 2024Retrieval-enhanced Knowledge Editing in Language Models for Multi-Hop Question Answeringcited by 20
  16. 2024Comparing Hallucination Detection Metrics for Multilingual Generationcited by 18
  17. 2024FMint: Bridging Human Designed and Data Pretrained Models for Differential Equation Foundation Modelcited by 18
  18. 2024Is Factuality Enhancement a Free Lunch For LLMs? Better Factuality Can Lead to Worse Context-Faithfulnesscited by 17
  19. 2024Editing Factual Knowledge and Explanatory Ability of Medical Large Language Modelscited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 13; 2025: 17; 2026: 6.

36 papers.

Sort:

By area:

  1. 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
  2. 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 80
  3. 2025AnyEdit: Edit Any Knowledge Encoded in Language Modelscited by 74
  4. 2024Context-DPO: Aligning Language Models for Context-Faithfulnesscited by 50
  5. 2025Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Modelscited by 38
  6. 2024Uncovering Overfitting in Large Language Model Editingcited by 36
  7. 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
  8. 2024Can Editing LLMs Inject Harm?cited by 22
  9. 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinkingcited by 19
  10. 2024MSP-MVS: Multi-Granularity Segmentation Prior Guided Multi-View Stereocited by 16
  11. 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Routercited by 16
  12. 2024Adaptive Token Biaser: Knowledge Editing via Biasing Key Entitiescited by 14
24 more
  1. 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
  2. 2024DVP-MVS: Synergize Depth-Edge and Visibility Prior for Multi-View Stereocited by 11
  3. 2025ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generationcited by 11
  4. 2024StruEdit: Structured Outputs Enable the Fast and Accurate Knowledge Editing for Large Language Modelscited by 9
  5. 2025Research on the Design of a Short Video Recommendation System Based on Multimodal Information and Differential Privacycited by 9
  6. 2024A Survey of Calibration Process for Black-Box LLMscited by 8
  7. 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansioncited by 8
  8. 2025GeoEdit: Geometric Knowledge Editing for Large Language Modelscited by 6
  9. 2025Large Language Models as Computable Approximations to Solomonoff Inductioncited by 6
  10. 2025Rethinking All Evidence: Enhancing Trustworthy Retrieval-Augmented Generation via Conflict-Driven Summarizationcited by 6
  11. 2026What if Agents Could Imagine? Reinforcing Open-Vocabulary HOI Comprehension through Generationcited by 6
  12. 2025Credit Risk Identification in Supply Chains Using Generative Adversarial Networkscited by 5
  13. 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Modelscited by 5
  14. 2024LM-PUB-QUIZ: A Comprehensive Framework for Zero-Shot Evaluation of Relational Knowledge in Language Modelscited by 4
  15. 2025Tutorial on Using Machine Learning and Deep Learning Models for Mental Illness Detectioncited by 3
  16. 2025Fact or Guesswork? Evaluating Large Language Models' Medical Knowledge with Structured One-Hop Judgmentscited by 2
  17. 2024PFME: A Modular Approach for Fine-grained Hallucination Detection and Editing of Large Language Modelscited by 1
  18. 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulationcited by 1
  19. 2026Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learningcited by 1
  20. 2025First-place Solution for Streetscape Shop Sign Recognition Competitioncited by 0
  21. 2026The Model Agreed, But Didn't Learn: Diagnosing Surface Compliance in Large Language Modelscited by 0
  22. 2026Scientific Knowledge-driven Decoding Constraints Improving the Reliability of LLMscited by 0
  23. 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Toolscited by 0
  24. 2026Beyond Binary Edits Robust Multimodal Knowledge Editing with Adversarial Subspace Alignmentcited by 0