Papers › Lifelong Knowledge Editing for LLMs with Retrieval-Augmented Continuous Prompt Learning

Lifelong Knowledge Editing for LLMs with Retrieval-Augmented Continuous Prompt Learning

6 May 2024arXiv:2405.03279archive 2025-07-28

Qizhou Chen, Taolin Zhang, Xiaofeng He, Dongyang Li, Chengyu Wang, Longtao Huang, Hui Xue

Model editing aims to correct outdated or erroneous knowledge in large language models (LLMs) without the need for costly retraining. Lifelong model editing is the most challenging task that caters to the continuous editing requirements of LLMs. Prior works primarily focus on single or batch editing; nevertheless, these methods fall short in lifelong editing scenarios due to catastrophic knowledge forgetting and the degradation of model performance. Although retrieval-based methods alleviate these issues, they are impeded by slow and cumbersome processes of integrating the retrieved knowledge into the model. In this work, we introduce RECIPE, a RetriEval-augmented ContInuous Prompt lEarning method, to boost editing efficacy and inference efficiency in lifelong learning. RECIPE first converts knowledge statements into short and informative continuous prompts, prefixed to the LLM's input query embedding, to efficiently refine the response grounded on the knowledge. It further integrates the Knowledge Sentinel (KS) that acts as an intermediary to calculate a dynamic threshold, determining whether the retrieval repository contains relevant knowledge. Our retriever and prompt encoder are jointly trained to achieve editing properties, i.e., reliability, generality, and locality. In our experiments, RECIPE is assessed extensively across multiple LLMs and editing datasets, where it achieves superior editing performance. RECIPE also demonstrates its capability to maintain the overall performance of LLMs alongside showcasing fast editing and inference speed.

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.03279")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 4 ran with no contract checked.

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

qizhou000/RECIPE officialpytorch 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

11 samples harvested; 7 ran; 0 honoured the contract we drafted; 4 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.

3ran · our draft was wrong
4ran
4unverified

Licence: 0 of the 11 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 qizhou000/RECIPE. “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.

KnowledgeRepModel qizhou000/RECIPE/editors/recipe/recipe.py official repository ran MIT (permissive) · 7af30496f8e6ecb5 · report
ParallelDataset qizhou000/RECIPE/editors/recipe/recipe.py official repository ran MIT (permissive) · 804969a3f054faa8 · report
PromptTransformer qizhou000/RECIPE/editors/recipe/recipe.py official repository ran MIT (permissive) · 65642b6f8132e7c7 · report
RECIPEConfig qizhou000/RECIPE/editors/recipe/recipe.py official repository ran MIT (permissive) · b84382c69b38db7f · report
find_module qizhou000/RECIPE/editors/recipe/recipe.py official repository ran · our draft was wrong MIT (permissive) · 0b7bebf9d95d540c · report
hinge_label_loss qizhou000/RECIPE/editors/recipe/recipe.py official repository ran · our draft was wrong MIT (permissive) · 532d15ae38761ef5 · report
logit_KL_loss qizhou000/RECIPE/editors/recipe/recipe.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 1897158165b40b18 · report
BaseEditor qizhou000/RECIPE/editors/recipe/recipe.py official repository unverified MIT (permissive) · 11dd857ade8eded8 · report
EditorConfig qizhou000/RECIPE/editors/recipe/recipe.py official repository unverified MIT (permissive) · 972549486d7dfecb · report
RECIPE qizhou000/RECIPE/editors/recipe/recipe.py official repository unverified MIT (permissive) · 8c1cfd9a64ce7e2e · report
set_tokenizer_pad_id qizhou000/RECIPE/editors/recipe/recipe.py official repository unverified MIT (permissive) · 062542a916d19f67 · report

Tasks

Lifelong learningModel EditingPrompt LearningRetrievalknowledge editing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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