SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.29926 · 2026

A Triple-Modal Contrastive Learning Framework with Sequence, Graph, and 3D Features for Drug-Target Interaction Prediction

Xi Zhang, Ting Wang, Le Xu, Xuan Lin, Dan Luo

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 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/2605.29926.json · badge: /api/ran/2605.29926.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
klez1/TriMod-DTI canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
cycle_index Ran
ran, honoured the contract we drafted
klez1/TriMod-DTI/drugbank/model.py
pointer only (licence: MIT); the stored copy get_code serves, from shen-lab/graphcl_automated, is pointer only (licence: NONE) · get_code("b822dd00427403bf")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from shen-lab/graphcl_automated, and GitHub detected no licence in that repository 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.

data_to_device Ran
ran; our contract draft was wrong, not the code
klez1/TriMod-DTI/drugbank/model.py
code served (permissive licence) · get_code("77845b218fc2538a")
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. 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)

# Create small tensors for drug and protein data
batch_size = 2
num_atoms = 4
num_nodes = 3
num_residues = 5

atoms_new = torch.randint(0, 10, (batch_size, num_atoms))
adjs_new = torch.randint(0, 2, (batch_size, num_atoms, num_atoms))
num_size_new = torch.tensor([num_atoms, num_atoms])
d_new = torch.randn(batch_size, num_atoms, 16)
p_new = torch.randn(batch_size, num_residues, 16)
dmask_new = torch.ones(batch_size, num_atoms)
pmask_new = torch.ones(batch_size, num_residues)
protein_graphs = torch.randn(batch_size, num_residues, 8)
protein_num_new = [num_residues, num_residues]
res_size_new = torch.tensor([num_residues, num_residues])
p_adj_new = torch.randint(0, 2, (batch_size, num_residues, num_residues))
node_feature_new = torch.randn(batch_size, num_nodes, 12)
label_new = torch.tensor([0, 1])

# Create mock graph objects with .to() method
class MockGraph:
    def __init__(self, data):
        self.data = data
    
    def to(self, device):
        new_graph = MockGraph(self.data.to(device))
        return new_graph

# Create drug_graphs as list of batches, where each batch contains graph objects
drug_graphs = [
    [MockGraph(torch.randn(4, 8)), MockGraph(torch.randn(5, 8))],
    [MockGraph(torch.randn(6, 8)), MockGraph(torch.randn(7, 8))]
]

# Construct the data tuple that will be unpacked
data = (
    atoms_new, adjs_new, num_size_new, d_new, p_new, dmask_new, pmask_new,
    drug_graphs, protein_graphs, protein_num_new, node_feature_new, 
    p_adj_new, res_size_new, label_new
)

device = "cpu"

ARGS = {
    "data": data,
    "device": device
}
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 — a tuple output has no array shape of its own; none is 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
one_hot_encode Ran
ran, honoured the contract we drafted
klez1/TriMod-DTI/drugbank/data_preprocess.py
code served (permissive licence) · get_code("41904f4b34785976")
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 2, dtype family float, shape (4, 28) 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

token_dict = {'_PAD': 0, '_GO': 1, '_EOS': 2, '_UNK': 3, 'ALA': 4, 'ARG': 5, 'ASN': 6, 'ASP': 7, 'CYS': 8, 'GLY': 9, 'GLU': 10, 'HIS': 12, 'ILE': 13, 'LEU': 14, 'LYS': 15, 'MET': 16, 'PHE': 17, 'PRO': 18, 'SER': 19, 'THR': 20, 'TRP': 21, 'TYR': 22, 'VAL': 23, 'X': 24, 'U': 25, 'O': 26, 'B': 27, 'Z': 28}

residues = ['ALA', 'ARG', 'ASP', 'UNK_RESIDUE']

ARGS = {
    'residues': residues,
    'token_dict': token_dict
}
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 2, dtype family float, shape (4, 28) — shape (4, 28) 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
randn Ran
ran; our contract draft was wrong, not the code
klez1/TriMod-DTI/drugbank/gvp.py
code served (permissive licence) · get_code("410c55bbc8ec1d01")
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. 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)

ARGS = {
    'n': 2,
    'dims': [4, 5],
    'device': 'cpu'
}
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 — a tuple output has no array shape of its own; none is 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
tuple_index Ran
ran; our contract draft was wrong, not the code
klez1/TriMod-DTI/drugbank/gvp.py
code served (permissive licence) · get_code("b42bb2ccfce4d19b")
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. 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)

# The function tuple_index takes:
# - x: a tuple of two indexable objects
# - idx: an index to apply to both elements of the tuple
# 
# It returns (x[0][idx], x[1][idx])
# 
# So x[0] and x[1] must both support indexing with idx

# Create two simple tensors that can be indexed
tensor1 = torch.randn(2, 4)  # shape [2, 4]
tensor2 = torch.randn(3, 5)  # shape [3, 5] - different size to be distinct

# Create a tuple of these tensors
x = (tensor1, tensor2)

# Create an index value
idx = 0

ARGS = {
    "x": x,
    "idx": idx
}
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 tuple — a tuple output has no array shape of its own; none is 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
tuple_index 11 other papers
10 dated earlier, 1 later
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
2309.16519 (2023-09)
AtomSurf : Surface Representation for Learning on Protein Structures
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
and 8 more not named here
cycle_index 8 other papers
8 dated earlier
1905.12265 (2019-05)
Strategies for Pre-training Graph Neural Networks
2010.13902 (2020-10)
Graph Contrastive Learning with Augmentations
2106.07594 (2021-06)
Graph Contrastive Learning Automated
and 5 more not named here
randn 6 other papers
6 dated earlier
2203.14486 (2022-03)
Equivariant Point Cloud Analysis via Learning Orientations for Message Passing
2309.16519 (2023-09)
AtomSurf : Surface Representation for Learning on Protein Structures
2409.19838 (2024-09)
Using pretrained graph neural networks with token mixers as geometric featurizers for conformational dynamics
and 3 more not named here

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

Accurate prediction of drug-target interactions (DTI) is critical for drug discovery. Existing methods often rely on single-modal representations (e.g., sequences or graphs) or combine only two modalities, overlooking 3D structural features.To address this challenge, we propose TriMod-DTI, a triple-modal contrastive learning framework that incorporates 1D sequences, 2D graphs, and 3D structures of drugs and proteins, obtaining the universal and complementary feature represetations for DTI prediction. We design a Feature Extractor to capture drug and target features across the three modalities, thereby enriching their representations. We further propose a triple-modal contrastive learning strategy to align different modal representations of the same drug or protein in the latent space. By constructing cross-modal positive and negative sample pairs, this approach enhances the model's discriminative ability. Experiments on three benchmark datasets demonstrate that TriMod-DTI outperforms state-of-the-art methods. The ablation studies validate the contributions of each modality. Moreover, case studies highlight its practical potential for DTI prediction and drug discovery. The source code of TriMod-DTI is available at https://github.com/klez1/TriMod-DTI.

For agents

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

get_harvested_code_for_paper("2605.29926")
get_code_for_paper("2605.29926")
have("2605.29926")

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

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

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

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

Connect an agent — have() is free.