Elamur Research

Memory-Based Model Editing at Scale

Paper · 2022 · Eric Mitchell, Charles Lin, Antoine Bosselut et al.

Summary

A system that answers correctly today can become wrong tomorrow because the world has changed. It can also repeat an error inherited from training. Correcting such behavior presents a difficult engineering problem: a useful correction should reach related questions without disrupting answers that have nothing to do with it. “Memory-Based Model Editing at Scale” studies this problem through SERAC, an editor that keeps corrections in external memory and decides when to use them. The central contribution is a separation between deciding where a correction applies and producing the corrected answer.

Earlier editing approaches commonly changed the parameters of a pretrained language model. SERAC instead leaves the underlying predictor unchanged. It stores an edit descriptor, which can contain a corrected question–answer pair or a description of desired behavior. A learned scope classifier compares each new input with the stored edits. When none appears relevant enough, the original predictor answers. When an edit does apply, a separate counterfactual predictor receives both the input and the selected edit. Its job is to answer according to the situation specified by that edit. Applying a correction therefore requires adding a memory entry rather than calculating a parameter update.

The paper also challenges the way editing is evaluated. Repeating a corrected answer for a paraphrased question is a useful starting point, but it does not establish that an editor understands the correction’s consequences. The authors introduce harder questions whose answers follow from an edit without repeating its answer, and unrelated questions that nevertheless resemble the edit closely. Their experiments cover question answering, fact verification, and changes to a conversational agent’s sentiment toward a topic. The dialogue setting additionally allows instructions about behavior rather than requiring a labeled example.

Across these settings, the authors report that SERAC handles difficult scope boundaries and multiple edits more successfully than their comparison methods. On standard question answering, it retains strong performance with 75 edits, whereas the evaluated gradient-based editors deteriorate substantially. Reusing an editor across different T5 sizes produces closely similar editing results. However, the paper’s analyses also locate a persistent weakness: deciding whether a difficult input belongs to an edit’s scope can be harder than generating its corrected answer. Cross-attention helps particularly in fact verification, where small numerical differences matter.

SERAC does not make correction effortless or universally reliable. Its auxiliary components require supervised editing data, its runtime system consumes additional resources, and a continually expanding correction memory creates a maintenance problem. The authors propose periodic distillation as a possible future response to memory growth, instead of demonstrating it. They also discuss the misuse of sentiment editing to steer conversational agents toward selected viewpoints. The resulting contribution is both an alternative editing architecture and a more demanding account of what successful editing should mean. The authors identify an accompanying project release containing code, data, and further information.

Interesting ideas

Separate applicability from execution. A correction has both a boundary and a consequence. Giving those responsibilities different components makes failures easier to understand and allows each component to use suitable evidence. The principle extends to rule engines, document processing, exception handling, and systems that must choose between ordinary behavior and a specialized procedure.

Preserve a stable fallback. SERAC sends inputs outside the correction memory’s predicted scope to the original predictor. This creates an explicit preservation mechanism instead of relying entirely on a successful update to avoid collateral changes. Similar designs can help when introducing experimental rules, domain-specific knowledge, or revised policies into a mature system.

Test nearby nonexamples. Random unrelated inputs can make a correction appear more selective than it really is. Semantically similar inputs outside the intended scope expose whether a system recognizes the relevant distinction. This is useful in evaluation, retrieval, classification, and linguistic rule development, where surface resemblance frequently encourages overgeneralization.

Require consequences with different answers. A system that always returns the correction’s original answer may succeed on paraphrases while failing to use the correction meaningfully. Testing an implication that requires another answer separates copying from conditional inference. The same idea applies to database updates, knowledge representation, mathematical reasoning, and interpretation of structured facts.

Measure improvement and disruption separately. Edit success asks whether the intended behavior was achieved; drawdown asks what changed elsewhere. Reporting both prevents an aggressive intervention from looking successful merely because it fixes its target. This distinction transfers to software changes, grammar repairs, data cleaning, and any learning procedure that must preserve established behavior.

Match interaction strength to the distinction. Independent sentence embeddings are economical, but they can obscure small differences that determine meaning. The paper’s comparison with cross-attention shows why the form of interaction between inputs can matter more than simply choosing a larger encoder. Similar tradeoffs arise when comparing quantities, negation, entity roles, or closely related claims.

Diagnose components before enlarging them. SERAC makes it possible to distinguish incorrect routing from incorrect conditional prediction. That decomposition reveals where extra capacity or better supervision would be useful. A comparable diagnostic approach can guide improvements in multistage language systems, avoiding changes to a downstream component when the decisive mistake happened earlier.

Deep dive: Memory-Based Model Editing at Scale

How SERAC edits language system behavior through external memory, learns when corrections apply, and preserves unrelated predictions. · about 37 minutes to read

How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its native language path builds dependency structures, reads event frames, and maintains worlds with explicit reasons. SERAC uses learned neural components around a frozen predictor, so its implementation is not a direct description of Mova. The useful connections concern correction boundaries, external knowledge, evaluation, and diagnosis. The status marks below compare proposed transfers with documented Mova mechanisms; they are not claims that this paper has already produced measured improvements in Mova. Where a proposal is marked new, that means new relative to the documented evidence, with implementation elsewhere unknown.

Idea: Separate a correction’s applicability from its execution. Where: Introduction and The SERAC model. Area: architecture. Mova: частково є (layers routing and the configured native deputy planner). Mova already distinguishes selecting a supported capability from executing its handler. The paper suggests extending this separation to corrections: an explicit predicate could establish whether a repair applies before a separate procedure changes the interpretation. This might make linguistic repairs easier to review because the boundary and the transformation would have distinct evidence.

Idea: Keep ordinary behavior available as a fallback. Where: The SERAC model, forward pass. Area: rules and execution. Mova: частково є (en/src/french_rules.rs and configured worker failure behavior). Closed French repair rules abstain when evidence is insufficient, while unsupported worker requests retain failures. A correction layer could likewise preserve the original analysis whenever its admission conditions are not established. The proposed benefit is controlled coverage instead of an obligation to correct every input.

Idea: Store corrections outside the system’s stable core. Where: The SERAC model and Discussion. Area: knowledge storage. Mova: частково є (durable knowledge graphs and the dictionary index’s versioned label journal). Mova already separates some persistent knowledge and annotations from compiled rules. SERAC suggests an additional source-bound correction store whose entries describe exceptions or revised facts without immediately rebuilding the skeleton. Such a store would still need Mova’s provenance and admission checks; a stored proposal would not automatically become trusted knowledge.

Idea: Write down the scope of an edit. Where: The Model Editing Problem, edit scoping. Area: evaluation design. Mova: частково є (regression-gated seed changes and source-bound groupants). A proposed grammar or knowledge correction could carry explicit positive cases, negative cases, and assumptions describing its intended reach. This would make “the correction works” a bounded claim about observable behavior rather than a claim based only on its motivating example.

Idea: Include nearby inputs that must remain unchanged. Where: Datasets & Evaluation, QA-hard; Dataset Details, QA-hard. Area: evaluation. Mova: вже є (negative controls in morphology rules and regression gates described in the architecture). Mova’s spelling work already checks overapplication, and global knowledge changes have preservation controls. The paper supports systematically selecting difficult neighbors for every correction, such as similar forms with different morphological conditions or similar events with different participant roles.

Idea: Test implications that require a different answer. Where: Datasets & Evaluation, QA & QA-hard. Area: reasoning evaluation. Mova: частково є (world state tracking and the quantitative readers). Mova already follows some consequences of movement, possession, and quantity changes. A correction benchmark could ask related questions whose outputs differ from the correction’s original answer. This would test whether a changed fact propagates through the native representation rather than being repeated as a memorized response.

Idea: Report target improvement separately from preservation. Where: Datasets & Evaluation, Editor evaluation. Area: statistics and evaluation. Mova: вже є (held-out comparisons, regression gates, and reported fixed/broken counts for linguistic rules). Mova’s existing measurements already distinguish gains from introduced mistakes. The paper gives a useful interpretation for that practice: the success of the intended intervention and its effects outside scope are separate properties, and neither should disappear inside an aggregate score.

Idea: Decompose errors by processing stage. Where: Further Empirical Analysis of SERAC, Error analysis. Area: diagnosis. Mova: вже є (world/src/knowledge/retention/fastread.rs). The fast reader distinguishes missing representation, missing inference, unsuitable parameters, and parsing errors. SERAC’s distinction between routing and conditional-answer errors suggests retaining correction applicability as another explicit diagnostic category when Mova evaluates repair layers or knowledge overlays.

Idea: Preserve numerical distinctions during relevance checks. Where: Further Empirical Analysis of SERAC, Scope classifier architecture. Area: semantics and mathematics. Mova: частково є (math exact arithmetic and the recent numerical-shape rules in en/src/ud.rs). Mova already represents exact quantities and distinguishes some numerical forms. A scope checker could compare typed quantities and units directly, preventing broad lexical resemblance from hiding a difference that changes whether a correction applies.

Idea: Compare structured relations instead of relying on broad similarity. Where: The SERAC model, Architecture; Scope classifier architecture. Area: syntax and semantic matching. Mova: частково є (prag frames and world readers). Native readers already use roles instead of treating complete sentences as word collections. The paper’s interaction comparison motivates checking whether a correction preserves agent, patient, negation, and quantity relationships before accepting a match. This is a Mova hypothesis about a symbolic alternative to learned cross-attention.

Idea: Use a cheap candidate stage before a precise scope check. Where: The SERAC model, Architecture; Computational demands of SERAC. Area: retrieval and efficiency. Mova: частково є (tools/dictindex retrieval and layers domain routing). Existing indices and routing can narrow the material examined. A correction system could retrieve candidates using inexpensive lexical or frame features, then apply explicit structural checks. The paper motivates the efficiency tradeoff, but this particular staged symbolic design remains a proposal.

Idea: Treat behavioral instructions as a distinct input type. Where: Datasets & Evaluation, ConvSent. Area: pragmatics and task interfaces. Mova: частково є (configured native deputy capabilities). The deputy already maps supported requests into admitted operations. SERAC demonstrates why an instruction about behavior should not be forced into a question–answer format. Mova could preserve the requested action, target, and conditions explicitly while continuing to reject ambiguous or unsupported requests.

Idea: Keep requested sentiment separate from factual knowledge. Where: ConvSent and Additional Sentiment Editing Example and Broader Impacts. Area: pragmatics and provenance. Mova: частково є (Frame::attr, held_by, and the distinction between narrative content and admitted knowledge). A request to express a favorable attitude does not establish a fact. Mova could retain viewpoint changes as attributed or task-local instructions, keeping them separate from the world’s asserted contents and the durable knowledge graph.

Idea: Evaluate both the requested attribute and relevance. Where: Datasets & Evaluation, conversational sentiment metrics. Area: generation evaluation. Mova: нове. If Mova later produces more flexible explanations, an answer should be checked for satisfying the requested presentation property and addressing the actual question. The paper combines sentiment and topical consistency because either alone is insufficient. Why Mova: this could prevent an apparently compliant explanation from earning credit while omitting the information the user requested.

Idea: Use likelihood-based preservation only where probabilities are meaningful. Where: Datasets & Evaluation, drawdown for conversational sentiment. Area: statistics. Mova: нове. SERAC measures distributional change for generative behavior, whereas Mova’s native decisions often have discrete, explicit outputs. A proposed evaluation should therefore choose preservation measures appropriate to each component instead of transferring the dialogue metric mechanically. Why Mova: matching the metric to the observable output would keep comparisons interpretable across deterministic readers and optional probabilistic components.

Idea: Test many corrections together. Where: Model Editing Benchmarking, Making many edits. Area: regression evaluation. Mova: частково є (combined English and French rule audits). Mova already measures rule collections as well as individual changes. SERAC suggests extending this practice to durable knowledge updates and dictionary additions, where individually acceptable entries may interact when activated together.

Idea: Check whether correction order changes behavior. Where: Model Editing Benchmarking, Making many edits. Area: determinism and testing. Mova: нове. SERAC’s memory construction gives the same aggregate edit set whether edits arrive together or consecutively. Mova’s priority-ordered repair systems do not inherit that property. An explicit order-sensitivity test could identify whether a proposed correction collection depends on insertion order, rule priority, or prior state. Why Mova: reproducible corrections require knowing which ordering assumptions are part of the result.

Idea: Limit the evidence used by a correction step. Where: The SERAC model, forward pass. Area: bounded reasoning. Mova: частково є (configured bounded execution and source-bound groupants). SERAC selects a single edit to reduce interference. Mova could similarly make each correction step identify its admitted supporting record and assumptions. This would improve traceability, although Mova would need separate rules for tasks that legitimately require combining several facts.

Idea: Make interacting corrections an explicit test category. Where: The SERAC model and Making many edits. Area: knowledge consistency. Mova: нове. The paper’s single-edit retrieval controls interference but does not establish general conflict resolution. Mova could test overlapping knowledge revisions, contradictory dictionary notes, or competing repair conditions as their own category. Why Mova: explicit conflict cases would reveal where ordinary routing or priority rules silently choose an unsupported outcome.

Idea: Train or induce applicability from positive and negative evidence. Where: Training SERAC, scope-classifier objective. Area: rule induction and statistics. Mova: частково є (world induce, self-play, and held-out gates). Mova can borrow the supervision structure without adopting a neural classifier: candidate applicability rules could be induced from accepted matches and difficult nonmatches, then evaluated separately from the correction itself.

Idea: Teach conditional answering with evidence known to matter. Where: Training SERAC and Related Work, memory-augmented approaches. Area: teaching data. Mova: частково є (tools/enrich source-bound packets and reviewed staging). The paper trains the counterfactual component with relevant edit context. Mova’s enrichment pipeline could similarly distinguish examples that genuinely require an admitted fact from examples answerable through unrelated cues, while preserving the separation between staged drafts and admitted teaching material.

Idea: Preserve the difference between training data and assessment data. Where: Datasets & Evaluation and Dataset Details. Area: data processing. Mova: вже є (tools/dictindex assessment exclusions and the teacher-separated school pipeline). The paper trains auxiliary components and measures them on held-out edits. Mova already excludes frozen assessment material from dictionary indexing and learning. Any correction benchmark should maintain that separation, including its difficult-neighbor construction and paraphrase generation.

Idea: Audit automatically constructed test examples. Where: Dataset Details, QA-hard. Area: annotation quality. Mova: частково є (treeagree validity gates and reviewed disagreements). The authors acknowledge that generated questions can be understandable while grammatically imperfect. Mova could retain construction provenance and review whether a transformed item still expresses the intended consequence. Structural validity alone would not establish semantic correctness.

Idea: Split templated data by the entity being discussed. Where: Dataset Details, ConvSent. Area: experimental design. Mova: нове. The dialogue dataset separates entities across training, validation, and testing. Comparable Mova experiments could hold out target concepts when many items share templates, provided that this split matches the capability being assessed. Why Mova: it would help distinguish learning a reusable correction procedure from recognizing previously encountered targets.

