SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.01839 · September 2026

Import What You Need: Learning When and How to Augment EHR Graphs with External Knowledge

Chen Chen, Zijun Yao, Dongjie Wang, Mei Liu, Mohsen Nayebi Kerdabadi, Kerdabadi

arXiv · PDF · Open in the Atlas

Code that ran

19 of 25 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; 4 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 14 failures of our instrument; 6 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/2609.01839.json · badge: /api/ran/2609.01839.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
ChenC2002/ReTA canonical (classifier label)
classifier basis: census
19 ran · 6 no recorded run
FunctionStatusWhere it lives
acc_at_k Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/learning/inference.py
pointer only (licence: NONE) · get_code("4af954ef22780642")
How it ran

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

action_size Ran
ran, honoured the contract we drafted
ChenC2002/ReTA/reta/learning/policy.py
pointer only (licence: NONE) · get_code("331c0cf328786519")
How it ran

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

auprc_micro Ran
ran, honoured the contract we drafted
ChenC2002/ReTA/reta/learning/inference.py
pointer only (licence: NONE) · get_code("8327da2731c7e966")
How it ran

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

build_pyg_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ChenC2002/ReTA/reta/learning/model.py
pointer only (licence: NONE) · get_code("2c318594ce37a820")
How it ran

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

canonicalize_ccs_id Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/filtering.py
pointer only (licence: NONE) · get_code("d0339f88d7581ecf")
How it ran

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

ccs_token_to_label_index Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/learning/model.py
pointer only (licence: NONE) · get_code("6b21382ae6a4a71b")
How it ran

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

decode_action Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ChenC2002/ReTA/reta/learning/policy.py
pointer only (licence: NONE) · get_code("572dff0376dd05ea")
How it ran

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

encode_action Ran
ran, honoured the contract we drafted
ChenC2002/ReTA/reta/learning/policy.py
pointer only (licence: NONE) · get_code("fec8f63398ac2478")
How it ran

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

l2_normalize Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/clustering.py
pointer only (licence: NONE) · get_code("fdecf911bb51d56e")
How it ran

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

labels_to_multihot_from_ccs_tokens Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/learning/model.py
pointer only (licence: NONE) · get_code("2c60e196931224b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenC2002/ReTA 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_concepts_csv Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/distill.py
pointer only (licence: NONE) · get_code("3a6418ccb448876e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenC2002/ReTA 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_json_object_strict Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/learning/runtime.py
pointer only (licence: NONE) · get_code("c7fcf02385773f30")
How it ran

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

micro_f1 Ran
ran, honoured the contract we drafted
ChenC2002/ReTA/reta/learning/inference.py
pointer only (licence: NONE) · get_code("c820d4125a1fca71")
How it ran

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

normalize_mention Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/filtering.py
pointer only (licence: NONE) · get_code("e4048f693e3311ce")
How it ran

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

project_to_dim Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/clustering.py
pointer only (licence: NONE) · get_code("96226b9dbce27f64")
How it ran

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

strict_json_loads Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/pool.py
pointer only (licence: NONE) · get_code("65d18fa01fd20af3")
How it ran

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

validate_grounded_template Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/pool.py
pointer only (licence: NONE) · get_code("211df013347b0e99")
How it ran

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

validate_knowledge_template Ran
ran; our contract draft was wrong, not the code
ChenC2002/ReTA/reta/knowledge/pool.py
pointer only (licence: NONE) · get_code("9996a47ef5f9d844")
How it ran

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

validate_response Ran
ran on a synthesized input
ChenC2002/ReTA/reta/knowledge/distill.py
pointer only (licence: NONE) · get_code("bb9dd6011082c1d1")
How it ran

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

filter_artifact_objects Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/knowledge/filtering.py
pointer only (licence: NONE) · get_code("46993e5330d5b9bc")
How it ran

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

load_config Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/learning/runtime.py
pointer only (licence: NONE) · get_code("ee9d2565c5d60abf")
How it ran

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

load_responses_jsonl Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/knowledge/distill.py
pointer only (licence: NONE) · get_code("7680fc92c386e025")
How it ran

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

main Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/knowledge/release.py
pointer only (licence: NONE) · get_code("0b64df57e6173100")
How it ran

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

validate_config Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/learning/runtime.py
pointer only (licence: NONE) · get_code("98f05746bab21cb5")
How it ran

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

verify_release Not yet run
unverified (harvested, no recorded run)
ChenC2002/ReTA/reta/knowledge/release.py
pointer only (licence: NONE) · get_code("744de9a762977aac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ChenC2002/ReTA 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 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 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 25 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

Longitudinal prediction from electronic health records (EHRs) is limited by the sparsity and irregularity in patient trajectories, and knowledge augmentation with external knowledge graphs (KGs) offers a promising way to alleviate these issues. However, most existing methods perform fixed, context-agnostic topology augmentation by adding the same KG nodes and edges regardless of a patient's evolving state. We propose ReTA, a Reinforcement learning-based dynamic Topology Augmentation framework that casts KG import as a per-visit, budget-aware policy. ReTA first constructs an offline refined pool of KG-grounded templates, then learns a policy to select one augment action per visit from three options: Soft Import, which enriches node features without modifying graph topology, Hard Import, which grafts a compact KG subgraph onto the visit graph to create message-passing shortcuts, and Skip, which leaves the visit unaugmented when the base encoder is already confident. To stabilize learning, ReTA employs a decoupled encoder that processes semantic and structural signals in separate channels and fuses them via adaptive gating. Experiments on MIMIC-III and MIMIC-IV across diagnosis prediction, mortality, and readmission show that ReTA consistently outperforms strong baselines while remaining efficient, transfers across datasets and knowledge graphs, and yields interpretable augmentation patterns. The robust gains under sparse supervision highlight the advantage of ReTA's dynamic decision to import knowledge, boosting accuracy while curbing costs.

For agents

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

get_harvested_code_for_paper("2609.01839")
get_code_for_paper("2609.01839")
have("2609.01839")

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

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

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

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

Connect an agent — have() is free.