Elamur Research

EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Models

Paper · 2024 · Peng Wang, Ningyu Zhang, Bozhong Tian et al.

Summary

A factual correction has a wider reach than the question that prompted it. When a large language model gives an outdated answer, a useful update should carry over to other ways of asking the same question. It may also need to inform answers that depend on the corrected fact. At the same time, the system should still answer unrelated questions as it did before. EasyEdit is an open-source framework for applying and comparing methods that try to meet these requirements without full retraining. It gives methods with very different mechanisms a common way to receive an edit and be evaluated.

An edit begins with an input and the answer it should elicit. EasyEdit’s Editor prepares the request, while Hparams supplies settings such as which layers to modify. The Method interface lets a selected algorithm act on the request. Some algorithms change internal weights, some use an external memory to decide when to intervene, and some supply the correction in the input itself. The Trainer prepares auxiliary components when a method needs them. Evaluate checks behavior before and after the intervention. The framework accommodates individual, batch, sequential, and multimodal editing. The authors release code, documentation, Colab tutorials, an interactive demonstration, and a video.

The main comparison uses LlaMA 2 (7B) and ZsRE, a factual question-answering dataset with rephrased questions and additional probes for related facts. Among the editors, SERAC and IKE exceed 99% on several measures, and MEND exceeds 90% accuracy on multiple measures. ROME performs substantially better than the constrained fine-tuning baseline FT-L even though the two methods change the same layer parameters. IKE comes close to perfect performance on the original edit requests and their rephrasings, although it sometimes changes responses outside the intended scope.

The related questions expose a harder problem. Most methods struggle when an answer requires combining the correction with an associated fact. SERAC fails to propagate the correction on this test, in spite of its strong performance on other checks. IKE exceeds 67% on this measure, called portability. The study gives researchers a practical way to see where an edit succeeds. A system may learn to give the desired answer and recognize the same question in different words while still struggling to use that answer as a premise.

Deep dive: EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Models

EasyEdit compares ways to update facts in language models and tests whether the corrections carry over to rephrased and related questions. · about 39 minutes to read

The problem and its context

What a factual correction has to accomplish

A deployed system can become factually unreliable in different ways. The world may have changed since its training material was collected, or the material may already have contained errors, biases, and inconsistencies. Either route can produce an answer a user has reason to correct. The paper treats this as a recurring problem of maintaining trained systems. Starting their training over whenever an error is found would make a small correction depend on a large and expensive operation.

The intended change can be local even when its implications extend beyond the original input. Suppose a question asks who holds an office and the editor supplies an updated answer. A differently worded question about the same office should reflect the update. A question about an attribute of the officeholder can also depend on it, since answering requires identifying the person first. An unrelated question may call for exactly the same behavior as before. These distinctions turn a seemingly simple correction into a question about where the intervention ought to apply.

The authors use knowledge editing for targeted interventions of this kind. Editing can begin with a single example of the desired behavior. The appeal is that the scope of the intervention should correspond to the scope of the correction, even though the underlying system has many uses. This is an objective to check empirically. An algorithm can make a small change in its parameters and have a wide behavioral effect. An algorithm can also leave the base parameters intact while changing a wide range of responses through the context it supplies.

The paper discusses altering undesirable behavior as well as repairing factual answers. Biased or toxic output is part of the motivation, alongside outdated information. In that broader setting, a change still has an intended scope, although the desired output may be harder to specify than a replacement name. The factual setting makes the basic experimental problem concrete. A researcher can specify a target answer, prepare equivalent requests and related questions, and inspect how the intervention affects each group.

Updating parameters or supplying information in context

The paper describes parameter-efficient fine-tuning alongside conventional fine-tuning as an established way to adapt a system. Both use training data to change its behavior through parameters. The authors mention delta tuning and LoRA as ways to restrict the adaptation. They identify resource cost, sensitivity to limited training examples, and the possibility of losing previously acquired capabilities. This last problem is called catastrophic forgetting. A stream of individual errors makes these concerns especially relevant because the update procedure may be invoked repeatedly on small amounts of new evidence.

Fitting a correction to a particular input also leaves open whether the new behavior will carry over. A training procedure can lower the error on the example it receives while still answering a paraphrase the old way. The problem becomes visible when the evaluation separates the original request from equivalent requests. Any claim that an update has corrected a fact across a range of inputs rests on evidence from such a range, as well as on success on the case used to make the change.

The paper’s other starting point is prompt augmentation. A user can put new information or demonstrations before a question, or a system can fetch relevant material automatically. In-context learning is the ability to use what is supplied in the input to guide the answer. Retrieval-augmented generation furnishes evidence through a retrieval step. In both cases, the information available when an answer is generated can extend beyond what was captured during training.

The authors note that these approaches can be sensitive to the prompt’s wording, the chosen demonstrations, and the retrieved passages. Supplying a correction in the prompt gives the generator information it can use, with success depending on how it responds to that information. There is also a practical limit on how much material can be included. The concern is particularly relevant when answering requires several pieces of current information. The paper cites work on the use of long inputs in discussing that constraint. Lost in the Middle

The boundary between these starting points and editing is partly a matter of purpose. A method can use context specifically to carry out a designated correction, which is how EasyEdit treats IKE. A parameter-based editor can use training operations, while narrowing those operations to a particular intervention. The framework consequently groups techniques by how they deliver the correction and measures their effects on the same types of questions.

Why earlier research looked inside the network

The authors draw on work that asks which factual associations a trained system can recover. A factual probe gives the system an input whose answer is known and checks whether the system can supply it. Such a probe reveals what can be elicited under the conditions of the test. It provides a behavioral starting point for further questions about how factual information is represented and which internal states help produce the answer. Language Models as Knowledge Bases? and How Can We Know What Language Models Know?

The paper highlights an account of feed-forward layers as key-value memories. A multilayer perceptron, or MLP, is the feed-forward component under discussion inside a transformer. In the memory analogy, a pattern in the incoming representation acts like a key, and the layer’s response contributes a value that helps shape the next prediction. The analogy gives a reason to investigate particular layers during factual recall. If altering a state at a particular location changes how a subject is completed, that location is a candidate for intervention.

Locating an influential component and designing an effective edit are distinct experimental steps. The first asks whether a component contributes to a prediction under a particular intervention. The second asks what happens when a persistent change is made there and evaluated across prompts. The authors discuss methods that update individual neurons and methods that revise a weight matrix in a selected layer or range of layers. Their account of ROME links the choice of an update site to earlier work tracing factual recall. Locating and Editing Factual Associations in GPT

Other approaches sidestep that search by learning how to produce the update or by deciding at answer time whether a stored correction applies. These methods pose different questions for an implementation. A learned updater needs a trained auxiliary component. A retrieval-and-routing approach needs a way to associate an incoming input with stored knowledge. A localized weight editor needs access to internal parameters and a specification of where it can act. Someone who wants to compare the resulting behavior has to accommodate those differences while presenting equivalent requests and evaluation cases.

The authors identify this engineering work as a barrier to comparison and adoption. Implementations differ in the form of their inputs, the way they configure the target, and the conditions under which they apply or accumulate edits. An experiment can consequently vary in several respects when a researcher switches from one method to another. EasyEdit addresses the part of that problem that a shared implementation can control. It gives researchers a common entry point for requests and evaluation while retaining the decisions that belong to each algorithm.

The method, step by step

From a correction to an editing request

The running example asks about the president of the United States and specifies Joe Biden as the desired answer. The paper uses it to demonstrate a MEND edit on LLaMA. The example describes the requested behavior at the time of the demonstration. Its role in the framework is to show how the same input and target can anchor the intervention and the subsequent checks. An evaluator can start by asking whether the edited system supplies the target on the original input. Equivalent and related questions then test the reach of that change.

The Editor is the entry point for this process. The caller supplies the input that identifies the correction, which the authors call the edit descriptor, and the desired output, called the edit target. An editing request can also include inputs used for assessment. Keeping these together lets the framework associate the probes with the edit that motivated them. The editing method receives a request that describes what should change. The evaluation cases give the outer workflow a way to judge how the change plays out.

The architecture is built on PyTorch and Hugging Face’s Transformers. The authors separate the choice of target, editing scenario, and algorithm. The target supplies the underlying architecture and access conditions. The scenario determines whether requests are handled independently, together, or in sequence. The algorithm determines where and how the correction takes effect. This separation is what makes the same outer workflow applicable to methods with incompatible internal designs.

How EasyEdit applies and evaluates a correction

The steps in order.

How EasyEdit applies and evaluates a correctionStep 1: Choose the target, editing method, and scenario1. Choose the target, editing method, and scenarioStep 2: Prepare the input, desired answer, and probes2. Prepare the input, desired answer, and probesStep 3: Load settings and train auxiliary components if needed3. Load settings and train auxiliary components if neededStep 4: Record responses before editing4. Record responses before editingStep 5: Apply the correction through the shared interface5. Apply the correction through the shared interfaceStep 6: Check the original, rephrased, related, and unrelated inputs6. Check the original, rephrased, related, and unrelated inputsStep 7: Restore or carry forward the edited state7. Restore or carry forward the edited state

The request preparation step matters because the same input and answer pair can be encoded differently. The paper distinguishes sequence-to-sequence systems from autoregressive systems. A sequence-to-sequence system has a decoder that receives target-side input during training. An autoregressive system predicts continuations from preceding text. For the latter, the descriptor and target are joined so that the method can improve the conditional probability of the intended continuation. The prepare_requests component handles preparation within the Editor workflow. Its purpose is to give a common editing request the form required by the selected setup.

A white-box target exposes its internal parameters to the editor. This makes it possible to select and change a particular weight matrix. A black-box target can be approached through its inputs and outputs. The authors discuss providing edited facts in context to systems such as GPT-4 as an option under that access restriction. A correction made this way is realized through the input used for generation. The access distinction therefore matters to which editing strategies a researcher can select.

The paper names editing examples spanning T5, GPT-J, GPT-NEO, and GPT2. It also lists examples for LLaMA, LLaMA-2, Mistral, and Qwen. These examples describe the breadth of the framework. The main factual benchmark uses the specific LlaMA 2 configuration discussed in the experiments. Multimodal editing is another supported scenario in the framework description. The central benchmark and the running example explain the workflow using text.

How the selected method intervenes

apply_to_model is the shared call implemented by the available methods. In software design terms, the authors use the Strategy pattern. The outer workflow invokes a common operation while the selected strategy supplies its own implementation. The request conveys the edit descriptor, target answer, and relevant evaluation data. For an editor that changes weights, the interface can return the edited weights. Methods that act through memory or context realize edited behavior through their respective mechanisms.

The memory-based group illustrates how much can vary under that interface. SERAC retrieves relevant edit information and uses a classifier to decide how to route a request. A classifier is a learned component that assigns an input to a category or decision here. Routing determines when the edited behavior should be used. The approach places considerable responsibility on identifying where a correction applies. It also depends on what the component that handles the routed request can produce.

GRACE associates edits with entries in a codebook, a collection of stored representations that the method can search. When it uses an entry, it replaces an internal hidden state with the corresponding parameters. A hidden state is the network’s working representation at a stage between input and output. This gives GRACE a way to make a stored correction effective within the computation. Its behavior on an unseen paraphrase depends in part on whether the method can relate that input’s internal representation to the stored edit.

IKE implements the correction through in-context learning. It supplies edited facts in the input and relies on the generator to give an answer that reflects them. The paper describes this as a gradient-free update. A gradient indicates how changing weights would change a training objective. IKE’s intervention is realized through context at answer time, so computing a weight update is unnecessary for that intervention. The added material can help answer requests that use the new fact and can also influence requests beyond the intended scope.

The meta-learning methods train a component that helps produce weight updates for subsequent edits. In this usage, meta-learning means learning part of the procedure by which a new example changes the system. KE uses a bidirectional long short-term memory network to predict the adjustment. That auxiliary network processes a sequence in both directions. MEND uses a low-rank treatment of the gradients to produce the parameter change. Low rank here refers to a compact representation of the update’s structure, which the learned editor can use to adjust the target weights.

The paper uses the following symbol for the learned adjustment.

Δ

Δ denotes the change to be added to the original weights. The edit request specifies the intended behavior, and the learned updater produces the adjustment for the selected parameters. This structure separates the training of the update mechanism from its application to a new correction. The work performed before editing consequently depends on the method as well as on the base system.

The locate-then-edit group selects a part of the network as the intervention site. KN uses a gradient-based procedure to identify and update particular neurons. ROME and MEMIT draw on causal interventions to locate MLP components associated with factual recall, then edit weight matrices. PMET uses a localization strategy inherited from MEMIT and also considers the role of multi-head self-attention. Self-attention lets positions in a sequence use information from other positions. The paper presents PMET as building on MLP editing while attending to patterns encoded by that mechanism.

The categories organize the methods by their main approach to applying a correction. A memory-based editor can still operate on a hidden state, and a method that produces weight changes can depend on an additional trained network. For somebody reading the comparisons, the more concrete distinctions are what the editor changes, what it must prepare in advance, and what it relies on when a later question arrives. The framework’s common interface makes those choices accessible at the same point in the workflow.

Specifying where to edit and what to train

Hparams stores the settings for the chosen algorithm. These can include the target architecture, the layers the algorithm may change, and an external network when the method needs one. Other settings can govern learning rate, optimization steps, and regularization. Regularization limits or shapes the changes made during optimization. The authors treat the identity of an editable layer as a hyper-parameter in its own right because the location can influence the success and reach of a correction.

The paper gives transformer.h.5.mlp.fc_out as an example of the module naming convention. In the GPT-J example, that name selects the output linear layer in the specified MLP. A linear layer applies a learned weight matrix to its input. The selected weights can be adjusted while the other parameters are frozen. This is a precise instruction about which part of the computation the editor may modify. It describes the allowed parameter change, while the probes establish the resulting behavioral change.

The framework can load settings from YAML or JSON using a shared Hyperparams base class. The same configuration abstraction can initialize the Trainer. This matters when a method requires a learned classifier or a hypernetwork. A hypernetwork in this setting supplies parameters or parameter updates for another network. Training that component is a separate stage, after which the method participates in the ordinary edit-and-evaluate process.

The Trainer uses a shared BaseTrainer class with operations for running and validating training. Subclasses define the procedure needed by the algorithm. The paper mentions an editing loss, which measures failure to produce the desired correction, and a locality loss, which penalizes unwanted changes on inputs outside the edit’s intended scope. An editor can combine these quantities in its training objective. EasyEdit accommodates the strategy used by the individual method. The framework description specifies the role of these losses and the division of work between training and editing without prescribing a single training objective for every algorithm.

There are therefore two kinds of examples a reader should distinguish. An edit request supplies a change to be enacted on a particular target. Training examples for an auxiliary component are used to teach the component how to perform its role across cases. The use of a trained component at edit time can make the request look similar to a request for a training-free method, even though the total preparation differs. The paper’s comparison of method capabilities explicitly records whether additional training is required.

What counts as the same edit

The paper’s notation starts by pairing the input with the intended answer.

zₑ ∼ [xₑ, yₑ]

The subscript e identifies an edit. The symbol xₑ denotes its descriptor, and yₑ is the target answer. The brackets collect the pair, and zₑ denotes the resulting editing instance. The sign ∼ indicates how the authors represent or construct the instance from those elements. The evaluation works with a specified input and target.

The base system is written as f with its parameters attached as a subscript. The task formulation assumes that its existing answer differs from the wanted one.

f(θ; xₑ) ≠ yₑ

Here f denotes the prediction function. In this rendering, θ appears before the semicolon as the parameter setting and xₑ after it as the input. The inequality says that the base prediction differs from yₑ, the desired answer. The semicolon distinguishes parameters from the input. This assumption in the appendix motivates a correction whose effect can be observed on the original prompt.

The desired behavior after the edit is expressed as follows.

f(θₑ; xₑ) = yₑ

Here θₑ represents the edited parameter setting in the paper’s main evaluation notation. The function f is evaluated on the edit descriptor xₑ, and the equality requires it to return the intended value yₑ. The framework also admits editors that achieve the output through context or auxiliary state. The parameter notation expresses the target behavior compactly, and the method descriptions specify where the intervention itself resides.

S(zₑ) denotes the scope of edit zₑ. This is the set of inputs whose correct answer is affected by that correction. The in-scope and out-of-scope probes represent the two sides of that definition.

I(xₑ) ∼ {x′ₑ | x′ₑ ∈ S(zₑ)}

I(xₑ) denotes the in-scope inputs associated with descriptor xₑ. The variable x′ₑ is another input examined in connection with the edit. The braces mark a set, the vertical bar means “such that,” and ∈ denotes membership. S(zₑ) is the scope of the editing instance zₑ. Here ∼ links the sampled or represented collection of probes to the set of eligible inputs. A differently worded request for the same corrected fact is a natural member.

O(xₑ) ∼ {x′ₑ | x′ₑ ∉ S(zₑ)}

O(xₑ) denotes out-of-scope inputs associated with descriptor xₑ. The braces again specify a set of possible inputs x′ₑ, and the vertical bar introduces the condition for inclusion. The symbol ∉ means that the input falls outside S(zₑ), the scope of the edit. The sign ∼ relates the probe collection to that set. These questions give the evaluator a basis for checking whether unrelated behavior is preserved.

A related question can belong within the intended reach of the change while asking for an answer other than yₑ. The paper assesses such cases through portability. A paraphrase presents the same underlying request in different words. A portability probe presents a request whose answer depends on the updated fact and some associated knowledge. Both can be relevant to the edit, but the type of inference they require differs. The authors use separate measures to keep that distinction visible.

Handling individual requests, batches, and sequences

The appendix defines 𝒳ₑ as the full collection of inputs to be edited. Each request supplies a corresponding answer. When the study concerns single-instance editing, the evaluator applies a correction, measures behavior, and restores the original weights before evaluating the next independent correction. The paper writes the idealized optimization in terms of a mismatch between the prediction and the target.

θ′ ← arg min over θ ‖f(θ; xₑ) − yₑ‖

θ′ denotes the edited parameter setting in the appendix. The left arrow assigns the result of the minimization to it. “arg min over θ” means to select a setting of the parameters θ that minimizes the expression that follows. The function f uses that setting and the edit input xₑ. The minus sign and norm bars express a discrepancy between the prediction and target yₑ. The formula describes the objective of matching the requested behavior. It leaves the specific prediction representation and loss implementation to the method.

Batch editing handles several requests together. The paper describes the batch size as small relative to the whole collection.

N ≪ |𝒳ₑ|

N is the number of simultaneous edit requests, and 𝒳ₑ is the full collection of inputs to be edited. The single vertical bars denote the collection’s size. The relation ≪ says that N is much smaller. The batch-processing option can send chunks of requests to methods that support this form of editing.

θ′ ← arg min over θ ∑ₑ₌₁ᴺ ‖f(θ; xₑ) − yₑ‖

The arrow assigns a minimizing parameter setting θ to θ′. The sum, marked ∑, runs over the edit index e from 1 through N, the batch size. For each indexed request, f gives the prediction under θ on input xₑ. The subtraction and norm bars express its discrepancy from the associated target yₑ. “arg min over θ” selects the parameter setting that minimizes the aggregate. Evaluation occurs after the batch, and the appendix describes restoring the original weights before moving to another batch.

A batch can reveal interaction among corrections applied together. Each request contributes to the objective for the same edited state, so the method has to contend with their combined effects. This differs from a collection of independent runs in which each correction starts from the base weights. The point of stating the reset procedure is that the two workflows answer different empirical questions, even when they work through the same list of requests.

Sequential editing applies requests in order and carries earlier changes forward. Its desired end state is summarized by an objective over the full collection.

θ′ ← arg min over θ ∑(e = 1 to |𝒳ₑ|) ‖f(θ; xₑ) − yₑ‖

Here θ′ is the final edited setting, and the arrow assigns it the setting selected by “arg min over θ.” The summation ∑ covers edit indices e from 1 to the size of 𝒳ₑ, where the single vertical bars indicate the number of inputs in the full collection. At each xₑ, f gives the prediction associated with θ. The subtraction from the target yₑ and the norm bars specify the discrepancy included in the total. The equation describes the desired aggregate fit. The procedure in the appendix applies updates in sequence and evaluates after the full run.

This distinction between objective and procedure matters for interpreting a sequential result. Minimizing a sum describes the desired state across the corrections. A sequence of interventions reaches a state through a particular history. An edit that seems effective as soon as it is applied may interact with a later edit. Carrying forward the edited state makes the eventual evaluation sensitive to those interactions. The Editor offers a switch for retaining the pre-edit weights so they can be restored, or proceeding with the effects of earlier requests in place.

Experiments and results

The factual questions and their neighbors

The authors run the main comparison on LlaMA 2 in its 7B configuration. It is a decoder-only system, so the text of the input provides the preceding context from which an answer is generated. Keeping the base architecture and dataset fixed gives the comparison a common starting point. The interventions vary in how they change behavior and which auxiliary components they use.

ZsRE is a question-answering dataset used here to represent factual associations as questions with target answers. It supplies an equivalent question produced through back-translation. Back-translation passes text through another language and returns it to the original language, potentially changing the wording while preserving the intended request. The paper adopts a version that was expanded with portability cases. These ask about a fact related to the object of the updated association.

The authors write the target object as o*. The letter o refers to the object of the relation, and the star identifies the target object of the edit. In the officeholder example, the answer specifying the person plays that role. A related question could require an additional fact about that person. This is the distinction between changing an association and making that change available to a subsequent inference. The actual portability evaluation confines the required connection to a single hop between facts.

The comparison includes the conventional editing baseline FT-L, taken from the ROME work. FT-L fine-tunes parameters in one MLP layer and bounds the weight changes with an infinity norm constraint.

L∞

L names the norm family as written in the paper, and the infinity symbol ∞ specifies the limit that tracks the largest absolute component of a change. Applied to the weight changes, it bounds their maximum individual magnitude. FT-L consequently makes a useful comparison with ROME because both modify the same layer parameters while following different rules for choosing the update. The baseline tests fine-tuning under this particular restriction.

The measures track different kinds of success

Reliability is average accuracy on the original edit instances. This asks whether a method can deliver the answer it was explicitly given as its target. The evaluation reuses the original prompt as a direct check that the intervention took effect. A method with high reliability has passed that check frequently across the editing cases.

Generalization is average accuracy on in-scope inputs. In ZsRE, an equivalent wording supplies a way to see whether the edit carries across a change of expression. The desired answer still comes from the original correction. The difficulty is recognizing that the altered wording calls for the same information. The measure is useful because matching a training input and consistently responding to a class of equivalent questions put different demands on an editor.

Locality compares responses on out-of-scope inputs with the base system’s responses. Agreement here measures preservation. A response can qualify as preserved under this definition because the intervention left it as it was, whatever its independent factual merits. The test is designed to detect side effects on sampled questions whose target answers the edit should leave alone.

Portability asks whether the correction can be used in related content. The evaluator looks for behavior consistent with the updated fact when the answer depends on a link to another fact. A method can therefore do well when the expected output is directly supplied in the edit request and struggle when it has to retrieve or infer an answer associated with that output. This measure is the paper’s test of the ripple effect of a correction. It concerns the intended propagation of the change within related cases.

The paper defines fluency and efficiency alongside the behavioral measures. Fluency uses a weighted average of bigram and trigram entropies. A bigram is a pair of consecutive tokens, and a trigram is a sequence of three. Entropy describes how distributed the observed sequence frequencies are. The measure uses that distribution as an indicator of diversity in generated text. Efficiency tracks editing time and video memory, or VRAM. In the comparison using LlaMA-7B, time is the wall-clock duration for 10 edits. The principal ZsRE results discussion centers on reliability, generalization, locality, and portability.

Strong direct edits and uneven transfer

The authors report that SERAC and IKE exceed 99% on several ZsRE measures with LlaMA 2 (7B). They describe IKE’s reliability and generalization as close to perfect. MEND exceeds 90% accuracy on multiple measures and surpasses ROME in reliability and generalization. The numerical comparison below shows the thresholds the paper reports for multiple measures. Each row represents a reported threshold, and the evaluated measures underlying these statements can differ by method.

Reported thresholds exceeded on multiple ZsRE editing measures

IKE and SERAC clear the higher reported threshold across several measures.

Reported thresholds exceeded on multiple ZsRE editing measuresMEND: 90MEND90SERAC: 99SERAC99IKE (this paper): 99IKE (this paper)99
The numbers
System or settingreported threshold %
MEND90
SERAC99
IKE (this paper)99

IKE’s near-perfect direct and paraphrase performance shows that supplying edited facts in context can be highly effective on these probes. Keeping context in the intervention also gives that information a way to affect an unrelated answer. The authors report a weakness in locality for IKE and connect it to the potential influence of the preceding prompt. The same route by which the correction helps an applicable request gives it an opportunity to intrude on another request.

ROME and MEMIT show relatively strong reliability and locality, together with weaker generalization. Those measures describe different behaviors of the same editors. A weight change can produce the requested answer when the edit prompt is repeated and leave many sampled unrelated answers intact. Equivalent wording can still expose cases where the corrected association is difficult to elicit. The paper’s discussion identifies this pattern in both methods without treating their successful original responses as evidence of complete generalization.

ROME also performs considerably better than FT-L on ZsRE. Both methods change the same layer parameters, so the comparison shows that sharing an edit site can yield different outcomes. The authors take the result as evidence against the effectiveness of the norm-constrained fine-tuning procedure in this setting. MEND’s stronger reliability and generalization relative to ROME show another route to effective updates. A learned adjustment can give good results without using ROME’s rule for editing the localized matrix.

GRACE generalizes poorly in this study. The authors suggest that decoder-only activations may lack the explicit semantic representation needed to connect differently worded requests reliably through its stored edits. KN also performs poorly in the comparison. The authors suggest it may suit smaller systems or tasks centered on knowledge attribution, which ask what part of an internal computation contributes to a prediction. These are proposed interpretations of the observed outcomes.

The correction as a premise

The portability results establish a different ordering of strengths. Most methods struggle to produce the downstream answer when the edited fact must be combined with knowledge associated with the target object. The single-hop design matters here. The paper observes the problem even when the evaluation requires one connection. This makes it possible to see a gap between reproducing a correction and applying it without setting up a long chain of reasoning.

SERAC is the sharpest example. Its strong scores on other measures coexist with complete failure to propagate the edited knowledge in the portability test. The authors attribute this to the smaller external system it uses in counterfactual routing. In this context, counterfactual routing handles cases to which the stored correction should apply. The authors argue that the external system has difficulty recalling the additional facts needed to answer portability questions. An edit can consequently be routed through the intended mechanism and still be insufficient for a question that depends on other knowledge.

IKE exceeds 67% on ZsRE portability in the LlaMA 2 (7B) comparison. This is the paper’s numerical evidence that context-based editing can carry a correction into associated questions. The result is a separate measurement from IKE’s near-perfect direct and paraphrase performance. The paper regards in-context learning as a promising mechanism for carrying edits into related facts because it gives the generator access to the correction while answering questions that also draw on what it already knows.

What the ablations show

The paper presents no dedicated ablation series and instead offers a same-layer comparison, contrasts among editing metrics, and analyses behind its default layer choices.

What the same-layer comparison isolates

FT-L and ROME give the study its clearest controlled comparison. The location of the adjustable parameters is shared. FT-L seeks a correction through constrained fine-tuning, while ROME uses its own localized editing procedure. Under the paper’s setup, ROME achieves substantially better results. The same site can therefore support outcomes that differ with the algorithm. The practical implication for interpreting this experiment is that evidence for a useful location leaves an important design choice open about how to update the weights there.

The control is the choice of parameters eligible for modification. The comparison changes the update mechanism as a whole. FT-L’s norm constraint is part of that mechanism, so the result describes the full baseline configuration. An experiment aimed specifically at the contribution of the constraint would need to vary the constraint within fine-tuning. The paper’s comparison answers the narrower question of how the baseline, as configured, performs against ROME at the common edit site.

MEND and ROME help place this comparison in context. MEND exceeds ROME on reliability and generalization, but the paper configures MEND as a learned editor and assigns it different layers by default. Its success shows that another method can improve performance on these measures. The comparison evaluates each method as a working system. Differences in where it edits and how it gets its update are both part of that result.

KN illustrates another distinction in the locate-then-edit family. The method’s selection of neurons can be useful for asking attribution questions, in the authors’ interpretation, even though it performs poorly on this editing benchmark. Attribution and editing ask different things of an intervention. In attribution, a researcher may be interested in which component influences recall. For editing, the researcher also needs the changed computation to produce a particular answer across the intended inputs and to preserve unrelated behavior.

How the defaults were chosen

The appendix reports how the authors choose edit sites for the Llama-2-7B example. For ROME they follow causal mediation analysis, an approach that examines how intervening on an intermediate state affects the resulting prediction. The reported tracing identifies an early site at the 5th layer. The strongest concentration described in the paper is at the final token of the subject. Here the subject is the entity that the factual question is about. If its name spans several tokens, its last token supplies the position singled out in the trace.

The result gives a concrete reason for assigning the edit to a particular MLP. A change to the intermediate state affects factual recall at that position under the tracing procedure. The default then uses a targeted weight edit in that part of the network. These are successive steps in the method. One supplies evidence about a state’s role in generating a prediction. The other applies that evidence to the choice of an editable module.

For MEMIT, the authors describe measuring the average indirect causal effect of the MLP modules. They compare interventions involving the MLPs and hidden states and report that the difference between the measured effects diminishes after the 8th layer. The selected range consists of the following layers.

ℛ = {4,5,6,7,8}

ℛ denotes the collection of MLP layers used as the critical range. The equality defines it, and the braces enclose the listed layer indices. Each digit is a layer position in the example architecture. MEMIT can distribute edits over this range. PMET adopts MEMIT’s localization strategy and considers multi-head self-attention in addition to the MLP updates described by the paper.

The MEND default uses MLP weights in the last 3 transformer blocks, for a total of 6 weight matrices. The authors follow the configuration in the earlier MEND work and describe a preference for editing MLPs rather than attention layers in this meta-learning setting. GRACE has a different basis for its defaults. The authors use pilot experiments to retain layers with consistently high edit success. One approach follows a setting inherited from the method’s earlier evaluation, while the other relies on preliminary trials for selecting a site.

These choices explain why “which layer?” has several answers even for the same base architecture. The target of an intervention depends on what the method does there. A matrix rewrite, a learned adjustment, and a replacement hidden state put different demands on an edit site. The appendix supplies the rationale for the reported defaults. The main ZsRE comparison therefore concerns methods with their chosen configurations.

How much the metric contrasts can explain

The SERAC results locate a behavioral weakness between applying a correction directly and using it for a related answer. Its high scores on earlier checks establish that the method can respond to the edit in the evaluated setting. Portability exposes a case where a component needs more than the direct target answer. The smaller external system is the authors’ explanation for that failure. The study evaluates an implemented SERAC configuration. An external system of a different size would be a new condition whose performance would need to be measured.