Idea: Keep generated supervision distinguishable from independent evidence. Where: ConvSent data construction. Area: provenance. Mova: вже є (teacher-generated silver data, annotation review, and admission boundaries). ConvSent uses generated responses and an automatic sentiment labeler. Mova already records teacher and witness roles. The transferable principle is to retain those roles in every derived example, so agreement between generated material and its classifier is not mistaken for independent verification.

Idea: Explain data inclusion through operational sampling rules. Where: The Model Editing Problem; Datasets & Evaluation, FC. Area: data specification. Mova: частково є (tools/sources manifests and dictionary-index source configurations). The paper defines how positive and negative examples are selected, rather than leaving scope entirely informal. Mova could attach executable selection predicates to correction datasets, including explicit exclusions and source identities, making reproduction and review easier.

Idea: Reuse correction interfaces across compatible predictors. Where: Further Empirical Analysis of SERAC, Re-using model editors across models. Area: modular architecture. Mova: частково є (native adapters, worker protocols, and layers interfaces). A correction contract based on typed observations could survive changes to the parser or execution backend. The paper motivates this decoupling, but Mova would still need compatibility checks because changing an upstream parser can change the evidence seen by a rule.

Idea: Measure fixed overhead separately from growing storage. Where: Computational demands of SERAC. Area: systems measurement. Mova: частково є (tools/dictindex bounded measurements and explicit storage accounting). Mova already distinguishes measured corpus prefixes from full-scale claims. A correction service should likewise separate resident rule or index costs, per-record growth, and query-time work. This would make deployment estimates more useful than a single total-memory figure.

Idea: Measure different routing paths independently. Where: Computational demands of SERAC. Area: performance evaluation. Mova: частково є (worker receipts, bounded job logs, and retained diagnostic results). SERAC reports distinct behavior for inputs sent to the original predictor and those sent to the counterfactual component. Mova could benchmark ordinary parsing, rejected correction candidates, and admitted correction execution separately, exposing where a new layer actually adds cost.

Idea: Consolidate temporary corrections only through a separate gate. Where: Discussion. Area: durable learning. Mova: частково є (tested skeleton revision, reviewed graph admission, and separate parameter training). The authors suggest distilling accumulated edits into a student copy. For Mova, a comparable proposal would promote stable external corrections into reviewed seeds or retained knowledge only after compatibility and regression checks. Recording a correction would remain distinct from changing the shipped core.

Idea: Make correction authority visible. Where: Discussion and Additional Sentiment Editing Example and Broader Impacts. Area: governance and provenance. Mova: частково є (source-bound evidence, configured operations, and attributed content). The paper’s misuse discussion motivates recording who requested a behavioral change and what it is authorized to affect. Mova’s explicit evidence records provide a basis for distinguishing a factual revision, a viewpoint request, and a temporary task instruction.

The problem and its context

Model editing begins with an asymmetry. Training produces a system whose behavior is spread across many parameters, but deployment may reveal a very specific defect. A user does not necessarily want a new system. They want the current one to answer a certain family of questions differently while continuing to handle everything else as before.

The paper describes several reasons for needing such changes. A public office can acquire a new holder. Attitudes toward a topic can change. Training can leave a system insufficiently fitted to some examples or excessively attached to others. In all these cases, retraining the complete predictor is an indirect and potentially expensive response to a localized problem.

A prompt can sometimes supply the missing information. The authors connect this possibility to work on few-shot learning, including Language Models are Few-Shot Learners. But they also describe a central difficulty with prompting and retrieval: a predictor may continue using its established behavior in spite of receiving relevant text. Merely putting a correction in the input does not guarantee that the answer will reflect it.

What counts as a successful correction?

The important object is an edit’s scope: the collection of inputs whose appropriate outputs change because of the edit. This collection usually extends beyond the original wording.

Consider the paper’s example involving the British prime minister. An edit associates the office with Boris Johnson. A paraphrase asking who occupies that office belongs to the scope. A question asking where Johnson serves as prime minister also belongs, although its answer is a place instead of the edited person’s name. A true-or-false statement about Theresa May holding the office tests another consequence.

These cases explain why scope cannot be reduced to similarity. A differently worded question can depend directly on the correction, while a very similar question can concern another relationship that the correction leaves untouched. The paper calls the former kind difficult when reasoning is needed to obtain its answer. It calls the latter kind difficult when resemblance makes an unrelated input look relevant.

The desired intervention therefore has competing obligations. It must generalize beyond the original example, but that generalization must stop at the right boundary. An editor that changes only an exact string is too narrow. An editor that changes every mention of a person or office is too broad.

Earlier approaches as the paper describes them

The related-work discussion describes constrained fine-tuning as a straightforward approach: use new examples to adjust selected parameters while restricting the damage to other behavior. Another family trains a predictor to become easy to edit later. Editable Neural Networks belongs to this line, using an optimization procedure intended to make subsequent changes rapid and targeted.

External learned editors provide another route. Rather than requiring ordinary fine-tuning to discover a suitable change each time, an auxiliary network predicts how to transform an editing gradient. The paper evaluates MEND, associated with Fast Model Editing at Scale, as a representative. It also discusses approaches that identify internal locations associated with factual content, including Locating and Editing Factual Associations in GPT.

The authors’ concern is that these approaches ask parameter updates to solve several problems implicitly. A change must identify affected inputs, produce suitable answers, and preserve unrelated behavior. The gradient of a particular edit example may not carry enough information about distant but relevant inputs. The paper motivates this concern through prior observations about functional specialization inside neural networks.

That explanation is a hypothesis about why existing editors struggle, rather than a proof that gradients can never support selective changes. The experiments show difficulties for the evaluated methods under the chosen conditions. SERAC’s architectural response is to reason directly over the edit’s content.

External memory as a different intervention point

The paper situates SERAC among earlier memory mechanisms without treating external memory itself as new. It mentions memory-augmented systems such as Neural Turing Machines, methods that store examples for prediction, and retrieval systems that keep textual evidence outside their parameters.

The distinction is what the memory is for. SERAC stores user-supplied corrections to an existing predictor. Its purpose is not to train a retrieval-based answering system from the beginning or to solve a general few-shot task. It learns when a correction should replace established behavior.

BeliefBank is a particularly relevant comparison in the authors’ account because it also uses external memory to affect an existing predictor. The paper describes it as restricted to binary factual decisions and dependent on manually specified relationships between facts. SERAC instead learns from edit descriptors and examples of their intended scope.

The method, step by step

SERAC combines persistent edit records with learned procedures for interpreting them. This is why the approach is semi-parametric: some relevant information resides in trainable components, while the particular corrections remain in an explicit memory that can change without retraining those components.

The distinction between editor training and applying an edit is essential. The classifier and counterfactual predictor are trained with ordinary supervised optimization. Once they have been trained, applying an edit does not require calculating an editing gradient or modifying the original predictor.

How SERAC answers after receiving corrections

The steps in order.

How SERAC answers after receiving correctionsStep 1: Store the supplied edit descriptors1. Store the supplied edit descriptorsStep 2: Compare the input with cached edits2. Compare the input with cached editsStep 3: Select the highest-scoring edit3. Select the highest-scoring editStep 4: Check whether its scope score passes4. Check whether its scope score passesStep 5: Route to the appropriate predictor5. Route to the appropriate predictorStep 6: Return the resulting answer6. Return the resulting answer

Describe the requested change

An edit descriptor is text that specifies a desired change. In question answering, it can join a question with its corrected answer. In conversational sentiment editing, it can identify a topic and the desired attitude toward it.

