Fast Model Editing at Scale
Paper · 2021 · Eric Mitchell, Charles Lin, Antoine Bosselut et al.
Summary
A deployed language system can need a correction long before it needs complete retraining. An answer may have been wrong from the beginning, or a fact may have changed since training. The difficult part is making the correction specific: the system should answer the corrected question properly, recognize equivalent questions, and preserve its behavior elsewhere. “Fast Model Editing at Scale” treats this as a distinct learning problem. Rather than asking ordinary fine-tuning to learn from an isolated correction, the authors train an auxiliary editor that learns how to turn such corrections into useful changes.
Their method, MEND, stands for Model Editor Networks with Gradient Decomposition. It starts with the gradient that ordinary learning would produce for an input and its requested output. A gradient indicates how changing each parameter would affect the correction’s loss, but following that direction directly can produce an overly narrow or disruptive update. MEND learns to transform this gradient before applying it. Its central engineering insight is that a gradient for a fully connected weight matrix can be represented through activation and error vectors. Processing those vectors makes a learned transformation affordable without treating the entire matrix as an enormous input.
The editor is trained separately from the system it will edit. During this preparation, it repeatedly receives a proposed correction, examples that should share the correction, and unrelated examples whose predictions should remain stable. Its objective rewards successful transfer to equivalent inputs while penalizing changes elsewhere. The original parameters remain untouched during editor training. Once the editor has learned this task, a new correction requires a gradient computation followed by a learned transformation and a parameter update. According to the authors, even systems described as having more than 10 billion parameters can feasibly undergo editor training in under one day using just one GPU.
Experiments cover classification, question answering, and continuation generation, using BERT, BART, T5, and GPT-style systems. Within the authors’ comparisons, MEND is the method that remains effective at the largest tested scale, including T5-XXL with 11B parameters. This advantage is about the combination of editing quality and feasibility, rather than universal superiority at every size: Editable Neural Networks performs particularly well on the smaller Wikitext experiment. MEND also supports simultaneous corrections. On zsRE with BART-base, the authors report 96% edit success for 25 edits applied together, with accuracy degradation below 1%.
The paper demonstrates practical control over selected outputs, not a general solution to maintaining coherent knowledge. Its tests mainly ask whether corrections survive paraphrasing or shortened contexts. They do not establish that all logical consequences of a new fact are incorporated. Some edits fail to transfer far enough; others spread to similar-looking questions that should remain different. These failures make the evaluation design as important as the editing algorithm. The authors release code and data and identify stronger tests of locality and generalization as necessary next steps.
Interesting ideas
Start from an informative signal. MEND uses the correction gradient as its input because that signal already expresses how the existing system responds to the requested change. An editor working from the raw sentence alone would also have to discover how the sentence relates to internal parameters. The broader lesson is to reuse an intermediate representation that already connects the problem to the mechanism being controlled. This can help in automated repair, optimization, and diagnostic systems.
Factor before learning. A large object may have a compact construction even when its explicit representation is expensive. MEND processes the vectors that generate a gradient matrix, then reconstructs an update from transformed vectors. This makes a richer learned transformation possible within a manageable parameter budget. Similar reasoning applies whenever structured data can be manipulated through components rather than through every entry of an expanded object.
Separate the correction from its reach. A successful change must affect more than the exact example while stopping before unrelated cases. The paper makes these obligations explicit through reliability, generality, and locality. This distinction is useful for rule changes, dictionary updates, database migrations, and software patches: checking that the reported failure disappeared does not establish that the repair has the right scope.
Preserve behavior rather than parameter proximity. Small movement in parameter space need not imply a small behavioral disturbance. The authors therefore evaluate changes in predictions and use a distributional locality penalty. The transferable principle is to define preservation in the terms that matter to users. For a parser, that might mean preserving unaffected analyses; for a calculator, preserving valid results; for a classifier, preserving decisions on protected examples.
Initialize a learned repair conservatively. MEND begins as an identity transformation, so its starting behavior respects the ordinary gradient instead of replacing it with an arbitrary mapping. Normalization then makes its different input components easier to learn from together. These choices suggest a practical pattern for learned correction layers: begin with a meaningful default and make the learning problem numerically well conditioned.
Test simple alternatives under demanding conditions. Hidden-state caching is competitive on some short-input tasks but fails on the longer Wikitext editing problem. Its apparent usefulness depends on the structure of the inputs and the similarity threshold. A cheap baseline can reveal when a sophisticated mechanism is unnecessary, while a varied evaluation can reveal when that baseline’s simplifying assumption breaks.
Distinguish simultaneous change from lasting accumulation. MEND’s batch experiments test interactions among corrections applied together. The paper explicitly separates this setting from continual learning over long update histories. Engineers can borrow that distinction when evaluating repair systems: a successful batch, a sequence of individually successful patches, and durable performance after repeated updates are different claims requiring different evidence.
Deep dive: Fast Model Editing at Scale
How MEND learns fast, targeted changes to neural networks, why gradient decomposition makes editing practical, and what its tests establish. · about 39 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust. Its native core combines explicit language rules, learned parameters, frames, and text worlds. The connections below concern how the paper’s editing principles could guide that architecture. They do not establish that MEND is implemented in Mova, or that a neural editing result transfers directly to its rule-based components. The status marks identify proposed relationships to documented mechanisms; effects remain unknown until evaluated.
Idea: Treat correction as a separate operation. Where: Introduction and The Model Editing Problem. Area: system architecture. Mova: частково є (gated rule revision, reviewed dictionary admission, and separate training paths). Mova already distinguishes producing a proposal from changing accepted behavior. The paper suggests making a correction request an explicit object with a target, intended scope, preservation obligations, and outcome. This could clarify whether a reported failure needs a lexical amendment, a parsing rule, graph knowledge, or parameter training.
Idea: Use an existing diagnostic signal. Where: Introduction and Model Editor Networks with Gradient Decomposition. Area: analysis. Mova: частково є (native rule reasons, parse disagreements, and retained-reader miss classifications). MEND’s gradient is useful because it connects the correction to the machinery responsible for the output. Mova could similarly condition repair proposals on the recorded rule, frame, gap, or disagreement rather than on the failed sentence alone. The proposed benefit is better targeting; the paper does not measure this transfer.
Idea: Process compact factors before expanded structures. Where: A parameter-efficient transformation of high-dimensional gradients. Area: mathematics and data processing. Mova: частково є (pack preparation and compact indexed evidence in tools/dictindex). Mova already exploits structured representations for storage. The additional proposal is computational: when a diagnostic or candidate relation has a compact factorization, operate on that representation before materializing a larger object. MEND supplies a concrete example, but each Mova application would need its own exact identity or declared approximation.
Idea: Separate exact mathematical structure from learned transformation. Where: Rank-1 gradient for MLPs and A parameter-efficient transformation of high-dimensional gradients. Area: mathematics. Mova: вже є (exact mathematical core and source-bound groupant checks). The gradient factorization is an algebraic property; the usefulness of the transformed update is empirical. Mova should preserve that distinction in descriptions of candidate repairs and approximants. A correct representation identity does not prove that a learned or statistical choice produces the intended answer.
Idea: Test the reported failure directly. Where: The Model Editing Problem. Area: evaluation. Mova: вже є (targeted examples, regression gates, and rule audits). Reliability corresponds to the basic requirement that a correction changes the behavior it was meant to change. The useful refinement is to record this result separately from aggregate benchmark movement. A rule may improve an overall score while leaving its motivating error unresolved, so the target example remains a necessary check.
Idea: Define an equivalence neighborhood. Where: The Model Editing Problem and Editing Datasets. Area: evaluation and semantics. Mova: частково є (contrast sets and reader assessments, without evidence of a general correction-neighborhood interface). A Mova repair could carry several expressions that should receive compatible treatment, such as syntactic variants of a question or inflected forms of a lexical entry. The neighborhood must be justified by meaning or grammatical conditions; superficial resemblance is insufficient.
Idea: Measure preservation on unrelated cases. Where: Training MEND and Metrics. Area: evaluation. Mova: вже є (held-out comparisons and regression-gated changes). The paper reinforces Mova’s existing practice of checking that an improvement does not damage other behavior. For transparent components, preservation can be expressed through unchanged relations, frames, answers, or reasons. Those observations are often more directly interpretable than transferring the paper’s probabilistic locality loss unchanged.
Idea: Judge changes in behavior rather than implementation size. Where: Related Work and Extended Discussion of Related Work. Area: evaluation. Mova: частково є (measured rule audits and student regression gates). A short lexical list or a small rule edit can still affect many sentences. Mova could make behavioral scope a first-class part of review, comparing affected outputs and explanations rather than treating a small code change as evidence of safety. The relevant analogy is functional preservation, not parameter distance.
Idea: Preserve a useful default during repair learning. Where: Effective initialization and normalization for MEND networks. Area: learning. Mova: нове. Why Mova: A learned repair selector could begin by retaining the current accepted decision and learn bounded departures, making its starting behavior easier to inspect. This proposal applies to a future learned correction layer, not to evidence that Mova already uses MEND’s identity initialization. Its value would depend on comparisons against simpler deterministic selectors.
Idea: Normalize heterogeneous diagnostic features. Where: Effective initialization and normalization for MEND networks. Area: statistics. Mova: нове. Why Mova: Counts, confidence scores, structural distances, and feature magnitudes could otherwise influence a learned repair judge mainly through their numerical scale. Any such normalization would need statistics fitted only on permitted training data. The digest does not establish whether a particular Mova learner already performs an equivalent operation, so the novelty mark is provisional.
Idea: Share machinery while keeping local specialization explicit. Where: A parameter-efficient transformation of high-dimensional gradients. Area: software architecture and learning. Mova: частково є (shared native capabilities with configured worker and domain boundaries). MEND shares editor parameters across compatible matrix shapes while retaining layer-specific adjustments. Mova could borrow the design principle when sharing a repair procedure across grammatical constructions: declare which structure is common and which conditions remain construction-specific. Similar interfaces do not establish interchangeable semantics.
Idea: Learn from each structural contribution before aggregation. Where: A parameter-efficient transformation of high-dimensional gradients and KnowledgeEditor comparison. Area: data processing. Mova: нове. Why Mova: A repair judge could retain separate token, dependency, or frame observations until it has assessed their relevance, rather than reducing a document immediately to pooled counts. MEND’s per-token processing motivates the question; it does not prove that this design improves Mova’s readers or dictionary proposals.
Idea: Keep editor training separate from accepted behavior. Where: Training MEND and Comparing ENN and MEND. Area: operational control. Mova: вже є (staged enrichment, reviewed admission, and gated revisions). MEND’s auxiliary editor can be trained without changing the original system. Mova already has a related separation between preparing candidate knowledge and admitting it. The practical lesson is to verify the boundary explicitly: running a proposal or review procedure should not silently alter the production rules or accepted graph.
Idea: Make repair families explicit. Where: The Model Editing Problem and Dataset Construction & Examples. Area: data design. Mova: частково є (configured deputy capabilities and bounded enrichment tasks). MEND is trained on examples representing the kinds of edits it will later receive. Mova could classify correction requests by supported family and abstain when a request lies outside that family. This fits its current preference for configured scope and visible failure over invented action.
Idea: Separate requested change from factual admission. Where: Dataset Construction & Examples. Area: knowledge provenance. Mova: вже є (dictionary source checks, narrative separation, and reviewed knowledge admission). The editing datasets intentionally include plausible targets that need not be true. Mova must therefore distinguish an experiment asking whether behavior can be changed from evidence that a new statement belongs in its knowledge. A successful correction mechanism cannot replace source verification.
Idea: Match preservation data to the deployed task. Where: Editing Datasets and Editing very large transformer models. Area: evaluation design. Mova: частково є (domain-specific readers, school controls, and source classifications). The authors change locality data to better reflect the base system’s training distribution. Mova could likewise evaluate a grammar repair on representative language use and a dictionary amendment on the relevant lexical domains, while preserving separate assessments of wider effects.
Idea: Include close negative examples. Where: Limitations & Future Work and Additional Qualitative Examples of MEND. Area: semantics and evaluation. Mova: частково є (closed lexical rules and negative controls). Random unrelated sentences can miss overextension to a nearby construction. A proposed Mova rule should therefore include cases sharing tempting surface cues but lacking the required meaning or grammatical evidence. This is especially relevant to auxiliary distinctions, object frames, and dictionary sense selectors.
Idea: Record undergeneralization separately. Where: Additional Qualitative Examples of MEND. Area: error analysis. Mova: частково є (fast-reader miss classification and rule-level audit evidence). Mova could label a repair that fixes its exact witness but misses valid variants as a scope failure, instead of merging it with all remaining errors. That diagnosis points toward incomplete conditions or missing representations, which may require a different response from a wrong decision on the original sentence.
Idea: Record overgeneralization separately. Where: Limitations & Future Work and Additional Qualitative Examples of MEND. Area: error analysis. Mova: вже є (negative controls, closed-domain rules, and abstention on insufficient evidence). The paper gives a clear reason to preserve this discipline: successful correction can coexist with inappropriate transfer. Mova could make every repair report show which neighboring cases must remain distinct and whether the changed rule reaches them.
Idea: Test consequences beyond rewording. Where: Limitations & Future Work. Area: reasoning. Mova: частково є (world state tracking, global shortcuts, and exact mathematical reasoning). A changed fact should sometimes affect an answer that is not a paraphrase of the original question. Mova could construct separate consequence tests using its explicit world representation. Such tests must distinguish consequences licensed by the updated fact from conclusions requiring additional, independently supported premises.
Idea: Evaluate simultaneous correction interactions. Where: Batched Editing. Area: evaluation. Mova: частково є (combined rule audits and regression checks). Individually useful grammar or dictionary changes can interact when admitted together. Mova could retain both isolated results and a combined assessment over the same examples. The paper’s additive parameter updates are not a prescription to add symbolic rules without conflict analysis; the reusable idea is to test the combined intervention.
Idea: Evaluate long update histories separately. Where: Extended Discussion of Related Work. Area: durable learning. Mova: частково є (retained school state and fresh-process assessment). Batch success does not show that repeated revisions remain coherent. Mova could track behavior and provenance across successive admitted changes, including removal or supersession of earlier decisions. Its retention mechanisms provide part of the infrastructure, while evidence for sustained repair quality would require a dedicated longitudinal assessment.
Idea: Compare with a simple memory baseline. Where: Editing through Caching. Area: retrieval and evaluation. Mova: частково є (persistent graphs and dictionary occurrence lookup). Before developing a learned repair module, Mova could compare it with explicit storage and retrieval of reviewed corrections. This would help identify cases where transparent lookup is sufficient. The paper also warns that a similarity-based override must be tested on long and distracting contexts.
Idea: Test threshold sensitivity. Where: Editing through Caching. Area: statistics. Mova: частково є (layers coverage thresholds and reviewed statistical selectors in dictindex). A threshold can look effective at a selected operating point while behaving poorly nearby. Mova could report how routing, retrieval, or selector decisions vary around the chosen setting. The goal is to expose dependence on calibration, not to assume that the paper’s hidden-state distance is suitable for Mova.
Idea: Compare repair locations empirically. Where: Editing attention parameters. Area: architecture and evaluation. Mova: частково є (separate parser, pragmatics, world, and knowledge layers). A failure visible in an answer may originate in several places. Mova could compare candidate interventions at the layer where the evidence points, such as parsing versus frame interpretation, while measuring the same target and preservation cases. MEND’s preference for MLP weights is specific to its experiments and cannot choose Mova’s intervention layer.
Idea: Use ablations to test engineering explanations. Where: Ablations & MEND Variants. Area: experimental design. Mova: вже є (skip controls, rule audits, and paired comparisons). MEND’s normalization and initialization claims are supported by removing those components. Mova can apply the same logic to a proposed repair mechanism: disable the feature alleged to help and check whether the predicted benefit disappears. A plausible explanation alone is weaker evidence than this controlled comparison.
Idea: Account for resource use explicitly. Where: Environment Details and the memory analyses. Area: operational measurement. Mova: вже є (bounded workers, job estimates, and measured execution records). MEND’s feasibility claim depends on training memory as well as edit quality. Mova should likewise report preparation cost separately from per-request cost, including retained state and temporary working memory. A fast final operation can conceal an expensive setup, so both belong in a practical comparison.
Idea: Distinguish measured scaling from projected scaling. Where: Ablations & MEND Variants and Discussion. Area: evidence reporting. Mova: вже є (explicit boundaries between implemented mechanisms and direction). The lightweight MEND variants motivate larger applications without demonstrating them. Mova should maintain the same distinction for general model composition, recursive workflows, and future learning mechanisms. A favorable complexity argument establishes a reason to experiment, not a measured capability.
Idea: Preserve reproducible repair evidence. Where: Reproducibility and Experimental Details. Area: data and evaluation. Mova: вже є (fixed seeds, repeated-result checks, source versions, and append-only evidence). A useful correction report should identify its inputs, conditions, and evaluation cases well enough to reproduce the decision. Mova’s existing provenance practices align with this requirement. The paper reinforces that reproducibility concerns the whole experiment, including sampling and initialization, rather than the final update alone.
Idea: Treat powerful correction as an auditable capability. Where: Ethics Statement. Area: operational governance. Mova: частково є (explicit worker interfaces, reviewed admission, and source-bound outcomes). The authors note that editing can introduce hidden undesirable behavior as well as remove errors. For Mova, the practical response is to retain who or what proposed a change, the evidence supporting it, and the checks that admitted it. This follows the documented review architecture without assuming that every correction request is trustworthy.
The problem and its context
A correction must have boundaries
The motivating problem is familiar even without understanding neural computation. A system gives an answer that its maintainer wants to replace. Ordinary software may expose a rule, a record, or a configuration entry that can be changed directly. A large neural network stores useful behavior across many interacting parameters, so there may be no obvious place corresponding to the particular answer.
The paper uses a question about the UK prime minister to illustrate temporal change. A system trained on older text may favor Theresa May when the requested answer is Boris Johnson. The intended intervention should change answers to equivalent questions about that office. It should preserve answers concerning unrelated subjects. The example is historical within the paper’s motivation; the editing problem is the mismatch between stored behavior and a newly requested output.
This creates competing demands. A procedure that memorizes the exact question may be reliable on that wording but fail when someone asks the same thing differently. A procedure that changes every similar-looking question may transfer too widely. A procedure that improves the target while degrading many other answers has solved the visible complaint by creating hidden ones.
The authors give these demands separate names. Reliability concerns the specified correction. Generality concerns other inputs that should share it. Locality concerns inputs that should retain their earlier behavior. Efficiency adds the practical constraint that applying and preparing the editor must fit available time and memory.
Why ordinary fine-tuning is insufficient
The most direct approach is to continue training on the correction. This uses a mechanism already available for differentiable systems, but the correction supplies very little supervision. The optimization process sees what should change without receiving enough evidence about the surrounding boundary.
Earlier editing work, as described by the authors, tried restricting parameter movement. The intention is understandable: if the new parameters stay close to the old ones, perhaps most behavior will remain stable. The paper emphasizes that parameter distance and output preservation are different properties. A constrained update can still produce a significant functional change, especially when training on an isolated example.
Another option is to mix the correction with further training on the original task data. That provides preservation examples and can reduce collateral damage. However, the authors find that this still does not reliably transfer the correction to equivalent inputs. It also changes the operational setting: the editor now needs continuing access to training data when a user requests a correction.
The paper therefore separates the data needed to learn how to edit from the data needed to perform a particular edit. MEND learns from an editing dataset beforehand. At application time, the new input and requested output supply the correction; the original training collection is not required.
Learning the editing procedure
The immediate predecessors include Editable Neural Networks, abbreviated ENN, and KnowledgeEditor, abbreviated KE. Both learn mechanisms intended to make targeted updates more effective than ordinary fine-tuning.
ENN develops editability inside the base parameters. Its training seeks a system that performs its original task and can also be changed effectively through a small editing step. The connection to model-agnostic meta-learning is important: training optimizes not merely present behavior, but behavior after adaptation.
This approach carries costs in the authors’ implementation. The original system must be retained to constrain changes during editability training, and optimization requires differentiation through the adaptation procedure. Additionally, the system has already changed before a particular edit is requested.
KE supplies editability through a separate network. It reads the correction and generates a structured modification involving the ordinary gradient. This avoids some of ENN’s costs. MEND follows the same broad external-editor strategy but changes what the editor reads: it uses gradient factors instead of requiring the editor to translate raw text directly into a parameter intervention.
Intervention is different from probing
The authors also distinguish their task from research that asks what information a language system contains. Work such as Language Models as Knowledge Bases? and How Can We Know What Language Models Know? investigates access to factual information. Other cited work examines linguistic structure through probes.
These studies help characterize representations, but characterization does not automatically supply a correction procedure. Detecting that information is present, absent, or difficult to retrieve differs from changing it while preserving other behavior.
Model editing also overlaps with continual learning, where systems acquire new behavior without forgetting earlier capabilities. The paper’s scope is narrower. Its principal setting involves a correction or a simultaneous batch, rather than an extended history of learning across changing tasks.
The method, step by step
Specify what the edit should accomplish
The base system is a differentiable function with parameters θ. Given an input, it defines probabilities over possible outputs. The editor receives an edit input xₑ and a desired output yₑ. It produces new parameters θ′.
For classification, yₑ is a class label. For generation, it is a token sequence. The correction loss is negative log probability:
lₑ(x, y, θ) = −log pθ(y | x)
Here lₑ is the loss used to construct a correction, x is an input, y is its requested output, and pθ(y | x) is the probability assigned by parameters θ. Lower loss means the requested output receives greater probability.
An editing example also has an equivalence neighborhood, denoted N. This contains other input–output pairs that should become correct after editing with the original pair. A separate locality input, xloc, represents behavior that should remain stable.
The distinction matters during both training and evaluation. The exact correction tells the editor where to act. Neighborhood examples tell it how the correction should transfer. Locality examples tell it where the intervention should stop.
The paper summarizes target and neighborhood performance through edit success:
ES = E(x′ₑ,y′ₑ) ∼ N ∪ {(xₑ,yₑ)} [1{argmaxᵧ pθ′(y | x′ₑ) = y′ₑ}]
ES is edit success. The expectation averages over the original correction and its equivalence neighborhood. The indicator 1{…} is true when the highest-probability prediction under the edited parameters θ′ equals the required output y′ₑ. The expression argmax selects that prediction.
This definition measures whether the desired output wins, rather than merely receiving a higher score than before. It also means that ES combines different kinds of success. A low value can arise from failure on the original input, failure to generalize, or both.
Extract the gradient’s compact structure
Consider a fully connected layer with weight matrix Wℓ and input vector uℓ. The layer’s preactivation is:
zℓ₊₁ = Wℓuℓ
The subscript ℓ identifies the layer. Wℓ contains its weights, uℓ is the incoming activation vector, and zℓ₊₁ is the vector before the following nonlinearity. This linear operation is the point at which MEND exploits an exact mathematical property.
Write the loss derivative with respect to zℓ₊₁ as δℓ₊₁. Back-propagation already computes this error signal. For an individual contribution, the weight gradient is:
∇Wℓ L = δℓ₊₁uℓᵀ
L is the loss, ∇Wℓ L is its gradient with respect to the weight matrix, and the superscript T transposes uℓ. Multiplying the column vector δℓ₊₁ by the row vector uℓᵀ forms an outer product.
The identity follows from the layer’s linear structure. A particular weight connects an input coordinate to an output coordinate. Its derivative is the incoming activation at that connection multiplied by the downstream error at the corresponding output.
The appendix writes this entrywise:
∂L/∂Wℓⁱʲ = δℓ₊₁ⁱuℓʲ
The superscripts i and j identify output and input coordinates. The left side describes how the loss changes with the corresponding weight. The right side multiplies the error for output coordinate i by input coordinate j.
This factorization is the central source of efficiency. For a square matrix of width d, a direct gradient-to-update mapping would receive d² coordinates. The factors contain 2d coordinates. The authors discuss widths around 10⁴, where the difference makes a direct unrestricted mapping unattractive.
A batch or sequence requires care. Its full gradient is a sum of outer products, not necessarily a rank-1 matrix. The paper combines batch position and sequence position into a shared contribution index:
∇Wℓ L = Σᵢ₌₁ᴮ δℓ₊₁ⁱ(uℓⁱ)ᵀ
B counts contributions after that indexing convention. Each uℓⁱ and δℓ₊₁ⁱ belongs to an individual contribution. MEND transforms these contributions before summing them. It therefore preserves information that would disappear if the full gradient were aggregated first.
Transform factors and reconstruct an update
The editor concatenates the activation and error vectors:
zℓ = concat(uℓ, δℓ₊₁)
Here zℓ is the editor’s input vector, instead of the base layer’s preactivation used earlier. The operation concat joins the two vectors end to end. The paper uses this combined representation so the editor can condition its transformation on both the incoming activity and the correction’s error signal.
A small multilayer perceptron transforms the joined vector into another vector of the same size. Splitting the output yields a pseudoactivation and a pseudodelta. These terms identify learned update components; they are not ordinary activations from another forward pass.
The transformed matrix update is then reconstructed:
∇̃Wℓ = Σᵢ₌₁ᴮ δ̃ℓ₊₁ⁱ(ũℓⁱ)ᵀ
The tildes mark transformed quantities. The vector ũℓⁱ is the pseudoactivation, δ̃ℓ₊₁ⁱ is the pseudodelta, and ∇̃Wℓ is the resulting proposed update. As before, B indexes the contributions being combined.
The edited weights follow the learned direction:
W′ℓ = Wℓ − αℓ∇̃Wℓ
W′ℓ is the edited matrix, Wℓ is the original matrix, and αℓ is a learned scalar step size specific to the layer. This produces the correction in a single update rather than through an extended fine-tuning loop.
Learning and applying a targeted MEND edit
The steps in order.
The diagram includes both preparation and application. During preparation, the observed outcomes teach the editor. During application, its learned transformation is used for a new correction without repeating the entire editor-training process.
Keep the editor small
Factorization reduces the editor’s input size, but further choices control its parameter count. MEND uses low-rank weight matrices inside its own multilayer perceptron. Residual connections allow the learned transformation to be expressed as an adjustment to an existing input.
The editor has a single hidden layer. Its nonlinear activation is ReLU. The paper requires an activation that returns zero for a zero input, which supports its initialization strategy.
Parameter sharing provides another reduction. Layers with weight matrices of the same shape share editor parameters. For the transformer MLP structure discussed by the authors, this leads to 2 shared parameter sets, corresponding to the different matrix shapes within the feedforward block.
Sharing does not make every layer identical. Layer-specific scales and offsets modulate the editor’s hidden representation and output. The architecture therefore separates a reusable transformation from a smaller amount of layer-specific specialization.
This design answers a practical question: how can the editor learn something richer than a scalar gradient multiplier without becoming comparable in size to the system being edited? The answer combines compact inputs, low-rank internal mappings, and sharing across compatible layers.
Begin with an identity transformation
At initialization, MEND passes its factors through unchanged. This retains the ordinary gradient as the starting point. It does not begin by replacing a meaningful direction with an arbitrary transformation.
The implementation uses residual connections together with partially zero-initialized weights. The U factors in the editor are initialized to zero, while the V factors receive Xavier uniform initialization. The residual path then supplies the identity mapping before learning has modified the transformation.
This is related to the logic of residual learning: a useful baseline remains available while an additional branch learns how to alter it. The paper’s ablations show that this choice matters for editing quality.
Input scaling is another issue. Activation and error vectors can have very different magnitudes. The authors normalize individual dimensions using statistics collected over the edit-training data and sequence positions. Both types of vector are brought to zero mean and unit variance before being joined.
Normalization and identity initialization address different problems. Identity initialization provides a sensible starting function. Normalization improves the numerical conditions under which that function is learned. Removing either harms the reported editing behavior.
Train against transfer and preservation
Before training, the authors choose which weight matrices are editable. At each iteration, they sample a correction, equivalence examples, and a separately sampled locality example. The correction produces the raw gradient factors; the editor converts those factors into candidate parameter changes.
The edited system is then evaluated. Its probability on the required neighborhood answers supplies an edit loss. Its departure from the original predictions on locality data supplies a preservation loss.
The total training objective is:
Ltotal = cₑLₑ(θ′) + Lloc(θ, θ′)
Ltotal is the editor-training objective. Lₑ measures the edited system’s failure to produce required outputs. Lloc penalizes predictive changes on locality examples. The coefficient cₑ balances these terms, while θ and θ′ identify the original and edited parameters.
The authors use cₑ = 0.1 in their MEND experiments. They optimize the editor with Adam.
The parameters being trained are those of the editor and its associated update mechanism. The original base parameters are not optimized during this preparation. As a consequence, MEND avoids the higher-order gradient computation needed when training the original parameters to become easier to adapt.
Approximate locality for sequences
The conceptual locality criterion compares predictive distributions:
Eₓloc KL(pθ(· | xloc) ∥ pθ′(· | xloc))
KL denotes Kullback–Leibler divergence. The distributions pθ and pθ′ come from the original and edited systems. The expectation averages over locality inputs. A small value means the edit changes those predictive distributions little.
For an entire output sequence, computing this quantity exactly would require accounting for many possible continuations. The authors instead evaluate token distributions along sequences supplied by the dataset.
For question answering, the approximation is:
KLseq2seq ≈ (1/|yloc|) Σᵢ₌₁^|yloc| KL(pθ(· | xloc, yloc<ⁱ) ∥ pθ′(· | xloc, yloc<ⁱ))
The sequence yloc is the locality answer, |yloc| is its length, and yloc<ⁱ denotes its tokens before position i. The expression compares next-token distributions under the same supplied answer prefix, then averages across answer positions.
For autoregressive text, the analogous calculation uses the locality passage:
KLauto ≈ (1/|xloc|) Σᵢ₌₁^|xloc| KL(pθ(· | xloc<ⁱ) ∥ pθ′(· | xloc<ⁱ))
Here |xloc| is the passage length, and xloc<ⁱ is its prefix before position i. Both systems receive the same prefix. For FEVER’s binary predictions, the authors can instead compute the Bernoulli divergence exactly.
The sequence approximation assumes that dataset examples are informative about the original predictive distribution. The authors regard it as a practical compromise. It is not an exact assessment of every possible answer or continuation.
Experiments and results
The editing tasks
The experiments ask whether editing works across different output types and scales. Classification requires changing a binary decision. Question answering requires selecting a new answer sequence. Generation requires changing a continuation while preserving broader language behavior.
For question answering, the authors use zsRE, associated with Zero-Shot Relation Extraction via Reading Comprehension. Questions are paired with plausible alternative answers, and backtranslation supplies rephrasings for the equivalence neighborhood. The editing splits and prepared examples come from the earlier KnowledgeEditor work.
Alternative answers are not assumed to be true. Predictions from a BART-base question-answering system provide plausible candidates, followed by human filtering. This construction tests whether the editor can perform changes of the appropriate form, such as substituting an answer of the expected entity type.
For classification, FEVER supplies fact statements and their rephrasings. Requested labels are sampled with p=0.5 from a Bernoulli distribution. Locality statements are sampled separately from the correction.
The generation dataset contains roughly 68k editing pairs. Each input is a passage from Wikitext-103. A pretrained distilGPT-2 system supplies a 10-token target continuation. Its greedy continuation matches the sampled edit target in < 1% of cases, so the task typically requires a behavioral change rather than confirmation of the existing prediction.
For generation generality, the authors shorten the input by deleting an initial segment that can extend to half its length. The required continuation stays the same. This neighborhood tests stability under reduced context, rather than semantic paraphrase in the question-answering sense.
Preservation data follow the base task
The locality distribution changes with the system being edited. For systems trained on zsRE, unrelated zsRE questions supply preservation examples. For T5 systems fine-tuned on Natural Questions, locality is measured with Natural Questions instead.
Likewise, Wikitext supplies locality passages for the smaller generation setup, while OpenWebText is used for GPT-Neo and GPT-J. The authors choose these distributions to better reflect the data associated with the original systems.
This choice affects interpretation. A low drawdown means performance is mostly preserved on the selected distribution. It does not prove unchanged behavior everywhere, especially on semantically close cases that random sampling rarely encounters.
Baselines and shared editing locations
Ordinary fine-tuning, FT, optimizes the new correction until the requested label becomes the highest-likelihood output, using greedy decoding for sequence tasks. The procedure is limited to 100 steps.
FT+KL adds the locality penalty during application. The paper calls it an oracle-style comparison because it retains access to training examples when applying a correction. Its stronger information access makes it useful for asking whether preservation supervision alone solves the problem.
The learned comparisons are ENN and KE. ENN is run where its memory requirements permit. KE uses a separate network to generate a structured modification involving the gradient.
Within each dataset, methods edit the same selected parameters. For GPT-style systems and BERT, these are MLP weights from the last 3 transformer blocks, totaling 6 matrices. For BART and T5, the authors edit MLP weights in the last 2 blocks of both encoder and decoder, totaling 8 matrices.
This control matters because a method could otherwise benefit simply from receiving a more favorable editing location. It does not remove every implementation difference, but it makes the central comparisons more informative.
What the metrics mean
Edit success combines reliability on the original correction with accuracy over the equivalence neighborhood. Drawdown measures deterioration on preservation data.
For generation, drawdown is expressed as increased perplexity. Perplexity summarizes how well the system predicts the observed text; an increase indicates worse prediction. For classification and question answering, drawdown is an accuracy decrease.
These measurements answer complementary questions. High edit success shows that requested behavior was acquired. Low drawdown shows that measured background performance was preserved. Neither alone establishes a useful editor.
The authors report performance on validation data. Early stopping also uses validation behavior, with a subset of 500 examples. This is relevant when judging how independently the reported results assess choices made during training.
The largest tested systems
The large-scale generation experiments use GPT-Neo with 2.7B parameters and GPT-J with 6B parameters. The question-answering experiments use T5-XL with 2.8B parameters and T5-XXL with 11B parameters, fine-tuned on Natural Questions.
Across these large-scale settings, the authors report the strongest editing performance for MEND. Ordinary fine-tuning has lower edit success on generation and causes substantially greater perplexity drawdown. On question answering, it struggles with some equivalent formulations.
Adding the KL constraint reduces generation drawdown for GPT-Neo and GPT-J, but edit success suffers. This result shows that controlling background disturbance does not automatically teach the correction to generalize.
KE generally fails to deliver successful edits at this scale. ENN cannot be trained for these comparisons within the authors’ memory budget. The conclusion is therefore bounded by the tested implementations and environment: MEND supplies the effective combination of scalability and editing quality in these experiments.
The authors caution that unusually low drawdown for T5 may partly reflect incomplete convergence on question answering. An edit could also act as additional task training. That possibility weakens an interpretation in which low drawdown alone proves exceptionally precise factual replacement.
Smaller systems change the comparison
The small-scale experiments edit BERT-base on FEVER and BART-base on zsRE. For generation, the authors use distilGPT-2 fine-tuned on Wikitext2.
ENN is competitive here and performs best on the Wikitext task. MEND’s contribution is therefore not that every alternative loses on every problem. It is that its performance remains useful as size increases, while its editor can be trained without first modifying the original system.
Fine-tuning shows stronger overfitting in these smaller settings. The authors describe both poor transfer to neighborhood inputs and greater deterioration elsewhere. This supports their claim that the editing task requires more than merely driving the correction example’s loss downward.
Applying several edits together
The batch experiment uses BART-base and zsRE. Both MEND and ENN are trained and evaluated for the relevant batch size, with k drawn from {1,5,25,75,125}.
MEND forms a simultaneous update by adding the update computed for each correction. The results test whether individually constructed interventions can coexist, instead of assuming independence.
BART-base on zsRE, edit success with 25 simultaneous edits
MEND preserves substantially more requested corrections in the shared update.
The numbers
| System or setting | edit success % |
|---|---|
| ENN | 35 |
| MEND (this paper) | 96 |
For this setting, MEND’s accuracy degradation is less than 1%. The success rate and the preservation result should be read together: the intervention changes many requested answers without a comparably large decline on the evaluated background questions.
BART-base on zsRE, edit success with 125 simultaneous edits
MEND remains more effective as the batch becomes more demanding.
The numbers
| System or setting | edit success % |
|---|---|
| ENN | 11 |
| MEND (this paper) | 67 |
At this larger batch size, ENN has slightly lower accuracy drawdown. The comparison thus retains a tradeoff: MEND satisfies more corrections, while ENN preserves the measured background metric slightly better. The experiment does not show that additive editing remains effective indefinitely.
Resources and implementation
Every training run uses one GPU, either an NVIDIA RTX Titan or an A40. The experiments do not employ gradient checkpointing. The largest T5 system requires bfloat16 to fit, and the authors estimate its full-precision training memory by doubling the measured bfloat16 usage.
The implementation uses PyTorch and Hugging Face Transformers. The Higher library supports the differentiable editing loops and ENN’s bi-level optimization.
With the seed set to 0, training employs gradient accumulation and a batch size of 10. The stopping rule waits for 20,000 steps without validation-loss improvement, subject to a maximum of 500,000 training steps.
These details support the practical claim while also defining its limits. Memory feasibility depends on precision, implementation, and optimization choices. The paper demonstrates a working configuration, not a hardware-independent resource bound.
What the ablations show
Initialization is part of the method
Replacing identity initialization with Xavier/Glorot initialization lowers editing effectiveness. This comparison tests whether the editor benefits from beginning as a pass-through transformation.
The result supports the authors’ interpretation that the ordinary gradient is an informative prior. MEND’s job is to improve that signal for the editing objective. Starting from an arbitrary transformation makes it harder to preserve and refine the information already available.
This does not establish that identity initialization is optimal for every editor architecture. It establishes that removing it from the tested MEND design is harmful.
Normalization changes learnability
Removing input normalization also reduces performance. The authors report that removing normalization or identity initialization increases training time by roughly 10x.
Activation factors and error factors can differ greatly in magnitude. Without normalization, the editor must learn useful relationships while also coping with poor numerical scaling. The ablation shows that the resulting optimization difficulty affects the final intervention, not merely convenience during training.
The controlled comparison is especially valuable because normalization might otherwise appear to be routine implementation detail. Here it is part of what makes the compact gradient transformation work.
Sharing is an economical compromise
The parameter-sharing ablation asks whether each edited layer needs an independent editor. The authors find relatively little performance cost from sharing.
This supports a design in which much of the transformation is reusable across layers with compatible shapes. Layer-specific scales and offsets retain some flexibility without duplicating the complete editor.
The evidence concerns the tested architectures and editing locations. It does not prove that layers with matching dimensions always have interchangeable roles, or that the same editor transfers unchanged across independently trained systems.
Smaller outputs can still be useful
The paper tests variants that transform only activations, only error vectors, or whichever factor has lower dimension. These variants reduce editor size by leaving part of the original factorization intact.
The “only smaller” variant remains effective. For a rectangular matrix, transforming the shorter factor can substantially reduce the editor’s dimensional burden while retaining a useful intervention.
The authors use this result to motivate scaling beyond the systems they actually edit. They discuss cases where combined dimensions approach 10⁵ while the smaller dimension remains near 10⁴. This is an architectural argument for further experiments, not a demonstration of editing at every larger scale.
MLP editing outperforms attention editing
The attention comparison holds transformer blocks fixed while changing the matrices eligible for editing. Instead of MLP weights, the editor modifies query, key, value, and output projections.
Editing MLP weights is more effective in these experiments. For generation, attention editing worsens both edit success and drawdown. For T5 question answering, it reduces edit success.
The authors relate this to Transformer Feed-Forward Layers Are Key-Value Memories, which associates feedforward layers with interpretable information. They also offer a simpler possibility: MLP layers contain a large share of the parameters and have wider internal representations.
The comparison does not resolve these explanations. It identifies a favorable intervention location, while leaving open why that location works better.
Caching exposes the role of context
The caching baseline stores an edited input’s averaged final hidden state and its requested answer. A later input receives the stored answer if its representation is sufficiently close.
This works well for short, structured inputs. It is slightly stronger than MEND on zsRE and slightly weaker on FEVER in the authors’ comparison. It fails on Wikitext, where longer passages contain more unrelated and distracting information.
The threshold is task-dependent. The authors identify settings of 6.5 for FEVER, 3 for zsRE, and 2.5 for Wikitext, chosen to obtain drawdown comparable to MEND. They also examine larger and smaller thresholds.
The lesson is not that memory-based correction is inherently ineffective. It is that a pooled representation and a distance threshold may identify the relevant semantic neighborhood on one task while failing on another.
Limitations
The authors identify incomplete locality tests
The authors’ clearest limitation concerns overgeneralization. Randomly sampled locality inputs may be easy negatives: they differ so much from the correction that preserving them does not teach the editor where the difficult boundary lies.
The qualitative examples include distinct questions that resemble the edited question and incorrectly acquire its answer. Such a failure can coexist with good average drawdown because the affected cases may be rare under random sampling.
The authors suggest harder negative examples and alternative locality objectives. These are proposals for improvement. The paper does not establish that either remedy eliminates the failure.
A careful reader should therefore interpret locality as measured preservation under a particular sampling procedure. It is not a guarantee that every unedited fact or every nearby question remains unchanged.
Generality is narrower than knowledge integration
The authors explicitly acknowledge that backtranslated questions provide a limited test of generalization. Wikitext truncation is also a restricted neighborhood construction.
Recognizing another wording of the same question differs from using a corrected fact in a new inference. A system might learn the requested answer to a question about a public office while failing to update another answer implied by that officeholder’s status.
The paper proposes richer evaluations, potentially using counterfactual augmentation. It does not claim to have established comprehensive propagation through related knowledge.
This distinction also limits interpretation of ES. A high score demonstrates transfer within the constructed neighborhood. It cannot establish reasoning beyond that neighborhood without additional tests.
Targets measure controllability, not truth
The editing datasets intentionally include invented but plausible targets. A birthplace substitution can have the right semantic type while being factually false. Random FEVER labels and sampled continuations similarly test behavioral control rather than factual correctness.
The authors argue that such examples approximate the form of practical editing requests. Their qualitative assessment also examines correction of real errors. Still, the main evaluation asks whether the system can adopt a requested output, not whether the editor can determine which output deserves adoption.
That is a limitation of task scope instead of a defect in the experimental logic. A correction mechanism needs an external source of authority about the correction. MEND does not supply that source.
Long histories remain outside the main claim
The authors distinguish editing from continual learning. Most experiments concern an individual update or a simultaneous batch. Qualitative examples include sequential corrections, but those examples do not establish sustained behavior under a long maintenance history.
The batch results reveal that interactions become harder as more corrections share an update. They do not show how an editor should handle conflicting requests, superseded facts, or accumulated changes to the representation on which it was trained.
A careful reader should therefore avoid treating fast application as evidence of unlimited repeated use. Preparation cost may be amortized across requests, but lasting compatibility still needs measurement.
The comparisons depend on implementation choices
The authors describe several departures in their ENN reimplementation. It uses a single inner editing step for computational reasons, allows the inner learning rate to be learned, and simplifies the edit loss.
These choices are documented and motivated, but they matter to the comparison. ENN’s inability to run at the largest scale concerns the evaluated configuration. The paper notes that memory-saving techniques could help, although retaining the original system still imposes substantial cost.
Likewise, the experiments do not use gradient checkpointing. MEND’s resource advantage is well motivated by avoiding full-system adaptation and higher-order differentiation, but the memory measurements should not be read as immutable limits on all possible implementations.
The largest T5 memory estimate also depends on a precision conversion. It is an estimate derived from bfloat16 usage, instead of a direct full-precision training run.
Validation results constrain the strength of generalization claims
The authors report validation-set performance and use validation loss for early stopping. Their procedure provides a consistent comparison with prior work, but it does not offer the same separation as a final untouched test evaluation.
The experiments also use a fixed seed. That supports reproducibility of the reported runs, but a fixed-seed result does not characterize variability across initialization and sampling choices.
These are careful-reader limitations. They do not negate the comparative findings, but they qualify how confidently one can generalize small performance differences or assume identical outcomes in new settings.
Approximate preservation leaves unmeasured behavior
For sequence tasks, the locality objective compares distributions along dataset-provided token histories. It avoids the expense of comparing complete distributions over every possible answer sequence.
The authors explain why this approximation is practical and point to low drawdown as evidence that it works usefully. Nevertheless, preservation along supplied histories does not establish preservation along every continuation the edited system might generate.
This creates a distinction between the mathematical locality definition and its operational estimate. The same distinction appears between random locality samples and difficult neighboring inputs.
Scaling arguments are not scaling results
The paper’s lightweight variants suggest that the editor architecture could remain manageable for substantially larger systems. That suggestion follows from the dimensions being transformed and the observed usefulness of reduced variants.
It does not establish training stability, editing quality, or acceptable locality at those untested sizes. Larger systems may present additional numerical and behavioral difficulties even when the editor’s parameter count remains feasible.
The supported claim is that the proposed representation removes an important obstacle. It is not that every remaining obstacle has been tested away.
Editing has a dual-use risk
The authors state that targeted intervention can remove unwanted behavior or introduce it. A maintainer with an effective editor could insert hidden behaviors, vulnerabilities, or backdoors.
This risk follows from the task itself. MEND is trained to make requested outputs happen while preserving much surrounding behavior. That selectivity is useful for legitimate maintenance and potentially useful for concealing a malicious change.
The ethics discussion therefore complements the technical limitations. Even an editor that achieved perfect reliability, locality, and generality would still need trustworthy correction requests and accountable deployment.
What came after
MEND establishes a useful reference point: targeted intervention can be learned separately from the base system, and gradient structure can make that intervention practical at large scale. Its citation trail reaches later editing research, factuality surveys, memory-oriented work, and safety discussions. A citation establishes that the work engages with this earlier paper; it does not establish that it adopts MEND’s architecture or confirms its results.
Later work concerned with editing
Locating and Editing Factual Associations in GPT (2022) belongs to the subsequent literature on changing factual associations. Its stated subject places intervention location alongside editing effectiveness. The connection to MEND is the shared problem of changing factual behavior, but the citation information alone does not establish which parts of MEND’s method it retains or replaces.
PMET (2023) explicitly concerns precise editing in a transformer. Precision is central to the tension MEND measures through successful correction and limited collateral change. Its citation indicates a connection to that research problem; a specific account of its mechanism or comparative performance would require evidence beyond its title.
Transformer-Patcher (2023) presents itself around patching individual mistakes. That framing continues the maintenance perspective emphasized by MEND. The available citation does not establish whether its patches transform gradients, introduce separate components, or follow another procedure.
Editing Models with Task Arithmetic (2022) identifies arithmetic over task-related changes as its subject. It provides another place to examine the broader question of how parameter interventions can be represented and combined. The title does not justify equating task arithmetic with MEND’s sum of independently computed edits, and no such equivalence is established here.
Inspecting and Editing Knowledge Representations in Language Models (2023) brings inspection and intervention together in its stated scope. MEND already distinguishes observing knowledge from changing behavior. The later citation shows that this relationship remained an explicit research subject, without establishing a particular technical dependence.
Factuality and knowledge maintenance
A Review on Language Models as Knowledge Bases (2022) places editing within a broader concern about using learned systems as repositories of information. MEND contributes a maintenance question to that discussion: how can an answer be revised after training? The citation does not show which conclusions the review draws about MEND’s strengths or weaknesses.
Survey on Factuality in Large Language Models (2023) and Knowledge Conflicts for LLMs (2024) identify broader factual reliability and conflicting information as their subjects. Both are relevant to a limitation exposed by MEND: successfully installing a requested answer is different from determining truth or maintaining consistency among related statements. Their citations establish relevance, rather than evidence that either survey supplies a technical remedy.
Memory-assisted prompt editing (2022) explicitly concerns improvement after deployment through memory and prompt editing. This places it near the operational problem that motivates MEND, while naming a different intervention surface. The citation alone cannot establish its procedure, results, or relationship to MEND’s caching baseline.
HippoRAG (2024) names long-term memory as its subject. Its presence in the citation trail shows that MEND is discussed beyond direct parameter-editing work. It does not establish that the memory mechanism uses MEND or that memory and learned gradient editing are interchangeable.
Safety and selective behavioral control
Unlearn What You Want to Forget (2023) concerns selective unlearning. Detoxifying Large Language Models via Knowledge Editing (2024) explicitly connects editing with detoxification. These titles place selective behavioral change in settings beyond replacing an answer to a factual question.
MEND itself proposes reducing toxic generation as future work and warns that editing can also introduce harmful hidden behavior. The later citations show continued engagement with this broader control problem. They do not, by themselves, demonstrate that MEND solves unlearning, detoxification, or safety assurance.
The durable contribution is the separation of a requested change from the learned mechanism that implements it, together with a tractable representation of the update. Equally durable is the evaluation warning: an intervention can succeed on its target, transfer to paraphrases, and preserve average background performance while still changing the wrong neighboring cases. Later work must be assessed against those distinct obligations, rather than treating a successful replacement answer as the whole problem.
Cite
Cite as Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn and Christopher D. Manning. 2021. Fast Model Editing at Scale. arXiv:2110.11309.
@misc{mitchell2021fast,
title = {{Fast Model Editing at Scale}},
author = {Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn and Christopher D. Manning},
year = {2021},
doi = {10.48550/arxiv.2110.11309},
eprint = {2110.11309},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2110.11309}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/mitchell-2021-fast-model-editing-scale/
References
- Yonatan Belinkov, Nadir Durrani, Fahim Dalvi, Hassan Sajjad, and James Glass. What do neural machine translation models learn about morphology? In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 861–872, Vancouver, Canada, July 2017. Association for Computational Linguistics. . URL https://aclanthology.org/P17-1080. our card
- Sid Black, Gao Leo, Phil Wang, Connor Leahy, and Stella Biderman. GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow, March 2021. URL https://doi.org/10.5281/zenodo.5297715. OpenAlex ↗ · Scholar ↗
- Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. Neural Information Processing Systems, 2020. our card
- Wuyang Chen, Wei Huang, Xianzhi Du, Xiaodan Song, Zhangyang Wang, and Denny Zhou. Auto-scaling vision transformers without training. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=H94a1_Pyr-6. OpenAlex ↗ · Scholar ↗
- Alexis Conneau, German Kruszewski, Guillaume Lample, Loïc Barrault, and Marco Baroni. What you can cram into a single $&!#* vector: Probing sentence embeddings for linguistic properties. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2126–2136, Melbourne, Australia, July 2018. Association for Computational Linguistics. . URL https://aclanthology.org/P18-1198. our card
- Damai Dai, Li Dong, Yaru Hao, Zhifang Sui, and Furu Wei. Knowledge neurons in pretrained transformers. CoRR, abs/2104.08696, 2021. URL https://arxiv.org/abs/2104.08696. OpenAlex ↗ · Scholar ↗
- Nicola De Cao, W. Aziz, and Ivan Titov. Editing factual knowledge in language models. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021. URL https://arxiv.org/pdf/2104.08164.pdf. our card
- Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017. URL http://proceedings.mlr.press/v70/finn17a.html. our card
- Sebastian Flennerhag, Andrei A. Rusu, Razvan Pascanu, Francesco Visin, Hujun Yin, and Raia Hadsell. Meta-learning with warped gradient descent. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=rkeiQlBFPB. OpenAlex ↗ · Scholar ↗
- Mor Geva, R. Schuster, Jonathan Berant, and Omer Levy. Transformer feed-forward layers are key-value memories. In EMNLP, 2021. our card
- Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Yee Whye Teh and Mike Titterington, editors, Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, volume 9 of Proceedings of Machine Learning Research, pages 249–256, Chia Laguna Resort, Sardinia, Italy, 13–15 May 2010. PMLR. URL https://proceedings.mlr.press/v9/glorot10a.html. OpenAlex ↗ · Scholar ↗
- Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019. OpenAlex ↗ · Scholar ↗
- Edward Grefenstette, Brandon Amos, Denis Yarats, Phu Mon Htut, Artem Molchanov, Franziska Meier, Douwe Kiela, Kyunghyun Cho, and Soumith Chintala. Generalized inner loop meta-learning. arXiv preprint arXiv:1910.01727, 2019. OpenAlex ↗ · Scholar ↗
- Demi Guo, Alexander Rush, and Yoon Kim. Parameter-efficient transfer learning with diff pruning. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4884–4896, Online, August 2021. Association for Computational Linguistics. . URL https://aclanthology.org/2021.acl-long.378. our card
- David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id=rkpACe1lx. OpenAlex ↗ · Scholar ↗
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. . our card
- John Hewitt and Christopher D. Manning. A structural probe for finding syntax in word representations. 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), pages 4129–4138, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. . URL https://aclanthology.org/N19-1419. our card
- Edward Hu, Yelong Shen, Phil Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models, 2021. our card
- Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. OpenAlex ↗ · Scholar ↗
- Zhengbao Jiang, Frank F. Xu, J. Araki, and Graham Neubig. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8:0 423–438, 2020. our card
- Divyansh Kaushik, Eduard Hovy, and Zachary Lipton. Learning the difference that makes a difference with counterfactually-augmented data. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=Sklgs0NFvr. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980. our card
- James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 1140 (13):0 3521–3526, 2017. ISSN 0027-8424. . URL https://www.pnas.org/content/114/13/3521. our card
- Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Matthew Kelcey, Jacob Devlin, Kenton Lee, Kristina N. Toutanova, Llion Jones, Ming-Wei Chang, Andrew Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: a benchmark for question answering research. Transactions of the Association of Computational Linguistics, 2019. our card
- Angeliki Lazaridou, Adhiguna Kuncoro, Elena Gribovskaya, Devang Agrawal, Adam Liska, Tayfun Terzi, Mai Gimenez, Cyprien de Masson d'Autume, Tomáš Kočiský, Sebastian Ruder, Dani Yogatama, Kris Cao, Susannah Young, and Phil Blunsom. Mind the gap: Assessing temporal generalization in neural language models. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=73OmmrCfSyy. OpenAlex ↗ · Scholar ↗
- Yoonho Lee and Seungjin Choi. Gradient-based meta-learning with learned layerwise metric and subspace. In International Conference on Machine Learning, pages 2933–2942, 2018. OpenAlex ↗ · Scholar ↗
- Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. Zero-shot relation extraction via reading comprehension. In Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pages 333–342, Vancouver, Canada, August 2017. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/K17-1034. our card
- Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-sgd: Learning to learn quickly for few shot learning. CoRR, abs/1707.09835, 2017. URL http://arxiv.org/abs/1707.09835. OpenAlex ↗ · Scholar ↗
- Yuxuan Ma. distilgpt2-finetuned-wikitext2. https://huggingface.co/MYX4567/distilgpt2-finetuned-wikitext2, July 2021. OpenAlex ↗ · Scholar ↗
- Michael McCloskey and Neal J. Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of Learning and Motivation, 24:0 109–165, 1989. ISSN 0079-7421. . URL https://www.sciencedirect.com/science/article/pii/S0079742108605368. OpenAlex ↗ · Scholar ↗
- German I. Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:0 54–71, 2019. ISSN 0893-6080. . URL https://www.sciencedirect.com/science/article/pii/S0893608019300231. our card
- Eunbyung Park and Junier B Oliva. Meta-curvature. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
- Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024–8035. Curran Associates, Inc., 2019. URL http://papers.neurips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf. our card
- Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. In AAAI, 2018. our card
- Fabio Petroni, Tim Rocktäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. Language models as knowledge bases? In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2463–2473, Hong Kong, China, November 2019. Association for Computational Linguistics. . URL https://aclanthology.org/D19-1250. our card
- Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners, 2019. URL https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf. OpenAlex ↗ · Scholar ↗
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 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
- R. Ratcliff. Connectionist models of recognition memory: constraints imposed by learning and forgetting functions. Psychological review, 97 2:0 285–308, 1990. OpenAlex ↗ · Scholar ↗
- Sachin Ravi and H. Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017. OpenAlex ↗ · Scholar ↗
- Adam Roberts, Colin Raffel, and Noam Shazeer. How much knowledge can you pack into the parameters of a language model?, 2020. our card
- Anton Sinitsin, Vsevolod Plokhotnyuk, Dmitry Pyrkin, Sergei Popov, and Artem Babenko. Editable neural networks. In ICLR, 2020. URL https://openreview.net/forum?id=HJedXaEtvS. OpenAlex ↗ · Scholar ↗
- Matthew Sotoudeh and Aditya V. Thakur. Provable repair of deep neural networks. ArXiv, abs/2104.04413, 2021. OpenAlex ↗ · Scholar ↗
- James Thorne, Andreas Vlachos, Christos Christodoulopoulos, and Arpit Mittal. FEVER: a large-scale dataset for fact extraction and VERification. In NAACL-HLT, 2018. our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 6000–6010, Red Hook, NY, USA, 2017. Curran Associates Inc. ISBN 9781510860964. our card
- Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021. OpenAlex ↗ · Scholar ↗
- Ruize Wang, Duyu Tang, Nan Duan, Zhongyu Wei, Xuanjing Huang, Jianshu ji, Guihong Cao, Daxin Jiang, and Ming Zhou. K-adapter: Infusing knowledge into pre-trained models with adapters, 2020. URL http://arxiv.org/abs/2002.01808. our card
- Shibo Wang and Pankaj Kanwar. Bfloat16: The secret to high performance on cloud tpus, 2019. URL https://cloud.google.com/blog/products/ai-machine-learning/bfloat16-the-secret-to-high-performance-on-cloud-tpus. [Online; accessed 28-September-2021]. OpenAlex ↗ · Scholar ↗
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. Huggingface's transformers: State-of-the-art natural language processing. CoRR, abs/1910.03771, 2019. URL http://arxiv.org/abs/1910.03771. our card
- Hongyi Zhang, Yann N. Dauphin, and Tengyu Ma. Residual learning without normalization via better initialization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=H1gsz30cKX. OpenAlex ↗ · Scholar ↗
- Chen Zhu, Ankit Singh Rawat, Manzil Zaheer, Srinadh Bhojanapalli, Daliang Li, Felix Yu, and Sanjiv Kumar. Modifying memories in transformer models, 2020. URL https://arxiv.org/abs/2012.00363. OpenAlex ↗ · Scholar ↗