Open Interpretability Models Contributors Research Posts About

Editing Large Language Models: Problems, Methods, and Opportunities

Source

Citation. Yunzhi Yao, Peng Wang, Bozhong Tian, Siyuan Cheng, Zhoubo Li, Shumin Deng, Huajun Chen and Ningyu Zhang. "Editing Large Language Models: Problems, Methods, and Opportunities". arXiv 2305.13172v3, 30 November 2023. Version 1 is from 22 May 2023, and version 2 from 11 October 2023. Paper. Code and data (EasyEdit). The affiliations are Zhejiang University, its joint knowledge-graph laboratory with Ant Group, and Donghai Laboratory. Shumin Deng is at the National University of Singapore (NUS-NCS Joint Lab). Peng Wang has equal contribution, and Ningyu Zhang is the corresponding author. Venue: EMNLP 2023, from the arXiv comments field ("EMNLP 2023. Updated with new experiments"). We did not check the proceedings page. Funding: the National Natural Science Foundation of China (No. 62206246), and Zhejiang, Ningbo and Yongjiang grants. Other funders are the CCF-Tencent Rhino-Bird fund, a Zhejiang University lab (CAD&CG) and the NUS-NCS Joint Laboratory. The paper gives no disclosure of tools that helped write it. It used GPT-4 to write some of its test questions.

Status. Planned. Issue #3374 (factual recall and editing) would use the paper's tests of an edit: reliability, generalisation, locality and portability. Any fix of the #4781 hallucination would use them too. The maintainer designs that fix campaign, and it has no issue yet.

Read. On 2026-11-18. The abstract page came through WebFetch. WebFetch returned the HTML only as a summary, so we downloaded the v3 HTML and extracted its text with a short script. We read that text ourselves: the abstract, Sections 1 to 7, Limitations, the ethics note, and Appendices A and B. Tables 1 to 11 came through as text. We did not see Figures 1 to 6, because they are images. So the batch, sequential and memory results (Figures 3, 4 and 5) are here only as the text describes them. We did not read the references or the PDF.

Summary

Claim. Methods that edit a model's facts lack a comparison under the same conditions. The paper defines the editing task and groups the methods. Then it compares them on the same models and data. On reliability, generalisation and locality, several methods do well. On portability, side effects and cost, current methods are "somewhat limited".

Method.

Findings, as the source reports them.

Setting Result
GPT-J, CounterFact, reliability / generalisation / locality (Table 1) ROME 99.80 / 86.63 / 93.61. MEMIT 99.90 / 73.13 / 97.17. SERAC 99.78 / 99.41 / 98.89
GPT-J, CounterFact, FT-L (Table 1) Reliability 99.90 and generalisation 97.53, but locality 1.02
GPT-J, CounterFact, KN (Table 1) Reliability 1.66, generalisation 1.38, locality 58.28
GPT-J, CounterFact, T-Patcher (Table 1) Reliability 100.00, generalisation 83.98, locality 8.37
GPT-J, ZsRE, KN (Table 1) Reliability 11.34, generalisation 9.40
T5-XL, ROME and MEMIT (Table 1) No result. The authors say that the methods fail to edit this model
OPT-13B, ZsRE, ROME (Table 2) Reliability 22.23, generalisation 6.08. The text says that a matrix in the update is not invertible on OPT-13B
GPT-NeoX-20B, ZsRE, ROME (Table 2) Reliability 99.34, generalisation 95.49, locality 99.79
Portability, GPT-J, Subject Replace / Reversed Relation / One-hop (Table 3) SERAC 17.79 / 1.30 / 5.53. ROME 37.42 / 46.42 / 50.91. IKE 88.77 / 92.96 / 55.38
Locality, GPT-J, Distract Neighbour (Table 4) T-Patcher 17.56, FT-L 9.48, ROME 50.35, MEMIT 60.47, IKE 66.04
Locality, GPT-J, PIQA after 100 sequential edits (Table 4) FT-L 49.56, MEND 48.86, ROME 52.12, MEMIT 74.62, IKE 75.33
Time for 10 edits on GPT-J (Table 5) MEND 0.51 s, ROME 147.2 s, T-Patcher 1864.74 s (CounterFact)
Training cost (Section 5.3) MEND on ZsRE: over 7 hours. SERAC: over 36 hours on 3 × V100
Sequential editing (text on Figure 4) ROME does well up to 10 edits, then degrades at 100. MEND degrades by 10. SERAC and T-Patcher stay stable

Where the claims go beyond the evidence

The authors state some limits themselves: models up to 20B only, no test of Llama-style architectures, and a comprehensive study of single edits only.

Use in this repo

It names the tests a fix must pass. Reliability, generalisation, locality and portability are four separate questions. A fix of #4781 must give " months" on "A week has seven days and a year has twelve", which is reliability. Generalisation and locality have ready prompt sets in docs/analyses/hallucination-shortlist.jsonl. It has 35 prompts. Of these, the filter keeps 6 hallucinations, 7 are right answers, and 22 are wrong in ways that the filter drops. "A dozen has twelve eggs and a year has twelve" also wants " months", so it tests generalisation. The 7 right answers test locality.

The #4781 error is not a stored wrong fact. Locate-then-edit methods (KN, ROME, MEMIT) assume that an FFN holds the fact as a key and a value. The #4781 answer route stands VERIFIED, with necessity 0.68, sufficiency 0.62 and patching 0.75 (changelog.d/4781.added.md). In it, the copy heads L3/H3, L4/H0 and L4/H7 carry " days" from the first clause. No verified unit supplies " months". So there is no located "year → months" key for a rank-one MLP edit to rewrite. The paper built and tested its methods on triples, and this failure is a copy.

Distract Neighbour is the same mechanism as the hallucination. The paper's test puts an edit sentence before an unrelated prompt, and models tend to repeat the edited fact. The #4781 route is that habit in pythia-70m: it copies a unit from an earlier clause. So a fix that puts text before the prompt, as IKE does, could make the model copy that text into other prompts. This is a risk to measure, not a result. IKE did best on Distract Neighbour in GPT-J (66.04), and pythia-70m is far smaller.

Single-neuron edits did poorly at 6B. KN doubles the activations of attributed neurons. On GPT-J it reached 1.66 reliability on CounterFact. T-Patcher adds one FFN neuron per mistake and reached 100.00, but its locality was 8.37. Both are edits at the registry's unit, the neuron. The result warns against the premise that clamping an explained neuron fixes an answer. The neuron-steering-tests skill clamps poles at 1, 2 and 4 × max_activation to test explanations, not to make fixes. Does Localization Inform Editing? tests that premise directly.

The repo already measures locality more finely than Eq. 4. open-interpretability coverage (openinterpretability/coverage.py, docs/analyses/registry-coverage.md) measures next-token loss on 64 held-out windows of 128 tokens. pole-effects (#3486) estimates each pole's effect on the loss. A loss on held-out text sees the probability shifts that top-1 agreement misses. These tools exist, but nothing in the repo yet runs them before and after an edit.

Sequential edits are the realistic case. The paper's default rolls the model back after each edit. ROME degrades by 100 sequential edits, and MEND by 10. A campaign that makes many fixes on one model faces this result.

Questions for the maintainer. These are inputs to the fix campaign, which the maintainer designs, so we open no issue for them: