SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.18785 · NeurIPS · 2024

Should We Really Edit Language Models? On the Evaluation of Edited Language Models

Qi Li, Xinglin Pan, Xiang Liu, Zhenheng Tang, Zeyu Li, Xiaowen Chu

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.18785.json · badge: /api/ran/2410.18785.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zjunlp/EasyEdit canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
lqinfdim/editingevaluation canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
binary_log_probs Ran
ran; our contract draft was wrong, not the code
zjunlp/EasyEdit/easyeditor/trainer/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from MemEIC/MemEIC, is pointer only (licence: NONE) · get_code("27659a9c234ffb11")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MemEIC/MemEIC, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_hidden_state Ran
ran; our contract draft was wrong, not the code
zjunlp/EasyEdit/easyeditor/util/nethook.py
code served (permissive licence) · get_code("73316c06cd2dccd6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Test case 1: output is a tensor directly
tensor_output = torch.randn(2, 4)

# Test case 2: output is a tuple with tensor as first element
tuple_output = (torch.randn(2, 4), torch.randn(2, 3))

# Test case 3: output is a list with tensor as first element
list_output = [torch.randn(2, 4), torch.randn(2, 3)]

# We'll use the tensor case as the primary argument
ARGS = {
    "output": tensor_output
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_mend_dataset_path Ran
ran; our contract draft was wrong, not the code
lqinfdim/editingevaluation/edit.py
pointer only (licence: NONE) · get_code("3d4ef690427737b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lqinfdim/editingevaluation when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

kl_loc_loss Ran
ran; our contract draft was wrong, not the code
zjunlp/EasyEdit/easyeditor/trainer/losses.py
code served (permissive licence) · get_code("bcc592aa5c1e2bb3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Test case 1: Non-sequence (2D), single output dimension
pre_2d = torch.randn(2, 1)
post_2d = torch.randn(2, 1)

ARGS = {
    "pre": pre_2d,
    "post": post_2d,
    "mask": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_mean Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zjunlp/EasyEdit/easyeditor/trainer/losses.py
code served (permissive licence) · get_code("e078eeed20f03838")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function
values = torch.randn(2, 4)
mask = torch.randint(0, 2, (2, 4)).bool()

ARGS = {
    "values": values,
    "mask": mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
recursive_copy Ran
ran; our contract draft was wrong, not the code
zjunlp/EasyEdit/easyeditor/util/nethook.py
pointer only (licence: MIT); the stored copy get_code serves, from TrustedLLM/UnKE, is pointer only (licence: NONE) · get_code("70f6ab8bde55420e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from TrustedLLM/UnKE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

replace_hidden_state Ran
ran; our contract draft was wrong, not the code
zjunlp/EasyEdit/easyeditor/util/nethook.py
code served (permissive licence) · get_code("a9cc0b3784406d31")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Test case 1: output is a Tensor
output_tensor = torch.randn(2, 4)
hidden_state_tensor = torch.randn(2, 4)

# Test case 2: output is a list
output_list = [torch.randn(2, 4), torch.randn(2, 3)]
hidden_state_for_list = torch.randn(2, 4)

# Test case 3: output is a tuple
output_tuple = (torch.randn(2, 4), torch.randn(2, 3))
hidden_state_for_tuple = torch.randn(2, 4)

# We'll test with the tensor case as the primary scenario
ARGS = {
    "output": output_tensor,
    "hidden_state": hidden_state_tensor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_model Not yet run
unverified (harvested, no recorded run)
zjunlp/EasyEdit/easyeditor/trainer/models.py
code served (permissive licence) · get_code("f581ae26fe0ddd9b")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
zjunlp/EasyEdit/easyeditor/trainer/models.py
code served (permissive licence) · get_code("2defe42cf1a7f301")
How it ran

no invocation recorded.

load_chat_template Not yet run
unverified (harvested, no recorded run)
zjunlp/EasyEdit/steer/models/get_model.py
code served (permissive licence) · get_code("6b9defc3514e3b3a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 5 the same month, 5 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
recursive_copy 48 other papers
29 dated earlier, 4 the same month, 14 later, 1 same year, order not determinable
2207.02774 (2022-07)
Local Relighting of Real Scenes
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2302.12461 (2023-02)
Analyzing And Editing Inner Mechanisms Of Backdoored Language Models
and 45 more not named here
binary_log_probs 28 other papers
16 dated earlier, 3 the same month, 8 later, 1 same year, order not determinable
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2310.10322 (2023-10)
Evaluating the Reversal Curse in Model Editing
2311.09053 (2023-11)
Assessing Knowledge Editing in Language Models via Relation Perspective
and 25 more not named here
kl_loc_loss 16 other papers
10 dated earlier, 1 the same month, 5 later
2310.10322 (2023-10)
Evaluating the Reversal Curse in Model Editing
2401.04700 (2024-01)
Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescue
2401.17623 (2024-01)
Neighboring Perturbations of Knowledge Editing on Large Language Models
and 13 more not named here
get_tokenizer 14 other papers
10 dated earlier, 1 the same month, 3 later
2310.10322 (2023-10)
Evaluating the Reversal Curse in Model Editing
2401.04700 (2024-01)
Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescue
2401.17623 (2024-01)
Neighboring Perturbations of Knowledge Editing on Large Language Models
and 11 more not named here
masked_mean 10 other papers
5 dated earlier, 1 the same month, 4 later
2206.06520 (2022-06)
Memory-Based Model Editing at Scale
2310.10322 (2023-10)
Evaluating the Reversal Curse in Model Editing
2406.11194 (2024-06)
In-Context Editing: Learning Knowledge from Self-Induced Distributions
and 7 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Model editing has become an increasingly popular alternative for efficiently updating knowledge within language models. Current methods mainly focus on reliability, generalization, and locality, with many methods excelling across these criteria. Some recent works disclose the pitfalls of these editing methods such as knowledge distortion or conflict. However, the general abilities of post-edited language models remain unexplored. In this paper, we perform a comprehensive evaluation on various editing methods and different language models, and have following findings. (1) Existing editing methods lead to inevitable performance deterioration on general benchmarks, indicating that existing editing methods maintain the general abilities of the model within only a few dozen edits. When the number of edits is slightly large, the intrinsic knowledge structure of the model is disrupted or even completely damaged. (2) Instruction-tuned models are more robust to editing, showing less performance drop on general knowledge after editing. (3) Language model with large scale is more resistant to editing compared to small model. (4) The safety of the edited model, is significantly weakened, even for those safety-aligned models. Our findings indicate that current editing methods are only suitable for small-scale knowledge updates within language models, which motivates further research on more practical and reliable editing methods. The details of code and reproduction can be found in Appendix F.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.18785")
get_code_for_paper("2410.18785")
have("2410.18785")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.18785.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.18785.svg)](https://syntology.ai/paper/2410.18785)

Connect an agent — have() is free.