WilKE: Wise-Layer Knowledge Editor for Lifelong Knowledge Editing

Chenhui Hu, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao
2/16/2024
cs.CLcs.AI

No official code found. Best implementation: ChenhuiHu/WilKE (7 stars, last commit 2024-06-05).

Abstract

Knowledge editing aims to rectify inaccuracies in large language models (LLMs) without costly retraining for outdated or erroneous knowledge. However, current knowledge editing methods primarily focus on single editing, failing to meet the requirements for lifelong editing. This study reveals a performance degradation encountered by knowledge editing in lifelong editing, characterized by toxicity buildup and toxicity flash, with the primary cause identified as pattern unmatch. We introduce a knowledge editing approach named Wise-Layer Knowledge Editor (WilKE), which selects editing layer based on the pattern matching degree of editing knowledge across different layers in language models. Experimental results demonstrate that, in lifelong editing, WilKE exhibits an average improvement of 46.2% and 67.8% on editing GPT2-XL and GPT-J relative to state-of-the-art knowledge editing methods.

View on arXivView PDF

Code Implementations(1)

ChenhuiHu/WilKECommunity100%

WilKE: Wise-Layer Knowledge Editor for Lifelong Knowledge Editing

72Python, Jupyter NotebookJun 5, 20242 years ago

Similar Papers

Cite this paper

@article{hu2024wilke,
  title  = {WilKE: Wise-Layer Knowledge Editor for Lifelong Knowledge Editing},
  author = {Chenhui Hu and Pengfei Cao and Yubo Chen and Kang Liu and Jun Zhao},
  year   = {2024},
  eprint = {2402.10987},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.10987v2}
}

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/2402.10987.svg)](https://codeofpaper.com/paper/2402.10987)

Discussion