This interface matters because the editor is not limited to remembering an output string. A descriptor can specify a condition under which the system should behave differently. The counterfactual predictor then has to interpret that condition for a new input.

The paper represents a collection of descriptors as an edit set. The combined scope is defined through the scopes of its members:

S(E) = ⋃ᵢ S(zᵢ)

Here, E is the stored edit collection, zᵢ is an individual descriptor, S(zᵢ) is the set of inputs affected by that descriptor, and the union symbol means that an input belongs to the combined scope if it belongs to any individual scope. The index i ranges over the stored edits.

This definition establishes membership in the aggregate scope. It does not by itself specify what should happen when descriptors overlap or disagree. That distinction becomes important when interpreting the method’s scalability claims.

Score the relationship between an input and each edit

The scope classifier receives an edit descriptor and a new input. Its output estimates whether the input should be handled under that edit.

gφ(z, x) : Z × X → [0, 1]

The function gφ is the scope classifier, with learned parameters φ. The symbol z denotes a descriptor from the descriptor space Z; x denotes an input from the input space X. The output interval expresses a probability-like relevance score.

SERAC considers each input–edit pair separately. This avoids constructing a parameter update whose effects must implicitly accommodate all cached edits. The classifier’s immediate task is narrower: determine whether a particular correction governs a particular input.

The authors examine independent embeddings and cross-attention as alternative implementations. The embedding approach encodes the descriptor and the input separately into fixed-length vectors. It uses negative squared Euclidean distance as a log-likelihood score. Close vectors support a higher relevance estimate.

This design follows the broad retrieval pattern exemplified by Dense Passage Retrieval: independently encoded items can be compared efficiently. However, relevance for editing is more specific than general topical similarity. A useful representation must distinguish inputs affected by the correction from nearby inputs that must retain their old behavior.

Cross-attention allows a richer interaction between the descriptor and the input. Instead of compressing each independently before comparison, it lets their contents inform a joint decision. That can help when the significance lies in a small difference, such as a changed quantity, but it requires more computation.

Select an edit and choose a route

The editor identifies the stored descriptor with the highest scope score:

i* = argmaxᵢ gφ(zᵢ, x)

The symbol i* is the index of the highest-scoring edit. The operation argmax returns the index whose classifier value is greatest. Each zᵢ is a cached descriptor, and x is the new input.

The selected score is then:

β = gφ(zᵢ*, x)

Here, β is the scope score for the selected descriptor zᵢ*. It is the value used for routing, not a guarantee that the resulting answer will be correct.

The prediction rule is:

F(x) = fbase(x) if β < 0.5; hψ(zᵢ*, x) if β ≥ 0.5

The function F is the complete edited system. The function fbase is the unchanged original predictor. The function hψ is the counterfactual predictor with learned parameters ψ. The input x is routed according to β, using the threshold 0.5. When the edit memory is empty, the original predictor supplies the answer.

The counterfactual predictor receives the selected descriptor together with the new input. Its output must use the same answer space as the original predictor. For a classification task, that means the appropriate labels; for a generation task, it means a suitable generated sequence.

Only the selected edit reaches this component. The authors use that restriction to reduce interference between edits. It also bounds what the component can directly reason over: it is not given an arbitrary collection of corrections to reconcile.

Learn scope from examples and nonexamples

Training requires an edit dataset, denoted D, and procedures for drawing related and unrelated inputs. The paper uses I for sampling an input inside a descriptor’s intended scope and O for sampling an input outside it.

The classifier receives positive examples pairing an edit with an affected input, and negative examples pairing it with an unaffected input. Its loss is:

Lscope(φ) = − E[log gφ(z, x+) + log(1 − gφ(z, x−))]

The symbol Lscope denotes the scope-classification loss. The expectation E averages over descriptors z drawn from D, positive inputs x+ drawn through I, and negative inputs x− drawn through O. The function log is the logarithm. Parameters φ are adjusted so that relevant pairs receive high scores and irrelevant pairs receive low scores.

The sampling procedures therefore define an important part of the learning problem. If positive examples contain only paraphrases, the classifier receives little direct supervision about more distant consequences. If negatives are largely unrelated topics, it may learn a broad similarity boundary that fails on difficult neighbors.

The counterfactual predictor has a separate objective:

Lcounterfactual(ψ) = − E[log pψ(y+ | z, x+)]

The symbol Lcounterfactual is its training loss. The probability pψ assigns likelihood to the desired output y+ given descriptor z and affected input x+. The expectation averages over descriptors and their sampled in-scope examples. Parameters ψ belong to the counterfactual component.

These objectives are trained independently. The classifier learns whether the edit matters; the counterfactual predictor learns what answer follows when it does. This modular training is central to both the architecture and its later error analysis.

Construct more demanding question-answering data

The standard QA setting uses zsRE, associated with Zero-Shot Relation Extraction via Reading Comprehension. It provides a connection with earlier editing evaluations, particularly tests involving alternative formulations of a question.

QA-hard retains the editing material but strengthens the tests around it. Entailed questions are generated using a question-consistency procedure. True-or-false items are constructed by converting a question–answer pair into a statement, following work on turning QA data into inference data.

For true statements, the converter uses the edit’s answer. For false statements, it substitutes an alternative answer. The key design choice is that successful responses need not reproduce the answer attached to the edit. The editor must use the relation expressed by the correction.

Difficult negatives are selected with semantic sentence embeddings, using all-MiniLM-L6-v2 and the approach associated with Sentence-BERT. The appendix describes sampling among the top 100 neighbors while excluding the top 50, with the intention of avoiding actual paraphrases or other positives.

The main dataset discussion refers to training inputs when describing this selection, whereas the appendix refers to the test set. The procedure’s stated purpose is clear, but that split-level detail would need care in reproduction. The article’s conclusions do not require resolving it by assumption.

Turn changing evidence into a fact-verification task

The FC setting builds on VitaminC. Its records contain evidence, a claim, a Wikipedia page identifier, and a relation label. The authors use the evidence as the edit descriptor.

The construction treats entailment and neutrality as situations in which the associated claim can become an affected example. Contradictory evidence instead supplies a difficult nonexample. Its subject matter may be closely related to the claim, but the editor should not treat that resemblance as grounds for the intended override.

The sampling rule can be written compactly as:

(I(zᵢ), O(zᵢ)) = ({(cᵢ, 1)}, C \ B(pᵢ)) if lᵢ = 1; ({(cᵢ, 0)}, C \ B(pᵢ)) if lᵢ = 0; (∅, {cᵢ}) if lᵢ = −1

The descriptor zᵢ is the evidence from record i. The symbol cᵢ is its claim, pᵢ its page, and lᵢ its original evidence–claim label. C is the complete claim collection, while B(pᵢ) contains claims associated with page pᵢ. The backslash denotes set exclusion, and ∅ denotes an empty set.

The labels 1, 0, and −1 distinguish entailment, neutrality, and contradiction in the original records. The functions I and O specify editing examples and preservation examples, respectively. This is an operational definition of the benchmark’s scope, not a universal definition of how every piece of contradictory evidence should affect a fact checker.

Learn behavior from sentiment descriptors

ConvSent changes the input format. Instead of supplying a desired reply, an edit specifies the topic and whether the conversational system should express positive or negative sentiment.

The dataset combines 15,000 entities from zsRE with 989 noun phrases generated using GPT-3, producing the reported 15,989 topics. For each topic, the authors generate 10 candidate replies for each sentiment using a 3B BlenderBot system. A sentiment classifier based on RoBERTa then assigns labels to those replies.

Different prompts about the same topic count as affected inputs. Prompts concerning other topics provide preservation examples. The appendix specifies an entity-level 90-5-5 division into training, validation, and test data.

Training rewards replies with the requested sentiment and discourages replies with the opposite sentiment. The latter uses an unlikelihood term:

Lunlikelihood reward = log(1 − pedited(rwrong))

Here, pedited assigns probability to an incorrect-sentiment reply rwrong under the relevant conditioning context. Maximizing the displayed quantity discourages that reply. This supplements learning from desirable responses, giving the editor evidence about what it should avoid.

Experiments and results

The experiments ask whether an editor can achieve the requested change, preserve unrelated behavior, accommodate multiple corrections, and interpret edits expressed as behavioral instructions. They also examine whether the editor can be reused when the underlying predictor changes.

The comparisons include fine-tuning, a memory lookup baseline, Editable Neural Networks, and MEND. A further retrieve-and-prompt variant isolates the role of the counterfactual component. These comparisons test different explanations for success: perhaps storing an answer is sufficient, perhaps an ordinary parameter update is sufficient, or perhaps retrieval plus the original predictor can replace the specialized conditional component.

Systems, data, and editing conditions

For QA and QA-hard, the original predictor is T5-large with 770m parameters, adapted to Natural Questions. The paper connects this choice with research on knowledge stored in parameters. SERAC uses T5-small as its counterfactual component.

Fact verification uses a BERT-base system previously trained on FEVER material from the June 2017 Wikipedia dump. The newer editing evidence comes from VitaminC, whose records were collected from Wikipedia changes during the first half of 2020. VitaminC contains over 400,000 records. The counterfactual component also uses BERT-base.

The conversational base system is BlenderBot with 90m parameters. Its background is described in Recipes for Building an Open-Domain Chatbot. The sentiment counterfactual component uses the corresponding compact BlenderBot architecture.

The default scope encoder is DistilBERT, with a separate architecture comparison also using BERT. The implementation uses public checkpoints and implementations associated with Transformers.

The detailed experimental description uses 10 edits for QA, QA-hard, and FC, during both training and evaluation. ConvSent uses 5 because its longer sequences increase memory requirements. A broad comparison-table caption describes 10 simultaneous edits generally; the task-specific account supplies the more precise conversational condition.

Fine-tuning directly optimizes the corrected label. The lookup baseline stores an edit’s representation and returns its attached answer when the new input is sufficiently close. It uses thresholds of 2.75 for question answering and 4 for fact verification. Neither baseline applies directly to ConvSent, because its descriptors do not supply an answer to cache or optimize.

What edit success and drawdown measure

For QA and FC, edit success is exact agreement with the desired answer on affected inputs:

ESexact(z) = E(x,y)∼I(z;D)[1{F(x) = y}]

The descriptor is z, D is the edit dataset, and I supplies affected input–answer pairs. The function F is the edited system. The indicator 1{…} is 1 when its condition holds and 0 otherwise. Averaging it measures the fraction of sampled affected cases answered correctly.

Drawdown instead measures disagreement with the original predictor on preservation inputs:

DDexact(z) = Ex∼O(z;D)[1{F(x) ≠ fbase(x)}]

The sampler O supplies unaffected inputs. The comparison is between the edited system F and the original predictor fbase. This measure concerns preservation, so an unchanged original error does not count as drawdown.

For dialogue, exact matching is unsuitable because many replies can be acceptable. The authors use likelihoods of pre-generated on-topic replies with desired and undesired sentiment.

zsent = σ(lcorrect − lincorrect)

The quantities lcorrect and lincorrect are average per-token log likelihoods under the edited system for replies with the desired and opposite sentiments. The sigmoid function σ maps their difference into a bounded score.

Topical consistency compares likelihood assigned to desirable on-topic replies before and after editing:

ztopic = min(1, exp(lcorrect − lbase,correct))

The quantity lbase,correct is the original predictor’s average per-token log likelihood for those desired-sentiment, on-topic replies. The exponential converts the difference into a likelihood-based comparison, and the minimum caps the result at 1.

The dialogue success measure combines these terms:

ESsent = zsent × ztopic

The symbols zsent and ztopic denote sentiment preference and topical consistency. Their product discourages an editor from improving sentiment preference by abandoning the topic.

Dialogue drawdown uses a distributional comparison:

DDsent(z) = Ex∼O(z;D)[KL(pbase(·|x) ‖ pedited(·|x))]

The distributions pbase and pedited describe predictions before and after editing. KL denotes their directional divergence, averaged over unrelated-topic inputs x. This metric captures probability changes that exact output matching would miss.

Main comparative findings

On ordinary QA with 10 edits, the paper reports strong performance for both SERAC and the lookup baseline. The learned parameter editors deteriorate relative to earlier single-edit reports. This establishes that the apparently familiar QA task becomes more demanding when several corrections must coexist.

QA-hard changes the interpretation. A lookup mechanism can retain an edited answer, but it cannot generally transform that answer to address a different entailed question. SERAC’s conditional predictor provides the needed flexibility, and the paper reports a substantial advantage over the alternatives. Lookup remains the strongest baseline in the authors’ account.

Fact verification is harder still. The authors report that alternatives are close to chance, while SERAC produces useful edits. SERAC also introduces more drawdown in this setting. Its success therefore comes with a preservation cost, instead of an across-the-board improvement in every metric.

For conversational sentiment, SERAC is the only evaluated method reported to exceed chance-level performance, and the authors report zero drawdown. This result applies to their likelihood-based sentiment task and sampled preservation inputs. It does not establish that every possible unrelated conversation remains unchanged.

Transfer across underlying predictors

The editor-reuse experiment applies trained editors to different T5 sizes. The authors report QA edit success above 0.99 and drawdown below 0.01. For QA-hard, success remains above 0.92 and drawdown below 0.03.

The following charts display those reported thresholds. They are strict bounds from the prose, not exact scores or averages across the tested sizes.

Reported edit-success lower bounds across T5 sizes

Strong edit success persists when the same editor is reused across the tested T5 sizes.

Reported edit-success lower bounds across T5 sizesSERAC QA (this paper): 0.99SERAC QA (this paper)0.99SERAC QA-hard: 0.92SERAC QA-hard0.92
The numbers
System or settingedit-success lower bound, strict >
SERAC QA (this paper)0.99
SERAC QA-hard0.92

Reported drawdown upper bounds across T5 sizes

Preservation remains strong under both question-answering settings in the reuse experiment.

Reported drawdown upper bounds across T5 sizesSERAC QA (this paper): 0.01SERAC QA (this paper)0.01SERAC QA-hard: 0.03SERAC QA-hard0.03
The numbers
System or settingdrawdown upper bound, strict <
SERAC QA (this paper)0.01
SERAC QA-hard0.03

These findings support decoupling the editor from a particular base size. They do not establish arbitrary compatibility across unrelated interfaces or tasks. The counterfactual predictor still needs a suitable output space, and the experiments reported here concern the specified T5 settings.

Multiple edits and computational cost

The scaling experiment trains editors with 1 or 10 edits and evaluates batches containing 1, 5, 25, or 75 edits. SERAC shows little deterioration at 75. At that setting, drawdown exceeds success for ENN and MEND. Training those alternatives with more simultaneous edits does not reliably solve the problem.

Runtime overhead depends on the route. In QA, an affected input can be processed faster because T5-small answers instead of T5-large. Unaffected inputs still incur scope checking before reaching the original predictor. Fact verification costs more because its classifier uses cross-attention.

