Organizations: Zhejiang University · State Key Lab of CAD&CG, Zhejiang University · Hong Kong University of Science and Technology · School of Software Engineering, South China University of Technology · School of Software Technology, Zhejiang University
Large Language Models (LLMs) demonstrate exceptional capabilities in factual question answering, yet they sometimes provide incorrect responses. To address this issue, knowledge editing techniques have emerged as effective methods for correcting factual information in LLMs. However, typical knowledge editing workflows struggle with identifying the optimal set of model layers for editing and rely on summary indicators that provide insufficient guidance. This lack of transparency hinders effective comparison and identification of optimal editing strategies. In this paper, we present KEditVis, a novel visual analytics system designed to assist users in gaining a deeper understanding of knowledge editing through interactive visualizations, improving editing outcomes, and discovering valuable insights for the future development of knowledge editing algorithms. With KEditVis, users can select appropriate layers as the editing target, explore the reasons behind ineffective edits, and perform more targeted and effective edits. Our evaluation, including usage scenarios, expert interviews, and a user study, validates the effectiveness and usability of the system.
Figures & tables
Figure 1: Example of knowledge editing.
Figure 2: The interface of our visual analytics system KEditVis. The system provides (A1) an LLM chat view for interactive dialogue, (A2) a knowledge graph, and (A3) management of editing facts and testing prompts. The edit view visualizes (B1 and B4) key internal data of the model layers both before and after editing, facilitating the selection of appropriate layers for editing and comparison of different model versions. The edit view leverages (B2) set visualization to show the relationship between different schemes, and combines (B3) both overview results and detailed results to compare and evaluate the editing outcomes across schemes. (C) The output comparison view employs text visualization to compare the model’s outputs before and after model editing. (D) The drift view visualizes the global impact of edits on the model through a scatter plot.
Figure 3: Scenario I: (A) The knowledge graph generated by the keyword “iPhone”; (B) the cosine similarity bar chart before editing; (C) the descending comparison results after selecting scheme 6-12 and pressing the “Recommend” button and the “Compare” button; (D) the results after adding scheme 6-7 to the comparison; (E) the cosine similarity chart and ranking chart after editing scheme 6-10; (F) the results after adding schemes 20-21, 8-14, and 6-8 on top of the previously edited weights for scheme 6-10; (G) the scatter plot for checking the global impact of editing.
Figure 4: Scenario II: (A) The knowledge graph generated by the keyword “Turing Award”; (B) the descending sorting of editing results from different layer selection schemes; (C) the ranking chart (for the last token) and the cosine similarity bars, before and after editing scheme 10-12.
Figure 5: (A) Diagram of the set visualization we designed; (B) results of the SUS questionnaire in the user study.
Large Language Models (LLMs) are increasingly deployed in real-world applications that require access to up-to-date knowledge. However, retraining LLMs is computationally expensive. Therefore, knowledge editing techniques are crucial for maintaining current information and correcting erroneous assertions within pre-trained models. Current benchmarks for knowledge editing primarily focus on recalling edited facts, often neglecting their logical consequences. To address this limitation, we introduce a new benchmark designed to evaluate how knowledge editing methods handle the logical consequences of a single fact edit. Our benchmark extracts relevant logical rules from a knowledge graph for a given edit. Then, it generates multi-hop questions based on these rules to assess the impact on logical consequences. Our findings indicate that while existing knowledge editing approaches can accurately insert direct assertions into LLMs, they frequently fail to inject entailed knowledge. Specifically, experiments with popular methods like ROME and FT reveal a substantial performance gap, up to 24%, between evaluations on directly edited knowledge and on entailed knowledge. This highlights the critical need for semantics-aware evaluation frameworks in knowledge editing.
Tatiana Moteu Ngoli, NDah Jean Kouagou, Hamada M. Zahera +1
Data Science Group, Heinz Nixdorf Institute, Paderborn University
Large language models (LLMs) can effectively handle outdated information through knowledge editing. However, current approaches face two key limitations: (I) Poor generalization: Most approaches rigidly inject new knowledge without ensuring that the model can use it effectively to solve practical problems. (II) Narrow scope: Current methods focus primarily on structured fact triples, overlooking the diverse unstructured forms of factual information (e.g., news, articles) prevalent in real-world contexts. To address these challenges, we propose a new paradigm: teaching LLMs to edit knowledge via Chain of Thoughts (CoTs) reasoning (CoT2Edit). We first leverage language model agents for both structured and unstructured edited data to generate CoTs, building high-quality instruction data. The model is then trained to reason over edited knowledge through supervised fine-tuning (SFT) and Group Relative Policy Optimization (GRPO). At inference time, we integrate Retrieval-Augmented Generation (RAG) to dynamically retrieve relevant edited facts for real-time knowledge editing. Experimental results demonstrate that our method achieves strong generalization across six diverse knowledge editing scenarios with just a single round of training on three open-source language models. The codes are available at https://github.com/FredJDean/CoT2Edit.
Jinhu Fu, Yan Bai, Longzhu He +4
Beijing University of Posts and Telecommunications · Peking University · Huawei Technologies Ltd. +1
Knowledge Editing (KE) has emerged as a frontier for updating specific facts in LLMs without costly retraining, but its reliability and underlying mechanisms remain poorly understood. In this work, we examine KE from an adversarial elicitation perspective, revealing that edited knowledge is often not fully erased and continues to surface, with consistent failures observed across diverse model architectures. To explain this behavior, we conduct a mechanistic analysis of popular KE methods. We show that low-rank updates do not overwrite existing knowledge but instead redistribute it within the model's representation space. Furthermore, we find that these methods act as targeted suppression mechanisms that reduce the likelihood of expressing original facts, rather than removing them from the model. Analysis of the loss landscape reveals that edited knowledge lies in narrow, anisotropic regions that are highly sensitive to perturbations, making them highly vulnerable to indirect prompting and adversarial attacks. By exposing these profound architectural vulnerabilities, our work proves that KE algorithms are inherently bypassable and motivates a fundamental reevaluation of how we deploy post-hoc updates in several LLM applications.
Advik Raj Basani, Anshuman Chhabra
Birla Institute of Technology and Science, Goa · University of South Florida