SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.acl-long.732 · ACL · 2024

MULFE: A Multi-Level Benchmark for Free Text Model Editing

Chenhao Wang, Kang Liu, Jun Zhao, Pengfei Cao, Yubo Chen, Zhuoran Jin, Daojian Zeng

Open in the Atlas

Code that ran

8 of 14 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; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 6 no recorded run), measured 2026-11-24; 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/2024.acl-long.732.json · badge: /api/ran/2024.acl-long.732.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
wchrepo/mulfe canonical (classifier label)
classifier basis: census
8 ran · 6 no recorded run
FunctionStatusWhere it lives
binary_log_probs Ran
ran; our contract draft was wrong, not the code
wchrepo/mulfe/evaluation/baselines/mend/losses.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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.

find_fact_lookup_idx Ran
ran, honoured the contract we drafted
wchrepo/mulfe/evaluation/baselines/memit/compute_z.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from LiuJinzhe-Keepgoing/NMKE, is pointer only (licence: NONE) · get_code("3b015e56c07f6355")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from LiuJinzhe-Keepgoing/NMKE, 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.

flatten_dict Ran
ran on a synthesized input
wchrepo/mulfe/evaluation/utils.py
code served (permissive licence) · get_code("fc1cb4f8e17c39aa")
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 dict. The image it ran in was not recorded. If your copy returns the same type 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 typing

def flatten_dict(d):
    to_process = list(d.items())
    output = {}
    while len(to_process):
        k, v = to_process.pop()
        if isinstance(v, typing.MutableMapping):
            to_process.extend([(f'{k}.{k_}', v_) for k_, v_ in v.items()])
        else:
            assert k not in output.keys(), 'Somehow ended up with duplicate keys'
            output[k] = v
    return output


# Test case 1: Simple flat dict
test_dict_1 = {
    'a': 1,
    'b': 2,
    'c': 3
}

# Test case 2: Nested dict
test_dict_2 = {
    'x': 10,
    'nested': {
        'y': 20,
        'z': 30
    }
}

# Test case 3: Deeply nested dict
test_dict_3 = {
    'level1': {
        'level2': {
            'level3': 42
        },
        'sibling': 'value'
    },
    'top': 100
}

# Test case 4: Mixed types
test_dict_4 = {
    'string': 'hello',
    'number': 42,
    'list': [1, 2, 3],
    'config': {
        'param1': 'value1',
        'param2': 2.5
    }
}

ARGS = {
    'd': test_dict_2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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_cloze_hint Ran
ran on a synthesized input
wchrepo/mulfe/evaluation/qa_pipeline.py
code served (permissive licence) · get_code("10d53b7b90078f22")
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 str. The image it ran in was not recorded. If your copy returns the same type 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.

ARGS = {
    'q': 'The capital of France is ___'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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_prompt_with_prefix Ran
ran on a synthesized input
wchrepo/mulfe/evaluation/qa_pipeline.py
code served (permissive licence) · get_code("960438a36d502c8d")
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 str. The image it ran in was not recorded. If your copy returns the same type 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)

# Analyzing the function:
# - query: string used in format()
# - context: string used in format(), default ''
# - answer_start: string used in format(), default ''
# - prefix: string concatenated to result, default ''
# - example_prompt_template: string with .format() call, default '{query}'

ARGS = {
    'query': 'What is the capital of France?',
    'context': 'France is a country in Europe.',
    'answer_start': 'The capital',
    'prefix': '[PROMPT] ',
    'example_prompt_template': 'Context: {context}\nQuestion: {query}\nAnswer start: {answer_start}'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
kl_loc_loss Ran
ran on a synthesized input
wchrepo/mulfe/evaluation/baselines/mend/losses.py
code served (permissive licence) · get_code("b5ffa288849b3969")
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.functional as F

torch.manual_seed(0)

# Test case 1: 2D input (not sequence), multi-class softmax
pre_2d = torch.randn(2, 4)
post_2d = torch.randn(2, 4)

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
multiclass_log_probs Ran
ran; our contract draft was wrong, not the code
wchrepo/mulfe/evaluation/baselines/mend/losses.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Wangzzzzzzzz/OTE-SE-Alignment, is pointer only (licence: NONE) · get_code("8ccc8886c554a1ce")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Wangzzzzzzzz/OTE-SE-Alignment, 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.

summarize Ran
ran on a synthesized input
wchrepo/mulfe/evaluation/summary.py
code served (permissive licence) · get_code("0a07c4044685d84b")
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 dict. The image it ran in was not recorded. If your copy returns the same type 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 math
import torch

torch.manual_seed(0)

# Construct valid results list
# Each result should have a 'metrics' dict with potential 'acc', 'nll', and 'tokens' keys
results = [
    {
        'metrics': {
            'acc': 0.95,
            'nll': 0.1,
            'tokens': 100
        }
    },
    {
        'metrics': {
            'acc': 0.92,
            'nll': 0.15,
            'tokens': 120
        }
    },
    {
        'metrics': {
            'nll': 0.12,
            'tokens': 110
        }
    }
]

metrics = ['acc', 'ppl']

ARGS = {
    'results': results,
    'metrics': metrics
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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)
wchrepo/mulfe/evaluation/baselines/mend/models.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Wangzzzzzzzz/OTE-SE-Alignment, is pointer only (licence: NONE) · get_code("d9a5bcaef451668f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Wangzzzzzzzz/OTE-SE-Alignment, 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. No invocation recorded.

get_module_input_output_at_words Not yet run
unverified (harvested, no recorded run)
wchrepo/mulfe/evaluation/baselines/memit/compute_z.py
code served (permissive licence) · get_code("9f4d5dc795e82230")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
wchrepo/mulfe/evaluation/baselines/mend/models.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Wangzzzzzzzz/OTE-SE-Alignment, is pointer only (licence: NONE) · get_code("87e77d8c9c3620e1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Wangzzzzzzzz/OTE-SE-Alignment, 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. No invocation recorded.

run_batch_greedymatch Not yet run
unverified (harvested, no recorded run)
wchrepo/mulfe/evaluation/qa_pipeline.py
code served (permissive licence) · get_code("55616581fe9b01c7")
How it ran

no invocation recorded.

run_batch_lm Not yet run
unverified (harvested, no recorded run)
wchrepo/mulfe/evaluation/lm_pipeline.py
code served (permissive licence) · get_code("ac89eb96af8302c0")
How it ran

no invocation recorded.

tokenize_prefix_and_target Not yet run
unverified (harvested, no recorded run)
wchrepo/mulfe/evaluation/utils.py
code served (permissive licence) · get_code("df6026b5a560a476")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 6 later) and 8 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
binary_log_probs 28 other papers
3 dated earlier, 8 later, 17 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
multiclass_log_probs 10 other papers
2 dated earlier, 2 later, 6 same year, order not determinable
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2311.09053 (2023-11)
Assessing Knowledge Editing in Language Models via Relation Perspective
2401.07453 (2024-01)
Model Editing at Scale leads to Gradual and Catastrophic Forgetting
and 7 more not named here
get_model 8 other papers
2 dated earlier, 2 later, 4 same year, order not determinable
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2311.09053 (2023-11)
Assessing Knowledge Editing in Language Models via Relation Perspective
2401.07453 (2024-01)
Model Editing at Scale leads to Gradual and Catastrophic Forgetting
and 5 more not named here
get_tokenizer 8 other papers
2 dated earlier, 2 later, 4 same year, order not determinable
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2311.09053 (2023-11)
Assessing Knowledge Editing in Language Models via Relation Perspective
2401.07453 (2024-01)
Model Editing at Scale leads to Gradual and Catastrophic Forgetting
and 5 more not named here
get_module_input_output_at_words 2 other papers
2 later
2510.22139 (2025-10)
Edit Less, Achieve More: Dynamic Sparse Neuron Masking for Lifelong Knowledge Editing in LLMs
2606.19679 (2026-06)
LOKI: Memory-Free Null-Space Constrained Lifelong Knowledge Editing
find_fact_lookup_idx 1 other paper
1 later
2510.22139 (2025-10)
Edit Less, Achieve More: Dynamic Sparse Neuron Masking for Lifelong Knowledge Editing in LLMs

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-24.

Repositories linked to this paper

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

Abstract

Adjusting the outdated behaviors of large langugae models (LLMs) after deployment remains a significant challenge. It motivates the model editing research, which is however mainly explored in a restricted task form with triplebased edit requests. Recent works have initiated a transition to a more practical and unified editing task that takes free-form text as edit requests. However, there are gaps in nuanced benchmark designs and re-evaluation of existing methods. To bridge the gaps, we introduce a multi-level benchmark for free text model editing (MULFE). The benchmark categorizes probe queries into three levels of generalization, ranging from basic literal memory to deeper understanding and reasoning. Based on the benchmark, we conduct extensive experiments across various base models, edit sizes, and editing methods, including adaptations of mainstream locate-and-edit and hypernetwork methods. The results highlight the inconsistent behaviors of edited models on different generalization levels. Higherlevel generalization remains a significant challenge. Based on the findings, we propose SIDE, a simple yet effective method based on in-context distillation to enhance the generalization performance. The benchmark dataset and evaluation scripts are publicly available at http://github.com/wchrepo/mulfe.

For agents

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

get_harvested_code_for_paper("2024.acl-long.732")
get_code_for_paper("2024.acl-long.732")
have("2024.acl-long.732")

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

curl https://syntology.ai/api/ran/2024.acl-long.732.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.acl-long.732.svg)](https://syntology.ai/paper/2024.acl-long.732)

Connect an agent — have() is free.