A Comprehensive Study of Knowledge Editing for Large Language Models

Ningyu Zhang, Yunzhi Yao, Bozhong Tian, Peng Wang, Shumin Deng +17 more
1/2/2024
197 citations
cs.CLcs.AIcs.CV
survey

Official code: zjunlp/EasyEdit (2,937 stars, Jupyter Notebook, MIT, last commit 2026-04-01). 1 more implementation below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
zjunlp/EasyEditOfficial2,937Jupyter NotebookMIT2026-04-01
zjunlp/KnowledgeEditingPapersOfficial1,256–MIT2025-07-12
zjunlp/EasyEditOfficial100%
MIT

[ACL 2024] An Easy-to-use Knowledge Editing Framework for LLMs.

2,937377Jupyter Notebook, PythonMay 9, 20238 months agoMIT
artificial-intelligencebaichuanchatgptcknowediteasyedit+15 more
MIT

Must-read Papers on Knowledge Editing for Large Language Models.

1,25678Dec 6, 20221 years agoMIT
awsome-listeasyeditfoundation-modelsknowledge-editingknowlm+10 more

Similar Papers

Cite this paper

@article{zhang2024comprehensive,
  title  = {A Comprehensive Study of Knowledge Editing for Large Language Models},
  author = {Ningyu Zhang and Yunzhi Yao and Bozhong Tian and Peng Wang and Shumin Deng and Mengru Wang and Zekun Xi and Shengyu Mao and Jintian Zhang and Yuansheng Ni and Siyuan Cheng and Ziwen Xu and Xin Xu and Jia-Chen Gu and Yong Jiang and Pengjun Xie and Fei Huang and Lei Liang and Zhiqiang Zhang and Xiaowei Zhu and Jun Zhou and Huajun Chen},
  year   = {2024},
  eprint = {2401.01286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.01286v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.01286.svg)](https://codeofpaper.com/paper/2401.01286)

Discussion