Knowledge Editing › Memory-based editors: don't touch the weights

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 45 of 67Knowledge, Memory, Editing, and Unlearning
Chapter 347Knowledge Editing › Memory-based editors: don't touch the weights
Reading section 6 of 11 · Memory-based editors: don't touch the weights · 2 minSection 6 of 11 · 2 min

Section 6 of 11 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

SERAC wraps the base model with an explicit store of corrections, a scope classifier and a counterfactual model. The classifier estimates whether a query belongs to a stored edit. For a match, the counterfactual model reads both the query and the selected edit descriptor. For inputs judged outside all edit scopes, SERAC uses the base model. The simple wrapper below keeps the routing idea and uses stored toy values directly, without a trained counterfactual model.

Version the edit separately

An external store can record where a correction came from, which revision is active, and when it expires. Removing or disabling a correction changes routing without restoring a model checkpoint. In a weight-based workflow, retain the prior checkpoint or validate a reversal mechanism. Consider other state such as caches and overrides when testing a rollback. Each method still needs a query-level preservation test after the change.

Routing mistakes come in two directions. A threshold that is too permissive can apply a correction to an unrelated query. A strict threshold can miss a valid paraphrase and leave the old response in place. You can inspect the score and the selected record to see which failure occurred. Keeping the same base model helps isolate the routing effect, but it does not protect any query incorrectly classified as a match. Suppose an edit corrects the country associated with one office. A branch-office query can contain many of the same words without referring to the office in the edit. Give the evaluator both kinds of query, and check that the entity and relation still match before accepting an apparent improvement. Otherwise a rising match rate can mean that the wrapper is less selective.

In-context knowledge editing also preserves the checkpoint, using retrieved or constructed demonstrations in the prompt to condition the model's own response. That differs from SERAC's use of a counterfactual model for matched inputs. The important distinction for evaluation is which component changes the response and what conditions decide whether the edit is applied.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy