SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.13006 · 2026

EviReform: Evidence-Guided Query Reformulation for Multi-Hop Graph Retrieval

Xinlong Xu, Yoshua Li

arXiv · PDF

Code that ran

9 of 9 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; 9 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2608.13006.json · badge: /api/ran/2608.13006.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
XrazyMee/EviReform canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
dataset_paths Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/database.py
code served (permissive licence) · get_code("2b57433774295907")
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 DatasetPaths. 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 tempfile
from pathlib import Path
import json
import sqlite3

# Create a temporary directory structure with the required files
temp_dir = tempfile.TemporaryDirectory()
data_dir = Path(temp_dir.name)

# Create a dataset subdirectory
dataset_name = "test_dataset"
dataset_root = data_dir / dataset_name
dataset_root.mkdir(parents=True, exist_ok=True)

# Create the required files
queries_file = dataset_root / 'queries.json'
queries_file.write_text(json.dumps([{"id": "q1", "text": "test query"}]))

corpus_file = dataset_root / 'corpus.json'
corpus_file.write_text(json.dumps([{"id": "d1", "text": "test document"}]))

index_file = dataset_root / 'index.sqlite'
conn = sqlite3.connect(str(index_file))
conn.close()

ARGS = {
    'data_dir': data_dir,
    'dataset': dataset_name
}
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 DatasetPaths — a DatasetPaths output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DatasetPaths 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
list_datasets Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/database.py
code served (permissive licence) · get_code("3be8ddc78ca5c72b")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.

from pathlib import Path
import tempfile
import os

# Create a temporary directory structure with the required dataset files
temp_dir = tempfile.mkdtemp()
data_dir = Path(temp_dir)

# Create a few valid dataset directories with all required files
dataset_names = ['dataset1', 'dataset2', 'dataset3']
for dataset_name in dataset_names:
    dataset_path = data_dir / dataset_name
    dataset_path.mkdir(exist_ok=True)
    
    # Create the required files for each dataset
    for filename in ('queries.json', 'corpus.json', 'index.sqlite'):
        (dataset_path / filename).touch()

# Create an incomplete dataset (missing one file) to test filtering
incomplete_dataset = data_dir / 'incomplete_dataset'
incomplete_dataset.mkdir(exist_ok=True)
(incomplete_dataset / 'queries.json').touch()
(incomplete_dataset / 'corpus.json').touch()
# Missing index.sqlite

# Create a file (not a directory) to test the is_dir filter
(data_dir / 'not_a_directory.txt').touch()

ARGS = {
    'data_dir': data_dir
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
normalize_answer Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/metrics.py
code served (permissive licence) · get_code("77114e88a1e17b9b")
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 re
import string

ARGS = {
    "value": "The Quick Brown Fox jumps over a lazy dog!"
}
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
open_readonly Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/database.py
code served (permissive licence) · get_code("19e5e844715fd7fa")
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 Connection. 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 sqlite3
import tempfile
from pathlib import Path

# Create a temporary SQLite database file
with tempfile.NamedTemporaryFile(suffix='.db', delete=False) as tmp:
    tmp_path = Path(tmp.name)
    
    # Initialize the database with some sample data
    conn = sqlite3.connect(str(tmp_path))
    cursor = conn.cursor()
    cursor.execute('CREATE TABLE test (id INTEGER PRIMARY KEY, name TEXT)')
    cursor.execute("INSERT INTO test (name) VALUES ('sample')")
    conn.commit()
    conn.close()

ARGS = {
    'path': tmp_path
}
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 Connection — a Connection output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Connection 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
paired_bootstrap_difference Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/statistics.py
code served (permissive licence) · get_code("03576d6fc95fafb9")
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 numpy as np

# Create sample paired data
# Two arrays of equal length representing metrics from two systems on the same queries
proposed = np.array([0.85, 0.92, 0.78, 0.88, 0.95, 0.81, 0.89, 0.87], dtype=np.float64)
comparator = np.array([0.82, 0.89, 0.75, 0.85, 0.93, 0.79, 0.86, 0.84], dtype=np.float64)

ARGS = {
    'proposed': proposed,
    'comparator': comparator,
    'resamples': 10000,
    'seed': 202707,
    'confidence': 0.95,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
retrieval_metrics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
XrazyMee/EviReform/src/evireform/metrics.py
code served (permissive licence) · get_code("203b84610cb9e5fd")
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 torch

torch.manual_seed(0)

# Define arguments for retrieval_metrics function
ranking = [5, 2, 8, 1, 9, 3, 7, 4]  # List of ranked item IDs
gold = frozenset([2, 8, 3])  # Frozenset of relevant item IDs
cutoffs = [3, 5, 10]  # List of cutoff points

ARGS = {
    'ranking': ranking,
    'gold': gold,
    'cutoffs': cutoffs
}
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
sha256_file Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/embeddings.py
code served (permissive licence) · get_code("cb1f4090fbd1ecb5")
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 hashlib
from pathlib import Path
import tempfile
import os

# Create a temporary file with some content
temp_dir = tempfile.mkdtemp()
temp_file_path = Path(temp_dir) / "test_file.txt"

# Write some content to the temporary file
with open(temp_file_path, 'wb') as f:
    f.write(b"Hello, this is test content for SHA256 hashing.")

ARGS = {
    'path': temp_file_path
}
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
stable_hash Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/embeddings.py
code served (permissive licence) · get_code("e96ce5ec575b7890")
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 hashlib
import json

# The function takes a 'payload' parameter that must be JSON-serializable
# It converts the payload to a canonical JSON string, then hashes it with SHA256

# Valid payloads for json.dumps with ensure_ascii=False, sort_keys=True:
# - dicts, lists, strings, numbers, booleans, None
# - anything that json.dumps can serialize

ARGS = {
    "payload": {
        "name": "example",
        "values": [1, 2, 3],
        "nested": {
            "key": "value",
            "number": 42
        },
        "boolean": True,
        "null_value": None
    }
}
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
top_indices Ran
ran; our contract draft was wrong, not the code
XrazyMee/EviReform/src/evireform/method.py
code served (permissive licence) · get_code("5f587b6e80468b74")
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 ndarray, ndim 1, dtype family int, shape (3,) 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 numpy as np

# Create test data for the top_indices function
scores = np.array([0.9, 0.1, 0.8, 0.2, 0.95, 0.05], dtype=np.float32)
count = 3

ARGS = {
    "scores": scores,
    "count": count,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (3,) — shape (3,) 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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
sha256_file 3 other papers
1 dated earlier, 2 later
2607.25886 (2026-07)
RSIBench-Data: Benchmarking Data-Centric Research for Recursive Self-Improvement
2609.04105 (2026-09)
Hardware-Aware FP4 FlashAttention-4
2609.13279 (2026-09)
The MODA General Attribute Suite: A Four-Track Evaluation Benchmark for Fashion Attribute Extraction

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

Multi-hop retrieval must recover passages that provide sufficient evidence together. An initial passage often resolves an entity or relation implicit in the question, making the missing evidence easier to describe only after retrieval begins. Graph retrieval improves access to related evidence through stored corpus structure, but its retrieval signal is commonly derived from the original question. Complementary evidence must then be reached through stored relations even when an observed passage provides a more direct semantic cue. We introduce EviReform, which separates revising the retrieval request from aggregating evidence in the graph. Retrieved source passages formulate residual queries for the unresolved information need. The original and residual retrieval signals are normalized separately, combined, and propagated between propositions that share entities. On 2WikiMulti-HopQA, HotpotQA, and MuSiQue, EviReform exceeds the strongest baseline by up to 5.59 Recall@5 points and 4.50 F1 points. These results show that observed evidence can guide graph retrieval toward the part of a supporting chain left underspecified by the original question. Code is available at https://github.com/XrazyMee/EviReform.

For agents

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

get_harvested_code_for_paper("2608.13006")
get_code_for_paper("2608.13006")
have("2608.13006")

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

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

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

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

Connect an agent — have() is free.