SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.24878 · 2026

GraphRareBench: An Auditable Graph-Evidence Benchmark for Phenotype-Driven Rare-Disease Diagnosis

Jiahao Xu, Jia Yang, Shuyuan Zheng, Qiyuan Li, Guiling Guo, Zhonghai Sun

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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; 4 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/2607.24878.json · badge: /api/ran/2607.24878.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
GUI0609/GraphRareBench canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
FunctionStatusWhere it lives
candidate_number_to_id Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/agent_audit.py
code served (permissive licence) · get_code("60389d0470fe623d")
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
import torch.nn as nn
from typing import Any

torch.manual_seed(0)

# Test case 1: row with candidate_display_ids as a list
row_with_display_ids = {
    'candidate_display_ids': ['id_001', 'id_002', 'id_003']
}

ARGS = {
    'row': row_with_display_ids
}
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
case_file Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/config.py
code served (permissive licence) · get_code("25aa7fbf49982aeb")
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 numpy as np

torch.manual_seed(0)

config = {
    'layout': {
        'case_file': 'test_case.txt'
    }
}

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
expected_counts Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/config.py
code served (permissive licence) · get_code("7ce76a566a2659f4")
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
import numpy as np

torch.manual_seed(0)

ARGS = {
    'config': {
        'expected': {
            'accuracy': 0.95,
            'loss': 0.05,
            'f1_score': 0.92,
            'precision': 0.93,
            'recall': 0.91
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
final_ranking_ids Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/agent_audit.py
code served (permissive licence) · get_code("b2b0606439b71a4a")
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.

import torch
import numpy as np
from typing import Any

# Test case 1: row with candidate_display_ids and ranked_candidate_ids
row_1 = {
    'candidate_display_ids': ['cand_001', 'cand_002', 'cand_003'],
    'ranked_candidate_ids': ['cand_002', 'cand_001']
}

# Test case 2: row with candidate_ids and ranking
row_2 = {
    'candidate_ids': [101, 102, 103],
    'ranking': [102, 103, 101]
}

# Test case 3: row with ranked_candidate_numbers and candidate_display_ids
row_3 = {
    'candidate_display_ids': ['id_a', 'id_b', 'id_c'],
    'ranked_candidate_numbers': [2, 1, 3]
}

# Test case 4: row with no ranking info (should return empty list)
row_4 = {
    'candidate_ids': [1, 2, 3]
}

# Test case 5: row with None values and fallback
row_5 = {
    'candidate_ids': ['x', 'y', 'z'],
    'ranked_candidate_ids': None,
    'ranking': ['z', 'x']
}

ARGS = {
    'row': row_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
hard_confounders Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/io.py
code served (permissive licence) · get_code("19e5e123ffec6059")
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.

import torch
import numpy as np
from typing import Any

# Based on the function body, it expects:
# - case: a dict with 'case_id' and 'hard_confounders' keys
# - hard_confounders should be a list of dicts
# - each dict may have 'disease_id', 'mechanisms', and/or 'confuser_types' keys

ARGS = {
    'case': {
        'case_id': 'test_case_001',
        'hard_confounders': [
            {
                'disease_id': 'disease_1',
                'mechanisms': ['mechanism_a', 'mechanism_b']
            },
            {
                'disease_id': 'disease_2',
                'confuser_types': ['type_x', 'type_y']
            },
            {
                'disease_id': 'disease_3',
                'mechanisms': ['mechanism_c'],
                'confuser_types': ['type_z']
            },
            {
                'other_field': 'should_be_skipped'
            }
        ]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
load_cases Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/io.py
code served (permissive licence) · get_code("799b98203edcd04d")
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.

import json
import tempfile
from pathlib import Path

# Create a temporary JSONL file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False, encoding='utf-8')
temp_path = temp_file.name

# Write test JSONL data
test_cases = [
    {"id": 1, "split": "train", "data": "example1"},
    {"id": 2, "split": "test", "data": "example2"},
    {"id": 3, "split": "train", "data": "example3"},
    {"id": 4, "split": "val", "data": "example4"},
]

for case in test_cases:
    temp_file.write(json.dumps(case) + '\n')

temp_file.close()

# Define ARGS for the load_cases function
ARGS = {
    'path': temp_path,
    'split': 'train'
}
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
load_rankings Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/metrics.py
code served (permissive licence) · get_code("f7d1a5663860bfe0")
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 csv
import tempfile
from pathlib import Path

# Create a temporary CSV file with valid rankings data
csv_content = """case_id,candidate_id,rank
case_1,candidate_a,1
case_1,candidate_b,2
case_2,candidate_x,1
case_2,candidate_y,2
case_2,candidate_z,3
"""

with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False, newline='') as f:
    f.write(csv_content)
    csv_path = f.name

ARGS = {
    'path': csv_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 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
load_release_config Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/config.py
code served (permissive licence) · get_code("bb685ff3989ca390")
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 json
from pathlib import Path
from tempfile import TemporaryDirectory
import torch

# Create a temporary directory with a test config file
temp_dir = TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test_config.json"

test_config = {
    "version": "1.0",
    "dataset": "graphrarebench",
    "splits": ["train", "val", "test"],
    "models": ["gcn", "gat"]
}

temp_path.write_text(json.dumps(test_config), encoding='utf-8')

ARGS = {
    "path": str(temp_path)
}
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
target_id Ran
ran; our contract draft was wrong, not the code
GUI0609/GraphRareBench/src/graphrarebench/io.py
code served (permissive licence) · get_code("3ba8257710b51110")
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

def setup_args():
    case = {
        'case_id': 'test_case_001',
        'target_disease': {
            'disease_id': 'DOID:1234'
        }
    }
    
    ARGS = {
        'case': case
    }
    
    return ARGS

ARGS = setup_args()
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
bootstrap_metrics Not yet run
unverified (harvested, no recorded run)
GUI0609/GraphRareBench/src/graphrarebench/metrics.py
code served (permissive licence) · get_code("bcc444ed5ce24571")
How it ran

no invocation recorded.

evaluate_rankings Not yet run
unverified (harvested, no recorded run)
GUI0609/GraphRareBench/src/graphrarebench/metrics.py
code served (permissive licence) · get_code("8a2e077fe20eb947")
How it ran

no invocation recorded.

load_agent_rows Not yet run
unverified (harvested, no recorded run)
GUI0609/GraphRareBench/src/graphrarebench/agent_audit.py
code served (permissive licence) · get_code("1b502407589eed41")
How it ran

no invocation recorded.

validate_dataset Not yet run
unverified (harvested, no recorded run)
GUI0609/GraphRareBench/src/graphrarebench/validate.py
code served (permissive licence) · get_code("76e309b5734d83ce")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 13 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-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

Phenotype-driven diagnostic benchmarks usually report the rank of the reference disease, but they rarely reveal which plausible alternatives are ranked above it or what evidence a tool-using model examines before making its decision. We introduce GraphRareBench, a provenance-preserving benchmark containing 2,365 ontology-derived cases and 18,093 target-confounder pairs. Each case includes a coarsened HPO query, a fixed candidate pool, graph-defined hard confounders, and source-linked evidence records. On the 237case gene-component-disjoint test split, supervised rankers using a shared 21-feature interface achieved MRRs of 0.640-0.740 and case-averaged target-over-confounder accuracies of 0.898-0.916. Agents instantiated with Agents-A1 and DeepSeek-V4-Flash achieved MRRs of 0.746 and 0.718, respectively. Their paired MRR difference was not statistically significant, whereas their target-evidence coverage differed by 0.561. Together with the observation that 22.1%-43.7% of selected Hit@10 successes still ranked at least one graph-defined hard confounder above the target, these results indicate that full-pool retrieval, hard-confounder discrimination, and observable evidence access capture complementary aspects of model behavior. GraphRareBench therefore provides a foundation for more transparent and evidence-aware evaluation of phenotype-driven diagnostic systems. Code and dataset are avaliable at https://github.com/GUI0609/GraphRareBench. Figure 1: GraphRareBench converts curated rare-disease resources into ontology-derived ranking cases with fixed candidate pools, graphdefined hard alternatives, and source-linked evidence records. Evaluated systems receive the declared query, candidate pool, and evidence view; evaluator-only labels support target-over-confounder, mechanism-sliced, and tool-trace audits. Icons are from Icons8.com.

For agents

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

get_harvested_code_for_paper("2607.24878")
get_code_for_paper("2607.24878")
have("2607.24878")

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

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

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

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

Connect an agent — have() is free.