The authors’ explanation for GRACE is likewise tied to a plausible mechanism. For a stored edit to help a paraphrase, the representation used to access the edit has to supply a connection across different wordings. The study shows poor generalization in the tested decoder-only setting and proposes representational differences as a reason. A comparison that varied the architecture or the representation used for retrieval would give more direct evidence about that explanation.

IKE illustrates a different coupling. The contextual intervention supplies information that helps the original prompt, paraphrases, and some dependent questions. Because the intervention sits in the input, it can also affect answers beyond its intended scope. The measured locality weakness is consistent with this account. The strength of the paper’s evidence is the observed combination of high success on eligible prompts and some changes on unrelated ones. The experiment does not assign an independent effect to each aspect of the contextual setup.

Limitations

Limits the authors state

The authors describe shortcomings for particular methods in the results. On ZsRE, ROME and MEMIT generalize less effectively than they perform on the direct and locality checks. GRACE shows weak generalization in the evaluated architecture, and KN performs poorly in the reported editing comparison. IKE can influence inputs beyond the scope of the correction. SERAC’s strong direct results are accompanied by failure on portability. These qualifications are part of the paper’s account of performance, and they matter because each describes a different way an apparently successful edit can fall short.

The discussion of prompt augmentation identifies another limit relevant to editors such as IKE. The amount of material that can be supplied through the prompt is constrained by context length. The selected information and phrasing also influence whether the generator uses the supplied correction appropriately. The authors find suggestive results for context-based propagation in their experiment. Their account of how these systems use context explains why the evaluation conditions are part of that finding.

The ethics statement says that targeted intervention can be used to make a system produce more biased or toxic responses. The authors report manually inspecting their data and removing malicious or offensive editing material. This describes a step taken to curate the study’s data. The same statement frames the broader risk as a consequence of being able to alter behavior in a targeted way. The factual benchmark assesses how corrections act on specified questions. Evaluating resistance to intentionally harmful edits would require a different design.

Limits apparent from the experimental design

The main numerical findings come from one base architecture and the ZsRE setup. The framework’s examples cover additional architectures, and its design accommodates other modes of editing. Those examples establish breadth of implementation. Performance on each further combination calls for its own measurement. This matters in particular for explanations that appeal to decoder-only representations, since architectural variation is directly relevant to the proposed mechanism.

The paraphrase test depends on the kinds of equivalent questions that back-translation supplies. It gives the experiment a controlled way to vary wording while preserving the intended answer. Generalization across that sample says how well an edit handles the wording variations in the benchmark. It leaves open how the same edit behaves when a request is indirect, embedded in a longer exchange, or phrased in a way unlike the sampled neighbor.

Portability uses a single connection to a related fact. A result in this setup measures transfer across that kind of connection. A request that combined a longer chain of dependencies would involve additional facts and additional opportunities for the edited answer to affect the final result. The paper’s result that most methods struggle remains informative precisely because the connection in its test is short. The higher IKE result measures the same limited task.

The locality metric compares answers on sampled out-of-scope questions. It can reveal side effects where those questions expose them. The whole scope of a system’s behavior is much larger than the probe set, so a locality score describes preservation within the evaluation. A change in a broader skill may require a different kind of test from reiterating factual inputs that were intended to remain unaffected.

The scope definition also assumes that an evaluator can judge which inputs’ correct answers depend on a correction. A factual benchmark with organized associations makes that judgment tractable. In less structured use, the intended boundary can be harder to specify. Related information can connect through the identity of an entity, a relation, or a circumstance stated elsewhere in the input. The experimental distinction between locality and portability works because there is a basis for declaring those connections inside or outside the intended edit scope.

The same-layer finding supports a claim about FT-L as implemented. Its editable parameters and infinity norm constraint are central to the comparison. Fine-tuning procedures with other constraints, target layers, or training examples would give different experimental conditions. The authors’ broad objective is targeted maintenance with limited effects, while the measured evidence against the fine-tuning comparator comes from the narrower FT-L setup.

For the reported threshold comparisons, the strongest numerical claims are that SERAC and IKE exceed 99% on several metrics, MEND exceeds 90% on multiple metrics, and IKE exceeds 67% on portability. The statements about exceeding thresholds support those claims with the precision given. They describe a profile of results alongside qualitative comparisons such as the stronger locality of some weight editors and SERAC’s portability failure. An exact comparison between two methods on a particular metric requires the corresponding metric values.

Finally, the paper defines efficiency using editing time and graphics memory and describes a comparison timed over 10 edits on LlaMA-7B. The interpretation of editing time depends on the work included in that interval. Some methods have an auxiliary training stage. Others apply their intervention through information supplied during generation. The paper’s distinction between additional training and the measured editing operation is important when considering which costs the reported setup addresses. Long-running sequences raise a further issue, since the framework’s capacity to retain edits and the empirical durability of those edits are separate properties.

What came after

Editing objectives beyond factual replacement

The citing work spans surveys, applications, new benchmarks, and editing methods. The titles establish the direction of those contributions. A citation places the work in conversation with EasyEdit, while a claim that a particular study reused its software, configurations, or benchmark would require information about that study’s setup. The clearest connection is typically through the question it asks about the scope, mechanism, or evaluation of an edit.

One application takes unwanted behavior as the target of the intervention. The detoxification study investigates using knowledge editing to reduce toxic output. It picks up a motivation from EasyEdit’s introduction and ethics statement. Here the objective concerns the kinds of responses a system produces instead of the substitution of a single answer to a fact question. That changes the evaluation problem. A useful behavioral intervention has to show its effect across relevant inputs, with a test of unintended effects suited to that wider behavior. Detoxifying Large Language Models via Knowledge Editing

Learning to Edit considers alignment through knowledge editing. Its title places targeted changes in the effort to bring outputs into line with a desired behavior. EasyEdit’s workflow helps explain the connection. An edit names a desired response at an identifiable input, and its evaluation asks how far the change extends. With an alignment objective, the intended range of acceptable responses can be a central part of specifying what success means. Learning to Edit

The work on steering target atoms also addresses behavior control, through a named steering mechanism. Its title frames the problem of producing robust control beyond ordinary prompt engineering. EasyEdit already shows that choosing an intervention route, such as weights or input context, shapes both reliability and side effects. Steering contributes another direction for investigating how a targeted intervention can be expressed and maintained across inputs. The title supports that thematic connection without identifying a shared experimental protocol. Robust Behavior Control via Steering Target Atoms

The video editing work moves the subject of an intervention into video. EasyEdit includes multimodal editing in its framework description while demonstrating its central benchmark on text. In video, an evaluation has to consider how a correction applies to inputs carrying visual information. The cited title locates the contribution in editing systems that work with video and gives the multimodal direction a specific setting distinct from a factual text prompt. Editing the Moving World

Following an edit across languages and kinds of questions

Cross-lingual editing extends the question posed by EasyEdit’s paraphrase evaluation. ZsRE asks whether a correction carries to another expression of the same question. The cross-lingual study investigates editing across languages, making linguistic coverage a property to examine in its own right. Conceptually, this extends the equivalence test from changes of expression within a question set to changes in the language in which the fact is expressed or requested. Cross-Lingual Knowledge Editing

Retrieval-augmented multilingual editing brings together another pair of concerns raised by EasyEdit. Multilingual editing asks where the corrected behavior is accessible, and retrieval asks which external evidence can be supplied for a given input. Their combination makes the relationship between the requested language, retrieved information, and edited response part of the study’s subject. It connects most directly to EasyEdit’s distinction between internal weight changes and interventions that depend on external material. Retrieval-Augmented Multilingual Knowledge Editing

MLaKE approaches multilingual knowledge editing through a benchmark. This is the evaluation side of the agenda. A common benchmark gives competing methods a set of shared cases, just as the use of ZsRE gives the EasyEdit comparison a shared starting point for factual questions. Making multilingual editing the benchmark’s declared task brings language coverage into the setup, instead of treating it as incidental variation in the requests. MLaKE

BMIKE-53 puts in-context learning at the center of cross-lingual editing. This is closely related to the mechanism tested with IKE, which expresses corrections through context. The cross-lingual focus adds a question about where the intervention can be expressed and still be effective. The connection concerns the dependence of contextual correction on the relationship between the edit instruction and the question that later calls for it. BMIKE-53

Expanding what evaluation asks of an edit

The work on general abilities focuses on damage from editing and examines regularization as a response. It extends the concern behind locality to a broader object of evaluation. EasyEdit’s locality metric checks preservation on selected out-of-scope prompts. The later study’s title identifies general abilities as the behavior under examination, which can require tests selected to exercise those abilities. The use of regularization also connects to the preceding question of how to constrain an intervention while achieving its target. Model Editing Harms General Abilities

The Mirage of Model Editing revisits evaluation in settings described as “in the wild” by its title. This addresses the gap between passing a prescribed set of probes and performing in less controlled use. EasyEdit specifies what counts as the original edit, an equivalent request, an unrelated request, and a related factual inference. Work that revisits the evaluation under different conditions can examine how well those tests represent the questions users actually bring to an edited system. The Mirage of Model Editing

The benchmark on real-world knowledge injection asks about knowledge memorization in bidirectional systems. Its question shifts attention towards the architecture receiving the injection as well as the conditions of the new benchmark. EasyEdit’s main comparison fixes a decoder-only target and varies editing methods. A benchmark centered on whether bidirectional systems are better knowledge memorizers makes architecture itself part of the research question. The title poses that question without establishing the answer. A Benchmark for Real-world Knowledge Injection

FABLE identifies fine-grained fact anchoring as a technique for unstructured editing. The contrast in problem setup is between a prepared request with a clear factual target and material whose factual content needs to be identified in less structured form. Anchoring a particular fact becomes part of specifying the intended change. That connects to EasyEdit’s request design at an earlier stage, where deciding exactly what the input and target represent determines the later scope of evaluation. FABLE

Reason-KE++ addresses the process that leads to an edited answer. EasyEdit’s portability probe already goes beyond giving back the supplied target, since the answer depends on another fact. It scores the result of applying the correction. The later work makes the reasoning process itself part of the objective described in its title. That shifts the question towards whether the correction is used along a faithful route to the result. Reason-KE++

Maintaining edits as they accumulate

LOKA pairs conflict-aware updates with adaptive knowledge memory. Conflicting corrections are especially relevant in an editing setup that carries state forward. With independent edits, the next request can be tested from the original weights. In sequential use, new information can intersect with a stored correction or target a fact that has already been changed. LOKA’s declared focus makes recognition and handling of those conflicts part of the update problem. LOKA

QueueEDIT studies sequential editing through structural self-correction. EasyEdit defines the sequential scenario by applying new requests while preserving previous edits and evaluating the resulting state after the run. The QueueEDIT title places correction within that accumulating structure. The connection is to a specific question raised by the sequential setup. As edits build up, the maintenance strategy itself can affect whether earlier and later changes remain jointly usable. QueueEDIT

DKME examines coupled knowledge memory in lifelong editing. It belongs to the same line of inquiry about maintaining a growing editing history, with the organization of memory as its stated focus. EasyEdit makes the choice between restoring the base state and carrying edits forward explicit in the workflow. Lifelong editing takes the latter condition as a recurring problem. A memory mechanism then has to support behavior that reflects earlier changes as well as new ones. DKME

Where the broader citations fit

Some entries are broader treatments of large language systems and their evaluation. The survey addresses the field as a whole, while Large Knowledge Model is framed around perspectives and challenges for systems that handle knowledge. Their inclusion among citing works places EasyEdit in a wider discussion of how learned information is accessed, maintained, and evaluated. The survey also appears in EasyEdit’s own background. That overlap is grounds for describing a shared research context without assigning the survey an editing experiment. A Survey of Large Language Models and Large Knowledge Model

L-Eval concerns standardized evaluation for long-context systems. Its connection is through the practice of comparing systems under common conditions and through the role of input context in some editors. EasyEdit’s IKE results show why the context is part of the intervention being evaluated. L-Eval’s named subject is how to standardize evaluation when the context itself is long. Together these research directions make the input conditions explicit when assessing what a system can do with supplied information. L-Eval

Cite

Cite as Peng Wang, Ningyu Zhang, Bozhong Tian, Zekun Xi, Yunzhi Yao, Ziwen Xu, Mengru Wang, Shengyu Mao, Xiaohan Wang, Siyuan Cheng, Kangwei Liu, Yuansheng Ni, Guozhou Zheng and Huajun Chen. 2024. EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Models. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.acl-demos.9 · arXiv 2308.07269

@inproceedings{wang2024easyedit,
  title = {{EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Models}},
  author = {Peng Wang, Ningyu Zhang, Bozhong Tian, Zekun Xi, Yunzhi Yao, Ziwen Xu, Mengru Wang, Shengyu Mao, Xiaohan Wang, Siyuan Cheng, Kangwei Liu, Yuansheng Ni, Guozhou Zheng and Huajun Chen},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations)},
  year = {2024},
  doi = {10.18653/v1/2024.acl-demos.9},
  eprint = {2308.07269},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2024.acl-demos.9}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/wang-2024-easyedit-easy-use-knowledge-editing/

References

65 references, from the paper's own bibliography.

  1. Rohan Anil, Andrew M. Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, Eric Chu, Jonathan H. Clark, Laurent El Shafey, Yanping Huang, Kathy Meier-Hellstern, Gaurav Mishra, Erica Moreira, Mark Omernick, Kevin Robinson, Sebastian Ruder, Yi Tay, Kefan Xiao, Yuanzhong Xu, Yujing Zhang, Gustavo Hernandez Abrego, Junwhan Ahn, Jacob Austin, Paul Barham, Jan Botha, James Bradbury, Siddhartha Brahma, Kevin Brooks, Michele Catasta, Yong Cheng, Colin Cherry, Christopher A. Choquette-Choo, Aakanksha Chowdhery, Clément Crepy, Shachi Dave, Mostafa Dehghani, Sunipa Dev, Jacob Devlin, Mark Díaz, Nan Du, Ethan Dyer, Vlad Feinberg, Fangxiaoyu Feng, Vlad Fienber, Markus Freitag, Xavier Garcia, Sebastian Gehrmann, Lucas Gonzalez, Guy Gur-Ari, Steven Hand, Hadi Hashemi, Le Hou, Joshua Howland, Andrea Hu, Jeffrey Hui, Jeremy Hurwitz, Michael Isard, Abe Ittycheriah, Matthew Jagielski, Wenhao Jia, Kathleen Kenealy, Maxim Krikun, Sneha Kudugunta, Chang Lan, Katherine Lee, Benjamin Lee, Eric Li, Music Li, Wei Li, YaGuang Li, Jian Li, Hyeontaek Lim, Hanzhao Lin, Zhongtao Liu, Frederick Liu, Marcello Maggioni, Aroma Mahendru, Joshua Maynez, Vedant Misra, Maysam Moussalem, Zachary Nado, John Nham, Eric Ni, Andrew Nystrom, Alicia Parrish, Marie Pellat, Martin Polacek, Alex Polozov, Reiner Pope, Siyuan Qiao, Emily Reif, Bryan Richter, Parker Riley, Alex Castro Ros, Aurko Roy, Brennan Saeta, Rajkumar Samuel, Renee Shelby, Ambrose Slone, Daniel Smilkov, David R. So, Daniel Sohn, Simon Tokumine, Dasha Valter, Vijay Vasudevan, Kiran Vodrahalli, Xuezhi Wang, Pidong Wang, Zirui Wang, Tao Wang, John Wieting, Yuhuai Wu, Kelvin Xu, Yunhan Xu, Linting Xue, Pengcheng Yin, Jiahui Yu, Qiao Zhang, Steven Zheng, Ce Zheng, Weikang Zhou, Denny Zhou, Slav Petrov, and Yonghui Wu. 2023. Palm 2 technical report (http://arxiv.org/abs/2305.10403). our card
  2. Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, Binyuan Hui, Luo Ji, Mei Li, Junyang Lin, Runji Lin, Dayiheng Liu, Gao Liu, Chengqiang Lu, Keming Lu, Jianxin Ma, Rui Men, Xingzhang Ren, Xuancheng Ren, Chuanqi Tan, Sinan Tan, Jianhong Tu, Peng Wang, Shijie Wang, Wei Wang, Shengguang Wu, Benfeng Xu, Jin Xu, An Yang, Hao Yang, Jian Yang, Shusheng Yang, Yang Yao, Bowen Yu, Hongyi Yuan, Zheng Yuan, Jianwei Zhang, Xingxuan Zhang, Yichang Zhang, Zhenru Zhang, Chang Zhou, Jingren Zhou, Xiaohuan Zhou, and Tianhang Zhu. 2023. Qwen technical report (http://arxiv.org/abs/2309.16609). OpenAlex ↗ · Scholar ↗
  3. Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Biderman. 2021. GPT-Neo: Large Scale Autoregressive Language Modeling with Mesh-Tensorflow (https://doi.org/10.5281/zenodo.5297715). If you use this software, please cite it using these metadata. OpenAlex ↗ · Scholar ↗
  4. Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, et al. 2022. Improving language models by retrieving from trillions of tokens. In International conference on machine learning, pages 2206–2240. PMLR. our card
  5. 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. 2020. Language models are few-shot learners (http://arxiv.org/abs/2005.14165). our card
  6. Nicola De Cao, Wilker Aziz, and Ivan Titov. 2021. Editing factual knowledge in language models (https://arxiv.org/abs/2104.08164). our card
  7. Xiang Chen, Ningyu Zhang, Xin Xie, Shumin Deng, Yunzhi Yao, Chuanqi Tan, Fei Huang, Luo Si, and Huajun Chen. 2022. KnowPrompt: Knowledge-aware prompt-tuning with synergistic optimization for relation extraction (https://doi.org/10.1145/3485447.3511998). In Proceedings of the ACM Web Conference 2022. ACM. OpenAlex ↗ · Scholar ↗
  8. Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, and Mor Geva. 2023a. Evaluating the ripple effects of knowledge editing in language models (https://doi.org/10.48550/arXiv.2307.12976). CoRR, abs/2307.12976. OpenAlex ↗ · Scholar ↗
  9. Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, and Mor Geva. 2023b. Evaluating the ripple effects of knowledge editing in language models (http://arxiv.org/abs/2307.12976). OpenAlex ↗ · Scholar ↗
  10. Damai Dai, Li Dong, Yaru Hao, Zhifang Sui, and Furu Wei. 2021. Knowledge neurons in pretrained transformers (http://arxiv.org/abs/2104.08696). CoRR, abs/2104.08696. OpenAlex ↗ · Scholar ↗
  11. Ning Ding, Yujia Qin, Guang Yang, Fuchao Wei, Zonghan Yang, Yusheng Su, Shengding Hu, Yulin Chen, Chi-Min Chan, Weize Chen, Jing Yi, Weilin Zhao, Xiaozhi Wang, Zhiyuan Liu, Hai-Tao Zheng, Jianfei Chen, Yang Liu, Jie Tang, Juanzi Li, and Maosong Sun. 2022. Delta tuning: A comprehensive study of parameter efficient methods for pre-trained language models (http://arxiv.org/abs/2203.06904). OpenAlex ↗ · Scholar ↗
  12. Ning Ding, Yujia Qin, Guang Yang, Fuchao Wei, Zonghan Yang, Yusheng Su, Shengding Hu, Yulin Chen, Chi-Min Chan, Weize Chen, et al. 2023. Parameter-efficient fine-tuning of large-scale pre-trained language models. Nature Machine Intelligence, 5(3):220–235. our card
  13. Qingxiu Dong, Lei Li, Damai Dai, Ce Zheng, Zhiyong Wu, Baobao Chang, Xu Sun, Jingjing Xu, and Zhifang Sui. 2022. A survey for in-context learning. arXiv preprint arXiv:2301.00234. OpenAlex ↗ · Scholar ↗
  14. Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. 2023. Dissecting recall of factual associations in auto-regressive language models (https://doi.org/10.48550/arXiv.2304.14767). CoRR, abs/2304.14767. our card
  15. Mor Geva, Avi Caciularu, Kevin Wang, and Yoav Goldberg. 2022. Transformer feed-forward layers build predictions by promoting concepts in the vocabulary space (https://aclanthology.org/2022.emnlp-main.3). In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 30–45, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics. our card
  16. Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are key-value memories (https://doi.org/10.18653/v1/2021.emnlp-main.446). In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5484–5495, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. our card
  17. Anshita Gupta, Debanjan Mondal, Akshay Krishna Sheshadri, Wenlong Zhao, Xiang Lorraine Li, Sarah Wiegreffe, and Niket Tandon. 2023. Editing commonsense knowledge in GPT (https://doi.org/10.48550/arXiv.2305.14956). CoRR, abs/2305.14956. OpenAlex ↗ · Scholar ↗
  18. Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International conference on machine learning, pages 3929–3938. PMLR. OpenAlex ↗ · Scholar ↗
  19. Thomas Hartvigsen, Saadia Gabriel, Hamid Palangi, Maarten Sap, Dipankar Ray, and Ece Kamar. 2022. ToxiGen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection (https://doi.org/10.18653/v1/2022.acl-long.234). In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3309–3326, Dublin, Ireland. Association for Computational Linguistics. our card
  20. Thomas Hartvigsen, Swami Sankaranarayanan, Hamid Palangi, Yoon Kim, and Marzyeh Ghassemi. 2023. Aging with grace: Lifelong model editing with discrete key-value adaptors (http://arxiv.org/abs/2211.11031). OpenAlex ↗ · Scholar ↗
  21. Peter Hase, Mohit Bansal, Been Kim, and Asma Ghandeharioun. 2023. Does localization inform editing? surprising differences in causality-based localization vs. knowledge editing in language models (https://doi.org/10.48550/arXiv.2301.04213). CoRR, abs/2301.04213. our card
  22. Evan Hernandez, Belinda Z. Li, and Jacob Andreas. 2023. Inspecting and editing knowledge representations in language models (http://arxiv.org/abs/2304.00740). our card
  23. Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models (http://arxiv.org/abs/2106.09685). our card
  24. Zeyu Huang, Yikang Shen, Xiaofeng Zhang, Jie Zhou, Wenge Rong, and Zhang Xiong. 2023. Transformer-patcher: One mistake worth one neuron (http://arxiv.org/abs/2301.09785). our card
  25. Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. 2023. Survey of hallucination in natural language generation (https://doi.org/10.1145/3571730). ACM Computing Surveys, 55(12):1–38. our card
  26. Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b (http://arxiv.org/abs/2310.06825). OpenAlex ↗ · Scholar ↗
  27. Zhengbao Jiang, Frank F. Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? (https://doi.org/10.1162/tacl_a_00324) Transactions of the Association for Computational Linguistics, 8:423–438. our card
  28. Jean Kaddour, Joshua Harris, Maximilian Mozes, Herbie Bradley, Roberta Raileanu, and Robert McHardy. 2023. Challenges and applications of large language models (https://doi.org/10.48550/arXiv.2307.10169). CoRR, abs/2307.10169. our card
  29. Yoonho Lee, Annie S. Chen, Fahim Tajwar, Ananya Kumar, Huaxiu Yao, Percy Liang, and Chelsea Finn. 2023. Surgical fine-tuning improves adaptation to distribution shifts (http://arxiv.org/abs/2210.11466). OpenAlex ↗ · Scholar ↗
  30. Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. 2017. Zero-shot relation extraction via reading comprehension (https://doi.org/10.18653/v1/K17-1034). In Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pages 333–342, Vancouver, Canada. Association for Computational Linguistics. our card
  31. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:9459–9474. our card
  32. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2021. Retrieval-augmented generation for knowledge-intensive nlp tasks (http://arxiv.org/abs/2005.11401). our card
  33. Xiaopeng Li, Shasha Li, Shezheng Song, Jing Yang, Jun Ma, and Jie Yu. 2024. Pmet: Precise model editing in a transformer (http://arxiv.org/abs/2308.08742). our card
  34. Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. 2023a. Lost in the middle: How language models use long contexts. arXiv preprint arXiv:2307.03172. our card
  35. Tian Yu Liu, Matthew Trager, Alessandro Achille, Pramuditha Perera, Luca Zancato, and Stefano Soatto. 2023b. Meaning representations from trajectories in autoregressive models (http://arxiv.org/abs/2310.18348). OpenAlex ↗ · Scholar ↗
  36. Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2023. Locating and editing factual associations in gpt (http://arxiv.org/abs/2202.05262). our card
  37. Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau. 2022. Mass-editing memory in a transformer (http://arxiv.org/abs/2210.07229). OpenAlex ↗ · Scholar ↗
  38. Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn, and Christopher D. Manning. 2022a. Fast model editing at scale (http://arxiv.org/abs/2110.11309). our card
  39. Eric Mitchell, Charles Lin, Antoine Bosselut, Christopher D. Manning, and Chelsea Finn. 2022b. Memory-based model editing at scale (http://arxiv.org/abs/2206.06520). our card
  40. OpenAI. 2023. Gpt-4 technical report (http://arxiv.org/abs/2303.08774). our card
  41. Shirui Pan, Linhao Luo, Yufei Wang, Chen Chen, Jiapu Wang, and Xindong Wu. 2023. Unifying large language models and knowledge graphs: A roadmap (https://doi.org/10.48550/arXiv.2306.08302). CoRR, abs/2306.08302. our card
  42. Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. 2019. Pytorch: An imperative style, high-performance deep learning library (http://arxiv.org/abs/1912.01703). our card
  43. Fabio Petroni, Tim Rocktäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. 2019. Language models as knowledge bases? (https://doi.org/10.18653/v1/D19-1250) 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. Association for Computational Linguistics. our card
  44. Shuofei Qiao, Yixin Ou, Ningyu Zhang, Xiang Chen, Yunzhi Yao, Shumin Deng, Chuanqi Tan, Fei Huang, and Huajun Chen. 2023. Reasoning with language model prompting: A survey (https://aclanthology.org/2023.acl-long.294). In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5368–5393, Toronto, Canada. Association for Computational Linguistics. our card
  45. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. OpenAlex ↗ · Scholar ↗
  46. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer (http://arxiv.org/abs/1910.10683). CoRR, abs/1910.10683. our card
  47. Vinay Venkatesh Ramasesh, Aitor Lewkowycz, and Ethan Dyer. 2022. Effect of scale on catastrophic forgetting in neural networks (https://openreview.net/forum?id=GhVS8_yPeEa). In International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  48. Ruiyang Ren, Yuhao Wang, Yingqi Qu, Wayne Xin Zhao, Jing Liu, Hao Tian, Hua Wu, Ji-Rong Wen, and Haifeng Wang. 2023. Investigating the factual knowledge boundary of large language models with retrieval augmentation. arXiv preprint arXiv:2307.11019. our card
  49. Adam Roberts, Colin Raffel, and Noam Shazeer. 2020. How much knowledge can you pack into the parameters of a language model? (https://doi.org/10.18653/v1/2020.emnlp-main.437) In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5418–5426, Online. Association for Computational Linguistics. our card
  50. Chenmien Tan, Ge Zhang, and Jie Fu. 2024. Massive editing for large language models via meta learning (http://arxiv.org/abs/2311.04661). OpenAlex ↗ · Scholar ↗
  51. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023a. Llama: Open and efficient foundation language models (http://arxiv.org/abs/2302.13971). our card
  52. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023b. Llama 2: Open foundation and fine-tuned chat models (http://arxiv.org/abs/2307.09288). our card
  53. Ben Wang and Aran Komatsuzaki. 2021. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax. OpenAlex ↗ · Scholar ↗
  54. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Huggingface's transformers: State-of-the-art natural language processing (http://arxiv.org/abs/1910.03771). our card
  55. Tianxing Wu, Xudong Cao, Yipeng Zhu, Feiyue Wu, Tianling Gong, Yuxiang Wang, and Shenqi Jing. 2023. Asdkb: A chinese knowledge base for the early screening and diagnosis of autism spectrum disorder (http://arxiv.org/abs/2307.16773). OpenAlex ↗ · Scholar ↗
  56. Tianxing Wu, Haofen Wang, Cheng Li, Guilin Qi, Xing Niu, Meng Wang, Lin Li, and Chaomin Shi. 2020. Knowledge graph construction from multiple online encyclopedias. World Wide Web, 23:2671–2698. OpenAlex ↗ · Scholar ↗
  57. Yunzhi Yao, Peng Wang, Bozhong Tian, Siyuan Cheng, Zhoubo Li, Shumin Deng, Huajun Chen, and Ningyu Zhang. 2023. Editing large language models: Problems, methods, and opportunities (http://arxiv.org/abs/2305.13172). OpenAlex ↗ · Scholar ↗
  58. Lang Yu, Qin Chen, Jie Zhou, and Liang He. 2023. Melo: Enhancing model editing with neuron-indexed dynamic lora (http://arxiv.org/abs/2312.11795). OpenAlex ↗ · Scholar ↗
  59. Wenhao Yu, Chenguang Zhu, Zhihan Zhang, Shuohang Wang, Zhuosheng Zhang, Yuwei Fang, and Meng Jiang. 2022. Retrieval augmentation for commonsense reasoning: A unified approach (https://aclanthology.org/2022.emnlp-main.294). In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP 2022, Abu Dhabi, United Arab Emirates, December 7-11, 2022, pages 4364–4377. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  60. Ningyu Zhang, Xin Xie, Xiang Chen, Shumin Deng, Hongbin Ye, and Huajun Chen. 2022. Knowledge collaborative fine-tuning for low-resource knowledge graph completion. Journal of Software, 33(10):3531–3545. OpenAlex ↗ · Scholar ↗
  61. Yizhe Zhang, Michel Galley, Jianfeng Gao, Zhe Gan, Xiujun Li, Chris Brockett, and Bill Dolan. 2018. Generating informative and diverse conversational responses via adversarial information maximization (http://arxiv.org/abs/1809.05972). OpenAlex ↗ · Scholar ↗
  62. Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, Yifan Du, Chen Yang, Yushuo Chen, Zhipeng Chen, Jinhao Jiang, Ruiyang Ren, Yifan Li, Xinyu Tang, Zikang Liu, Peiyu Liu, Jian-Yun Nie, and Ji-Rong Wen. 2023. A survey of large language models (http://arxiv.org/abs/2303.18223). our card
  63. Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models (https://proceedings.mlr.press/v139/zhao21c.html). In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 12697–12706. PMLR. our card
  64. Ce Zheng, Lei Li, Qingxiu Dong, Yuxuan Fan, Zhiyong Wu, Jingjing Xu, and Baobao Chang. 2023a. Can we edit factual knowledge by in-context learning? (http://arxiv.org/abs/2305.12740) OpenAlex ↗ · Scholar ↗
  65. Rui Zheng, Shihan Dou, Songyang Gao, Yuan Hua, Wei Shen, Binghai Wang, Yan Liu, Senjie Jin, Qin Liu, Yuhao Zhou, Limao Xiong, Lu Chen, Zhiheng Xi, Nuo Xu, Wenbin Lai, Minghao Zhu, Cheng Chang, Zhangyue Yin, Rongxiang Weng, Wensen Cheng, Haoran Huang, Tianxiang Sun, Hang Yan, Tao Gui, Qi Zhang, Xipeng Qiu, and Xuanjing Huang. 2023b. Secrets of RLHF in large language models part I: PPO (https://doi.org/10.48550/arXiv.2307.04964). CoRR, abs/2307.04964. our card