The authors estimate edit-memory storage at about 3KB per edit. Most additional memory comes from the auxiliary components, which impose a largely fixed cost. That cost is relatively modest beside T5-large but more substantial when the original predictor and auxiliary components have similar sizes. These observations distinguish inexpensive correction records from the resources required to interpret them.

What the ablations show

The paper offers controlled comparisons of retrieval behavior, classifier architecture, component errors, and edit-batch size. Together, they explain why a correction memory alone is insufficient and where SERAC’s remaining difficulties arise.

Remembering an answer is not enough

The lookup baseline provides a useful partial control because it also avoids editing the original parameters. Its strong standard-QA performance shows that an explicit cache can handle simple correction scopes effectively.

Its limitations appear when affected questions require answers different from the stored answer. Returning the original edited label cannot solve every consequence of a factual change. This comparison separates the value of memory from the value of interpreting memory.

The conclusion should remain task-specific. Lookup is not inherently useless; the basic QA results show otherwise. The harder benchmark reveals the circumstances under which direct answer reuse becomes an inadequate operation.

Retrieval and conditional prediction have different roles

The retrieve-and-prompt variant uses SERAC’s scope mechanism but asks the original predictor to answer with the retrieved edit in context. This is a targeted comparison: retrieval is retained while the specialized counterfactual predictor is removed.

The distinction matters because a predictor may see relevant evidence and still follow its established behavior. SERAC trains its counterfactual component specifically on contexts that contain useful corrections. That training gives retrieved material a more direct role in the answer.

The paper’s numerical comparison table is not reproduced in its prose, so a precise retrieve-and-prompt score cannot be supplied. The architectural control nonetheless identifies the question being tested: whether successful retrieval by itself is enough, or whether the answer-producing component must also learn to respect the correction.

Scope errors dominate difficult cases

For QA-hard, the classifier performs worse on difficult positives and negatives than on easier examples. Difficult affected inputs are especially challenging. The counterfactual component loses relatively little accuracy on those affected cases.

This is an important diagnostic result. If the correct edit would enable the conditional predictor to answer, but routing fails to select it, making the answer component larger addresses the wrong bottleneck. Better scope supervision or comparison mechanisms are more directly relevant.

The counterfactual component performs poorly on unrelated examples. That is not automatically a system failure, because those examples are supposed to bypass it. The relevant question is whether the classifier protects the boundary reliably.

In FC, difficult negatives dominate the scope errors. Evidence and claims can concern the same event while differing in a way that prevents the intended override. The paper therefore identifies precision at the scope boundary as a central obstacle, instead of treating all remaining error as insufficient reasoning.

Interaction helps more than size alone

The classifier comparison varies independent embeddings versus cross-attention and DistilBERT versus BERT-base. Cross-attention improves editing performance, particularly for fact verification. Moving to the larger backbone produces relatively little additional benefit.

The authors suggest a possible explanation involving quantities. Statements about coronavirus deaths can be nearly identical except for 105,000 versus 111,000. A fixed-length representation may preserve the common topic more strongly than the decisive numerical difference.

That explanation is plausible within the task, but the paper presents it as an interpretation instead of a demonstrated causal account of every error. The controlled result is the architectural advantage. The proposed role of quantities explains why richer token interaction might be useful.

The discussion points towards approaches such as ColBERT and ColBERTv2, which offer alternatives between fully independent compression and expensive joint comparison. These are suggested directions, not additional tested SERAC results.

Training with more edits does not guarantee scalability

Comparing training batches of 1 and 10 edits tests whether poor large-batch behavior merely reflects a mismatch between training and evaluation. For the evaluated parameter editors, additional training edits do not reliably rescue performance at 75 test edits.

SERAC has a separate structural advantage. Adding descriptors successively or adding the same collection together produces the same memory contents. Its prediction rule depends on that stored collection instead of a sequence of parameter updates.

This property removes one source of path dependence. It does not prove that every collection is logically consistent, that retrieval cannot make mistakes, or that overlapping edits have been resolved correctly. The guarantee concerns how the editing operation accumulates records.

Limitations

The strongest reading of the paper is that explicit correction memory, learned scope estimation, and specialized conditional answering provide an effective alternative under the tested tasks. A broader claim—that reliable behavioral revision has been solved—would go beyond the evidence.

Limitations the authors state

SERAC needs an editing dataset. Its scope classifier must learn what kinds of inputs a correction affects, and its counterfactual component must learn how to answer under such corrections. The method does not remove the supervision problem; it relocates it from per-edit parameter adjustment to reusable auxiliary components.

The authors also acknowledge that lightweight components may not suffice in every setting. Their fact-verification experiment already illustrates the tradeoff: richer scope interaction improves usefulness while increasing computation. A small editor is an empirical success in certain tasks, not a universal architectural guarantee.

Continuous editing can make the memory grow indefinitely. The authors propose periodically teaching a student copy of the original predictor from the complete edited system. After consolidation, the temporary memory might be cleared. This remains a future direction in the paper.

Such consolidation would be a separate learning procedure with its own preservation problem. The paper does not demonstrate that distillation retains every correction or that it safely handles conflicts. Its proposed benefit is to bound memory growth, not a reported solution with measured outcomes.

The misuse discussion is also explicit. A system that changes conversational attitudes can help correct undesirable behavior, but it can also make viewpoint steering more precise. The appendix discusses political or cultural propaganda as a possible application by oppressive authorities.

The vaccine example illustrates behavioral influence, not a general safety evaluation. The authors report positive, on-topic replies after editing and note that the topic was absent from editor training and validation. Their concern is that a similar capability could be applied to other topics for harmful purposes.

Limits visible in the experimental setup

The scope of an edit is supplied through dataset construction. That is necessary for training and testing, but it means success is measured against an operational definition of relevance. Real users may disagree about what a correction should imply, especially when the change concerns beliefs, attitudes, or ambiguous statements.

The FC construction makes this particularly clear. It assigns evidence–claim cases to affected or preservation sets according to a specific rule. That rule creates a useful challenge involving inference and close semantic neighbors. It should not be interpreted as a complete policy for updating a real fact-verification service.

The method retrieves a single descriptor. This reduces interference but limits direct composition across several corrections. The experiments do not establish that SERAC can answer a question whose solution requires combining multiple independently stored updates.

Likewise, a union of scopes does not define a conflict policy. If corrections overlap, the highest-scoring descriptor determines the counterfactual input. The paper does not demonstrate comprehensive handling of contradictory edits, temporal precedence, or disputes over correction authority.

The claim of gradient-free editing also needs its proper boundary. Applying an edit requires no parameter update to the original predictor. Training the auxiliary components still uses gradient-based optimization. The computational savings concern the editing workflow and its separation from base size, instead of an absence of neural training.

Drawdown measures preservation of the original predictor, not truth. If an unrelated input originally receives a wrong answer and keeps receiving it, drawdown remains favorable. That is appropriate for isolating collateral change, but it cannot replace an independent assessment of overall correctness.

The dialogue metric is a proxy built from generated replies and an automatic sentiment classifier. It captures preferences over the evaluated responses and a likelihood-based notion of topicality. It does not directly establish human judgments of conversational quality, comprehensive factuality, or the behavior of every sampled dialogue.

Automatically generated QA-hard questions introduce another qualification. The authors state that they are frequently understandable in spite of grammatical imperfections. Some failures may therefore reflect the quality of constructed inputs as well as the intended reasoning difficulty.

Finally, evaluation up to 75 edits does not establish unlimited scaling. The memory mechanism makes insertion simple, but query cost, retrieval ambiguity, conflict frequency, and storage management remain relevant as the collection grows. The paper’s evidence supports the tested range and the stated architecture, instead of an unbounded deployment claim.

