SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.19631 · 2024

Retrieval-enhanced Knowledge Editing in Language Models for Multi-Hop Question Answering

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2403.19631.json · badge: /api/ran/2403.19631.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
sycny/rae canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
QA_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sycny/rae/utils_func.py
pointer only (licence: NONE) · get_code("1817a570e2d473e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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_lines_by_entity Ran
ran; our contract draft was wrong, not the code
sycny/rae/preprocess/edit_KG.py
pointer only (licence: NONE) · get_code("2e1d018f8ddcd027")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

load_dataset Ran
ran; our contract draft was wrong, not the code
sycny/rae/preprocess/edit_KG.py
pointer only (licence: NONE) · get_code("c00af984e543d0dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

load_orig_entity Ran
ran; our contract draft was wrong, not the code
sycny/rae/utils_func.py
pointer only (licence: NONE) · get_code("69e888532c040d61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

load_triplets_dict Ran
ran; our contract draft was wrong, not the code
sycny/rae/preprocess/edit_KG.py
pointer only (licence: NONE) · get_code("807f2835b6163e5d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

match_func Ran
ran, honoured the contract we drafted
sycny/rae/utils_func.py
pointer only (licence: NONE) · get_code("9d6ff11a81f28788")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

getp Not yet run
unverified (harvested, no recorded run)
sycny/rae/wiki_api/wikidata.py
pointer only (licence: NONE) · get_code("e0139a00f5a1bfc9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

id2entity Not yet run
unverified (harvested, no recorded run)
sycny/rae/wiki_api/wikidata.py
pointer only (licence: NONE) · get_code("8adf2433e4058945")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sycny/rae 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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Repositories linked to this paper

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

Abstract

Large Language Models (LLMs) have shown proficiency in question-answering tasks but often struggle to integrate real-time knowledge, leading to potentially outdated or inaccurate responses. This problem becomes even more challenging when dealing with multi-hop questions, since they require LLMs to update and integrate multiple knowledge pieces relevant to the questions. To tackle the problem, we propose the Retrieval-Augmented model Editing (RAE) framework for multi-hop question answering. RAE first retrieves edited facts and then refines the language model through in-context learning. Specifically, our retrieval approach, based on mutual information maximization, leverages the reasoning abilities of LLMs to identify chain facts that traditional similarity-based searches might miss. In addition, our framework includes a pruning strategy to eliminate redundant information from the retrieved facts, which enhances the editing accuracy and mitigates the hallucination problem. Our framework is supported by theoretical justification for its fact retrieval efficacy. Finally, comprehensive evaluation across various LLMs validates RAE's ability in providing accurate answers with updated knowledge. Our code is available at: https://github.com/sycny/RAE.

For agents

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

get_harvested_code_for_paper("2403.19631")
get_code_for_paper("2403.19631")
have("2403.19631")

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

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

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

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

Connect an agent — have() is free.