Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

A Comprehensive Study of Knowledge Editing for Large Language Models

About

Large Language Models (LLMs) have shown extraordinary capabilities in understanding and generating text that closely mirrors human communication. However, a primary limitation lies in the significant computational demands during training, arising from their extensive parameterization. This challenge is further intensified by the dynamic nature of the world, necessitating frequent updates to LLMs to correct outdated information or integrate new knowledge, thereby ensuring their continued relevance. Note that many applications demand continual model adjustments post-training to address deficiencies or undesirable behaviors. There is an increasing interest in efficient, lightweight methods for on-the-fly model modifications. To this end, recent years have seen a burgeoning in the techniques of knowledge editing for LLMs, which aim to efficiently modify LLMs' behaviors within specific domains while preserving overall performance across various inputs. In this paper, we first define the knowledge editing problem and then provide a comprehensive review of cutting-edge approaches. Drawing inspiration from educational and cognitive research theories, we propose a unified categorization criterion that classifies knowledge editing methods into three groups: resorting to external knowledge, merging knowledge into the model, and editing intrinsic knowledge. Furthermore, we introduce a new benchmark, KnowEdit, for a comprehensive empirical evaluation of representative knowledge editing approaches. Additionally, we provide an in-depth analysis of knowledge location, which can give a deeper understanding of the knowledge structures inherent within LLMs. Finally, we discuss several potential applications of knowledge editing, outlining its broad and impactful implications.

Ningyu Zhang, Yunzhi Yao, Bozhong Tian, Peng Wang, Shumin Deng, Mengru Wang, Zekun Xi, Shengyu Mao, Jintian Zhang, Yuansheng Ni, Siyuan Cheng, Ziwen Xu, Xin Xu, Jia-Chen Gu, Yong Jiang, Pengjun Xie, Fei Huang, Lei Liang, Zhiqiang Zhang, Xiaowei Zhu, Jun Zhou, Huajun Chen• 2024

Related benchmarks

TaskDatasetResultRank
Question AnsweringSQuAD
F113.5
127
Knowledge EditingzsRE
Generality45.1
110
Logical reasoningLogiQA
Accuracy37.8
84
Knowledge InsertionWikiData recent
Edit Success Rate100
43
General Knowledge AssessmentC-Eval
Accuracy77
37
Personalization EditingUPQA balanced 100-sample
Explicit Accuracy100
24
Knowledge EditingMzsRE Edit: EN, Test: EN
Reliability100
23
Discrete reasoningDROP
Exact Match (EM)2.8
19
Text FluencyCHED and CounterFact
Average Score16.6
16
General Language UnderstandingGeneral Ability Suite (C-QA, T-QA, LAM, MMLU, L-Code)
Average Score39.8
16
Showing 10 of 30 rows

Other info

Code

Follow for update