What came after

SERAC’s later citation record spans editing, retrieval, factual reliability, multilingual behavior, and system safety. That breadth shows that subsequent authors treated memory-based correction as relevant to several research problems. A citation alone does not establish implementation inheritance, adoption of SERAC’s components, or experimental confirmation of its conclusions. The available descriptions of these citing works identify their subjects but do not document precisely how each uses SERAC.

Editing as a wider research problem

Editing Models with Task Arithmetic places editing within a framework named for task arithmetic. Its citation connects it to the broader question of changing established behavior. The evidence available here does not establish that it reuses SERAC’s correction memory, scope classifier, or counterfactual predictor.

PMET concerns precise editing in a transformer. It is relevant to the same demand for targeted intervention, but its title does not supply a controlled comparison with SERAC. The useful connection is the continuing importance of selecting what changes and preserving what should not.

Transformer-Patcher explicitly frames its subject around repairing individual mistakes. It belongs to the later work citing SERAC, although the citation record alone does not show which memory-based ideas it adopts.

Model Editing Harms General Abilities studies a concern closely related to drawdown: targeted changes can affect capabilities beyond their immediate objective. Its title identifies regularization as a proposed response. That thematic connection is clear, while its specific findings and experimental relationship to SERAC remain unspecified here.

Neuron-Level Sequential Editing addresses successive changes at the neuron level. This continues the problem exposed by SERAC’s multi-edit experiment: evaluating a correction in isolation is different from evaluating an accumulating editing process. The citation does not establish that the later method shares SERAC’s order-independence property.

Memory, retrieval, and multilingual reach

HippoRAG studies long-term memory for large language systems. RAPTOR concerns retrieval organized through recursive abstraction and a tree structure. Both belong to the citing literature, linking SERAC’s external-memory contribution to broader questions about access to stored information.

Their titles support those subject connections, but not a claim that they are extensions of SERAC’s editor. External memory can serve many purposes: supplying evidence, organizing documents, retaining experience, or overriding established behavior. SERAC specifically couples correction records with a learned decision about when the original predictor should be bypassed.

Cross-Lingual Knowledge Editing and Retrieval-Augmented Multilingual Knowledge Editing extend the editing discussion to language boundaries. Their subjects raise a scope question beyond SERAC’s reported English tasks: whether changing knowledge in one linguistic form should affect corresponding inputs in another language.

MLaKE identifies multilingual editing as a benchmarking subject. BMIKE-53 studies cross-lingual editing with in-context learning. Their citation relationship is established, but their measurements and particular use of SERAC are not specified.

Reliability and the consequences of intervention

The citing surveys include A Survey on Hallucination, Survey on Factuality, and The Life Cycle of Knowledge. Their subjects place correction within a larger account of how knowledge is acquired, accessed, maintained, and misrepresented.

The relationship is conceptually useful without implying that editing alone resolves factual unreliability. SERAC addresses supplied corrections and learned scope boundaries. It does not independently discover every error or establish the truth of every proposed update.

Detoxifying Large Language Models via Knowledge Editing concerns using editing for a behavioral safety objective. Negative Preference Optimization concerns unlearning. Their subjects emphasize that changing behavior may involve suppression or avoidance as well as adding a corrected answer.

These later connections preserve the central distinction made concrete by SERAC: an intervention needs an account of its intended effects and its boundaries. The paper demonstrates a workable separation of those responsibilities under controlled tasks. The citing literature shows continued interest in the surrounding problems, while the exact mechanisms inherited by each work require evidence beyond the citation itself.

Cite

Cite as Eric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning and Chelsea Finn. 2022. Memory-Based Model Editing at Scale. arXiv:2206.06520.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2206.06520 · arXiv 2206.06520

@misc{mitchell2022memory,
  title = {{Memory-Based Model Editing at Scale}},
  author = {Eric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning and Chelsea Finn},
  year = {2022},
  doi = {10.48550/arxiv.2206.06520},
  eprint = {2206.06520},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2206.06520}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/mitchell-2022-memory-based-model-editing-scale/

References

