Papers › Assessing Knowledge Editing in Language Models via Relation Perspective

Assessing Knowledge Editing in Language Models via Relation Perspective

15 Nov 2023arXiv:2311.09053archive 2025-07-28

Yifan Wei, Xiaoyan Yu, Huanhuan Ma, Fangyu Lei, Yixuan Weng, Ran Song, Kang Liu

Knowledge Editing (KE) for modifying factual knowledge in Large Language Models (LLMs) has been receiving increasing attention. However, existing knowledge editing methods are entity-centric, and it is unclear whether this approach is suitable for a relation-centric perspective. To address this gap, this paper constructs a new benchmark named RaKE, which focuses on Relation based Knowledge Editing. In this paper, we establish a suite of innovative metrics for evaluation and conduct comprehensive experiments involving various knowledge editing baselines. We notice that existing knowledge editing methods exhibit the potential difficulty in their ability to edit relations. Therefore, we further explore the role of relations in factual triplets within the transformer. Our research results confirm that knowledge related to relations is not only stored in the FFN network but also in the attention layers. This provides experimental support for future relation-based knowledge editing methods.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.09053")

Code

Syntology Ran 12 of 16 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 16 samples from 2 repositories, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

weiyifan1023/knowledge-edit-based-on-relation-perspective officialmentioned in papermentioned on GitHubpytorch report
weiyifan1023/RaKE officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 12 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
9ran
4unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

binary_log_probs weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/mend/losses.py official repository ran · our draft was wrong no licence file found · pointer only · 27659a9c234ffb11 · report
format_data weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/plot_pararel_results.py official repository ran no licence file found · pointer only · 2d71184c9abd680c · report
get_attributes weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/knowledge_neurons/patch.py official repository ran · our draft was wrong no licence file found · pointer only · 44b3ed63235aa487 · report
get_ff_layer weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/knowledge_neurons/patch.py official repository ran no licence file found · pointer only · 98b536c6d2cf8aa6 · report
hierarchical_subsequence weiyifan1023/knowledge-edit-based-on-relation-perspective/util/nethook.py official repository ran no licence file found · pointer only · 920b394e7ad80c53 · report
initialize_model_and_tokenizer_path weiyifan1023/RaKE/experiments/evaluate.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a471bbccc070ceee · report
kl_loc_loss weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/mend/losses.py official repository ran no licence file found · pointer only · 8b02eb3a3733d653 · report
multiclass_log_probs weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/mend/losses.py official repository ran no licence file found · pointer only · 8ccc8886c554a1ce · report
pararel weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/knowledge_neurons/data.py official repository ran no licence file found · pointer only · aa0c34b20d17945d · report
recursive_copy weiyifan1023/knowledge-edit-based-on-relation-perspective/util/nethook.py official repository ran no licence file found · pointer only · b26d72aba7d1232f · report
register_hook weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/knowledge_neurons/patch.py official repository ran no licence file found · pointer only · c10dba9c17ddf3cd · report
subsequence weiyifan1023/knowledge-edit-based-on-relation-perspective/util/nethook.py official repository ran no licence file found · pointer only · 440ff98c2b1ae1aa · report
get_model weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/mend/models.py official repository unverified no licence file found · pointer only · d9a5bcaef451668f · report
get_tokenizer weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/mend/models.py official repository unverified no licence file found · pointer only · 87e77d8c9c3620e1 · report
main weiyifan1023/RaKE/experiments/summarize.py official repository unverified no licence file found · pointer only · bc3ad506e968adf7 · report
pararel_expanded weiyifan1023/knowledge-edit-based-on-relation-perspective/baselines/kn/knowledge_neurons/knowledge_neurons/data.py official repository unverified no licence file found · pointer only · 3797fe7fbf596567 · report

Tasks

knowledge editing

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections