Papers › WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models

WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models

23 May 2024arXiv:2405.14768archive 2025-07-28

Peng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu, Yunzhi Yao, Yong Jiang, Pengjun Xie, Fei Huang, Huajun Chen

Large language models (LLMs) need knowledge updates to meet the ever-growing world facts and correct the hallucinated responses, facilitating the methods of lifelong model editing. Where the updated knowledge resides in memories is a fundamental question for model editing. In this paper, we find that editing either long-term memory (direct model parameters) or working memory (non-parametric knowledge of neural network activations/representations by retrieval) will result in an impossible triangle -- reliability, generalization, and locality can not be realized together in the lifelong editing settings. For long-term memory, directly editing the parameters will cause conflicts with irrelevant pretrained knowledge or previous edits (poor reliability and locality). For working memory, retrieval-based activations can hardly make the model understand the edits and generalize (poor generalization). Therefore, we propose WISE to bridge the gap between memories. In WISE, we design a dual parametric memory scheme, which consists of the main memory for the pretrained knowledge and a side memory for the edited knowledge. We only edit the knowledge in the side memory and train a router to decide which memory to go through when given a query. For continual editing, we devise a knowledge-sharding mechanism where different sets of edits reside in distinct subspaces of parameters, and are subsequently merged into a shared memory without conflicts. Extensive experiments show that WISE can outperform previous model editing methods and overcome the impossible triangle under lifelong model editing of question answering, hallucination, and out-of-distribution settings across trending LLM architectures, e.g., GPT, LLaMA, and Mistral. Code is available at https://github.com/zjunlp/EasyEdit.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14768")

Code

Syntology Ran 13 of 16 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 6 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zjunlp/easyedit officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 13 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
6ran · fixture could not drive it
5ran
3unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zjunlp/easyedit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

EditingMeanAct zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 6556782be86e66b2 · report
bernoulli zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 7e7272686fd1e3c2 · report
euc zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran MIT (permissive) · e6c1e18615ecb8af · report
get_mask zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · our draft was wrong MIT (permissive) · 5bb8c583c306754b · report
get_task_vectors zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran MIT (permissive) · a0efe0cf5f74ca6c · report
lerp zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · honoured contract MIT (permissive) · 1bfce29de3b973b3 · report
linear zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran fingerprinted MIT (permissive) · f3e855a894dfa058 · report
magnitude zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 6a246076445216f3 · report
maybe_torch zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 10ff293597eab810 · report
normalize zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · a6e2f5aa10f37b10 · report
random_wo_rescaled zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 8b2a5f4da7fc7241 · report
rescaled_random zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 1abba92e438efda1 · report
slerp zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository ran MIT (permissive) · e595256c414955d3 · report
GTA zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository unverified MIT (permissive) · a78f1fb529d93321 · report
WISE zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository unverified MIT (permissive) · e9d558c06d4f86ba · report
WISEAdapter zjunlp/easyedit/easyeditor/models/wise/WISE.py official repository unverified MIT (permissive) · f978bb953aa03b08 · report

Tasks

HallucinationModel EditingQuestion AnsweringRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPTLLaMALayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections