SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.05982 · 2026

THBKG: A Temporal Biomedical Knowledge Graph for Decision-Aligned Clinical Advancement Prediction

Arkaitz Zubiaga, Chung Pui, Siu, Claudia Cabrera, Mani Mudaliar

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 3 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.05982.json · badge: /api/ran/2608.05982.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
jackysiupuichung/thbkg community
Papers with Code archive
5 ran · 3 no recorded run
FunctionStatusWhere it lives
BilinearDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("05a39c0ed636ba9e")
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 an instance of its own class, BilinearDecoder: the run constructed the object and did not call it, so no result was computed. 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 torch_geometric.nn import Linear

torch.manual_seed(0)

# Test Case 1: Full rank bilinear decoder without time
in_channels = 4
batch_size = 2
time_dim = 0
rank = 0
dropout = 0.1

z_src = torch.randn(batch_size, in_channels)
z_dst = torch.randn(batch_size, in_channels)
t_emb = None

ARGS = {
    'in_channels': in_channels,
    'dropout': dropout,
    'time_dim': time_dim,
    'rank': rank,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BilinearDecoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BilinearDecoder 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
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("45a3c0dca2ab66ab")
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 an instance of its own class, Decoder: the run constructed the object and did not call it, so no result was computed. 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 torch_geometric.nn import Linear

torch.manual_seed(0)

ARGS = {
    "in_channels": 8,
    "dropout": 0.1,
    "time_dim": 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Decoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Decoder 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
TimeEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("d209f83de53817b7")
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 an instance of its own class, TimeEncoder: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    'd_time': 4,
    't_min': 0.0,
    't_max': 10.0,
}
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 TimeEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TimeEncoder 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
_keep_latest_edge_per_pair Ran
ran; our contract draft was wrong, not the code
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("f78c26da17d129b6")
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 tuple, 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

torch.manual_seed(0)

# Construct edge_index_dict: maps edge type -> edge indices tensor
# edge_index shape: [2, num_edges] where first row is src, second row is dst
edge_index_dict = {
    'type_A': torch.tensor([[0, 1, 0, 2], [1, 2, 2, 1]], dtype=torch.int64),
    'type_B': torch.tensor([[1, 0], [0, 2]], dtype=torch.int64),
}

# Construct edge_time_dict: maps edge type -> timestamps tensor
# timestamps for each edge, aligned with edge_index columns
edge_time_dict = {
    'type_A': torch.tensor([100, 50, 200, 75], dtype=torch.int64),
    'type_B': torch.tensor([30, 60], dtype=torch.int64),
}

# Construct edge_feat_dict: maps edge type -> feature tensors
# features per edge, shape [num_edges, feature_dim]
edge_feat_dict = {
    'type_A': torch.randn(4, 3),
    'type_B': torch.randn(2, 3),
}

ARGS = {
    'edge_index_dict': edge_index_dict,
    'edge_time_dict': edge_time_dict,
    'edge_feat_dict': edge_feat_dict,
}
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 tuple, ndim 1, dtype family float — a tuple 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
build_decoder Ran
ran; our contract draft was wrong, not the code
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("acb54a07b43c703a")
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 BilinearDecoder. 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

torch.manual_seed(0)

ARGS = {
    "kind": "bilinear_lr8",
    "in_channels": 64,
    "dropout": 0.1,
    "time_dim": 16,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BilinearDecoder — a BilinearDecoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BilinearDecoder 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
HGT Not yet run
unverified (harvested, no recorded run)
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("044830b69d3989ee")
How it ran

no invocation recorded.

HGTConv Not yet run
unverified (harvested, no recorded run)
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("071185ce576f3826")
How it ran

no invocation recorded.

HGTLinkPredictor Not yet run
unverified (harvested, no recorded run)
jackysiupuichung/thbkg/src/models/hgt.py
code served (permissive licence) · get_code("d061b521893f7ed3")
How it ran

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

Inadequate target-disease linkage accounts for 40-50% of Phase II efficacy failures, so anticipating which programmes will advance would let sponsors back the hypotheses most likely to reach patients. What a programme can be judged on is the evidence that supported its linkage when it entered the clinic. No existing biomedical knowledge graph allows that evidence profile to be assembled as of a past date. We present the Temporal Heterogeneous Biomedical Knowledge Graph (THBKG), which describes and predicts therapeutic target-disease links through time: 110,396 entities and 11.1M edges across nineteen relation types, each edge carrying the year its evidence changed, so a pair's profile can be recovered as it stood when its own decision fell due. On this graph we define a decisionaligned benchmark that predicts, for a target-disease pair entering Phase II, whether it advances to Phase III on evidence datable before that decision. Graph propagation over the THBKG outranks every direct-evidence reference scored under the same decision-aligned protocol, reaching a relative success of 4.3-4.5 at the top ten pairs per therapeutic area. The gain concentrates on the 72.8% of pairs with no direct target-disease evidence at their decision point, where a direct-edge model has nothing to read: the encoders still rank five-to sixfold above chance, recovering the signal by propagating over the intervening biology. Adapting a path-based explainer to the decision-time subgraph decomposes each prediction into the evidence landscape behind the hypothesis for explainable prediction. We release the THBKG as a continually updated substrate for studying therapeutic target hypotheses by retrospective validation.

For agents

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

get_harvested_code_for_paper("2608.05982")
get_code_for_paper("2608.05982")
have("2608.05982")

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

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

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

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

Connect an agent — have() is free.