49 references, from the paper's own bibliography.

  1. Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I., and Amodei, D. Language models are few-shot learners. Neural Information Processing Systems, 2020. our card
  2. Buzzega, P., Boschini, M., Porrello, A., Abati, D., and Calderara, S. Dark experience for general continual learning: a strong, simple baseline. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M. F., and Lin, H. (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 15920–15930. Curran Associates, Inc., 2020. OpenAlex ↗ · Scholar ↗
  3. Chen, D., Fisch, A., Weston, J., and Bordes, A. Reading wikipedia to answer open-domain questions. In ACL, 2017. our card
  4. Csordás, R., van Steenkiste, S., and Schmidhuber, J. Are neural nets modular? Inspecting functional modularity through differentiable weight masks. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=7uVcpu-gMD. OpenAlex ↗ · Scholar ↗
  5. Dai, D., Dong, L., Hao, Y., Sui, Z., and Wei, F. Knowledge neurons in pretrained transformers. CoRR, abs/2104.08696, 2021. URL https://arxiv.org/abs/2104.08696. OpenAlex ↗ · Scholar ↗
  6. De Cao, N., Aziz, W., and Titov, I. Editing factual knowledge in language models. ArXiv, abs/2104.08164, 2021. our card
  7. Demszky, D., Guu, K., and Liang, P. Transforming question answering datasets into natural language inference datasets. CoRR, abs/1809.02922, 2018. URL http://arxiv.org/abs/1809.02922. our card
  8. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/N19-1423. our card
  9. Graves, A., Liwicki, M., Fernández, S., Bertolami, R., Bunke, H., and Schmidhuber, J. A novel connectionist system for unconstrained handwriting recognition. IEEE transactions on pattern analysis and machine intelligence, 310 (5):0 855–868, 2008. OpenAlex ↗ · Scholar ↗
  10. Graves, A., Wayne, G., and Danihelka, I. Neural turing machines, 2014. URL http://arxiv.org/abs/1410.5401. arxiv:1410.5401. OpenAlex ↗ · Scholar ↗
  11. Hase, P., Diab, M., Celikyilmaz, A., Li, X., Kozareva, Z., Stoyanov, V., Bansal, M., and Iyer, S. Do language models have beliefs? Methods for detecting, updating, and visualizing model beliefs, 2021. arxiv:2111.13654. our card
  12. Heitmann, M., Siebert, C., Hartmann, J., and Schamp, C. More than a feeling: Benchmarks for sentiment analysis accuracy. Available at SSRN 3489963, 2020. OpenAlex ↗ · Scholar ↗
  13. Hochreiter, S. and Schmidhuber, J. Long short-term memory. Neural computation, 90 (8):0 1735–1780, 1997. OpenAlex ↗ · Scholar ↗
  14. Karpukhin, V., Oguz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., and Yih, W.-t. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6769–6781, Online, November 2020. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/2020.emnlp-main.550. our card
  15. Kassner, N., Tafjord, O., Schütze, H., and Clark, P. BeliefBank: Adding memory to a pre-trained language model for a systematic notion of belief. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 8849–8861, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. . URL https://aclanthology.org/2021.emnlp-main.697. our card
  16. Khandelwal, U., Levy, O., Jurafsky, D., Zettlemoyer, L., and Lewis, M. Generalization through memorization: Nearest neighbor language models. In ICLR, 2020. our card
  17. Khattab, O. and Zaharia, M. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 39–48, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450380164. URL https://doi.org/10.1145/3397271.3401075. our card
  18. Koch, G., Zemel, R., Salakhutdinov, R., et al. Siamese neural networks for one-shot image recognition. In ICML deep learning workshop, volume 2. Lille, 2015. OpenAlex ↗ · Scholar ↗
  19. Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Kelcey, M., Devlin, J., Lee, K., Toutanova, K. N., Jones, L., Chang, M.-W., Dai, A., Uszkoreit, J., Le, Q., and Petrov, S. Natural questions: a benchmark for question answering research. Transactions of the Association of Computational Linguistics, 2019. our card
  20. Lazaridou, A., Kuncoro, A., Gribovskaya, E., Agrawal, D., Liska, A., Terzi, T., Gimenez, M., de Masson d'Autume, C., Ruder, S., Yogatama, D., Cao, K., Kociský, T., Young, S., and Blunsom, P. Mind the gap: Assessing temporal generalization in neural language models. In NeurIPS, 2021. OpenAlex ↗ · Scholar ↗
  21. Lee, K., Chang, M.-W., and Toutanova, K. Latent retrieval for weakly supervised open domain question answering. In ACL, 2019. our card
  22. Levy, O., Seo, M., Choi, E., and Zettlemoyer, L. Zero-shot relation extraction via reading comprehension. In Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pp. 333–342, Vancouver, Canada, August 2017. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/K17-1034. our card
  23. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel, T., Riedel, S., and Kiela, D. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M. F., and Lin, H. (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 9459–9474. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/6b493230205f780e1bc26945df7481e5-Paper.pdf. our card
  24. Li, M., Roller, S., Kulikov, I., Welleck, S., Boureau, Y.-L., Cho, K., and Weston, J. Don't say that! making inconsistent dialogue unlikely with unlikelihood training. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 4715–4728, Online, July 2020. Association for Computational Linguistics. . URL https://aclanthology.org/2020.acl-main.428. our card
  25. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized BERT pretraining approach. CoRR, abs/1907.11692, 2019. URL http://arxiv.org/abs/1907.11692. our card
  26. Lopez-Paz, D. and Ranzato, M. A. Gradient episodic memory for continual learning. In Guyon, I., Luxburg, U. V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett, R. (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper/2017/file/f87522788a2be2d171666752f97ddebb-Paper.pdf. OpenAlex ↗ · Scholar ↗
  27. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and editing factual associations in GPT, 2022. arXiv:2202.05262. our card
  28. Mitchell, E., Lin, C., Bosselut, A., Finn, C., and Manning, C. D. Fast model editing at scale. CoRR, 2021. URL https://arxiv.org/pdf/2110.11309.pdf. our card
  29. Oh, J., Chockalingam, V., Lee, H., et al. Control of memory, active perception, and action in minecraft. In International Conference on Machine Learning, pp. 2790–2799. PMLR, 2016. OpenAlex ↗ · Scholar ↗
  30. Paranjape, A., Khattab, O., Potts, C., Zaharia, M. A., and Manning, C. D. Hindsight: Posterior-guided training of retrievers for improved open-ended generation. ArXiv, abs/2110.07752, 2021. OpenAlex ↗ · Scholar ↗
  31. Pritzel, A., Uria, B., Srinivasan, S., Badia, A. P., Vinyals, O., Hassabis, D., Wierstra, D., and Blundell, C. Neural episodic control. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2827–2836. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/pritzel17a.html. OpenAlex ↗ · Scholar ↗
  32. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 210 (140):0 1–67, 2020. URL http://jmlr.org/papers/v21/20-074.html. our card
  33. Reimers, N. and Gurevych, I. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 11 2019. URL https://arxiv.org/abs/1908.10084. our card
  34. Ribeiro, M. T., Guestrin, C., and Singh, S. Are red roses red? evaluating consistency of question-answering models. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 6174–6184, Florence, Italy, July 2019. Association for Computational Linguistics. . URL https://aclanthology.org/P19-1621. OpenAlex ↗ · Scholar ↗
  35. Roberts, A., Raffel, C., and Shazeer, N. How much knowledge can you pack into the parameters of a language model?, 2020. our card
  36. Roller, S., Dinan, E., Goyal, N., Ju, D., Williamson, M., Liu, Y., Xu, J., Ott, M., Smith, E. M., Boureau, Y.-L., and Weston, J. Recipes for building an open-domain chatbot. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pp. 300–325, Online, April 2021. Association for Computational Linguistics. . URL https://aclanthology.org/2021.eacl-main.24. our card
  37. Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. In Wallach, H., Larochelle, H., Beygelzimer, A., d Alché-Buc, F., Fox, E., and Garnett, R. (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/file/fa7cdfad1a5aaf8370ebeda47a1ff1c3-Paper.pdf. OpenAlex ↗ · Scholar ↗
  38. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. ArXiv, abs/1910.01108, 2019. our card
  39. Santhanam, K., Khattab, O., Saad-Falcon, J., Potts, C., and Zaharia, M. Colbertv2: Effective and efficient retrieval via lightweight late interaction. CoRR, abs/2112.01488, 2021. URL https://arxiv.org/abs/2112.01488. our card
  40. Santoro, A., Bartunov, S., Botvinick, M., Wierstra, D., and Lillicrap, T. Meta-learning with memory-augmented neural networks. In Balcan, M. F. and Weinberger, K. Q. (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1842–1850, New York, New York, USA, 20–22 Jun 2016. PMLR. URL https://proceedings.mlr.press/v48/santoro16.html. OpenAlex ↗ · Scholar ↗
  41. Schuster, T., Fisch, A., and Barzilay, R. Get your vitamin C! robust fact verification with contrastive evidence. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 624–643, Online, June 2021. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/2021.naacl-main.52. our card
  42. Shan, S., Li, Y., and Oliva, J. B. Meta-neighborhoods. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M. F., and Lin, H. (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 5047–5057. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/35464c848f410e55a13bb9d78e7fddd0-Paper.pdf. OpenAlex ↗ · Scholar ↗
  43. Sinitsin, A., Plokhotnyuk, V., Pyrkin, D., Popov, S., and Babenko, A. Editable neural networks. In ICLR, 2020. URL https://openreview.net/forum?id=HJedXaEtvS. OpenAlex ↗ · Scholar ↗
  44. Snell, J., Swersky, K., and Zemel, R. S. Prototypical networks for few-shot learning. arXiv preprint arXiv:1703.05175, 2017. OpenAlex ↗ · Scholar ↗
  45. Sotoudeh, M. and Thakur, A. V. Correcting deep neural networks with small, generalizing patches. In NeurIPS 2019 Workshop on Safety and Robustness in Decision Making, 2019. OpenAlex ↗ · Scholar ↗
  46. Thorne, J., Vlachos, A., Christodoulopoulos, C., and Mittal, A. FEVER: a large-scale dataset for fact extraction and VERification. In NAACL-HLT, 2018. our card
  47. Vinyals, O., Blundell, C., Lillicrap, T., Wierstra, D., et al. Matching networks for one shot learning. Advances in neural information processing systems, 29:0 3630–3638, 2016. our card
  48. Wolf, T., Debut, L., Sanh, V., Chaumond, J., Delangue, C., Moi, A., Cistac, P., Rault, T., Louf, R., Funtowicz, M., and Brew, J. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771, 2019. URL http://arxiv.org/abs/1910.03771. our card
  49. Zhu, C., Rawat, A. S., Zaheer, M., Bhojanapalli, S., Li, D., Yu, F., and Kumar, S. Modifying memories in transformer models, 2020. URL https://arxiv.org/abs/2012.00363. OpenAlex ↗ · Scholar ↗