Manuscript Offprint
arXiv:2610.05590ColdDDI: Evaluating Knowledge Utilization in Cold-Start Drug-Drug Interaction Prediction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Jiheng Liang
Data Science, William & Mary
Di Wu
Southwest University
Yunpeng Hong
Hefei University of Technology
Chen Zhao
Computer Science, Baylor University
Chenyang Bu
Hefei University of Technology
Xingquan Zhu
Florida Atlantic University
Yi He
Data Science, William & Mary
Abstract
Cold-start drug–drug interaction (DDI) prediction tests whether models can identify clinically significant interactions for drugs without training-time interaction history. Existing benchmarks mostly report aggregate edge-prediction scores, leaving a key evaluation question unanswered: when models receive molecular, textual, or knowledge-graph (KG) evidence, do they actually use the evidence that pharmacologically supports the interaction? We introduce COLDDDI, a reconstructible diagnostic benchmark built from DrugBank 5.1.13, with 1,900 approved small-molecule drugs and 565,731 positive DDI pairs. COLDDDI evaluates three levels of drug novelty, namely test pairs whose two drugs were both seen during training, pairs with one unseen drug, and pairs with two unseen drugs. It also annotates each interaction by whether it changes drug exposure or drug effect, and by whether the biomedical knowledge graph contains shared enzymes, transporters, or targets that can plausibly mediate the interaction. These annotations allow COLDDDI to separate two factors that aggregate metrics conflate, namely whether mechanistic evidence is available, and whether a model prediction depends on that evidence. We evaluate eight conventional DDI methods and 13 LLMs; for open-weight LLMs, we test five prompt patterns and use masking, drug replacement, and channel-sensitivity metrics to probe knowledge utilization. COLDDDI exposes that, in the hardest split where both drugs are unseen, the main performance divide is mediator availability. A fine-tuned 1B LLM recovers 89–93% of interactions with a shared enzyme, transporter, or target, but only 40–62% without such a mediator. More importantly, KG-provided evidence is not always used; several KG-augmented baselines change little when the shared mediator is masked or disrupted, whereas fine-tuned LLMs respond strongly to this intervention. Thus, COLDDDI evaluates knowledge utilization rather than knowledge access alone, showing where cold-start DDI models rely on mechanistic evidence and where they fail despite receiving it. We release derivative annotations, splits, prompts, diagnostics, evaluation code, and a DrugBank reconstruction pipeline at https://github.com/02171jh/ColdDDI-NeurIPS2026.
Corresponding author.
Accepted for poster at NeurIPS 2026.
Table 1: Comparison of DDI evaluation resources. ✓ fully / ~ partial / ✗ not supported. D1 Setting: drug-wise S0/S1/S2 splits. D2 Mechanism: pharmacological mechanism and KG-mediated stratification. D3 Modality: input/prompt comparison with per-modality diagnostics. D4 Model: diverse traditional models and LLM families.
| Benchmark | Year | Source | Scale (drugs/pairs) | D1 Setting | D2 Mechanism | D3 Modality | D4 Model |
|---|---|---|---|---|---|---|---|
| TWOSIDES [22, 23] | 2012 | FAERS/SIDER | 645/63K | ✕ | ✕ | ✕ | ✕ |
| DeepDDI [1] | 2018 | DrugBank 5.0 | 1,710/192K | ✕ | ✕ | ✕ | ✕ |
| OGBL-DDI [24] | 2020 | DrugBank 5.0 | 4,267/1.3M | ✕ | ✕ | ✕ | ✕ |
| TDC-DDI [25] | 2021 | DrugBank 5.0 | 1,706/192K | ✕ | ✕ | ✕ | ✕ |
| DDInter [26] | 2022 | FDA/Lit. | 1,972/237K | ✕ | ~ | ✕ | ✕ |
| DDI-Ben [20] | 2025 | DrugBank 5.0 | 1,710/188K | ✓ | ✕ | ✕ | ~ |
| LLM-DDI [18] | 2026 | DrugBank 5.1.12 | 6,089/1.0M | ✕ | ✕ | ~ | ✓ |
| OpenDDI [21] | 2026 | Multi-source | 14,090/2.5M | ~ | ✕ | ~ | ✕ |
| ColdDDI (ours) | 2026 | DrugBank 5.1.13 | 1,900/565K | ✓ | ✓ | ✓ | ✓ |
Scale inflated by loose filtering (OGBL-DDI, LLM-DDI: experimental compounds and un-curated edges) or by LLM-augmented multi-source aggregation with duplicates (OpenDDI). ColdDDI applies a seven-step filter (Appendix A.1).
1 Introduction
A performance number in high-stakes biomedical machine learning is useful only when the evaluation protocol matches the deployment claim it is used to support. Drug–drug interaction (DDI) prediction illustrates this problem sharply. Polypharmacy makes unintended DDIs a persistent source of adverse events, treatment failures, and preventable hospitalizations [1], yet the combinatorial space of possible drug pairs makes exhaustive experimental screening infeasible [2, 3]. Computational models are therefore used to prioritize potentially adverse pairs, but the most clinically relevant question is, for totally new or poorly characterized drugs, whether a model can still infer adverse DDIs when interaction-history evidence is unknown or unavailable.
Cold-start DDI prediction formalizes this deployment mismatch, where the train–test split must be defined over drugs, not over drug pairs. A pair-level split can hold out an interaction while exposing both endpoint drugs during training, allowing models to exploit interaction-history features unavailable for new drugs. Drug-wise splitting instead separates drugs observed during training from drugs held out for evaluation, producing three settings of increasing difficulty, namely S0 (both drugs seen), S1 (one drug unseen), and S2 (both drugs unseen) [4, 5]. S1 reflects a common case of pairing a new or poorly characterized drug with an established medication, whereas S2 stress-tests fully inductive prediction when neither endpoint has training-time interaction records. In S1 and S2, models must rely on drug-level evidence such as molecular structure, biomedical knowledge graph (KG) associations, and pharmacological text [6]. A cold-start benchmark should therefore evaluate whether a model uses the evidence available for unseen-drug reasoning and generalization.
Recent DDI methods have expanded the evidence available for such reasoning. Molecular structure models capture chemical features through graphs, motifs, or images ; KG-based and KG-integrated models expose biological associations among drugs, enzymes, transporters, targets, and pathways ; and pretrained large language models (LLMs) can incorporate pharmacological text or prompt-supplied biomedical context . Benchmarks have also been improved. GMPNN-CS formalized drug-wise evaluation in the S1/S2 split, DDI-Ben studied robustness under distribution shift , and large-scale resources aggregate multiple DDI datasets and baselines . However, these resources mostly support aggregate comparison by telling which model scores higher under a chosen split. They rarely specify which pharmacological regimes those scores represent, which evidence sources support the prediction, or whether a model actually uses the evidence it receives. As Table 1 summarizes, no existing benchmark provides formal cold-start splits, mechanism-level stratification, modality-level diagnostics, and systematic LLM comparison all at once.
Mechanism is the missing layer between cold-start setting and knowledge utilization. When interaction histories are unavailable, the model must infer risk from pharmacological evidence, but the relevant evidence differs across DDI mechanisms. Pharmacokinetic (PK) interactions [27, 28] alter absorption, distribution, metabolism, or excretion, and often have explicit mediators such as shared enzymes or transporters. For example, two drugs may interact because one affects the enzyme that metabolizes the other, such as CYP3A4. Pharmacodynamic (PD) interactions [27, 28] act through receptors, targets, or downstream pathways, and are typically more heterogeneous. Even within PK or PD, the knowledge graph (KG) may or may not contain a shared mediating entity, a bridge linking the two drugs. We therefore distinguish Type A pairs, where the KG contains a shared mediator compatible with the interaction mechanism, from Type B pairs, where no such direct mediator is available. Specifically, Type A tests whether models can exploit explicit mediating evidence, whereas Type B tests whether they can generalize when direct KG bridges are absent. Combining these two axes yields four instance-level regimes, namely PK-A, PK-B, PD-A, and PD-B. This taxonomy turns mechanism into an evaluable object. Without this stratification, aggregate metrics can make a model look strong because it succeeds on direct-mediator cases while hiding failures on interactions that require pharmacological reasoning and explicit knowledge utilization.
We propose COLDDDI, a mechanism-stratified diagnostic benchmark for cold-start DDI prediction. COLDDDI is built from DrugBank 5.1.13 through a filtering pipeline, yielding 1,900 approved small-molecule drugs and 565,731 positive DDI pairs. It evaluates methods under drug-wise S0/S1/S2 splits and annotates each positive pair by pharmacological mechanism (i.e., PK or PD) and KG-mediated evidence availability (i.e., Type A or Type B). We use this benchmark to evaluate eight conventional DDI methods and 13 LLMs (open-weight LLMs across five prompt patterns), and we add controlled masking and sensitivity analyses to measure how predictions change when drug names or KG entities are removed. The benchmark release includes mechanism annotations, split files, prompt templates, evaluation code, and a reconstruction pipeline from a user-provided DrugBank XML file.
Specifically, COLDDDI makes three evaluation contributions:
-
Mechanism-readable cold-start evaluation. COLDDDI couples drug-wise S0/S1/S2 splits with an instance-level PK/PD × Type A/B taxonomy, so each cold-start error can be interpreted by both pharmacological mechanism and the presence or absence of a direct KG mediator. We find that the most challenging cold-start cases are not simply unseen drugs, but unseen-drug pairs without an explicit mediating entity in the KG. The fine-tuned LLM recalls 89% and 93% of PK-A and PD-A positives, but only 40% and 62% of PK-B and PD-B positives.
-
Diagnostics for knowledge utilization rather than knowledge access. We introduce controlled name/entity masking, drug-replacement sensitivity, Knowledge Prediction Sensitivity (KPS), and the channel-interaction asymmetry (KSAI) to measure whether a model prediction changes when a specific evidence channel is perturbed. We find that KG access does not imply KG utilization, as only EmerGNN and the fine-tuned LLM show strong bridge sensitivity, while fusion baselines such as TIGER and MKG-FENN largely wash out the mediating-path signal.
-
A controlled audit of LLMs under true drug-wise cold start. We evaluate 13 LLMs against eight conventional DDI methods under the same cold-start protocol. Fine-tuning makes LLMs competitive on S2, while under direct inference model scale or prompt are less relevant. Even then, LLM success remains concentrated on interactions with explicit KG bridges.
-
D1 Setting. Which benchmarks support drug-wise cold start? Widely used platforms (TWO-SIDES [22, 23], DeepDDI [1], OGBL-DDI [24], TDC-DDI [25], DDInter [26]) use transductive or pair-level splits where test drugs may appear in training. Only DDI-Ben [20] fully adopts the drug-wise S1/S2 protocol [5], and OpenDDI [21] introduces an unseen-drug holdout but does not separate S1 from S2. COLDDDI reports S0/S1/S2 with explicit S1 vs. S2 separation, so the contribution of one-cold and both-cold regimes is decomposable.
-
D2 Mechanism. Which benchmarks explain PK/PD or evidence availability? Nearly all existing benchmarks pool PK and PD interactions into a single aggregate score. Although OpenDDI reports per-type accuracy, DDI-Ben stratifies by event frequency, and DDInter [26] provides structured PK/PD labels, these resources do not jointly stratify positive pairs by PK/PD mechanism and KG mediator availability. COLDDDI stratifies every positive pair along PK/PD × Type A/B, so aggregate scores can be decomposed by pharmacological regime and by whether a usable mediator exists.
-
D3 Modality. Which benchmarks diagnose channel use and function? Few benchmarks diagnose how models actually use input channels under cold start, leaving the actual source of useful signal hard to attribute. The only two benchmarks are OpenDDI, which runs dataset-level modality ablations (removing an entire modality), and LLM-DDI [18], which runs prompt-perturbation robustness checks (e.g., SMILES-only or genes-only). But both operate at the channel level and report aggregate accuracy changes, without isolating which entity within a channel drives the gain. COLDDDI combines controlled name/entity masking (R0–R7) with drug-replacement sensitivity (KPS-F), channel-mask sensitivity (KPS-Channel), and channel-interaction asymmetry (KSAI). These diagnostics quantify how predictions depend on specific evidence channels within each mechanism subtype (Appendix E.1).
-
D4 Model. Has any benchmark evaluated LLMs under cold start? Existing benchmarks evaluate LLMs at scale or under cold start, but not both. LLM-DDI, the broadest LLM evaluation to date (18 LLMs), ignores pharmacological mechanism and is limited to aggregate metrics rather than mechanism-level interpretation. DDI-Ben extends to cold-start S1/S2 but covers only two LLM-based methods (TextDDI [15], DDI-GPT [16]). COLDDDI evaluates 13 LLMs alongside eight conventional methods under the same drug-wise cold-start protocol with PK/PD × Type A/B stratification, exposing whether each method's cold-start gains are mechanism-driven or scalar.
Together, these four dimensions enable COLDDDI to distinguish evidence availability from predictive dependence under cold start, complementing large-scale resources such as OpenDDI [21]. Task formulations also vary. Most prior work [7, 8, 12, 20] predicts multi-class event types, while OGBL-DDI [24] and OpenDDI's emerging-drug split [21] use binary detection. COLDDDI adopts binary detection to surface S0/S1/S2 differences without long-tail noise (multi-class variant in Appendix B.4).
3 The ColdDDI Benchmark
3.1 Data Source and Task Formulation
We build ColdDDI from DrugBank 5.1.13 [2] (released Jan 2025) via a seven-step pipeline (following [1]). The seven steps are selecting small molecules, keeping RDKit-parseable SMILES, retaining approved drugs, extracting and normalizing DDI mechanisms, dropping types with <10 occurrences, removing inorganic and metal-containing molecules [29], and discarding drugs with <10 interaction edges, yielding 1,900 drugs, 565,731 positive pairs, and 215 types (Appendix A.1). DrugBank's license prohibits redistribution, so we release only our derivatives (annotations, splits, prompts, evaluation code) plus a reconstruction pipeline. Academic access to DrugBank is free and granted within 1–3 days , after which our pipeline reconstructs the benchmark in a single command on the user-provided DrugBank XML (Appendix A.6).
We formulate DDI prediction as a binary task [21, 24]. Given a drug pair , we predict whether an interaction exists. We sample unrecorded drug pairs at a 1:1 ratio to recorded positive pairs [3, 5] and assign them negative labels for binary classification. These pairs are unlabeled rather than verified non-interactions. Appendix B.2 reports sensitivity to sampling ratios and strategies, together with a temporal backfill analysis of subsequently recorded interactions.
3.2 Cold-Start Settings
Following the drug-wise disjoint splitting protocol [4, 5], we partition all drugs into seen and unseen sets, with and . Let denote all positive DDI pairs. The positive training set consists of DDI pairs within , where denotes all positive DDI pairs within . Based on whether each drug in a test pair has been observed during training, we define three evaluation settings of increasing difficulty:
• S0 (Transductive). Both drugs appear in . Test pairs are held-out edges from . This setting serves as a performance upper bound.
• S1 (Semi-Inductive). One drug is seen ( ) and the other is unseen ( ). S1 simulates prescribing a newly approved compound alongside an established medication.
• S2 (Fully Inductive). Both endpoint drugs are in with no training-time interaction history. Throughout the paper, S2 is interpreted as an evaluation of interaction-history cold start rather than a literal investigational-drug trial.
https://go.drugbank.com/releases/5-1-13
Table 2: Split composition for the three evaluation settings. : seen drugs; : unseen drugs; . Negatives are sampled from the corresponding spaces.
| S0 (Transductive) | S1 (Semi-Inductive) | S2 (Fully Inductive) | |
|---|---|---|---|
| Train (+) | |||
| Train (-) | , resampled each epoch | ||
| Val/Test (+) | |||
| Val/Test (-) | fixed from | fixed from | fixed from |
Under binary classification, we define the negative sampling spaces for each setting as:
For each training epoch, a fresh negative set is sampled from at a 1:1 ratio, whereas validation and test negatives are only sampled once and fixed across evaluations. All three settings share the same training set, isolating drug novelty as the sole variable. The formal split composition is summarized in Table 2. Split statistics and structural-overlap checks are provided in Appendix B.1.
3.3 DDI Mechanism Taxonomy
DDIs fall into two mechanistically distinct categories [27, 28]. Pharmacokinetic (PK) interactions alter absorption, distribution, metabolism, or excretion (changing drug concentration). Pharmacodynamic (PD) interactions modify the target/pathway effect (synergistic or additive). We assign each of 215 DDI types a PK or PD label via keyword matching on its DrugBank description template. When both keyword sets match, we assign the type to PK (Appendix A.2). Within each class, we distinguish Type A (DrugBank KG contains shared mediating entities with compatible action roles) from Type B (no such mediating chain in the KG, even though one may exist biologically), yielding four subtypes: PK-A (29.6%), PK-B (22.6%), PD-A (3.8%), PD-B (43.9%). The automatic stratification for both axes is detailed in Appendix A.3.
Taxonomy Validation. To assess the reliability of the automated taxonomy, we randomly sampled 50 DDI types (covering 60.2% of all DDI edges) with 10 drug pairs per type. Two graduate-level pharmacology annotators independently labeled PK/PD and A/B against information from DrugBank. PK/PD agreement reaches , with per-pair F1 of 0.88 for PK and 0.90 for PD against the keyword matching of Appendix A.2. For A/B subclassification, annotators agree with the automated labels on 93.8% of pairs (see Appendix A.4).
3.4 LLM Inference Patterns and Release
We design five inference patterns varying along two dimensions, information type and prompt format. The patterns are P1 Zero-Shot (drug names only), P2 Few-Shot SMILES (based on Tanimoto-similar drugs), P3 One-Hop KG triplets ((h, r, t) triplets, 3 entities/relation), P4 One-Hop KG sequence (same KG content rendered as sentences), and P5 Few-Shot 2-hop (based on two-hop shared entities). Full templates are listed in Appendix D.1.
Memorization Controls. Four controls assess drug-name dependence and potential pretraining memorization. (1) Name masking with [DRUG_A]/[DRUG_B] (Section 5.3). (2) No DDI description or interaction hint in any P1–P5 template (Appendix D.1). (3) Temporal separation, with approved-year stratification and four temporal splits showing no Recall advantage for older drugs (Appendix D.7). (4) Synonym robustness with canonical-vs-synonym substitutions on S2 showing modest indicator change (Appendix D.6). Additionally, open-weight LLMs without fine-tuning produce near-random S2 predictions (Section 5.4), indicating that pretrained DDI knowledge is not reliably expressed in direct inference.
Release. ColdDDI ships as a prediction and evaluation platform with automated annotation tools. All released artifacts (mechanism annotations, drug-wise splits, prompt templates, evaluation code, and diagnostic scripts) are available through our code repository for reproduction. The full repository layout, reproduction, hardware requirements, and licensing terms are in Appendix A.6.
4 Experiments
4.1 Models
Conventional Baselines. We select eight approaches spanning the three input modalities (molecular structure, KG, and text) for DDI prediction. Matrix-Based: DeepDDI [1] encodes each drug as a PCA-reduced Tanimoto similarity profile against a reference set. Molecular Graph-Based: SSI-DDI [7], DSN-DDI [8], and HDN-DDI [9] encode each drug from its SMILES-derived molecular graph. KG-Only: EmerGNN [14] performs flow-based bidirectional message passing on the DrugBank biomedical KG. Hybrid: TIGER [13] uses multi-relation KG embeddings and MKG-FENN [12] fuses multi-modal KG features with chemical fingerprints. Pretrained LM: TextDDI [15] encodes textual drug descriptions from DrugBank and PubChem. LLMs. We evaluate 11 open-source LLMs from three families spanning 0.5B–14B (Llama-3.2 1B/3B [30], Llama-2 7B/13B [31], Qwen 2.5 0.5B/3B/7B/14B [32], Gemma 3 1B/4B/12B [33]), plus two proprietary LLMs (GPT-4o [34], Claude Sonnet 4.6 [35]) for ceiling reference. Each open-source LLM is run under direct inference and LoRA fine-tuning [36] across all five P1–P5 patterns. Two proprietary LLMs are run under direct inference only. For output scoring we use the softmax of the Yes/No token logits for open-source models and elicit an explicit [0, 1] confidence for proprietary ones. The hyperparameters of conventional baseline and LoRA configurations are shown in Appendix C.1 and Appendix D.2.
4.2 Evaluation Protocols and Modality Analysis
Evaluation Protocol. D1 evaluates on S0/S1/S2 cold-start splits. We report mean AUC-ROC and Recall over three random seeds (full results in Appendices C.3 and D.4). The 1,900-drug set is the primary evaluation set for the eight baselines and the best LLM by combined AUC-ROC and Recall. Other LLM and modality analyses use a stratified 800-drug subset, justified by modest prediction gap relative to the full dataset (Appendix B.3). D2, D3, and D4 inherit D1's predictions and apply post-hoc stratifications, sharing identical splits and per-epoch negatives across all methods.
Modality Decomposition. A factorial on S2 crosses drug name (visible vs. [DRUG_A/B]) with shared mediating entities (preserved vs. [ENTITY]), yielding R0/R1/R2/R3 (formal definition in Table 52) whose pairwise comparisons isolate each channel's controlled contribution. To further quantify per-modality contribution for both conventional baselines and LLMs, we additionally adopt a drug-swap protocol: given with label , identify with . KPS-F = measures drug-replacement sensitivity; channel-specific KPS-Name / KPS-KG / KPS-mol use symmetric channel masking on both drugs; KSAI = KPS-KG_name-masked - KPS-KG_name-present measures how much the drug name compensates for KG perturbation (LLMs only). For any per-bucket metric (Recall, KPS-F, etc.), we report an A-B gap = , where positive values indicate stronger Type A sensitivity.
5 Results and Analysis
5.1 Cold-Start Degradation Is Real and Model-Independent
Table 3 reports S0/S1/S2 AUC-ROC and Recall. Full indicators are in Appendices C.3 and D.4.
Finding #1: Cold-start degradation cuts across architectures. Every method, from matrix-based DeepDDI to pretrained TextDDI, and fine-tuned Llama-3.2-1B, declines by 15–44 AUC points from S0 to S2 (Table 3). The drop is therefore not a property of any single design choice but a property of evaluating against unseen drugs. In the hardest S2 split, fine-tuned Llama-3.2-1B (P4) and EmerGNN achieve the best and second-best results (AUC 0.764 / Recall 0.652 vs. 0.707 / 0.619), excluding the high-variance DSN-DDI. DSN-DDI's S2 mean appears competitive but its large cross-seed variance (±0.063 AUC, ±0.095 Recall, around 10% relative change) indicates limited robustness.
Table 3: AUC-ROC and Recall on the 1,900-drug set (3-seed mean±std). Best in bold.
| Group | Method | AUC-ROC | Recall | ||||
|---|---|---|---|---|---|---|---|
| S0 | S1 | S2 | S0 | S1 | S2 | ||
| Matrix | DeepDDI [1] | ||||||
| SSI-DDI [7] | |||||||
| Mol-Graph | DSN-DDI [8] | ||||||
| HDN-DDI [9] | |||||||
| KG-only | EmerGNN [14] | ||||||
| TIGER [13] | |||||||
| KG-integrated | MKG-FENN [12] | ||||||
| Pretrained LM | TextDDI [15] | ||||||
| LLM (FT) | Llama-3.2-1B (P4) | ||||||
DSN-DDI exhibits large cross-seed variance, indicating limited robustness.
MKG-FENN predicts 99.96% of S2 pairs as positive, with precision 0.500.
Table 4: S2 Recall and AUC-ROC by mechanism subtype on the 800-drug subset (3-seed mean±std). Best in bold.
| Method | PK-A | PK-B | PD-A | PD-B | A-B gap | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Recall | AUC-ROC | Recall | AUC-ROC | Recall | AUC-ROC | Recall | AUC-ROC | Recall | AUC-ROC | |
| DeepDDI | ||||||||||
| SSI-DDI | ||||||||||
| DSN-DDI | ||||||||||
| HDN-DDI | ||||||||||
| EmerGNN | ||||||||||
| TIGER | ||||||||||
| MKG-FENN | ||||||||||
| TextDDI | ||||||||||
| LLM-FT | ||||||||||
MKG-FENN's uniformly high Recall and near-zero Recall gap are saturation artifacts (see Table 3). On the 800-drug subset, it predicts 98.29% of S2 pairs as positive, with precision 0.503. These Recall entries are excluded from bolding.
Table 5: Masking effects and cross-channel asymmetry on LLM-FT (, 800-drug subset, 3-seed mean±std). Columns 2–4 are AUC-ROC vs. R0 per mask condition. KSAI is the per-pair averaged defined in Appendix E.1. Bold marks the dominant channel per row.
| Group | Entity mask (R0→R2) | Name mask (R0→R1) | Both mask (R0→R3) | KSAI | Dominant channel |
|---|---|---|---|---|---|
| PK-A | Entity | ||||
| PK-B | Name | ||||
| PD-A | Entity | ||||
| PD-B | Name | ||||
| ALL |
These aggregate scores do not explain why models fail. The S2 column collapses heterogeneous failure modes into a single number, hiding which pharmacological regime each method fails on.
5.2 KG Mediator Availability, Not PK/PD, Drives Cold-Start Failure
To localize where aggregate S2 breaks down, we stratify each test pair by pharmacological mechanism (PK vs. PD) and by KG mediator availability (Type A vs. Type B, Section 3.3). Table 4 reports per-subtype S2 Recall and AUC-ROC on the 800-drug subset. Within each seed, AUC-ROC compares each positive subtype against the same complete S2 sampled-unrecorded pool. Per-method breakdowns by Tanimoto-similarity tier are in Appendix C.4. Additional stratified metrics and their sensitivity to the sampled-unrecorded comparison pool are reported in Appendix C.5.
Finding #2: Difficulty separates along Type A vs. Type B, not along PK vs. PD. On the strongest methods, Type A regimes are near-solved while Type B regimes remain hard. LLM-FT recalls 89–93% of PK-A and PD-A pairs but only 40–62% of PK-B and PD-B pairs, an A–B gap of +0.398, mirrored by EmerGNN (+0.388). The paired 95% confidence intervals lie entirely above zero for five of the nine methods, including LLM-FT and EmerGNN (Appendix C.6). The Type A advantage
Table 6: KPS-F and A–B gap by method class (Section 4), 3-seed mean±std on 800-drug subset, S2.
| Group | Method | Absolute KPS-F | A-B gap |
|---|---|---|---|
| Matrix | DeepDDI | ||
| SSI-DDI | |||
| Mol-Graph | DSN-DDI | ||
| HDN-DDI | |||
| KG-only | EmerGNN | ||
| KG-integrated | TIGER | ||
| MKG-FENN | |||
| Pretrained LM | TextDDI | ||
| LLM (fine-tuned) | Llama-3.2-1B (P4) |
Table 7: Attention intervention on LLM-FT (Llama-3.2-1B, S2, single random seed). Attention from the answer token to KG-entity (resp. name) tokens is zeroed across every layer and head. AUROC vs. unintervened baseline.
| Intervention | PK-A | PK-B | PD-A | PD-B |
|---|---|---|---|---|
| Zero KG attention | -0.219 | -0.061 | -0.191 | -0.081 |
| Zero name attention | +0.000 | -0.040 | -0.002 | -0.036 |
also persists under PharmGKB [37], ChEMBL [38], and KEGG [39] enrichment, as shown in Appendix C.7. Higher training frequencies of shared mediators or DDI types do not consistently yield higher Recall (Appendix C.8). By comparison, PK/PD differences are several-fold smaller. The dividing axis between easy and hard cold-start cases is therefore whether the KG annotates shared mediating entities, not which pharmacological class the interaction belongs to.
The magnitude of the A–B gap varies sharply across methods. Mol-graph baselines show moderate gaps (+0.067 to +0.215); TIGER and MKG-FENN stay nearly flat (+0.071 and +0.006 respectively) despite identical KG access. EmerGNN and LLM-FT show larger and comparable gaps. The former's gap aligns with its bidirectional flow-propagation design, which expands the set of shared entities that act as mediating bridges by routing them in both directions. Baselines without such routing (TIGER, MKG-FENN) cannot trace mediating paths even with the same KG access. Two methods with the same KG inputs can therefore differ substantially in A–B sensitivity, suggesting that having mediating evidence and using it are different things.
5.3 KG Access Does Not Imply Knowledge Utilization
In COLDDDI, knowledge utilization denotes measurable predictive dependence on a provided information channel under controlled perturbation. To test whether KG access translates into KG utilization, we apply three perturbations: (i) prompt-level masking, replacing drug names or KG-entity strings with placeholders on LLM-FT, measuring AUC-ROC vs. the unmasked condition (Appendix E.2); (ii) cross-method drug-replacement, swapping one drug in each S2 positive pair with an opposite-label cold alternate and quantifying how this swap shifts the prediction (Appendix E.1); and (iii) attention-level intervention, zeroing attention weights from the answer token to a target token class inside LLM-FT (Appendix E.4).
Finding #3 (prompt-level): Type A is entity-dominated, and Type B is name-dominated with cross-channel compensation. Table 5 shows entity masking dominates Type A (PK-A -8.0, PD-A -2.9 vs. name +1.5, -0.6) and name masking dominates Type B (PK-B -4.4, PD-B -3.4 vs. entity +0.4, -1.6). KSAI (cross-channel asymmetry) is modest on Type A (+0.025) and larger on Type B (+0.040, Figure 6), so compensation is concentrated where no mediator anchors the prediction. Temporal analysis, direct inference, and input masking jointly inform the assessment of pretraining memorization in Appendix D.8.
Finding #4 (cross-method): Only LLM-FT and EmerGNN show A–B sensitivity, and other methods remain bridge-blind. Table 6 reports KPS-F and its A–B gap across nine methods. EmerGNN (+0.170) and LLM-FT (+0.145) stand out with large A–B gaps. Type A drug swaps shift their predictions more than Type B swaps, indicating active use of mediating entities. The remaining seven methods (DeepDDI, SSI-DDI, DSN-DDI, HDN-DDI, TIGER, MKG-FENN, TextDDI) show
Table 8: S2 AUC for LLMs (P4, 800-drug subset). FT is 3-seed mean, Inf single-seed. Bold marks per-family best (combined AUC-ROC and Recall, Appendix D.4). Closed-source metrics in Table 40.
| Llama | Qwen 2.5 | Gemma 3 | Closed-source | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Size | Inf | FT | Size | Inf | FT | Size | Inf | FT | Model | Inf |
| 3.2-1B | 0.525 | 0.776 | 0.5B | 0.489 | 0.766 | 1B | 0.520 | 0.756 | GPT-4o | 0.710 |
| 3.2-3B | 0.459 | 0.785 | 3B | 0.517 | 0.769 | 4B | 0.496 | 0.781 | Claude Sonnet 4.6 | 0.751 |
| 2-7B | 0.474 | 0.731 | 7B | 0.486 | 0.740 | 12B | 0.548 | 0.798 | ||
| 2-13B | 0.513 | 0.781 | 14B | 0.510 | 0.750 | |||||
gap despite having molecular, KG, or text access. Their predictions are insensitive to whether a mediating entity exists. KG access alone therefore does not imply bridge utilization. EmerGNN gains it through bidirectional KG flow (Section 5.2), while LLM-FT learns to attend to KG tokens during fine-tuning. Per-method per-bucket and per-channel KPS values are in Appendix E.3.
Finding #5 (attention-level): LLM-FT internally routes Type A through KG attention, with weaker channel separation on Type B. Table 7 shows a Type-A dissociation. Zeroing KG attention collapses PK-A (-0.219) and PD-A (-0.191), while zeroing name attention leaves Type A intact. This finding matches the masking dissociation in Table 5, ruling out a prompt-format artifact. The stronger PK-A than PD-B response to KG-attention suppression also holds across three seeds and two LLM architectures (Appendix E.4.4). Relative to Type A, Type B is less affected by KG-attention suppression but more affected by name-attention suppression, consistent with the subtype-dependent masking pattern. The two interventions differ in scope. Masking destroys channel content globally, whereas attention zeroing blocks the answer token's direct attention to the target channel at every layer. Target content can reach the answer indirectly via intermediate tokens across layers, and zeroing forces softmax to redistribute attention mass elsewhere. The Type B effect does not isolate active channel use.
Takeaway
Cross-method KPS reveals a clear gap. Across nine methods with molecular, KG, or text inputs, only EmerGNN and LLM-FT show large A–B gaps in drug-replacement sensitivity, while the remaining seven remain bridge-blind. LLM-FT can therefore use mediating entities. Prompt-level masking and attention zeroing confirm this. Type A predictions are entity-dominated under masking, and KG attention is the necessary read-out path under intervention. KG access therefore does not imply KG utilization. EmerGNN gains this through bidirectional KG flow by design, while LLM-FT gains it through fine-tuned attention to KG tokens.
5.4 Fine-Tuned LLMs Improve S2 Performance but Remain Bridge-Dependent
We audit whether scale, prompting, or fine-tuning produces cold-start DDI capability within the LLM family. Table 8 reports S2 AUC on the 800-drug subset across three open-weight families (Llama, Qwen 2.5, Gemma 3) with multiple sizes and two closed-source models (GPT-4o, Claude Sonnet 4.6), under both direct inference and LoRA fine-tuning on prompt P4.
Finding #6: Direct prompting fails as a cold-start DDI solution, while LoRA fine-tuning under P4 succeeds without a monotonic scale advantage. Across Llama, Qwen 2.5, and Gemma 3 from 0.5B to 14B, direct inference stays near random and collapses to a single answer, and closed-source GPT-4o and Claude Sonnet 4.6 fall short of the best fine-tuned open-weight LLMs. LoRA fine-tuning raises S2 AUC to 0.73–0.80 across small and mid-size models, while larger same-family variants do not yield monotonic improvement. A bridge here is a KG mediating entity linking the two drugs, and Section 5.3 shows LLM-FT underperforms on Type B pairs lacking a usable bridge, leaving the fine-tuning gain bridge-dependent. Per-model and per-prompt details are in Appendices D.3 and D.4. Additional comparisons using clinical drug descriptions, alone or alongside KG context, are reported in Appendix D.4.1.
6 Conclusion
A key evaluation question for new drugs is whether a DDI predictor can use their drug-level evidence available when interaction history is absent. This paper proposed COLDDDI to address this question, which turns cold-start DDI evaluation from an aggregate ranking task into a diagnostic test of knowledge utilization. The drug-wise splits, mechanism-aware annotations, and controlled perturbations of COLDDDI separate three factors that prior evaluations often collapsed, namely, drug novelty, the availability of biomedical mediators, and the model dependence on them. Our empirical findings are clear and consistent across model families. All methods lose accuracy when test drugs lack training-time interaction history; yet, the stratified results show that drug novelty alone does not explain the errors. The main performance divide is whether the knowledge graph provides a direct pharmacological bridge between the two drugs. Drug pairs linked by a shared enzyme, transporter, or target are much easier; pairs without such a mediator require indirect reasoning over weaker or multi-hop evidence, where current models fail more often. This stratification separates knowledge access from knowledge use. Several KG-augmented or multimodal baselines receive relevant KG inputs but remain weakly sensitive to mediator removal or drug replacement. In contrast, the fine-tuned LLM predictions change more substantially when the shared mediators are masked or disrupted. When an explicit KG bridge is available for those LLMs, predictions are routed mainly through KG-entity evidence; without such bridge, they rely more heavily on auxiliary information such as drug names. The LLM audit further shows that scale and prompting alone do not change this pattern. We conclude that fine-tuned LLMs can be useful cold-start DDI predictors when explicit biomedical mediators are available, but they should not yet be interpreted as general-purpose pharmacological reasoners.
Limitations and Future Work. COLDDDI has several scope limitations. First, the main task is binary DDI prediction; although the same drug-wise protocol extends to multi-class event-type prediction (see results in Appendix B.4), fine-grained prediction remains affected by the long-tailed distribution of DrugBank interaction types. Second, the PK/PD taxonomy is keyword-based, albeit human-validated (Appendix A.4), and may simplify borderline or mixed mechanisms. Third, COLDDDI is derived from DrugBank 5.1.13 alone, so its labels, KG facts, and mediator annotations inherit DrugBank's curation biases and open-world incompleteness. In particular, the absence of an annotated enzyme, transporter, or target bridge should be interpreted as the absence of a direct DrugBank-recorded bridge, not as evidence that no biological mediator exists.
These limitations also define the next research direction. The hardest cold-start cases are interactions without explicit KG bridges, where models must reason over distributed, indirect, or multi-hop pharmacological evidence rather than retrieve a shared mediator. Promising directions include multi-hop relational attention and pathway-level evidence aggregation, recovery of missing mediator evidence through KG completion or external retrieval, and adaptive integration of molecular, textual, and KG information. The diagnostic indicators introduced here, including KPS and KSAI, can extend naturally to other inductive biomedical prediction tasks where knowledge access and knowledge utilization must be separated. We release annotations, splits, prompts, evaluation code, and a reconstruction pipeline to support such follow-up work (Appendix A.6).
Broader Impact. COLDDDI is intended to make cold-start DDI evaluation more rigorous and interpretable. By separating drug novelty, mediator availability, and perturbation-sensitive knowledge use, the benchmark helps identify when a model exploits pharmacological evidence and when it instead relies on shortcut signals such as drug-name recall or aggregate co-occurrence patterns. This can support safer model development for pharmacovigilance, post-marketing surveillance, drug repurposing, and early safety screening of newly approved or poorly characterized drugs. The intended role of COLDDDI is diagnostic and comparative, i.e., to expose where current methods use mechanistic evidence, where they fail despite receiving it, and which failure modes must be addressed before cold-start DDI prediction can responsibly inform clinical or regulatory workflows.
References
[1] Jae Yong Ryu, Hyun Uk Kim, and Sang Yup Lee. Deep learning improves prediction of drug-drug and drug-food interactions. Proceedings of the national academy of sciences, 115(18):E4304–E4311, 2018.
[2] David S Wishart, Yannick D Feunang, An C Guo, Elvis J Lo, Ana Marcu, Jason R Grant, Tanvir Sajed, Daniel Johnson, Carin Li, Zinat Sayeeda, et al. Drugbank 5.0: a major update to the drugbank database for 2018. Nucleic acids research, 46(D1):D1074–D1082, 2018.
[3] Xuan Lin, Lichang Dai, Yafang Zhou, Zu-Guo Yu, Wen Zhang, Jian-Yu Shi, Dong-Sheng Cao, Li Zeng, Haowen Chen, Bosheng Song, et al. Comprehensive evaluation of deep and graph learning on drug-drug interactions prediction. Briefings in bioinformatics, 24(4):bbad235, 2023.
[4] Pieter Dewulf, Michiel Stock, and Bernard De Baets. Cold-start problems in data-driven prediction of drug–drug interaction effects. Pharmaceuticals, 14(5):429, 2021.
[5] Arnold K Nyamabo, Hui Yu, Zun Liu, and Jian-Yu Shi. Drug–drug interaction prediction with learnable size-adaptive molecular substructures. Briefings in Bioinformatics, 23(1):bbab441, 2022.
[6] Remzi Celebi, Huseyin Uyar, Erkan Yasar, Ozgur Gumus, Oguz Dikenelli, and Michel Dumontier. Evaluation of knowledge graph embedding approaches for drug-drug interaction prediction in realistic settings. BMC bioinformatics, 20(1):726, 2019.
[7] Arnold K Nyamabo, Hui Yu, and Jian-Yu Shi. Ssi-ddi: substructure–substructure interactions for drug–drug interaction prediction. Briefings in Bioinformatics, 22(6):bbab133, 2021.
[8] Zimeng Li, Shichao Zhu, Bin Shao, Xiangxiang Zeng, Tong Wang, and Tie-Yan Liu. Dsn-ddi: an accurate and generalized framework for drug–drug interaction prediction by dual-view representation learning. Briefings in Bioinformatics, 24(1):bbac597, 2023.
[9] Jinchen Sun and Haoran Zheng. Hdn-ddi: a novel framework for predicting drug-drug interactions using hierarchical molecular graphs and enhanced dual-view representation learning. BMC bioinformatics, 26(1):28, 2025.
[10] Yuqin He, Tengfei Ma, Chaoyi Li, Pengsen Ma, Hongxin Xiang, Jianmin Wang, Yiping Liu, Bosheng Song, and Xiangxiang Zeng. Imageddi: Image-enhanced molecular motif sequence representation for drug-drug interaction prediction. Information Fusion, page 103574, 2025.
[11] Yue Yu, Kexin Huang, Chao Zhang, Lucas M Glass, Jimeng Sun, and Cao Xiao. Sumgnn: multi-typed drug interaction prediction via efficient knowledge graph summarization. Bioinformatics, 37(18):2988–2995, 2021.
[12] Di Wu, Wu Sun, Yi He, Zhong Chen, and Xin Luo. Mkg-fenn: A multimodal knowledge graph fused end-to-end neural network for accurate drug–drug interaction prediction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 10216–10224, 2024.
[13] Xiaorui Su, Pengwei Hu, Zhu-Hong You, Philip S Yu, and Lun Hu. Dual-channel learning framework for drug-drug interaction prediction via relation-aware heterogeneous graph transformer. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages 249–256, 2024.
[14] Yongqi Zhang, Quanming Yao, Ling Yue, Xian Wu, Ziheng Zhang, Zhenxi Lin, and Yefeng Zheng. Emerging drug interaction prediction enabled by a flow-based graph neural network with biomedical network. Nature Computational Science, 3(12):1023–1033, 2023.
[15] Fangqi Zhu, Yongqi Zhang, Lei Chen, Bing Qin, and Ruifeng Xu. Learning to describe for predicting zero-shot drug-drug interactions. In Proceedings of the 2023 conference on empirical methods in natural language processing, pages 14855–14870, 2023.
[16] Chengqi Xu, Krishna C Bulusu, Heng Pan, and Olivier Elemento. Ddi-gpt: Explainable prediction of drug-drug interactions using large language models enhanced with knowledge graphs. BioRxiv, pages 2024–12, 2024.
[17] Mohammad Tanhaei. Ddi-llm: Predicting unseen drug–drug interactions using large language models and molecular graphs. Intelligent Pharmacy, 2025.
[18] Gabriele De Vito, Filomena Ferrucci, and Athanasios Angelakis. Llms for drug-drug interaction prediction using textual drug descriptors. Knowledge-Based Systems, page 115486, 2026.
[19] Hengbo Zhang, Yingying Wang, Xinyu Gao, and Yun Xiong. Raddi: A retrieval augmented framework for drug-drug interaction prediction. Big Data Mining and Analytics, 9(2):360–375, 2026.
[20] Zhenqian Shen, Mingyang Zhou, Yongqi Zhang, and Quanming Yao. Benchmarking drug–drug interaction prediction methods: a perspective of distribution changes. Bioinformatics, 41(11): btaf569, 2025.
[21] Xinmo Jin, Bowen Fan, Xunkai Li, Henan Sun, YuXin Zeng, Zekai Chen, Yuxuan Sun, Jia Li, Qiangqiang Dai, Hongchao Qin, et al. Openddi: A comprehensive benchmark for ddi prediction. arXiv preprint arXiv:2602.00539, 2026.
[22] Nicholas P Tatonetti, Patrick P Ye, Roxana Daneshjou, and Russ B Altman. Data-driven prediction of drug effects and interactions. Science translational medicine, 4(125):125ra31–125ra31, 2012.
[23] Marinka Zitnik, Monica Agrawal, and Jure Leskovec. Modeling polypharmacy side effects with graph convolutional networks. Bioinformatics, 34(13):i457–i466, 2018.
[24] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. Advances in Neural Information Processing Systems, 33:22118–22133, 2020.
[25] Kexin Huang, Tianfan Fu, Wenhao Gao, Yue Zhao, Yusuf Roohani, Jure Leskovec, Connor W. Coley, Cao Xiao, Jimeng Sun, and Marinka Zitnik. Therapeutics data commons: Machine learning datasets and tasks for drug discovery and development. In Advances in Neural Information Processing Systems 34, Datasets and Benchmarks Track, 2021. URL https://arxiv.org/abs/2102.09548.
[26] Guoli Xiong, Zhijiang Yang, Jiacai Yi, Ningning Wang, Lei Wang, Huimin Zhu, Chengkun Wu, Aiping Lu, Xiang Chen, Shao Liu, et al. Ddinter: an online drug–drug interaction database towards improving clinical decision-making and patient safety. Nucleic acids research, 50(D1): D1200–D1207, 2022.
[27] Claire L. Preston, editor. Stockley's Drug Interactions. Pharmaceutical Press, 11 edition, 2016.
[28] Laurence L Brunton, Björn C Knollmann, Randa Hilal-Dandan, et al. Goodman & Gilman's the pharmacological basis of therapeutics, volume 13. McGraw-Hill Education New York, 2018.
[29] Feixiong Cheng and Zhongming Zhao. Machine learning-based prediction of drug–drug interactions by integrating drug phenotypic, therapeutic, chemical, and genomic properties. Journal of the American Medical Informatics Association, 21(e2):e278–e286, 2014.
[30] Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
[31] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
[32] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, et al. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2024.
[33] Gemma Team Aishwarya Kamath, Johan Ferret, et al. Gemma 3 technical report. ArXiv, abs/2503.19786, 2025. URL https://api.semanticscholar.org/CorpusID:277313563.
[34] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
[35] Anthropic. The claude 3 model family: Opus, sonnet, haiku. 2024. URL https://api.semanticscholar.org/CorpusID:268232499.
[36] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
[37] Li Gong, Michelle Whirl-Carrillo, and Teri E Klein. Pharmgkb, an integrated resource of pharmacogenomic knowledge. Current protocols, 1(8):e226, 2021.
[38] Barbara Zdrazil, Eloy Felix, Fiona Hunter, Emma J Manners, James Blackshaw, Sybilla Corbett, Marleen De Veij, Harris Ioannidis, David Mendez Lopez, Juan F Mosquera, et al. The chembl database in 2023: a drug discovery platform spanning multiple bioactivity data types and time periods. Nucleic acids research, 52(D1):D1180–D1192, 2024.
[39] Minoru Kanehisa, Miho Furumichi, Yoko Sato, Yuriko Matsuura, and Mari Ishiguro-Watanabe. Kegg: biological systems database as a model of the real world. Nucleic acids research, 53(D1): D672–D677, 2025.
NeurIPS Paper Checklist
1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: Yes. Section 1 enumerates three contributions, namely (i) a mechanism-readable cold-start evaluation that couples drug-wise S0/S1/S2 splits with PK/PD × Type-A/B annotations, (ii) knowledge-utilization diagnostics (controlled masking, drug-replacement sensitivity, KPS, and KSAI), and (iii) a controlled audit of eight conventional baselines and 13 LLMs under the same cold-start protocol. Each is substantiated by experiments in Section 5 and the appendix tables.
Guidelines:
• The answer NA means that the abstract and introduction do not include the claims made in the paper.
• The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers.
• The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
• It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Section 6 contains a “Limitations and Future Work” paragraph discussing three limitations of ColdDDI: the main paper adopts binary detection (a 215-class extension is reported in Section B.4), the PK/PD taxonomy is keyword-based with two-annotator human verification (Section A.4), and the data source is DrugBank 5.1.13 alone.
Guidelines:
• The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper.
• The authors are encouraged to create a separate "Limitations" section in their paper.
• The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
• The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
• The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
• The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
• If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
• While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
3. Theory Assumptions and Proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [N/A]
Justification: ColdDDI is an empirical benchmark and evaluation study, which does not present formal theorems or proofs.
Guidelines:
• The answer NA means that the paper does not include theoretical results.
• All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
• All assumptions should be clearly stated or referenced in the statement of any theorems.
• The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
• Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
• Theorems and Lemmas that the proof relies upon should be properly referenced.
4. Experimental Result Reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Section 4 states the splits, models, and evaluation protocol. Section C.1 and Table 26 list per-baseline hyperparameters. Section D.2 and Table 37 list the LoRA configuration. Section C.2 pins the unified training protocol shared across all methods. Section A.6.3 provides a five-stage reproduction walkthrough from DrugBank XML to evaluation.
Guidelines:
• The answer NA means that the paper does not include experiments.
• If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
• If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
• Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
• While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example
(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm.
(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully.
(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset).
(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: All derivative artifacts (mechanism annotations, drug-wise split indices, prompt templates, baseline and LLM evaluation code, and the reconstruction pipeline) are released through the code repository https://github.com/02171jh/ColdDDI-NeurIPS2026. DrugBank's academic license prohibits redistribution of the underlying records, so users should supply their own DrugBank 5.1.13 XML and run reconstruct.py to rebuild the benchmark. The five-stage walkthrough is in Section A.6.3 and license terms are in Section A.6.5.
Guidelines:
• The answer NA means that paper does not include experiments requiring code.
• Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details.
• While we encourage the release of code and data, we understand that this might not be possible, so “No” is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
• The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details.
• The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
• The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
• At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
• Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
6. Experimental Setting/Details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results?
Answer: [Yes]
Justification: Drug-wise splits and per-split edge counts are specified in Section 3.2 and Section B.1. The negative-sampling strategy and per-epoch re-sampling protocol are in Section B.2. For per-baseline optimizers, learning rates, and architecture dimensions, they are listed in Table 26. The LoRA adapter configuration, including how it was selected from an Optuna search, is in Table 36 and Table 37.
Guidelines:
• The answer NA means that the paper does not include experiments.
• The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
• The full details can be provided either with the code, in appendix, or as supplemental material.
7. Experiment Statistical Significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: All cross-method headline comparisons are 3-seed mean over three random seeds (Tables 3 to 5). Table 6 additionally reports mean±std, and every appendix table that reports per-method or per-bucket numbers (Sections C.3, D.4, D.5 and E.3) gives mean±std. The attention-level experiments in Section E.4 are run on a single random seed.
Guidelines:
• The answer NA means that the paper does not include experiments.
• The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
• The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
• The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
• The assumptions made should be given (e.g., Normally distributed errors).
• It should be clear whether the error bar is the standard deviation or the standard error of the mean.
• It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
• For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates).
• If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
8. Experiments Compute Resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: Table 26 reports per-baseline parameter counts and wall-clock on a single RTX 5090 for both the 800-drug subset and the 1,900-drug full benchmark. Section A.6.4 lists the general hardware and software requirements (Python 3.10, single 5090 or 2×A40 GPU). Section D.2 documents the LLM fine-tuning compute (2×A40 96 GB, ~1,400 single-GPU hours total, per-cell 5–20 hours by model size).
Guidelines:
• The answer NA means that the paper does not include experiments.
• The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
• The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
• The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
9. Code Of Ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The dataset is derived from DrugBank under their academic license, with redistribution restrictions respected by releasing only derivative artifacts plus a reconstruction pipeline (Section A.6.5). All prior baselines and benchmarks are cited with their original publications. The human-verification annotation protocol uses externally recruited graduate-level annotators with a written rubric, inter-annotator agreement reporting, and third-party conflict resolution (Section A.4).
Guidelines:
• The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics.
• If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics.
• The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
10. Broader Impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Section 6 contains a “Broader Impact” paragraph discussing both the positive impact (more rigorous and interpretable cold-start DDI evaluation) and the cautionary note that COLDDDI’s role is diagnostic and predictions must be validated before responsibly informing clinical or regulatory workflows.
Guidelines:
• The answer NA means that there is no societal impact of the work performed.
• If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact.
• Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
• The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
• If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: ColdDDI releases only annotations, splits, prompts, and evaluation code. The model artifacts to be released are task-specific LoRA adapters for binary DDI prediction
(not generation), and the dataset is derived from the peer-curated DrugBank rather than scraped from the web. Clinical-deployment considerations are addressed in the Broader Impact paragraph of Section 6.
Guidelines:
• The answer NA means that the paper poses no such risks.
• Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
• Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
• We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: DrugBank 5.1.13 is cited and used under its academic license (Section A.6.5). The eight conventional baselines and 13 LLMs are each cited with their original publications in Section 4.1 and Section C.1. Software dependencies, including RDKit, PEFT, and Transformers, are specified in requirements.txt.
Guidelines:
• The answer NA means that the paper does not use existing assets.
• The authors should cite the original paper that produced the code package or dataset.
• The authors should state which version of the asset is used and, if possible, include a URL.
• The name of the license (e.g., CC-BY 4.0) should be included for each asset.
• For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
• If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
• For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
• If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
13. New Assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: All new artifacts (annotations, splits, prompts, code, diagnostic indicators) are released with the repository layout in Section A.6.2, a reproduction walkthrough in Section A.6.3, and licensing terms in Section A.6.5.
Guidelines:
• The answer NA means that the paper does not release new assets.
• Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
• The paper should discuss whether and how consent was obtained from people whose asset is used.
• At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and Research with Human Subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [Yes]
Justification: Section A.4 documents the two-annotator taxonomy validation protocol, including sampling design, recruitment of graduate-level annotators, the annotation rubric and reference materials, and the conflict-resolution procedure. Annotators received no monetary compensation and participated voluntarily as part of an academic collaboration.
Guidelines:
• The answer NA means that the paper does not involve crowdsourcing nor research with human subjects.
• Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional Review Board (IRB) Approvals or Equivalent for Research with Human Subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The annotation task only labels public DrugBank pharmacology descriptions and involves no personal data, identifiable subjects, or interventions, so it does not constitute human-subjects research requiring IRB approval.
Guidelines:
• The answer NA means that the paper does not involve crowdsourcing nor research with human subjects.
• Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
• We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
• For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
Appendix Contents
A Dataset Construction 22
A.1 Filtering Pipeline 22
A.2 PK/PD Keyword Matching 22
A.3 A/B Subclassification Details 23
A.4 Taxonomy Validation 25
A.5 Dataset Statistics and Prior Comparison 27
A.6 Licensing, Artifact, and Reproduction Pipeline 28
B Evaluation Splits and Sampling 32
B.1 Split Construction and Statistics 32
B.2 Negative Sampling Strategy 33
B.3 Subset Representativeness and Stability 35
B.4 Task Formulation Extension: Multi-Class Event-Type Prediction 38
C Baseline Implementations 38
C.1 Method Descriptions and Hyperparameters 38
C.2 Training Protocol and Hardware 41
C.3 Full Test Metrics 41
C.4 Stratified Test Metrics by Mechanism × Similarity 42
C.5 Negative-Pool Sensitivity of Stratified Metrics 43
C.6 Confidence Intervals for the A–B Recall Gap 44
C.7 Sensitivity to External Mediator Annotations 45
C.8 Performance Across Training-Frequency Bins 45
D LLM Configuration and Experiments 46
D.1 Prompt Templates (P1–P5) 46
D.2 LoRA Fine-Tuning Configuration 49
D.3 Direct Inference Results 51
D.4 Fine-Tuned Per-Model Per-Pattern Results 52
D.5 Mechanism × Similarity Analysis (Fine-Tuned LLMs) 53
D.6 Memorization Control: Synonym Robustness 54
D.7 Memorization Control: Temporal Analysis 57
D.8 Assessing Pretraining Memorization 59
E Diagnostic Analysis Details 59
E.1 Formal KPS Definitions 59
E.2 Masking Experiment: Full Factorial Decomposition 60
E.3 Full KPS Tables 62
E.4 Attention-Level Channel Analysis 62
E.5 Embedding Geometry Evidence for Mechanism and KG Utilization 65
A Dataset Construction
A.1 Filtering Pipeline
COLDDDI is constructed from DrugBank 5.1.13 [2] (released January 2025), which contains 17,430 drug entries spanning small molecules, biologics, and investigational compounds. We apply a seven-step construction pipeline to retain only clinically relevant small-molecule drugs with machine-readable structural representations. Table 9 summarizes the per-step statistics.
Step 1: Small-Molecule Selection. We retain only entries whose DrugBank type is small molecule, discarding biologics (e.g., monoclonal antibodies, peptides) and other non-small-molecule entries. This reduces the set from 17,430 to 13,166 drugs.
Step 2: SMILES Validation. Each remaining drug is required to have a SMILES string that can be parsed by RDKit (v2023.09) without errors. Entries with missing, malformed, or unparseable SMILES are removed. Combined with Step 1, 12,303 drugs remain.
Step 3: Approved-Drug Restriction. We restrict to compounds whose DrugBank groups field includes approved, filtering out investigational, experimental, and withdrawn drugs. The intersection of Steps 1–3 yields 2,643 drugs.
Step 4: DDI Edge Extraction and Description Normalization. The 2,643 retained drugs participate in 613,514 pairwise DDI edges. Each DDI entry carries a natural-language template (e.g., “Lovastatin may decrease the excretion rate of Metformin, which could result in a higher serum level”); we strip the two drug names and normalize whitespace to obtain a canonical type string (e.g., “may decrease the excretion rate of which could result in a higher serum level”). This normalization yields 451 unique types across the 613,514 edges.
Step 5: Low-Frequency Type Removal. DDI types with fewer than 10 occurrences are discarded to suppress noise from rare descriptions. This removes 230 types (51%) and 459 edges (0.07%). Drugs left without any remaining DDI edges are dropped at the same step (drop 492 drugs), leaving 221 types and 613,055 edges across 2,151 drugs.
Step 6: Inorganic and Metal-Containing Molecule Removal. Two chemical filters are applied via RDKit atom-level inspection. First, drugs whose molecular structure lacks any carbon atom are excluded (76 drugs), as they represent inorganic compounds. Second, drugs containing common metal elements (alkali, alkaline earth, transition, and post-transition metals) are removed (142 drugs, with some overlap). After also dropping drugs that no longer appear in any remaining DDI edge, 1,994 drugs and 565,978 pairs remain.
Step 7: Low-Degree Drug Removal. Drugs with fewer than 10 DDI edges are removed to ensure sufficient interaction context. This removes 94 drugs (predominantly amino acids, vitamin derivatives, and topical agents with sparse documented interactions). The final dataset contains 1,900 drugs, 565,731 positive DDI pairs, and 215 interaction types.
Table 9: Filtering pipeline statistics. Each step is applied cumulatively.
| Step | Operation | Drugs | DDI Edges | DDI Types |
|---|---|---|---|---|
| 0 | DrugBank 5.1.13 (raw) | 17,430 | 1,427,655 | n/a |
| 1 | Retain small molecules | 13,166 | 1,205,013 | n/a |
| 2 | Require valid RDKit SMILES | 12,303 | 1,161,857 | n/a |
| 3 | Restrict to approved compounds | 2,643 | 613,514 | n/a |
| 4 | Extract DDI edges & normalize descriptions | 2,643 | 613,514 | 451 |
| 5 | Remove DDI types with <10 occurrences | 2,151 | 613,055 | 221 |
| 6 | Remove inorganic & metal-containing drugs | 1,994 | 565,978 | 215 |
| 7 | Remove low-degree drugs (degree < 10) | 1,900 | 565,731 | 215 |
A.2 PK/PD Keyword Matching
Each DDI type in DrugBank is associated with a canonical mechanism description template that implicitly encodes whether the interaction operates through a PK or PD pathway [27, 28]. PK interactions concern the absorption, distribution, metabolism, or excretion (ADME) of one or both drugs (for example, inhibition of a shared CYP enzyme leading to elevated serum concentration). PD interactions modify the pharmacological effect at the target site (such as additive CNS depression when two central-nervous-system depressants are co-administered).
We classify the 215 DDI types into PK or PD categories by matching their description templates against two curated keyword lists:
-
PK keywords (ADME-related language): metabolism, excretion, absorption, serum concentration, bioavailability, clearance, CYP, transporter, among other ADME-process descriptors.
-
PD keywords (pharmacological-effect language): risk, adverse effect, activities (e.g., antihypertensive, anticoagulant), therapeutic efficacy, effectiveness, bleeding, hemorrhage, QTc (prolongation), sedation, hypotensive, hypertension, arrhythmia, tachycardia, nephrotoxicity, bradycardia, analgesic, myopathy, CNS depressant, alongside additional adverse-effect descriptors enumerated in the released classifier.
A DDI type is assigned to PK if its template matches at least one PK keyword, and to PD if it matches at least one PD keyword.
PK-Precedence Tiebreak. When both keyword sets match (for example, the template “can cause an increase in the absorption of resulting in an increased serum concentration and potentially a worsening of adverse effects” matches the PK keywords absorption and serum concentration alongside the PD keyword adverse effect), we assign the label PK following the mechanism-based classification convention used in standard pharmacology reference texts [27, 28]. Interactions are classified by their initiating event rather than by their clinical manifestation. In the example above, the ADME terms describe the initiating mechanism while the effect term describes the downstream manifestation, so the underlying mechanism is pharmacokinetic. Under this rule, all 215 types receive an unambiguous PK/PD assignment, with one borderline type (84 edges) flagged as Mixed for analysis but treated as PK in the main evaluation.
The classification is performed at the DDI-type level; each of the 565,731 edges inherits the PK/PD label of its type. Table 10 summarizes the resulting distribution.
Table 10: PK/PD classification results. Mixed indicates types where both keyword sets match. In evaluation, Mixed is subsumed under PK via the precedence rule.
| Label | # DDI Types | # DDI Edges | Edge % |
|---|---|---|---|
| PK | 30 | 295,406 | 52.2% |
| PD | 184 | 270,241 | 47.8% |
| Mixed (resolved as PK) | 1 | 84 | <0.1% |
| Total | 215 | 565,731 | 100% |
Although PK accounts for only 30 of 215 types (14.0%), it covers 52.2% of all edges because the two highest-frequency types, metabolism (99,273 edges) and excretion (96,650 edges), are both PK. PD spans 184 types but is distributed across a broader range of pharmacological effects: the single keyword risk (templates such as “The risk or severity of CNS depression can be increased”) covers 123 of these types (179,729 edges), while finer-grained categories (activities 56 types, therapeutic efficacy 4 types, QTc 8 types, bleeding 9 types) capture the remaining PD interactions. Types matching multiple keyword categories are counted in each, so the finer-grained subcounts overlap. This asymmetry reflects a general pharmacological distinction: PK interactions converge on a limited set of ADME mechanisms (primarily hepatic enzyme inhibition/induction), whereas PD interactions arise from a much wider variety of receptor- and pathway-level effects.
A.3 A/B Subclassification Details
The PK/PD classification captures the type of mechanism but does not indicate whether the knowledge graph (KG) contains sufficient information to support explicit reasoning about that mechanism. We introduce a second axis (Type A vs. Type B) based on whether one or more shared biomedical entities that mediate the interaction are annotated in the KG for a given drug pair.
Shared-Entity Identification Protocol. For each positive DDI pair , we query the DrugBank-derived KG for shared biomedical entities through which the interaction plausibly operates:
-
PK Pairs: we search for shared enzymes or transporters, checking whether enzymes transporters and enzymes transporters share at least one entity with a valid action-pair combination (e.g., substrate-inhibitor, substrate-inducer). If such an entity is found, the pair is classified as PK-A; otherwise PK-B.
-
PD Pairs: we search for shared pharmacological targets, checking whether targets and targets share at least one entity with compatible actions (e.g., antagonist-antagonist, agonist-agonist, agonist-antagonist). If found, the pair is classified as PD-A; otherwise PD-B.
Mechanism Chain Representation. For each Type A pair, we record a structured mechanism chain that traces the interaction pathway through the shared mediating entity or entities. Arrow directions in the chains below depict the biological causality of the interaction (who acts on what), not DrugBank's fixed annotation direction (drug entity). Two chain patterns emerge:
PK chains are directed: the two drugs play asymmetric roles, with one drug modulating a mediating enzyme or transporter that in turn acts on the other drug. For clarity we depict the single-entity case:
For example, Lumacaftor [inhibitor] ATP-dependent translocase ABCB1 [substrate] Daptomycin. The interaction arises because one drug modifies the activity of the enzyme or transporter that processes the other (a shared-entity pattern matching signal); of PK-A pairs share two or more such entities.
PD chains are convergent: both drugs adopt the same role and act independently on one or more shared targets, in a symmetric arrangement:
For example, Bivalirudin [inhibitor] Prothrombin [inhibitor] Dabigatran etexilate. PD interactions often involve multiple overlapping targets (45% of PD-A pairs share two or more) rather than a single dominant entity.
Key-Entity Statistics. Table 11 summarizes the distribution. The 84 Mixed-type edges are resolved as PK via the precedence rule and included in the PK-A/PK-B split accordingly (21 edges as PK-A and 63 as PK-B).
Table 11: A/B subdivision statistics across all 565,731 DDI edges. n/a marks columns inapplicable to Type B by construction (no shared mediating entity).
| Group | # Edges | Edge % | # Unique Key Entities | Dominant Entity |
|---|---|---|---|---|
| PK-A | 167,718 | 29.6% | 79 (enzyme: 38, transporter: 41) | CYP3A4 (48.0% of PK-A) |
| PK-B | 127,772 | 22.6% | n/a | n/a |
| PD-A | 21,686 | 3.8% | 282 (target: 282) | Histamine H1 receptor (9.7% of PD-A) |
| PD-B | 248,555 | 43.9% | n/a | n/a |
Four observations are noteworthy:
(1) PK-A is dominated by a small set of enzymes. Among the 79 unique key entities in PK-A, CYP3A4 alone accounts for 80,432 edges (48.0%), followed by CYP2D6 (13.9%) and CYP1A2 (8.8%). The top-5 entities (CYP3A4, CYP2D6, CYP1A2, CYP3A5, and ABCB1 transporter) cover 80.8% of all PK-A edges. This concentration reflects the central role of cytochrome P450 enzymes in drug metabolism.
(2) PD-A is distributed across many targets. In contrast, PD-A spans 282 unique targets with a much flatter distribution: Histamine H1 receptor (2,109 edges) accounts for only 9.7% of PD-A. The set includes dopamine (D2), muscarinic (M1, M2), adrenergic (-1, -1A), GABAergic, serotonergic, and opioid receptors. PD-A pairs typically expose multiple bridges rather than a single dominant one, which is the structural property the masking experiments exploit on Type A pairs (Section 5.3).
(3) PD-B is the largest group. Nearly half (43.9%) of all DDI edges are PD-B, where no shared target can be identified in the KG. These interactions operate through convergent downstream pathways. For example, Aspirin and Warfarin both elevate bleeding risk via distinct multi-hop chains:
Aspirin COX-1/2 ↓ thromboxane A2 ↓ platelet aggregation (primary hemostasis)
Warfarin VKORC1 ↓ active vitamin K ↓ factors II/VII/IX/X (coagulation cascade)
The two chains share no entity at any single hop in the KG. They converge only at the system-level outcome (impaired hemostasis bleeding). The mediating path is therefore multi-hop and reasoning has to go beyond shared-bridge utilization (Section 5.3).
(4) A/B is not reducible to PK/PD. PK has a relatively balanced A/B ratio (56.8% A vs. 43.2% B), whereas PD is heavily skewed toward B (92.0% B vs. 8.0% A). This asymmetry arises because metabolic enzymes and transporters are well-documented in DrugBank, while pharmacological targets are more diverse and less systematically annotated.
Action-Pair Patterns. The mechanism-chain narrative above predicts role-asymmetry in PK and role-symmetry in PD; the action-pair frequencies in Type A edges quantify exactly this contrast. Tables 12 and 13 report the top-5 combinations under the shared entities convention (an edge with multiple shared entities contributes to multiple rows).
Table 12: PK-A action pairs.
| Action Pair | # Edges | % |
|---|---|---|
| substrate-inhibitor | 72,542 | 43.2% |
| inhibitor-substrate | 55,031 | 32.8% |
| substrate-inducer | 20,248 | 12.1% |
| inducer-substrate | 15,027 | 9.0% |
| inhibitor-inhibitor | 4,889 | 2.9% |
Table 13: PD-A action pairs.
| Action Pair | # Edges | % |
|---|---|---|
| antagonist-antagonist | 7,758 | 35.7% |
| inhibitor-inhibitor | 3,466 | 16.0% |
| agonist-agonist | 2,059 | 9.5% |
| antagonist-agonist | 1,549 | 7.1% |
| agonist-antagonist | 1,526 | 7.0% |
PK-A's four modulator–substrate rows (43.2 / 32.8 / 12.1 / 9.0%) each outweigh symmetric inhibitor–inhibitor (2.9%). PD-A is conversely dominated by same-role co-action (antagonist–antagonist 35.7%, inhibitor–inhibitor 16.0%, agonist–agonist 9.5%), with the two mixed-direction rows at 7.1% / 7.0%. Inhibitor refers to different entity types across the two tables (shared enzyme/transporter in PK-A, shared pharmacological target in PD-A), so the two patterns are not strict mirrors: PK's asymmetry sits at the mechanism level (substrate vs. modulator), PD's symmetry at the action level (both drugs modulate the target). The asymmetric PK signature underlies the directed shared-entity pattern matching exploited in Section 5.2. The symmetric PD signature underlies the convergent multi-bridge structure of finding (2).
A.4 Taxonomy Validation
This subsection details the human-verification protocol used to assess the reliability of the automated PK/PD and A/B taxonomy.
A.4.1 Sampling Design
From the 215 DDI types we uniformly sample 50 types, which collectively cover of all 565,731 DDI edges. For each sampled type we further uniformly sample drug pairs from its DDI edges, yielding pairs in total. Unlike the automated keyword matching, which assigns one PK/PD label per type from the DrugBank mechanism description, annotators label both PK/PD and A/B per pair. This finer granularity captures within-type variation across pairs.
A.4.2 Annotator Recruitment
Two annotators are recruited externally (not co-authors of COLDDDI) through graduate-program mailing lists in pharmacy and medicinal chemistry. Both annotators hold graduate-level training in pharmacology and are familiarized with DrugBank's data schema and interaction description conventions during a 30-minute onboarding session. Annotators label independently. Neither has access to the other's labels or to the automated labels during annotation. Annotators received no monetary compensation. Participation was voluntary as part of an academic collaboration.
A.4.3 Annotation Rubric
For each item, annotators are shown two pieces of information. (a). The DrugBank mechanism description and the corresponding DDInter [26] mechanism description authored by clinical pharmacists. (b). All relevant biomedical entities from the DrugBank-derived KG used in this paper, together with each drug's role (substrate, inducer, inhibitor, agonist, antagonist) as recorded in DrugBank.
Annotators assign two labels per item:
• Task 1 (PK/PD). The mechanism category (PK, PD, or Mixed) based on whether the described mechanism is ADME-related, effect-related, or both.
• Task 2 (A/B). Whether the automatically identified shared entity is pharmacologically valid and actually mediates the interaction via the proposed action pair. Select Type A or Type B.
As reference material, annotators may consult Stockley's Drug Interactions [27], Goodman & Gilman's Pharmacological Basis of Therapeutics [28], and the FDA Drug Interaction Guidance for Industry (2020). Annotators may additionally consult general-purpose large language models for inspiration when interpreting ambiguous mechanism descriptions. There is no time limit per item, and annotators are instructed to flag any item with ambiguous wording for later discussion.
A.4.4 Conflict Resolution
After independent annotation, disagreeing items are first resolved by discussion between the two annotators, who together re-examine DrugBank evidence and the reference material. Items that remain unresolved after discussion are forwarded to a third senior expert (not a co-author, with faculty-level pharmacology credentials) for adjudication. This third-party label is taken as the consensus.
A.4.5 Metrics
We report four metrics.
-
Inter-annotator agreement (Cohen's ) for PK/PD per-pair (n=500), PK/PD type-level (n=50 via majority vote of pair labels), and A/B per-pair (n=500).
-
Automated-vs-consensus Precision, Recall, F1 for PK/PD classification at both per-pair and type-level granularity, reported with PK as positive and with PD as positive.
-
Automated-vs-consensus Precision, Recall, F1 for A/B classification at the per-pair level, reported with A as positive and with B as positive, together with the overall agreement % and a per-quadrant agreement breakdown over PK-A / PK-B / PD-A / PD-B.
A.4.6 Results
We report two-annotator results on the N=500 pairs. Annotator 1's 10 Mixed PK/PD labels are collapsed to PK by the Section A.2 PK-precedence convention. The 39 PK/PD disagreements and 36 A/B disagreements between the two annotators (68 unique pairs in total, with 7 overlapping both tasks) are resolved by a third-party judge into a final consensus label per pair, yielding complete consensus coverage on all 500 pairs.
Inter-Annotator Agreement. Cohen’s between the two annotators is 0.842 for PK/PD per-pair (n=500), 0.839 for PK/PD type-level (n=50 types via majority vote of pair labels), and 0.805 for A/B per-pair (n=500). All three values fall in the substantial-to-almost-perfect range. See Table 15.
Auto-vs-Consensus PK/PD Agreement. The automated keyword matcher matches the final consensus on 445/500 pairs (overall agreement 89.0%). PK-as-positive achieves F1=0.884 with P=0.840 and R=0.933. PD-as-positive achieves F1=0.895 with P=0.940 and R=0.855. Aggregating to type level via majority vote within type yields 47/50 types agreement (94.0%) with F1=0.936 for PK and F1=0.943 for PD. Full numbers in Table 14.
Auto-vs-Consensus A/B Agreement. Overall agreement with the automated taxonomy is 469/500=93.8% (Table 14). A-as-positive achieves F1=0.893 with P=0.806 and R=1.000. B-as-positive achieves F1=0.956 with P=1.000 and R=0.916. The asymmetry (perfect A recall but lower A precision, and perfect B precision but lower B recall) shows that the automated procedure over-claims A rather than missing it. The per-quadrant breakdown (Table 15) is consistent with this. Type-B groups achieve perfect agreement (PK-B 119/119=100%, PD-B 221/221=100%), and PD-A reaches 27/29=93.1%. PK-A is the weakest quadrant at 102/131=77.9%. The residual PK-A disagreements concentrate in cases where the automated procedure marks the pair PK-A whenever any compatible CYP shared entity exists, while the consensus demands an unambiguous mechanistic driver.
Table 14: Auto-vs-consensus agreement on the final judge-resolved consensus (N=500). F1 columns report PK and PD as positive class for the PK/PD task, and A and B as positive class for the A/B task.
| Task | Subset | n | Agreement | F1 (pos. 1) | F1 (pos. 2) |
|---|---|---|---|---|---|
| PK/PD per-pair | all | 500 | 89.0% | 0.884 (PK) | 0.895 (PD) |
| PK/PD type-level | majority-vote types | 50 | 94.0% | 0.936 (PK) | 0.943 (PD) |
| A/B per-pair | overall | 500 | 93.8% | 0.893 (A) | 0.956 (B) |
Table 15: A/B per-quadrant breakdown (computed on the automated assignment) and inter-annotator agreement (Cohen's , computed on the full paired labels). Per-quadrant agreement equals the precision of the automated label restricted to that quadrant.
| Task | Subset | n | Agreement / κ |
|---|---|---|---|
| A/B per-quadrant (auto vs. consensus) | |||
| A/B per-pair | PK-A | 131 | 77.9% |
| A/B per-pair | PK-B | 119 | 100.0% |
| A/B per-pair | PD-A | 29 | 93.1% |
| A/B per-pair | PD-B | 221 | 100.0% |
| Inter-annotator (Cohen's κ) | |||
| PK/PD per-pair | all | 500 | κ=0.842 |
| PK/PD type-level | majority-vote types | 50 | κ=0.839 |
| A/B per-pair | all | 500 | κ=0.805 |
Implication for the Taxonomy. The PK/PD per-pair and A/B per-pair place the automated stratification in the substantial-to-almost-perfect range, with Type B and PD-A agreement. The PK-A comes from multi-CYP pairs where the automated procedure accepts any match while annotators require an unambiguous driver, but Section 5.2 compares PK-A and PK-B in aggregate rather than per-pair, so this noise does not affect the bucket-level conclusion.
A.5 Dataset Statistics and Prior Comparison
Even after Step 5 of our pipeline (Section A.1) already removes all DDI types with fewer than 10 occurrences, the 215 retained types still follow a pronounced heavy-tailed distribution. The top-5 types account for of all edges, led by “The metabolism of can be decreased when combined with” (99,273 edges, ) and “may decrease the excretion rate of” (96,650 edges, ). The top-10 types collectively cover of all edges (Figure 1), and the top-30 cover (Figure 3). cumulative coverage is reached at rank 24. In contrast, the bottom 100 types contribute only , with a median of 28 edges per type.
Figure 2 shows the full rank-frequency curve across all 215 types. PK types (blue) dominate the high-frequency end while PD types (orange) populate the long tail. Figure 3 zooms into the top-30 types. The top-3 types (Metabolism, Excretion, Serum concentration) are all PK. PK and PD types alternate from rank 4 onward, with PK dominating the very high-frequency end.

Figure 1: Top-10 DDI types by edge count. Mechanism class encoded by hue (blue = PK, orange = PD), with within-class luminance gradient encoding rank. The top-10 types cover 74.5% of all 565,731 edges. The remaining 205 types are pooled into the grey “Other” slice.

Figure 2: All 215 DDI types ranked by frequency on a log-scale y-axis. PK types (blue, 31 incl. the 1 Mixed type collapsed to PK per Section A.2) concentrate at the high-frequency end while PD types (orange, 184) span a broader, lower-frequency range. The dashed vertical line marks the rank at which cumulative coverage reaches 90% (rank 24).
A.6 Licensing, Artifact, and Reproduction Pipeline
A.6.1 Reviewer-accessible artifacts and ED compliance
We provide an artifact bundle containing (i) derivative mechanism annotations, split indices, prompt templates, diagnostic scripts, and evaluation code, (ii) a deterministic reconstruction pipeline from a user-provided DrugBank 5.1.13 XML file, (iii) a toy/synthetic XML fixture for testing the pipeline without DrugBank access, (iv) integrity checks for locally reconstructed files, and (v) a Croissant metadata file with core and Responsible AI fields. DrugBank records themselves are not redistributed because of the DrugBank license. To reconstruct the full benchmark, users must obtain DrugBank 5.1.13 in XML format independently. The derivative artifacts and code are hosted in the project's GitHub repository.
COLDDDI is derived from DrugBank 5.1.13 (released January 2025). DrugBank’s academic license explicitly prohibits data redistribution, and DrugBank support confirmed this constraint in writing in response to our inquiry. Consequently, we do not release the underlying DrugBank records (drug descriptions, SMILES strings, DDI edge tables, or entity associations). Users reproduce the full

Figure 3: Top-30 DDI types on a linear y-axis. Bars are coloured by mechanism class (blue = PK, orange = PD) with raw edge counts annotating the top-10. The dashed horizontal line marks the mean across all 215 types (2,631 edges/type). These 30 types cover 92.3% of the 565,731 edges, reflecting the dominance of a small number of ADME mechanisms.
benchmark by applying for DrugBank academic access and running our reconstruction pipeline on their own DrugBank XML. Our own derivative artifacts (mechanism annotations, drug-wise split indices, prompt templates, and evaluation code) are not subject to DrugBank’s redistribution restriction and are available in the release repository .
Out-of-the-Box Reproduction. The repository provides three top-level entry scripts for reconstruction, validation, and conventional baseline evaluation, together with a separate P4 LLM runner. reconstruct.py rebuilds annotations, splits, and prompt-ready artifacts. sanity_check.py checks data consistency and, with -strict, verifies the checksums recorded during reconstruction. evaluate.py runs conventional baselines, while scripts/run_benchmark.py runs P4 LLM training, checkpoint selection, evaluation, and diagnostics. The end-to-end five-stage walkthrough with hardware budgets and expected outputs is in Appendix A.6.3, and the full path-by-path repository layout is in Appendix A.6.2.
A.6.2 Repository Structure
The release repository is organized as an installable Python package (coldddi/) plus three top-level entry scripts and a set of released data artifacts. Every directory is consumed by at least one paper section, and every section that asserts a quantitative result has a corresponding artifact directory. Table 16 summarizes the layout.
A.6.3 Reproduction Pipeline and Public APIs
The library exposes three top-level entry scripts (reconstruct.py, sanity_check.py, and evaluate.py), the P4 LLM runner scripts/run_benchmark.py, and Python interfaces for baselines, prompts, and diagnostics. The CLI signatures are listed first, followed by the end-to-end walkthrough and the Python interfaces.
Entry-Script CLI. Each entry script uses the data-path and seed arguments listed below.
https://go.drugbank.com/releases/5-1-13
https://github.com/02171jh/ColdDDI-NeurIPS2026
Table 16: Release repository layout (ColdDDI/). Top-level entry scripts are immediately runnable. The library code lives under coldddi/. Paths beginning with coldddi_data/ are generated locally by the walkthrough below.
| Path | Contents | Paper anchor |
|---|---|---|
| Entry scripts (top level) | ||
| reconstruct.py | DrugBank XML → filtered edges + KG + annotations + splits | Appendices A.1 and B.1 |
| evaluate.py | Conventional baseline training and evaluation | Section 5.1 |
| sanity_check.py | Checks data consistency and reconstruction checksums | Appendix A.6.3 |
| Library package | ||
| colddi/data/filter.py | 7-step filtering pipeline | Appendix A.1 |
| colddi/data/splits.py | partition + S0/S1/S2 builder | Section 3.2 and Appendix B.1 |
| colddi/data/negatives.py | Default and ratio/strategy negative samplers | Appendix B.2 |
| colddi/data/kg.py | DrugBank KG (enzymes, transporters, targets, carriers, pathways) loader | Appendix A.3 |
| colddi/annotations/pkpdKeywords.py | PK/PD keyword matcher | Appendix A.2 |
| colddi/annotations/ab_subdivision.py | A/B shared-entity protocol | Appendix A.3 |
| colddi/baselines/base.py | BaselineModel abstract class (fit / predict / save / load) | Appendix C.1 |
| colddi/baselines/deepddi_ssi_ddi_dsn_ddi_hdn_ddi_emergnn_tiger_mkg_fenn_textddi/ | Eight conventional baselines | Appendix C.1 |
| colddi/llm/prompts/binary_cls.py | Renderers P1–P5 templates and R0–R7 masking variants | Section 3.4 and Appendix D.1 |
| colddi/llm/trainer_select_best.py | LoRA training and checkpoint selection | Appendix D.2 |
| colddi/llm/inference.py | Greedy scoring with elicited probability | Appendix D.2 |
| colddi/diagnostics/kps_ksai_masking.py | KPS and KSAI diagnostic interfaces | Section 5.3 and Appendices E.1, E.2, E.3 |
| colddi/evaluate.py | Per-run baseline predictions and evaluation metrics | Section 5.1 |
| colddi/eval/aggregate.py | Overall, stratified, and diagnostic summaries across runs | Section 5.1 |
| Repository artifacts and local reconstruction outputs | ||
| annotations/pkpd_parquet | 215 DDI types → {PK, PD, Mixed} | Appendix A.2 |
| colddi_data/outputs_full/annotations/ab_parquet | Locally reconstructed A/B annotations for the full benchmark | Appendix A.3 |
| colddi_data/outputs_full/annotations/mediating_entities.parquet | Locally reconstructed mediating-entity annotations | Appendix A.3 |
| colddi_data/outputs_full/annotations/action_pairs.parquet | Locally reconstructed entity-role annotations | Appendix A.3 |
| colddi_data/intermediate/splits/seed{42,43,44}/ | Full-dataset Parquet splits and JSON manifests containing | Appendix B.1 |
| colddi_data/subsets/800/seed{42,43,44}/intermediate/ | Per-seed 800-drug datasets and splits, generated with -include-subset 800/both | Appendix B.3.1 |
| colddi_data/intermediate/splits/checksums.txt | MD5 checksums recorded during reconstruction | Appendix A.6.3 |
| Reproducibility helpers | ||
| expse/sec5_{overall,stratified,kps}.sh | Conventional baseline sweeps and metric aggregation | Sections 5.1 to 5.3 |
| annotation/ | Human-validation package (sampling, rubric, IAA scripts, final consensus) | Appendix A.4 |
| requirements.txt | Dependencies for reconstruction, conventional baselines, and the LLM pipeline | Appendix A.6.4 |
| LICENSE | MIT for code, CC BY 4.0 for annotations | Appendix A.6 |
| README.md | Quick-start + pointer to this appendix | Appendix A.6.3 |
Entry-script CLI signatures
python reconstruct.py --drugbank PATH # DrugBank 5.1.13 XML --output DIR # output dataset directory --seeds INT [INT ...] # default: 42 43 44 --include-subset {800,full,both} # default: full
python sanity_check.py --data DIR # output of reconstruct.py [--strict] # also verify every per-seed split MD5
python evaluate.py --method NAME # e.g., dsn_ddi or emergnn (--data DIR | --subset {800,1900}) --seed INT # one reconstructed seed --setting {S0,S1,S2,all} # default: all [--ab-parquet PATH] # matching A/B annotations [--adapter PATH] # load a saved baseline [--device {cuda,cpu}] [--out DIR] # predictions and metrics
python scripts/run_benchmark.py --data DIR # contains filtered/ and splits/ --ab-parquet PATH # matching A/B annotations --model MODEL # Hugging Face ID or local path [--prompt P4] [--seed INT] # default: 42 [--device {cuda,cpu,auto}] [--output DIR]
Step-by-Step Walkthrough. End-to-end reproduction chains the entry scripts in five stages, after a one-time DrugBank XML download (Stage 0). Reproduction on any 32–80 GB GPU (depending on model size) should fall within ±20% of our internal RTX 5090 / A40 wall-clock measurements. Per-baseline budgets are in Section C.1.
Reproduction Walkthrough
Stage 0: Obtain DrugBank XML (one-time, ~1-3 days approval lead time).
Apply at https://go.drugbank.com/releases/5-1-13
Download drugbank_5.1.13.xml (~1.5 GB compressed).
Stage 1: Clone the code repository and install.
git clone https://github.com/0217ljh/ColdDDI-NeurIPS2026.git cd ColdDDI-NeurIPS2026 python -m venv .venv && source .venv/bin/activate # or conda env python -m pip install -r requirements.txt
Stage 2: Reconstruct (deterministic, ~15 min on a recent x86 desktop, CPU-bound)
python reconstruct.py
--drugbank /path/to/drugbank_5.1.13.xml
--output ./colddi_data
--seeds 42 43 44
Stage 3: Sanity-check (~30 s, verifies data consistency
and checksums recorded during reconstruction).
python sanity_check.py --data ./colddi_data --strict
Stage 4: Run a baseline end-to-end (~30-90 min per baseline, GPU).
python evaluate.py
--method dsn_ddi
--seed 42
--data ./colddi_data/intermediate
--ab-parquet ./colddi_data/outputs_full/annotations/ab.parquet
python evaluate.py
--method emergnn
--seed 42
--data ./colddi_data/intermediate
--ab-parquet ./colddi_data/outputs_full/annotations/ab.parquet
Stage 5 (optional): LoRA fine-tune Llama-3.2-1B under P4 (~6 GPU-hours).
python scripts/run_benchmark.py
--data ./colddi_data/intermediate
--ab-parquet ./colddi_data/outputs_full/annotations/ab.parquet
--model meta-llama/Llama-3.2-1B
--prompt P4
--seed 42
--device cuda
Cross-CUDA-version drift is below on each metric in our internal tests.
Baseline Plugin Contract. Every method in coldddi/baselines/subclasses BaselineModel (coldddi/baselines/base.py), an abstract class with four methods. New baselines implement this class, register their method name with the register decorator, and add their module to NAME_TO_MODULE in coldddi/baselines/base.py.
BaselineModel ABC
class BaselineModel(ABC): name: str # registered method alias def fit(self, train: PairDataset, val: PairDataset) -> None: ... def predict_proba(self, pairs: pd.DataFrame) -> np.ndarray: ... def save(self, path: str) -> None: ... @classmethod def load(cls, path: str) -> "BaselineModel": ...
PairDataset wraps the drug-pair indices, the per-epoch negative pool, and a handle to the KG / SMILES tables, so a new baseline only consumes the abstractions and never touches raw DrugBank.
Prompt-Template Plugin. LLM prompt patterns and masking variants are implemented in coldddi/llm/prompts/binary_cls.py. New patterns are added by extending the Python prompt builder and the corresponding runner mapping. The release does not use external Jinja templates or a YAML masking registry.
Diagnostic-Indicator Plugin. coldddi/diagnostics/ exposes compute_kps_f, compute_kps_channel, and compute_ksai. KPS-F takes base predictions and swap candidates; channel KPS additionally takes masked predictions and a channel name; KSAI takes predictions under R0–R3. The functions return per-bucket pandas.DataFrame results. New indicators require an explicit implementation and integration into the evaluation pipeline.
A.6.4 Hardware and Software Requirements
Software. Python 3.10 with the dependencies specified in requirements.txt. Later Python versions trigger a known torch_scatter ABI mismatch in EmerGNN and are not supported.
Hardware. Reconstruction is CPU-bound and runs in 15 min on a 16 GB-RAM desktop. Baseline training and LoRA fine-tuning fit on a single 32–80 GB GPU depending on model size. Per-method wall-clock and memory budgets are in Table 26 and Appendix D.2. Disk usage is 2.0 GB for the reconstructed dataset directory and 15–40 MB per LLM adapter.
A.6.5 Licensing, Maintenance, and Availability
Licensing. Code is released under the MIT License. Mechanism annotations and split indices are released under CC BY 4.0. The underlying DrugBank records are not redistributed and remain governed by the DrugBank academic license.
Maintenance. The benchmark is maintained by the authors. Planned annual updates align with DrugBank releases (next target DrugBank 5.1.14). Issues, bug reports, and baseline contributions are accepted through the GitHub repository.
Perpetual Availability. The GitHub repository provides the derivative artifacts and reconstruction pipeline. Because the derivatives are self-contained and all released artifacts are pinned to DrugBank 5.1.13, the benchmark remains reconstructible for any user who can independently obtain DrugBank academic access.
The GitHub repository provides the derivative artifacts and reconstruction pipeline. Users must obtain DrugBank 5.1.13 independently to reconstruct the full benchmark.
B Evaluation Splits and Sampling
B.1 Split Construction and Statistics
This subsection details the construction protocol for the cold-start splits introduced in Section 3.2 and reports the resulting train / validation / test edge counts.
Drug-Wise Partition. The full benchmark contains 1,900 drugs after the filtering pipeline of Section A.1. We partition the drug set into (seen drugs) and (unseen drugs) by uniform random sampling under a fixed seed. The split ratio is , which yields 1,520 drugs in and 380 drugs in on the full 1,900-drug benchmark, and 640 / 160 on the 800-drug subset (Section B.3.1).
Edge Pool Decomposition. The positive DDI edges are partitioned into three pools by the partition status of their endpoint drugs, extending the notation of Section 3.2.
• , both endpoints in , used for transductive evaluation (S0).
• , exactly one endpoint in , used for semi-inductive evaluation (S1).
• , both endpoints in , used for fully-inductive evaluation (S2).
The exact pool sizes are seed-dependent because the partition is sampled per seed. Table 17 reports per-seed pool sizes and per-split positive edge counts on both scales.
Train / Val / Test Allocation. Within each edge pool, edges are allocated to splits as follows. The pool follows a 90/5/5 split (train / val-S0 / test-S0). The two cross-pools and use a 50/50 split (val / test) and contribute zero edges to the training set, ensuring that test-S1 and test-S2 evaluation is performed exclusively on edges involving at least one unseen drug.
Table 17: Per-seed positive edge counts on the full 1,900-drug benchmark and the 800-drug subset across three random seeds. Drug-set sizes are on the full set and 640/160 on the subset for every seed. Negative edges are sampled at a 1:1 ratio per split (Section B.2) and have identical counts.
| Quantity | Full 1,900-drug | 800-drug subset | ||||
|---|---|---|---|---|---|---|
| Seed 42 | Seed 43 | Seed 44 | Seed 42 | Seed 43 | Seed 44 | |
| Edge pool sizes | ||||||
| 361,485 | 366,641 | 360,330 | 59,715 | 62,861 | 61,554 | |
| 181,571 | 177,769 | 182,380 | 30,515 | 29,867 | 32,448 | |
| 22,675 | 21,321 | 23,021 | 3,837 | 3,450 | 4,188 | |
| Per-split positive counts | ||||||
| Train | 325,336 | 329,976 | 324,297 | 53,743 | 56,574 | 55,398 |
| Val-S0 | 18,074 | 18,332 | 18,016 | 2,986 | 3,143 | 3,078 |
| Test-S0 | 18,075 | 18,333 | 18,017 | 2,986 | 3,144 | 3,078 |
| Val-S1 | 90,785 | 88,884 | 91,190 | 15,257 | 14,933 | 16,224 |
| Test-S1 | 90,786 | 88,885 | 91,190 | 15,258 | 14,934 | 16,224 |
| Val-S2 | 11,337 | 10,660 | 11,510 | 1,918 | 1,725 | 2,094 |
| Test-S2 | 11,338 | 10,661 | 11,511 | 1,919 | 1,725 | 2,094 |
| Total positive edges | 565,731 | 565,731 | 565,731 | 94,067 | 96,178 | 98,190 |
B.1.1 Structural Similarity Across Drug-Wise Splits
We examine structural overlap between and across the three full-set partitions generated with seeds 42, 43, and 44. All 1,900 drugs have distinct canonical SMILES, so no exact SMILES duplicates occur across the drug-wise splits. For each held-out drug in , the maximum Tanimoto similarity to any drug in is computed using Morgan fingerprints with radius 2 and 2,048 bits. The within-train baseline compares each drug in with the remaining drugs in , excluding self-comparisons.
Table 18: Percentage of drugs whose maximum Tanimoto similarity to the reference set exceeds each cutoff (3-seed mean±std on the full 1,900-drug benchmark). Train–Test compares held-out drugs against training drugs; Train–Train uses the remaining training drugs as the reference.
| Tanimoto cutoff | Train–Test | Train–Train |
|---|---|---|
| > 0.85 | 5.18 ± 0.45 | 5.07 ± 0.19 |
| > 0.90 | 3.77 ± 0.12 | 3.88 ± 0.05 |
At both cutoffs, high-similarity neighbors occur at comparable rates across and within the training partition (Table 18). The observed train–test similarity therefore reflects structural similarity already present in the drug pool, with no marked excess introduced by the random split.
B.2 Negative Sampling Strategy
A DDI benchmark derived from curated databases is unavoidably open-world: the absence of a recorded interaction does not guarantee that no pharmacological interaction exists. This subsection documents (i) the default sampling procedure used throughout the main paper, (ii) the per-epoch re-sampling protocol, two robustness analyses quantifying the effects of (iii) positive-to-negative ratio and (iv) negative-sampling strategy, and (v) temporal backfill across historical datasets. Both robustness analyses follow a train-only design that rewrites only the training-side negatives while leaving validation and test negatives identical to the default fair bundle. Every (method, configuration) cell is therefore evaluated on the same fixed 1:1 test set, so AUC differences attribute cleanly to training-sample quality rather than test-difficulty drift. The ratio and sampling-strategy analyses are conducted on the 800-drug subset under a single random seed (48 train runs total under the configurations enumerated below). TextDDI is omitted from the robustness analyses due to its prohibitive training time.
B.2.1 Default Sampling Procedure
Let denote the set of positive DDI pairs and , , the setting-specific complement spaces defined in Section 3.2 (for S0, S1, S2 respectively). For each setting we sample negative pairs uniformly at random from the corresponding complement space at a 1:1 positive-to-negative ratio. Sampling is performed without replacement within a single draw and restricted to pairs not appearing in under any setting.
B.2.2 Per-Epoch Re-Sampling Protocol
For training, a fresh negative set is sampled at the start of every epoch (in practice rotated across four pre-sampled sets to match LLM-FT's finite negative budget, see Appendix C.2). This dynamic re-sampling (i) reduces overfitting to any particular draw of presumed negatives, and (ii) mimics the open-world variability that a deployed model encounters. For validation and test, negatives are sampled once using a fixed seed and held constant across all methods and across training, ensuring identical evaluation conditions.
B.2.3 Ratio Robustness Analysis
We evaluate seven conventional baselines and the best LLM-FT configuration (Llama-3.2-1B, P4) on S2 under three training-side positive-to-negative ratios . For each ratio, the training negatives are sampled uniformly from at the target multiplicity per epoch (per-epoch resampling, Section B.2.2). Table 19 reports the resulting S2 AUC.
Table 19: S2 AUC under three training-side positive-to-negative ratios (800-drug subset, single random seed). The test set is held fixed at 1:1 across all cells. The column reuses the default fair bundle.
| Method | 1:1 | 1:3 | 1:5 |
|---|---|---|---|
| DeepDDI | 0.678 | 0.680 | 0.674 |
| SSI-DDI | 0.656 | 0.646 | 0.642 |
| DSN-DDI | 0.814 | 0.755 | 0.793 |
| HDN-DDI | 0.675 | 0.668 | 0.667 |
| EmerGNN | 0.724 | 0.714 | 0.706 |
| TIGER | 0.581 | 0.589 | 0.557 |
| MKG-FENN | 0.569 | 0.607 | 0.568 |
| LLM-FT | 0.799 | 0.788 | 0.755 |
Across all cells, S2 AUC stays within of the default for most methods (DeepDDI, SSI-DDI, HDN-DDI, EmerGNN, TIGER, MKG-FENN), indicating that the headline ranking is largely insensitive to the train-side ratio. DSN-DDI is the most ratio-sensitive method, with AUC oscillating between 0.755 and 0.814. LLM-FT shows a small monotone drop from (0.799) to (0.755). The two top methods at (LLM-FT 0.799, DSN-DDI 0.814) remain the top two in every ratio column.
B.2.4 Sampling Strategy Comparison
We compare three training-side negative-sampling strategies on S2 using seven conventional baselines and the best LLM-FT configuration (Llama-3.2-1B, P4). Pair-pair similarity uses Morgan fingerprints (radius 2, 2048 bits) and the symmetric pair-similarity formula , where is Tanimoto similarity.
-
Uniform random (default), sampled uniformly from . Reuses the default fair training bundle.
-
Hard negative, rank-based selection from . We score each candidate by against all training-side positive pairs, retain the top of the candidate pool, and then sample at the target ratio. Rank-based selection is required because, for ColdDDI's drug-pair similarity distribution, even the median positive-pair similarity admits nearly the entire candidate pool.
-
Structure-matched, stratified sampling over 10 Tanimoto-similarity bins, matching the candidate-score histogram to the positive-pair similarity histogram. Empty bins are redistributed iteratively to non-empty neighbors (weighted by target frequency), removing easy-negative bias without inducing a single-bin collapse.
Table 20 reports the resulting S2 AUC.
Table 20: S2 AUC under three training-side negative-sampling strategies (800-drug subset, single random seed). The Random column reuses the default fair bundle.
| Method | Random | Hard | Structure-matched |
|---|---|---|---|
| DeepDDI | 0.678 | 0.558 | 0.672 |
| SSI-DDI | 0.656 | 0.581 | 0.645 |
| DSN-DDI | 0.814 | 0.718 | 0.770 |
| HDN-DDI | 0.675 | 0.623 | 0.621 |
| EmerGNN | 0.724 | 0.619 | 0.723 |
| TIGER | 0.581 | 0.572 | 0.569 |
| MKG-FENN | 0.569 | 0.473 | 0.618 |
| LLM-FT | 0.799 | 0.789 | 0.789 |
Hard-negative training depresses AUC by roughly 0.10 for four baselines (DeepDDI 0.120, EmerGNN 0.105, DSN-DDI 0.096, MKG-FENN 0.096) and by less than 0.08 for the rest (SSI-DDI, HDN-DDI, TIGER, LLM-FT), confirming that the hard-negative pool is genuinely harder than uniform random. Structure-matched training stays within of the random baseline for every method, with MKG-FENN (0.618 vs. 0.569) the only noticeable improvement. LLM-FT is the most strategy-robust (0.799 random, 0.789 hard, 0.789 structure-matched, all within ). LLM-FT and DSN-DDI remain top-two across all three sampling strategies.
B.2.5 Temporal Backfill Analysis
We examine how often unrecorded pairs become documented interactions in later DrugBank-derived datasets. The released RYU, DENG, and KGNN datasets correspond to DrugBank versions 5.0.3, 5.1.3, and 5.1.4, respectively. Within each shared-drug pool, the backfill rate is the fraction of pairs unrecorded in the earlier dataset that appear as positive interactions in the later one. The backfill rates are for (548 shared drugs), for (990 shared drugs), and for (387 shared drugs). These modest backfill rates indicate that identifiable contamination affects only a small fraction of previously unrecorded pairs in the three version comparisons.
B.3 Subset Representativeness and Stability
The full 1,900-drug ColdDDI dataset is the primary analysis target, and all conventional baseline evaluations are run on it directly. LLM fine-tuning and the related diagnostic analyses are instead run on a stratified 800-drug subset, because their compute cost scales super-linearly with drug count and full-set evaluation across the LLM matrix is intractable under our budget. To justify this scope reduction, this subsection shows that the 800-drug subset closely tracks the full benchmark along three complementary angles: (i) cross-seed preservation of the mechanism-stratified distribution (Appendix B.3.1), (ii) head-to-head comparison of conventional baselines between the full 1,900-drug set and the 800-drug subset (Appendix B.3.2), and (iii) cross-size stability of model performance (Appendix B.3.3).
B.3.1 Subset Construction and Cross-Seed Distributional Stability
The 800-drug subset is sampled uniformly without replacement from the 1,900-drug pool under a random seed, then partitioned and split following the same protocol as the full set (Appendix B.1). Main-paper results and the distributional verification below both use three random seeds (Table 21).
Table 21: Full dataset and 800-drug subsets across the three seeds.
| Statistic | Full (1,900) | Seed 42 | Seed 43 | Seed 44 |
|---|---|---|---|---|
| Total drugs | 1,900 | 800 | 800 | 800 |
| (seen) | 1,520 | 640 | 640 | 640 |
| (unseen) | 380 | 160 | 160 | 160 |
| Total positive DDI pairs | 565,731 | 94,067 | 96,178 | 98,190 |
| DDI types covered | 215 | 165 | 152 | 165 |
| Train positive | 325,336 | 53,743 | 56,574 | 55,398 |
| Test S0 positive | 18,075 | 2,986 | 3,144 | 3,078 |
| Test S1 positive | 90,786 | 15,258 | 14,934 | 16,224 |
| Test S2 positive | 11,338 | 1,919 | 1,725 | 2,094 |
| Test S2 DDI types | 215 | 73 | 59 | 66 |
Each subset retains 152–165 of 215 DDI types (71–77%), covering more than 99% of all DDI edges by type frequency. The missing types are all low-frequency PD types (median count 18 edges in the full dataset), whose absence does not affect the PK/PD distributional conclusions.
Figure 4 shows the PK/PD × A/B distribution of Test S2 positive edges across the three seeds. Despite the random variation in drug composition, the broad composition is consistent across seeds. Within the PD class, PD-B dominates over PD-A in every seed (PD-B 37.4%–45.2% vs. PD-A 2.3%–4.5%), and PD-A is consistently the smallest stratum overall. The full 1,900-drug dataset shows the same dominance pattern (PD-B 43.9%, PK-A 29.6%, PK-B 22.6%, PD-A 3.8%, see Section 3.3), confirming that the subset preserves the mechanism-level composition of the full benchmark. The main source of cross-seed variation is the PK-A proportion (31.4%–40.5%), driven by whether CYP-substrate hub drugs fall into . This variation does not affect the qualitative conclusions, since the A/B gap and PK/PD asymmetry are reproduced under all three seeds.

Figure 4: PK/PD × A/B proportion in Test S2 across the three seeds on the 800-drug subset. Within the PD class, PD-B dominates over PD-A in every seed, confirming that the mechanism-level composition is stable across the three random seeds.
Cross-Seed Performance Stability. Beyond distributional stability, we report per-method S2 performance over three random seeds on the 800-drug subset (Table 22). AUC standard deviation stays under 0.06 for every method, indicating that subset-induced variation in test composition does not cause large swings in absolute performance. LLM-FT (Llama-3.2-1B, P4) shows comparable cross-seed stability to the conventional baselines (AUC std 0.022).
Table 22: Per-method S2 performance on the 800-drug subset over three random seeds, reported as mean ± standard deviation.
| Method | AUC | Recall | F1 |
|---|---|---|---|
| DeepDDI | 0.659 ± 0.018 | 0.486 ± 0.030 | 0.555 ± 0.013 |
| SSI-DDI | 0.614 ± 0.037 | 0.513 ± 0.116 | 0.548 ± 0.079 |
| DSN-DDI | 0.758 ± 0.052 | 0.524 ± 0.006 | 0.617 ± 0.019 |
| HDN-DDI | 0.634 ± 0.035 | 0.633 ± 0.079 | 0.606 ± 0.035 |
| EmerGNN | 0.716 ± 0.020 | 0.545 ± 0.060 | 0.614 ± 0.039 |
| TIGER | 0.566 ± 0.014 | 0.473 ± 0.047 | 0.511 ± 0.022 |
| MKG-FENN | 0.566 ± 0.009 | 0.989 ± 0.010 | 0.667 ± 0.000 |
| TextDDI | 0.675 ± 0.024 | 0.590 ± 0.059 | 0.614 ± 0.034 |
| LLM-FT (Llama-3.2-1B, P4) | 0.776 ± 0.020 | 0.697 ± 0.021 | 0.705 ± 0.018 |
B.3.2 Baseline Comparison: Full 1,900 vs 800 Subset
To verify that the 800-drug subset is a faithful proxy for the full 1,900-drug benchmark, we compare each baseline's S0 / S1 / S2 AUC under both scales on a single random seed. Table 23 reports the per-method absolute AUC difference across the three settings.
Table 23: Per-baseline between the full 1,900-drug benchmark and the 800-drug subset on S0 / S1 / S2 (single random seed). The rightmost column is the mean across the three settings.
| Method | S0 | S1 | S2 | Mean |
|---|---|---|---|---|
| DeepDDI | 0.011 | 0.005 | 0.005 | 0.007 |
| SSI-DDI | 0.033 | 0.021 | 0.031 | 0.028 |
| DSN-DDI | 0.081 | 0.141 | 0.190 | 0.137 |
| HDN-DDI | 0.041 | 0.007 | 0.032 | 0.026 |
| EmerGNN | 0.001 | 0.005 | 0.009 | 0.005 |
| TIGER | 0.007 | 0.047 | 0.053 | 0.036 |
| MKG-FENN | 0.002 | 0.017 | 0.016 | 0.011 |
| TextDDI | 0.008 | 0.002 | 0.034 | 0.015 |
| mean (8 methods) | 0.023 | 0.031 | 0.046 | 0.033 |
The mean across all eight baselines is 0.033 over the three settings and 0.046 on S2, consistent with the subset-induced spread reported in Section 5.1. Seven of the eight baselines remain within on every setting. DSN-DDI is the only outlier ( on S2), reflecting its known sensitivity to drug-pair composition under fully-inductive evaluation.
B.3.3 Cross-Size Performance Stability
We scan 11 subset sizes from 100 to 1,900 drugs (full dataset) on Qwen2.5-0.5B under the P1 (Zero-Shot) prompt to characterize how performance depends on subset size. Figure 5 plots AUROC and Accuracy across S0/S1/S2 as a function of subset size. Table 24 reports the complete numerical results.
The S0 > S1 > S2 difficulty ordering is preserved at every subset size. S0 and S1 metrics are stable across the full size range (AUROC std 0.029 and 0.030 respectively, Accuracy std 0.032 and 0.021). S2 metrics decline as the drug pool grows (AUROC std 0.059, range 0.51–0.68, Accuracy std 0.048), which is expected because the Zero-Shot prompt provides no KG mediating context. Without explicit mediating evidence, scaling the drug pool adds difficulty (more cold-start pairs, broader mechanism
S0 (Transductive) S1 (Semi-inductive) S2 (Fully inductive) ---- Subset size = 800 (used in main paper)
AUROC

Accuracy
Figure 5: AUROC and Accuracy across subset sizes (100–1,900 drugs) under the three cold-start settings (S0 / S1 / S2). All runs use LoRA-fine-tuned Qwen2.5-0.5B with prompt template P1. The dashed vertical line marks the 800-drug subset used in the main paper.
diversity) without adding usable signal, so the S2 trend reflects model and prompt limits rather than instability of the benchmark itself. The qualitative cold-start difficulty gradient is preserved at every size, including the 800-drug scale used in the main paper.
B.4 Task Formulation Extension: Multi-Class Event-Type Prediction
The main paper adopts binary detection. To verify that the same drug-wise cold-start protocol extends to fine-grained event-type prediction, we run a reference 215-class baseline on the 800-drug subset using the same S0 / S1 / S2 splits.
Setup. The model is Llama-3.2-1B with a LoRA adapter (r=16, , dropout 0.1, target ) and a randomly initialised softmax head over the 215 DrugBank event types. Inputs use the P4 prompt as in the binary fine-tuned baseline, with the trailing Yes/No assistant turn dropped. Training uses cross-entropy on positives only, since DDI event types are defined only for positive pairs. We train for 4 epochs (batch size 16, lr cosine) and select the best LoRA checkpoint per split. We verify that the per-sample composition matches the binary baseline before training. Results are 3-seed mean±std on the full S0 / S1 / S2 test sets.
Findings. The cold-start difficulty ordering S0 > S1 > S2 is preserved on every metric, with top-1 dropping from 0.757 on S0 to 0.517 on S1 and 0.336 on S2. Macro-F1 collapses faster than ranking metrics (S2 macro-F1 0.036 vs. macro-AUROC 0.838), reflecting the long-tailed nature of the 215-type label space where many rare types attract zero correct predictions on the cold-start fold. The same mechanism-stratified evaluation framework therefore transfers cleanly to the multi-class formulation, while exposing a long-tail challenge that binary detection sidesteps.
C Baseline Implementations
C.1 Method Descriptions and Hyperparameters
We implement eight conventional baselines under a unified training protocol so that all methods see identical drug-pair splits, identical positive edges, and identical per-epoch negative sets. This subsection describes each baseline in two paragraphs, the original method and our adaptation to COLDDDI's binary cold-start setting, followed by the consolidated hyperparameter table. Code, configs, and re-run scripts are released alongside the paper.
DeepDDI [1]. Representative matrix-based baseline. Each drug is encoded as a Structural Similarity Profile (SSP) computed by Tanimoto similarity over Morgan fingerprints (radius 2, 2048 bits) against a reference set of training drugs, then PCA-projected to 50 dimensions. The original release uses an 86-way softmax over interaction types.
Table 24: Full metrics across subset sizes and evaluation settings (Qwen2.5-0.5B, LoRA fine-tuned).
| Drugs | Split | AUROC | AUPRC | Recall | Accuracy | Precision | F1 | npos |
|---|---|---|---|---|---|---|---|---|
| 100 | S0 | 0.823 | 0.817 | 0.630 | 0.717 | 0.763 | 0.690 | 46 |
| 100 | S1 | 0.654 | 0.620 | 0.568 | 0.616 | 0.628 | 0.597 | 241 |
| 100 | S2 | 0.541 | 0.542 | 0.138 | 0.500 | 0.500 | 0.216 | 29 |
| 200 | S0 | 0.885 | 0.868 | 0.801 | 0.804 | 0.805 | 0.803 | 186 |
| 200 | S1 | 0.762 | 0.735 | 0.752 | 0.691 | 0.670 | 0.709 | 975 |
| 200 | S2 | 0.654 | 0.662 | 0.702 | 0.621 | 0.604 | 0.649 | 124 |
| 400 | S0 | 0.857 | 0.853 | 0.793 | 0.767 | 0.754 | 0.773 | 792 |
| 400 | S1 | 0.716 | 0.678 | 0.733 | 0.662 | 0.642 | 0.684 | 4,075 |
| 400 | S2 | 0.553 | 0.549 | 0.619 | 0.541 | 0.536 | 0.575 | 494 |
| 600 | S0 | 0.902 | 0.906 | 0.817 | 0.819 | 0.820 | 0.819 | 1,845 |
| 600 | S1 | 0.742 | 0.718 | 0.669 | 0.670 | 0.671 | 0.670 | 8,781 |
| 600 | S2 | 0.620 | 0.628 | 0.780 | 0.582 | 0.558 | 0.651 | 1,042 |
| 800 | S0 | 0.897 | 0.903 | 0.805 | 0.818 | 0.827 | 0.816 | 2,986 |
| 800 | S1 | 0.760 | 0.745 | 0.645 | 0.683 | 0.698 | 0.670 | 15,258 |
| 800 | S2 | 0.679 | 0.662 | 0.650 | 0.628 | 0.623 | 0.636 | 1,919 |
| 1,000 | S0 | 0.851 | 0.726 | 0.822 | 0.766 | 0.740 | 0.779 | 5,012 |
| 1,000 | S1 | 0.735 | 0.694 | 0.763 | 0.664 | 0.637 | 0.694 | 23,883 |
| 1,000 | S2 | 0.630 | 0.631 | 0.423 | 0.588 | 0.631 | 0.506 | 2,918 |
| 1,200 | S0 | 0.823 | 0.678 | 0.799 | 0.747 | 0.724 | 0.759 | 7,485 |
| 1,200 | S1 | 0.721 | 0.689 | 0.738 | 0.661 | 0.640 | 0.685 | 35,761 |
| 1,200 | S2 | 0.541 | 0.665 | 0.006 | 0.501 | 0.558 | 0.011 | 4,242 |
| 1,400 | S0 | 0.865 | 0.691 | 0.691 | 0.778 | 0.836 | 0.757 | 9,747 |
| 1,400 | S1 | 0.731 | 0.692 | 0.484 | 0.649 | 0.723 | 0.580 | 48,191 |
| 1,400 | S2 | 0.507 | 0.501 | 0.805 | 0.507 | 0.505 | 0.620 | 5,912 |
| 1,600 | S0 | 0.820 | 0.701 | 0.817 | 0.736 | 0.703 | 0.756 | 12,541 |
| 1,600 | S1 | 0.746 | 0.710 | 0.753 | 0.677 | 0.654 | 0.700 | 65,816 |
| 1,600 | S2 | 0.590 | 0.565 | 0.615 | 0.570 | 0.564 | 0.588 | 8,628 |
| 1,800 | S0 | 0.866 | 0.706 | 0.880 | 0.768 | 0.718 | 0.791 | 16,204 |
| 1,800 | S1 | 0.756 | 0.719 | 0.816 | 0.681 | 0.643 | 0.719 | 82,705 |
| 1,800 | S2 | 0.536 | 0.527 | 0.520 | 0.528 | 0.529 | 0.525 | 10,506 |
| 1,900 | S0 | 0.868 | 0.697 | 0.873 | 0.773 | 0.728 | 0.794 | 18,075 |
| 1,900 | S1 | 0.744 | 0.715 | 0.778 | 0.678 | 0.649 | 0.708 | 90,786 |
| 1,900 | S2 | 0.510 | 0.505 | 0.939 | 0.510 | 0.506 | 0.657 | 11,338 |
We re-key the SSP reference set to the per-seed pool so that the encoder never sees test-side drugs, swap the 86-way classification head for a single sigmoid logit emitting a binary DDI probability, and keep all other layers (9 fully-connected blocks, hidden size 2048, dropout 0.3) unchanged. Code is provided in coldddi/baselines/deepddi/ and selected through evaluate.py with -method deepddi.
SSI-DDI [7]. Substructure-substructure interaction GNN. Each drug is encoded as a molecular graph over RDKit atom features and passed through a multi-layer GAT, then cross-drug substructure attention produces the pair representation.
The original release already supports binary DDI classification under their KGE-style head, so we keep the architecture and only re-route the data pipeline through our cold-start dataset. Code is provided in coldddi/baselines/ssi_ddi/ and selected through evaluate.py with -method ssi_ddi.
Table 25: Multi-class event-type prediction on the 800-drug subset (3-seed mean±std on the full S0 / S1 / S2 test sets).
| Split | n | Top-1 | Top-3 | Top-5 | Macro-F1 | Macro-AUROC | Macro-AUPRC |
|---|---|---|---|---|---|---|---|
| S0 | 3,069 | ||||||
| S1 | 15,472 | ||||||
| S2 | 1,913 |
DSN-DDI [8]. Dual-channel attention GNN over the bipartite atom-level graph of each drug pair. Per-pair molecular GAT layers are interleaved with intra-graph and inter-graph attention to mix local atom features with cross-drug substructure interactions, and the resulting drug embeddings are scored through a RESCAL relation head.
The released code targets the 86-class DrugBank type space. We set the relation count to one so that the RESCAL head reduces to a single binary score, and re-route the data pipeline through our cold-start FoldBundle. Code is provided in coldddi/baselines/dsn_ddi/ and selected through evaluate.py with -method dsn_ddi.
HDN-DDI [9]. Hierarchical drug-drug network that extends DSN-DDI with substructure-level message passing.
We apply the same single-relation RESCAL reduction as DSN-DDI, keep the hierarchical encoder unchanged, and re-route the data pipeline through our cold-start dataset. Code is provided in coldddi/baselines/hdn_ddi/ and selected through evaluate.py with -method hdn_ddi.
EmerGNN [14]. Bi-directional flow GNN over a DrugBank-derived knowledge graph for emerging drug pairs. Each entity is initialized with Morgan fingerprints, and per-layer attention-weighted relation aggregation propagates information from both endpoint drugs through the KG.
The original release relies on torchdrug's CUDA kernels for relation message passing, which our environment does not support. We reimplement EmerGNN in pure PyTorch, replacing generalized_rspmm with dense einsum and torch_scatter.scatter_add with tensor.index_add_. The architecture and update equations are otherwise identical. The KG is built from our 5 entity-association tables (transporter, enzyme, carrier, pathway, target). The original relation-prediction head is replaced with a single binary head scoring the (head, tail) pair. The pure-PyTorch implementation is provided in coldddi/baselines/emergnn/ and selected through evaluate.py with -method emergnn.
TIGER [13]. KG-integrated graph attention model. Each drug's molecular graph is fused with a KG random-walk subgraph rooted at the drug, and a transformer-style attention encoder produces drug embeddings.
The original head supports multi-class prediction. We use a 2-class head with binary cross-entropy, restrict the random-walk subgraph to relations whose endpoints lie in at training time, and route the data pipeline through our cold-start dataset. Code is provided in coldddi/baselines/tiger/ and selected through evaluate.py with -method tiger.
MKG-FENN [12]. Multi-modal KG fusion network with neighbor-attention pooling over drug-entity neighborhoods.
The original release classifies into 215 types. We replace the final softmax layer with a binary sigmoid head, keep the multi-channel KG fusion unchanged, and route the data pipeline through our cold-start dataset so that the neighbor-attention pool excludes drugs at training time. Code is provided in coldddi/baselines/mkg_fenn/ and selected through evaluate.py with -method mkg_fenn.
TextDDI [15]. RoBERTa-based text encoder that fine-tunes a binary classifier on each drug pair's concatenated natural-language descriptions. Per-drug descriptions are drawn from the original TextDDI dictionary (drug profiles in medical text), with a knowledge-graph fallback over targets, enzymes, transporters, and carriers if the dictionary entry is missing.
The released model already targets binary DDI detection and we reuse it as-is, only re-routing the data pipeline through our cold-start dataset so that test-side drugs never appear in the textual context retrieved at training time. Code is provided in coldddi/baselines/textddi/ and selected through evaluate.py with -method textddi.
Hyperparameter Quick-Reference. Hyperparameters largely follow the settings reported in each baseline's original publication, with light task-specific tuning on the cold-start splits. We list only the final chosen values, which are already wired in as the script defaults in the released repository. All eight conventional baselines were trained on every one of the six datasets covered by this paper (1,900-drug full benchmark and 800-drug subset, each over three random seeds. See Appendix B.1 and Appendix B.3.1). The reported hyperparameters are shared across all six runs per method. Wall-clock figures are approximate end-to-end training on a single RTX 5090 GPU for one run on the 1,900-drug full benchmark and the 800-drug subset (Appendix A.6.4).
Table 26: Hyperparameters used for the eight conventional baselines, matching the paper presets defined in coldddi/baselines/<method>/baseline.py. Wall-clock is approximate end-to-end training on a single RTX 5090 for one run, reported separately for the 800-drug subset and the 1,900-drug full benchmark.
| Method | Optim | LR | Weight decay | Batch | Epochs | Patience | Key arch dims | Params | Wall-clock (5090) | |
|---|---|---|---|---|---|---|---|---|---|---|
| 800 | 1,900 | |||||||||
| DeepDDI | Adam | 0 | 256 | 100 | 15 | SSP=50, hidden=2048, layers=9, dropout=0.3 | 29.6M | ~10 min | ~1 h | |
| SSI-DDI | Adam | 1024 | 150 | 50 | atom feats=55, KGE dim=64 | 0.7M | ~50 min | ~10 h | ||
| DSN-DDI | Adam | 512 | 50 | 10 | hidden=128, KGE dim=128, dropout=0.2 | 1.4M | ~1 h | ~14 h | ||
| HDN-DDI | Adam | 512 | 50 | 10 | hidden=128, KGE dim=128 | 1.6M | ~1 h | ~14 h | ||
| EmerGNN | Adam | 32 | 40 | 10 | , length=3, feat=Morgan FP | 0.5M | ~40 min | ~10 h | ||
| TIGER | Adam | 128 | 50 | 0 | layer=2, , walk=randomWalk, fixed-num=32, dropout=0.2 | 8.2M | ~3 h | ~19 h | ||
| MKG-FENN | Adam | 256 | 50 | 15 | embedding=128, neighbor sample=6, dropout=0.3 | 106.5M | ~2 h | ~12 h | ||
| TextDDI | AdamW | 32 | 30 | 10 | RoBERTa-base, max length=256 | 124.6M | ~8 h | ~40 h | ||
C.2 Training Protocol and Hardware
Unified Training Protocol. Three protocol details are shared across all baselines and the LLM-FT pipeline, removing common confounds in cross-method comparison.
-
Identical Splits. All methods consume the same FoldBundle pkl produced by our split-construction pipeline (Appendix B.1), so train / val-S0 / val-S1 / val-S2 / test-S0 / test-S1 / test-S2 partitions are byte-identical across methods.
-
Capped Negative Budget for LLM-Baseline Parity. To keep the binary-classification protocol fair to LLM-FT (which sees one positive and one negative per training pair and cannot draw fresh negatives each epoch), every conventional baseline is held to the same finite negative budget. The bundle pre-samples four independent training-negative sets from , each at the configured ratio. At training epoch , the active negative set is . Methods with longer schedules rotate through the same four sets multiple times rather than seeing fresh draws each epoch, so a high-throughput optimizer cannot quietly absorb more negative supervision than LLM-FT does and the resulting gap reflects representational capacity rather than negative-sample volume. This eliminates extra-data variance from the comparison.
-
Fixed Validation and Test Negatives. Validation and test negatives are sampled once from the appropriate setting-specific complement space and held constant across all methods and epochs (Appendix B.2.1), so model selection and final scoring use identical evaluation sets.
Hardware. All baseline runs reported in this paper were measured on a mix of NVIDIA RTX 5090 (32 GB, local workstation) and 2×A40 (48 GB, cluster) GPUs. Per-method wall-clock and parameter counts are listed in Table 26. The full 1,900-drug benchmark requires roughly 5×–15× longer per baseline depending on architecture. The edge count alone scales (Appendix B.1), but methods with pair-level attention or random-walk overhead scale faster. LLM-FT wall-clock is reported separately in Appendix D.2.
C.3 Full Test Metrics
For each scale we split the per-split metric breakdown into a ranking-metric table (AUC-ROC, AUC-PRC) and a threshold-metric table (F1, accuracy) so that each cell stays legible.
Table 27 and Table 28 cover the 800-drug subset, averaged over three random seeds. Table 29 and Table 30 cover the 1,900-drug full benchmark. All four tables are produced by scripts/render_baseline_full_metrics_tex.py from the per-fold metric.json files.
Table 27: Ranking metrics (AUC-ROC, AUC-PRC) for the eight conventional baselines on the 800-drug subset (3-seed mean±std).
| Method | S0 | S1 | S2 | |||
|---|---|---|---|---|---|---|
| AUC-ROC | AUC-PRC | AUC-ROC | AUC-PRC | AUC-ROC | AUC-PRC | |
| DeepDDI | ||||||
| SSI-DDI | ||||||
| DSN-DDI | ||||||
| HDN-DDI | ||||||
| EmerGNN | ||||||
| TIGER | ||||||
| MKG-FENN | ||||||
| TextDDI | ||||||
Table 28: Threshold metrics (F1, accuracy) on the 800-drug subset, same runs as Table 27.
| Method | S0 | S1 | S2 | |||
|---|---|---|---|---|---|---|
| F1 | Acc | F1 | Acc | F1 | Acc | |
| DeepDDI | ||||||
| SSI-DDI | ||||||
| DSN-DDI | ||||||
| HDN-DDI | ||||||
| EmerGNN | ||||||
| TIGER | ||||||
| MKG-FENN | ||||||
| TextDDI | ||||||
Table 29: Ranking metrics (AUC-ROC, AUC-PRC) on the 1,900-drug full benchmark (3-seed mean±std).
| Method | S0 | S1 | S2 | |||
|---|---|---|---|---|---|---|
| AUC-ROC | AUC-PRC | AUC-ROC | AUC-PRC | AUC-ROC | AUC-PRC | |
| DeepDDI | ||||||
| SSI-DDI | ||||||
| DSN-DDI | ||||||
| HDN-DDI | ||||||
| EmerGNN | ||||||
| TIGER | ||||||
| MKG-FENN | ||||||
| TextDDI | ||||||
C.4 Stratified Test Metrics by Mechanism × Similarity
This subsection complements Section 5.2 (D2) by cross-tabulating S2 Recall along two axes simultaneously, namely the four mechanism subtypes (PK-A, PK-B, PD-A, PD-B) and three structural-
Table 30: Threshold metrics (F1, accuracy) on the 1,900-drug full benchmark, same runs as Table 29.
| Method | S0 | S1 | S2 | |||
|---|---|---|---|---|---|---|
| F1 | Acc | F1 | Acc | F1 | Acc | |
| DeepDDI | 0.973 ±0.000 | 0.973 ±0.000 | 0.726 ±0.007 | 0.743 ±0.004 | 0.575 ±0.019 | 0.624 ±0.006 |
| SSI-DDI | 0.756 ±0.012 | 0.751 ±0.013 | 0.643 ±0.011 | 0.652 ±0.007 | 0.587 ±0.021 | 0.593 ±0.002 |
| DSN-DDI | 0.887 ±0.055 | 0.879 ±0.064 | 0.742 ±0.041 | 0.744 ±0.059 | 0.667 ±0.076 | 0.656 ±0.061 |
| HDN-DDI | 0.775 ±0.011 | 0.772 ±0.007 | 0.669 ±0.001 | 0.675 ±0.002 | 0.597 ±0.018 | 0.603 ±0.002 |
| EmerGNN | 0.932 ±0.004 | 0.932 ±0.004 | 0.728 ±0.002 | 0.734 ±0.001 | 0.644 ±0.011 | 0.657 ±0.007 |
| TIGER | 0.917 ±0.006 | 0.917 ±0.006 | 0.659 ±0.043 | 0.694 ±0.026 | 0.500 ±0.074 | 0.581 ±0.020 |
| MKG-FENN | 0.989 ±0.001 | 0.989 ±0.001 | 0.612 ±0.033 | 0.642 ±0.013 | 0.667 ±0.000 | 0.500 ±0.000 |
| TextDDI | 0.973 ±0.011 | 0.973 ±0.011 | 0.711 ±0.016 | 0.724 ±0.011 | 0.564 ±0.014 | 0.617 ±0.001 |
Table 31: S2 Recall on the 800-drug subset, broken down by mechanism subtype × Tanimoto similarity tier (3-seed mean±std). Conventional baselines. n is the per-cell positive count averaged across seeds. Best per row in bold (excluding MKG-FENN).
| Type | Tier | n | DeepDDI | SSI-DDI | DSN-DDI | HDN-DDI | EmerGNN | TIGER | MKG-FENN | TextDDI |
|---|---|---|---|---|---|---|---|---|---|---|
| PK-A | Low | 183 | ||||||||
| PK-A | Mid | 250 | ||||||||
| PK-A | High | 255 | ||||||||
| PK-B | Low | 157 | ||||||||
| PK-B | Mid | 129 | ||||||||
| PK-B | High | 95 | ||||||||
| PD-A | Low | 15 | ||||||||
| PD-A | Mid | 17 | ||||||||
| PD-A | High | 45 | ||||||||
| PD-B | Low | 242 | ||||||||
| PD-B | Mid | 251 | ||||||||
| PD-B | High | 271 |
MKG-FENN saturates at near-unit Recall on every cell (overall AUC 0.566 on S2 indicates trivial output bias rather than genuine prediction). Excluded from bolding.
similarity tiers based on Tanimoto similarity over Morgan fingerprints (radius 2, 2048 bits) of the two drug SMILES. Tier cutoffs follow our companion analysis. Low corresponds to , Mid to , and High to . All numbers are 3-seed mean on the 800-drug subset under pattern P4 (One-Hop KG sequence). MKG-FENN values carry as in Table 4 and are excluded from per-row bolding.
Table 31 reports per-cell Recall for the eight conventional baselines. Two patterns hold across most baselines. (a) Within each mechanism subtype, Recall shows a roughly downward trend from High to Low similarity tier, indicating that structural overlap with training drugs remains a primary signal. (b) PK-B (no annotated mediating entity) is consistently among the hardest columns, with even High-similarity cells barely above 0.5 for most baselines.
C.5 Negative-Pool Sensitivity of Stratified Metrics
We examine whether the Type A–Type B performance gap depends on the sampled-unrecorded comparison pool. We use the saved S2 predictions of LLM-FT (P4) and EmerGNN on the 800-drug subset for seeds 42, 43, and 44, without retraining. For this supplementary analysis, positive pairs are evaluated when both drugs have DrugBank mediator annotations. Type A requires a shared enzyme or transporter for PK pairs, or a shared target for PD pairs; the remaining evaluable pairs are Type B. This shared-mediator rule omits the action-role compatibility filter used in Table 4.
Comparison pools. We hold the positive subsets, prediction scores, and binary decisions fixed across three constructions:
Table 32: Type A–Type B metric gaps under three sampled-unrecorded comparison pools on the 800-drug subset (3-seed mean). Positive values indicate higher scores for Type A under the supplementary shared-mediator labeling rule.
| Metric | LLM-FT (P4) | EmerGNN | ||||
|---|---|---|---|---|---|---|
| C1 | C2 | C3 | C1 | C2 | C3 | |
| Recall | +0.433 | +0.433 | +0.433 | +0.436 | +0.436 | +0.436 |
| AUC-ROC | +0.250 | +0.233 | +0.296 | +0.255 | +0.259 | +0.266 |
| AUPRC | +0.230 | +0.212 | +0.195 | +0.177 | +0.237 | +0.154 |
| MCC | +0.238 | +0.405 | +0.335 | +0.277 | +0.437 | +0.343 |
| F1 | +0.108 | +0.300 | +0.142 | +0.159 | +0.357 | +0.208 |
Table 33: S2 A–B Recall gaps (3-seed mean±std) and pointwise 95% confidence intervals on the 800-drug subset, using the labeling protocol of Table 4.
| Method | Recall gap | 95% CI |
|---|---|---|
| DeepDDI | [-0.007, +0.258] | |
| SSI-DDI | [+0.104, +0.260] | |
| DSN-DDI | [-0.089, +0.224] | |
| HDN-DDI | [+0.025, +0.405] | |
| EmerGNN | [+0.194, +0.582] | |
| TIGER | [-0.057, +0.199] | |
| MKG-FENN | [-0.009, +0.021] | |
| TextDDI | [+0.009, +0.249] | |
| LLM-FT | [+0.137, +0.659] |
- C1: shared pool. Each positive subtype is compared against the complete S2 sampled-unrecorded pool.
- C2: size-matched pool. For each positive subtype, we sample an equal number of unrecorded pairs without replacement from the S2 pool. Sampling is performed separately for each method, seed, and subtype, using a random generator initialized with seed 20260725.
- C3: mediator-kind-matched pool. We retain unrecorded pairs only when each endpoint has at least two annotations of the relevant mediator kinds: the enzyme and transporter counts are summed for PK, whereas the target count is used for PD.
For each metric , we compute the A–B gap within each seed as
and report its mean across the three seeds. AUPRC is computed as average precision; F1 and MCC use the saved binary predictions.
Table 32 shows positive A–B gaps for both methods under every metric and pool construction. Thus, the Type A gain for these two methods is not specific to Recall.
C.6 Confidence Intervals for the A–B Recall Gap
We compute confidence intervals for the Recall gaps in Table 4, using the same subtype assignments and saved predictions. For each seed , the gap is
We report pointwise two-sided Student's confidence intervals, , where and are the mean and sample standard deviation of the three paired gaps.
The intervals in Table 33 lie entirely above zero for five of the nine methods: LLM-FT, EmerGNN, HDN-DDI, SSI-DDI, and TextDDI, supporting the Type A advantage for these methods.
Table 34: Mediator-graph enrichment and A–B Recall gaps. Every row uses DrugBank as the base graph; “All three” adds PharmGKB, ChEMBL, and KEGG. Edge increases and drug coverage refer to the 1,900-drug pool. Recall gaps are 3-seed means on the 800-drug S2 subset. Enz., Tgt., and Trn. denote enzymes, targets, and transporters.
| Added source | Edge increase (%) | Drugs | Recall gap | |||
|---|---|---|---|---|---|---|
| Enz. | Tgt. | Trn. | LLM-FT | EmerGNN | ||
| None | 0.0 | 0.0 | 0.0 | 1,793 | +0.433 | +0.436 |
| PharmGKB | +36.3 | +12.9 | +19.8 | 1,793 | +0.432 | +0.436 |
| ChEMBL | +2.1 | +1.7 | +1.1 | 1,803 | +0.435 | +0.436 |
| KEGG | +3.2 | +43.5 | +1.5 | 1,794 | +0.390 | +0.392 |
| All three | +40.8 | +57.3 | +21.7 | 1,804 | +0.395 | +0.392 |
C.7 Sensitivity to External Mediator Annotations
We examine whether the Type A–Type B performance gap depends on DrugBank's mediator coverage by adding annotations from PharmGKB, ChEMBL, and KEGG. We hold the S2 predictions of LLM-FT (P4) and EmerGNN fixed on the 800-drug subset for seeds 42, 43, and 44, and recompute the A/B assignments under each enriched graph. This analysis evaluates the sensitivity of the stratification and the associated performance gap, without retraining either model on the enriched graphs.
Sources and alignment. We use the PharmGKB drug, gene, and relationship exports dated July 5, 2026, ChEMBL 37, and KEGG DRUG annotations retrieved via the REST API on July 25, 2026. DrugBank IDs anchor the drug namespace, PharmGKB drugs are matched through their DrugBank cross-references, ChEMBL compounds through full InChIKey matches derived from DrugBank SMILES, and KEGG drug IDs through PharmGKB cross-references. For PharmGKB, we retain drug–gene associations with nonempty evidence fields and exclude records marked “not associated.” For ChEMBL, we use curated drug_mechanism entries restricted to single-protein targets. KEGG annotations are extracted from the TARGET and METABOLISM fields. Mediator entities are aligned to the DrugBank catalog by gene symbol or normalized protein name. Unmatched candidates receive new identifiers, with their mediator kinds assigned by name-based rules for PharmGKB, the curated target table for ChEMBL, and the source field for KEGG. We combine each source with DrugBank and deduplicate drug–entity–kind triples, considering each source separately and all three together. The DrugBank baseline contains 4,724 enzyme edges, 7,292 target edges, and 2,758 transporter edges.
Relabeling protocol. We use the supplementary shared-mediator rule described in Appendix C.5. A PK pair is Type A if its drugs share an enzyme or transporter, and a PD pair is Type A if they share a target. The remaining evaluable pairs are Type B. Unlike the original protocol in Table 4, this analysis does not require action-role compatibility. A positive pair is evaluable when both drugs have mediator annotations in the graph being evaluated. For each seed, we compute the macro-averaged A–B Recall gap across PK and PD, then average the gaps over the three seeds.
Reassignments and results. Among positive pairs evaluable under the DrugBank baseline in the 1,900-drug pool, enrichment with PharmGKB, ChEMBL, KEGG, and their union reassigns 4,997, 356, 33,942, and 38,590 pairs from Type B to Type A, respectively. The reported results from Table 34 retain a positive A–B Recall gap for both LLM-FT and EmerGNN across PharmGKB, ChEMBL, and KEGG enrichment.
C.8 Performance Across Training-Frequency Bins
We examine whether frequent training patterns explain cold-start performance on the 800-drug S2 subset. The analysis distinguishes two levels: shared mediators and DDI types. At the mediator level, each Type A positive pair is indexed by its annotated primary shared mediator , with counting training positive pairs whose two drugs share . For DDI types, all S2 positive pairs are grouped by , the number of training positive pairs carrying type . Recall is computed within
Table 35: Frequency-stratified Recall on the 800-drug S2 subset, pooling test examples across three seeds. The mediator analysis includes Type A positives, and the DDI-type analysis includes all positives. denotes the number of test examples in each bin.
| Training-frequency bin | Llama-3.2-1B | Gemma-3-12B | EmerGNN | |
|---|---|---|---|---|
| Shared mediator: | ||||
| 1–10 | 4 | 0.750 | 1.000 | 1.000 |
| 11–50 | 10 | 0.700 | 0.800 | 0.700 |
| 51–200 | 14 | 0.786 | 0.643 | 0.571 |
| 201–1,000 | 108 | 0.991 | 0.954 | 0.778 |
| >1,000 | 2,137 | 0.887 | 0.737 | 0.779 |
| DDI type: | ||||
| 1–100 | 61 | 0.770 | 0.770 | 0.639 |
| 101–1,000 | 340 | 0.674 | 0.665 | 0.476 |
| 1,001–5,000 | 581 | 0.657 | 0.614 | 0.489 |
| 5,001–20,000 | 1,829 | 0.699 | 0.660 | 0.527 |
| >20,000 | 2,927 | 0.684 | 0.585 | 0.579 |
each bin for Llama-3.2-1B (P4), Gemma-3-12B (P4), and EmerGNN, pooling test examples across seeds 42, 43, and 44.
Across both frequency axes, Recall is non-monotonic for all three models in Table 35. The highest-frequency bins do not consistently yield the best performance. These patterns suggest that training-set frequency alone is insufficient to explain the observed cold-start performance or the Type A–Type B gap.
D LLM Configuration and Experiments
D.1 Prompt Templates (P1–P5)
Each prompt is composed of six ordered content blocks and formatted into a three-role chat message (system / user / assistant). is the task name, a one-line identifier delivered in the system role. is the task instruction, which frames the model as an expert pharmacologist and states the binary DDI prediction objective. is the method instruction, which selects the inference strategy (zero-shot, similarity-based few-shot, KG-augmented, or mechanism-aware few-shot) and tells the model how to use whatever auxiliary content is provided. is the auxiliary block, which carries any retrieved reference pairs or per-drug KG facts that the chosen strategy depends on. is the output constraint, which pins the response to a single token (Yes or No). is the query block, which lists the two drugs to be predicted and any per-pattern context such as SMILES or 1-hop facts.
| Role | Content blocks |
|---|---|
| System | Task name () + Task instruction (, shared) |
| User | Method instruction (, pattern-specific) + Auxiliary block (, pattern-specific) + Output constraint (, shared) + Query pair (, pattern-specific) |
| Assistant | “Yes” or “No” (single token) |
All five patterns share , , and , and differ in , , and . We first list the two shared blocks (grey), which are byte-identical across P1–P5, then show one colour-coded box per pattern bundling that pattern's method instruction with its query template (and auxiliary block for the few-shot patterns P2 and P5).
The five pattern-specific boxes follow. Within each box, {a_name}, {b_name}, {a_smiles}, {b_smiles} stand for the canonical DrugBank names and SMILES of the query pair, and {...} under “Facts” stands for the one-hop biomedical entities (targets, enzymes, transporters, carriers, pathways) of each drug. Reference examples in are sampled from the training pool only, with self-exclusion enforced to prevent trivial identity matches.
Task instruction ( , shared)
You are an expert pharmacologist and clinical research assistant. Your objective is to determine whether a clinically significant drug-drug interaction (DDI) exists between the two provided drugs identified by the ‘[Prediction]’ tag. Consider potential pharmacokinetic interactions and pharmacodynamic interactions in your assessment.
Output constraint ( , shared)
Output Constraint: Respond strictly with exactly one token: 'Yes' or 'No'. Do not provide any explanations, confidence scores, punctuation, or additional text.
P1 Zero-Shot
% Method instruction. This is a Zero-Shot inference mode. No external context, drug descriptions, or labeled examples are provided. You must rely exclusively on your pre-trained internal knowledge regarding drug mechanisms and chemical knowledge to make the prediction. % Query template.
[Prediction]:
Drug A: {a_name} Drug B: {b_name}
Answer:
P2 Few-Shot SMILES
% Method instruction. This is a Few-Shot inference task enhanced by molecular structural similarity. You are provided with reference examples selected based on high SMILES similarity (Morgan fingerprints) to the target drug pair. Then you can infer the interaction status of the target pair by analyzing the shared molecular substructures and interaction patterns observed in these structural analogs. % Auxiliary block + query template.
Reference Examples (Structural Analogs):
[Example k]
Drug A: {ref_a_name}, SMILES: {ref_a_smiles} Drug B: {ref_b_name}, SMILES: {ref_b_smiles}
Answer: {Yes|No}
... (k-shot)
[Prediction]:
Drug A: {a_name}, SMILES: {a_smiles} Drug B: {b_name}, SMILES: {b_smiles}
Answer:
P3 One-Hop KG triplets
% Method instruction. This inference is augmented by external biomedical knowledge. For each drug, you are provided with a set of explicit 1-hop Knowledge Graph Triples (Subject, Relation, Object) representing its immediate biological associations (e.g., (Drug A, has targets, xxx target)). Integrate these structured facts with your internal knowledge to assess the likelihood of an interaction. % Query template.
[Prediction]:
Drug A: {a_name} Drug A's Facts: ({a_name}, has targets, ...), ({a_name}, has enzymes, ...), ... Drug B: {b_name} Drug B's Facts: ({b_name}, has targets, ...), ({b_name}, has enzymes, ...), ...
Answer:
P4 One-Hop KG sequence
% Method instruction. This inference is augmented by external biomedical knowledge transformed into natural language descriptions. Structured Knowledge Graph facts regarding each drug have been linearized into coherent sentences grouping biological associations by category (e.g., whose targets are xxx, xxx, and xxx). Utilize these semantic descriptions to identify potential interaction mechanisms. % Query template.
[Prediction]:
Drug A: {a_name} whose targets are ... whose enzymes are ... whose transporters are ... Drug B: {b_name} whose targets are ... whose enzymes are ... whose transporters are ...
Answer:
When no shared biomedical entity exists for P5 retrieval, the block falls back to the SMILES-similarity retrieval used by P2.
Description-Leakage Verification. We explicitly confirm that no prompt template contains Drug-Bank interaction descriptions or any textual hint about whether the query pair interacts:
-
The task instruction and all method instructions describe the task and the method. They never reference a specific interaction.
-
The few-shot blocks in P2 and P5 contain reference drug pairs with Yes/No labels, but these pairs are drawn from the training pool and do not reveal the label of the query pair.
-
The one-hop KG blocks in P3 and P4 describe each drug’s individual biomedical associations (targets, enzymes, transporters, carriers, pathways), not drug-drug relations.
-
The query format lists drug names (or [DRUG_A]/[DRUG_B] placeholders under R1/R3/R5/R7), optionally SMILES or KG context, but never the interaction description.
Consequently, the model must infer the interaction from drug-level features rather than from leaked annotations.
P5 Few-Shot 2-hop
% Method instruction.
This task utilizes a Mechanism-Aware Few-Shot strategy. The provided reference examples are not selected randomly, they are retrieved based on shared biological entities (targets, transporters, enzymes) from a biomedical Knowledge Graph. Specifically, the reference drugs share critical protein associations with the query drugs (with tag ‘[Prediction]’), implying a potential 2nd-order mechanistic similarity (Query Drug → Shared Protein ← Reference Drug). Use these mechanistically related examples to infer the interaction status of the target pair.
% Auxiliary block + query template.
Reference Examples (Mechanism-Aware):
[Example k]
Drug A: {ref_a_name} Drug B: {ref_b_name} Matching Evidence: (Query Drug A -> {Target: shared} <- {ref_a_name}); (Query Drug B -> {Target: shared} <- {ref_b_name})
Answer: {Yes|No}
... (k-shot)
[Prediction]:
Query Drug A: {a_name} Query Drug B: {b_name}
Answer:
D.2 LoRA Fine-Tuning Configuration
All fine-tuned LLM results in Sections 5.1, 5.3 and 5.4 are produced by Low-Rank Adaptation (LoRA) [36] of the base model, with all base-model parameters frozen. The configuration is shared across the eleven open-weight LLMs of Table 8 and across the five prompt patterns P1–P5. Only the prompt template varies. The released training preset is defined in coldddi/llm/trainer.py. The P4 runner records its effective configuration in config.json under the run directory.
Hyperparameter Search. The LoRA settings reported below are not hand-picked. They are the best-trial output of an Optuna study run on Qwen2.5-0.5B (chosen as the cheapest base for a fast search) over 50 trials maximising val-S2 AUC-ROC on a 1,000-pair training subset and a 100-pair validation subset on a single random seed. The full search space and the best assignment are listed in Table 36. The best trial reached val AUC 0.747. The median across the 50 trials was 0.506, indicating that LoRA performance on cold-start S2 is highly sensitive to this configuration. Marginal-mean comparisons over the 50 trials confirm the qualitative ranking. Adding o_proj, reducing the batch from 64 to 16, and lifting from (8, 8) to (16, 16) each raise mean val AUC monotonically. We carry this assignment to every other backbone in Table 8 unchanged, since per-backbone re-tuning would inflate compute by for variance smaller than the cross-backbone S2 spread.
Table 36: LoRA hyperparameter search space and the best trial. The Optuna study ran for 50 trials on Qwen2.5-0.5B (1,000 train / 100 val pairs, single random seed), maximising val-S2 AUC-ROC. Best trial value 0.747, median across all 50 trials 0.506.
| Parameter | Search space | Best |
|---|---|---|
| learning rate | (step ) | |
| dropout | (16, 16) | |
| target modules | (step 0.02) | 0.1 |
| batch size | ||
| 16 |
Adapter Hyperparameters. Table 37 lists the LoRA-side configuration. Rank and keep the effective scaling at 1, and dropout 0.1 matches the base-model attention dropout used during pretraining. The adapter targets the four self-attention projections . We deliberately do not adapt the FFN to keep the per-LLM adapter size below 40 MB and to avoid over-writing the pretrained pharmacological-text prior.
Table 37: LoRA adapter and training hyperparameters used for every fine-tuned LLM in the paper. The micro-batch column lists the values used on 2 A40 (96 GB).
| Parameter | Value |
|---|---|
| Adapter (PEFT/LoRA) | |
| rank | 16 |
| 16 | |
| dropout | 0.10 |
| target modules | q_proj, k_proj, v_proj, o_proj |
| layers transformed | 11 (last 11 transformer blocks) |
| bias | none (frozen) |
| task type | CAUSAL_LM |
| Training | |
| optimizer | adamw_torch |
| learning rate | |
| LR schedule | cosine, warmup ratio 0.05 |
| weight decay | 0.0 |
| gradient clipping | 1.0 |
| effective batch size | 16 |
| micro-batch (0.5B / 1B) | 8 (grad_accum = 2) |
| micro-batch (3B / 4B) | 4 (grad_accum = 4) |
| micro-batch (7B) | 2 (grad_accum = 8) |
| micro-batch (12B–14B) | 1 (grad_accum = 16) |
| epochs | 4 |
| max sequence length | 1,250 (Top-3 KG) / 4,096 (Full KG, R4–R7) |
| negatives per batch | 16 (matches default 1:1 ratio of Section B.2.1) |
| save_total_limit | 20 (per-epoch ckpts, best-ckpt selection) |
| Tokenization & heads | |
| answer tokens | “Yes” / “No” (single tokens with leading space) |
| loss | next-token cross-entropy on the answer position only |
| inference temperature | 0 (greedy) |
| probability | softmax(logits) |
Hardware and Wall-Clock. The full LLM matrix (11 LLMs × 5 patterns × 3 seeds = 165 cells) was trained on 2 NVIDIA A40 (96 GB) GPUs across approximately 100 days of cluster time, equivalent to ~1,400 single-GPU hours. Per-cell wall-clock breaks down as ~5–7 h for 1B–3B LLMs, ~10–12 h for 7B, ~16–20 h for 13B/14B. Inference (3-seed, 5-pattern, S0/S1/S2 scoring) is collected on the same GPU after training and contributes an additional ~ 30% wall-clock overhead.
Mask-Condition Sweep. The eight mask conditions R0–R7 (Table 52) inherit the same LoRA configuration. Only the prompt template and max_token_length (1,250 for R0–R3, 4,096 for R4–R7) change. We do not re-train per mask condition. Masking is applied at inference time on the R0-trained adapter so that all mask deltas isolate the input perturbation from supervised adaptation noise.
Released Artifacts. The release includes scripts/run_benchmark.py for the P4 end-to-end pipeline and scripts/run_llm.py for P1–P5 runs. Training configuration and inference are implemented in coldddi/llm/trainer.py and coldddi/llm/inference.py, respectively. The selected adapter checkpoints will be released. Base-model weights are not redistributed; users supply them through the standard Hugging Face cache.
Table 38: S2 AUC-ROC under direct inference (no fine-tuning) on the 800-drug subset (single random seed). Best per column in bold.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| Llama-3.2-1B | 0.488 | 0.523 | 0.465 | 0.525 | 0.485 |
| Llama-3.2-3B | 0.504 | 0.488 | 0.457 | 0.459 | 0.468 |
| Llama-2-7B | 0.535 | 0.489 | 0.549 | 0.474 | 0.496 |
| Llama-2-13B | 0.545 | 0.533 | 0.450 | 0.513 | 0.479 |
| Qwen2.5-0.5B | 0.525 | 0.473 | 0.511 | 0.489 | 0.513 |
| Qwen2.5-3B | 0.502 | 0.511 | 0.555 | 0.517 | 0.579 |
| Qwen2.5-7B | 0.563 | 0.532 | 0.534 | 0.486 | 0.560 |
| Qwen2.5-14B | 0.541 | 0.516 | 0.584 | 0.510 | 0.555 |
| Gemma-3-1B | 0.526 | 0.477 | 0.483 | 0.520 | 0.510 |
| Gemma-3-4B | 0.495 | 0.457 | 0.517 | 0.496 | 0.512 |
| Gemma-3-12B | 0.498 | 0.520 | 0.502 | 0.548 | 0.465 |
Table 39: S2 Recall under direct inference (no fine-tuning) on the 800-drug subset (single random seed). Best per column in bold.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| Llama-3.2-1B | 0.000 | 0.078 | 0.850 | 0.857 | 0.102 |
| Llama-3.2-3B | 0.000 | 0.003 | 0.000 | 0.000 | 0.000 |
| Llama-2-7B | 0.000 | 0.008 | 0.000 | 0.000 | 0.000 |
| Llama-2-13B | 1.000 | 0.411 | 0.964 | 0.995 | 1.000 |
| Qwen2.5-0.5B | 1.000 | 0.980 | 1.000 | 1.000 | 1.000 |
| Qwen2.5-3B | 0.999 | 0.631 | 1.000 | 1.000 | 0.000 |
| Qwen2.5-7B | 1.000 | 0.981 | 0.992 | 1.000 | 1.000 |
| Qwen2.5-14B | 1.000 | 0.980 | 1.000 | 1.000 | 1.000 |
| Gemma-3-1B | 0.000 | 0.001 | 0.000 | 0.000 | 0.000 |
| Gemma-3-4B | 0.000 | 0.001 | 0.000 | 0.000 | 0.000 |
| Gemma-3-12B | 0.000 | 0.001 | 0.000 | 0.000 | 0.000 |
D.3 Direct Inference Results
This subsection supplements Section 5.4 (D4) by reporting per-model direct-inference (no fine-tuning) results on S2. We report 11 open-weight LLMs across the 5 prompt patterns, then 2 closed-source LLMs under P4 with a probabilistic-elicitation protocol.
Open-Weight LLMs (P1–P5). Table 38 reports S2 AUC-ROC and Table 39 reports S2 Recall on the 800-drug subset. All numbers come from a single random seed since direct inference is deterministic.
Open-Weight Observations. Across all 55 reported (LLM, pattern) cells for open-weight models, AUC ranges from 0.450 to 0.584 with mean 0.509, confirming Finding 6 of Section 5.4 that direct inference stays near random and collapses to a single answer regardless of family or scale. The Recall column reveals a complementary pattern. Most LLMs collapse to a single answer. Recall 0.000 for the Gemma family and the Llama-3.2-3B / Llama-2-7B variants, indicating they default to “No”. Recall 1.000 for most of the Qwen family (Qwen2.5-3B P2 / P5 are partial at 0.631 / 0.000) and Llama-2-13B, indicating they default to “Yes”. Only Llama-3.2-1B in P3 / P4 (0.85, 0.86), Llama-2-13B in P2 (0.411), and Qwen2.5-3B in P2 (0.631) emit non-trivial Recall, but their AUCs remain below 0.55, so the agreement with ground truth is incidental rather than mechanistic. This confirms that pretrained knowledge alone is insufficient for cold-start DDI prediction.
Closed-Source LLMs (P4). To verify that Finding 6 of Section 5.4 generalizes beyond open-weight models, we additionally evaluate two commercial LLMs, gpt-4o-2024-08-06 (referred to as “GPT-4o”) and claude-sonnet-4-6 (“Claude Sonnet 4.6”), under prompt pattern P4 on the 800-drug subset S2 test set. We use the S2 test set from a single random seed, which contains 3,838 unique pairs (1,919 positive and 1,919 negative). Closed-source APIs do not expose token-level logits, so we
Table 40: Closed-source LLM direct inference on the 800-drug subset, S2 test set under P4 (3,838 unique pairs, single random seed). AUC is computed on the elicited (Yes). Thresholded metrics use 0.5 as the cutoff.
| Model | AUC | Acc. | Prec. | Rec. | F1 |
|---|---|---|---|---|---|
| GPT-4o | 0.710 | 0.666 | 0.664 | 0.672 | 0.668 |
| Claude Sonnet 4.6 | 0.751 | 0.617 | 0.886 | 0.267 | 0.411 |
cannot directly read from the model. We instead modify the original P4 binary instruction to ask the model to emit a single floating-point number in [0, 1] representing the probability that a clinically significant DDI exists. AUC-ROC is then computed on this elicited scalar and a threshold of 0.5 is used for thresholded metrics (accuracy, precision, recall, F1). Decoding uses temperature = 0 (greedy), a single random seed, and a single inference per pair. Per-model results are in Table 40.
Closed-Source Observations. Three points stand out. (a) Both closed-source models lie below the open-weight LLM-FT (Llama-3.2-1B, P4) S2 AUC of 0.776 on the same subset, confirming that Finding 6 of Section 5.4 extends to closed-source. (b) Both also clearly outperform every open-weight direct-inference cell in Table 38 (max 0.584). Closed-source pretraining therefore raises the no-tuning ceiling, but not enough to overtake supervised LoRA fine-tuning of a 1B open model. (c) The two models exhibit notably different decision styles. GPT-4o produces balanced predictions (precision 0.66, recall 0.67), whereas Claude Sonnet 4.6 is highly conservative (precision 0.89, recall 0.27), strongly preferring the negative class when uncertain. AUC is threshold-invariant so this asymmetry does not affect the headline ranking, but it indicates that even at comparable AUC, closed-source LLMs differ considerably in operating selection without supervised tuning.
D.4 Fine-Tuned Per-Model Per-Pattern Results
This subsection reports the full LLM fine-tuning matrix referenced from Section 5.1 and Section 5.4, covering eleven open-weight LLMs across three families (Llama, Qwen, Gemma) and parameter counts spanning 0.5B to 14B, evaluated on five inference patterns (P1–P5, defined in Section 3.4) and three cold-start settings (S0 / S1 / S2) on the 800-drug subset. All numbers are 3-seed mean±std. We report AUC-ROC and Recall here.
Observations Across the Matrix. Under LoRA fine-tuning, three patterns appear consistently across the three settings. First, one-hop KG prompting (P3, P4) is the most reliable prompt family, delivering the highest AUC and Recall for nearly every model in S1 and S2 and confirming that explicit KG context drives the gain over zero-shot or SMILES-only prompts. Second, by combined AUC-ROC and Recall on S2, Llama-3.2-1B under P4 is the strongest configuration (AUC 0.776, Recall 0.697). Llama-3.2-3B under P4 (AUC 0.785, Recall 0.584) and Gemma-3-12B under P4 (AUC 0.798, Recall 0.616) reach higher AUC but markedly lower Recall. Third, within this fine-tuned setup larger model scale does not yield a monotonic advantage on S2. Llama-2-7B, Llama-2-13B, Qwen2.5-7B, and Qwen2.5-14B do not exceed the leading 1B–4B configuration by more than 0.04 AUC despite a 2–30× increase in parameter count, and the wall-clock and memory budgets reported in Table 37 grow more steeply than this gap. Overall, the resulting compute-to-accuracy trade-off favours the smaller backbones in practical deployment.
Llama-3.2-1B on the 1,900-Drug Full Benchmark. We additionally fine-tune Llama-3.2-1B under prompt pattern P4 on the 1,900-drug full benchmark across three random seeds, to verify that the conclusions drawn from the 800-drug subset (Sections 5.1 and 5.4) still hold at the full benchmark scale. We restrict the 1,900-drug evaluation to P4 because (i) P4 is the strongest cell on the 800-drug subset (Table 43) and is the configuration carried into the diagnostic experiments of Section 5.3 and Appendix E.2, and (ii) covering all five patterns at the 1,900-drug scale is infeasible within the submission compute budget. Table 44 reports 3-seed mean±std AUC-ROC and Recall on S0 / S1 / S2.
Table 41: S0 fine-tuned LLM AUC-ROC (top) and Recall (bottom) on the 800-drug subset, by inference pattern (3-seed mean±std). Best per column in bold.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| AUC-ROC | |||||
| Llama-3.2-1B | 0.982 ±0.003 | 0.982 ±0.005 | 0.987 ±0.002 | 0.987 ±0.001 | 0.980 ±0.003 |
| Llama-3.2-3B | 0.987 ±0.002 | 0.965 ±0.036 | 0.946 ±0.071 | 0.991 ±0.001 | 0.984 ±0.003 |
| Llama-2-7B | 0.883 ±0.055 | 0.975 ±0.014 | 0.962 ±0.023 | 0.893 ±0.081 | 0.967 ±0.031 |
| Llama-2-13B | 0.891 ±0.059 | 0.930 ±0.007 | 0.915 ±0.071 | 0.903 ±0.044 | 0.907 ±0.027 |
| Qwen2.5-0.5B | 0.972 ±0.003 | 0.974 ±0.003 | 0.983 ±0.004 | 0.979 ±0.007 | 0.972 ±0.004 |
| Qwen2.5-3B | 0.870 ±0.047 | 0.945 ±0.066 | 0.915 ±0.071 | 0.953 ±0.061 | 0.946 ±0.063 |
| Qwen2.5-7B | 0.866 ±0.116 | 0.599 ±0.073 | 0.836 ±0.077 | 0.822 ±0.089 | 0.907 ±0.053 |
| Qwen2.5-14B | 0.889 ±0.079 | 0.847 ±0.034 | 0.864 ±0.062 | 0.883 ±0.097 | 0.906 ±0.070 |
| Gemma-3-1B | 0.975 ±0.006 | 0.975 ±0.004 | 0.984 ±0.004 | 0.983 ±0.002 | 0.974 ±0.003 |
| Gemma-3-4B | 0.984 ±0.002 | 0.981 ±0.000 | 0.990 ±0.000 | 0.990 ±0.001 | 0.980 ±0.003 |
| Gemma-3-12B | 0.984 ±0.002 | 0.954 ±0.042 | 0.990 ±0.002 | 0.990 ±0.001 | 0.983 ±0.003 |
| Recall | |||||
| Llama-3.2-1B | 0.923 ±0.003 | 0.922 ±0.013 | 0.941 ±0.003 | 0.938 ±0.007 | 0.922 ±0.009 |
| Llama-3.2-3B | 0.938 ±0.003 | 0.876 ±0.092 | 0.881 ±0.096 | 0.949 ±0.002 | 0.930 ±0.010 |
| Llama-2-7B | 0.752 ±0.061 | 0.905 ±0.019 | 0.885 ±0.060 | 0.917 ±0.040 | 0.914 ±0.035 |
| Llama-2-13B | 0.819 ±0.053 | 0.799 ±0.020 | 0.795 ±0.147 | 0.783 ±0.088 | 0.776 ±0.064 |
| Qwen2.5-0.5B | 0.906 ±0.005 | 0.905 ±0.010 | 0.933 ±0.008 | 0.925 ±0.016 | 0.909 ±0.009 |
| Qwen2.5-3B | 0.795 ±0.038 | 0.898 ±0.044 | 0.867 ±0.079 | 0.896 ±0.083 | 0.883 ±0.083 |
| Qwen2.5-7B | 0.813 ±0.117 | 0.572 ±0.082 | 0.717 ±0.058 | 0.710 ±0.099 | 0.833 ±0.040 |
| Qwen2.5-14B | 0.822 ±0.085 | 0.738 ±0.057 | 0.776 ±0.055 | 0.789 ±0.097 | 0.823 ±0.080 |
| Gemma-3-1B | 0.911 ±0.013 | 0.904 ±0.011 | 0.928 ±0.010 | 0.927 ±0.002 | 0.905 ±0.008 |
| Gemma-3-4B | 0.928 ±0.007 | 0.918 ±0.005 | 0.949 ±0.003 | 0.946 ±0.002 | 0.916 ±0.014 |
| Gemma-3-12B | 0.928 ±0.003 | 0.876 ±0.075 | 0.947 ±0.006 | 0.946 ±0.004 | 0.927 ±0.008 |
D.4.1 Text Descriptions and Structured KG Context
We examine textual drug descriptions as an alternative and a supplement to structured KG context on the 800-drug subset. GPT-4o generates a clinical description for each drug, covering pharmacological class, indications, general mechanism, dosing, and adverse effects. The generation prompt excludes specific enzyme, transporter, target, carrier, and interacting-drug names to reduce direct duplication of the P4 context. A subsequent leakage audit masks residual entity mentions in descriptions.
Two additional prompt patterns use these descriptions: P7 provides drug names and clinical descriptions without KG entities, whereas P6 augments P4 with the same descriptions. Both variants use Llama-3.2-1B with LoRA and seeds 42, 43, and 44. These supplementary runs use one training epoch and a learning rate of , with maximum sequence lengths of 1,280 tokens for P6 and 1,024 for P7. Checkpoint selection uses validation S2 AUC-ROC. For reference, Table 45 includes TextDDI and the P1/P4 results from Table 43.
P7 obtains higher mean AUC-ROC than the name-only P1 reference, while P4 retains an advantage over P7. The combined P6 setting achieves the highest mean AUC-ROC, although its Recall does not exceed P4.
D.5 Mechanism × Similarity Analysis (Fine-Tuned LLMs)
This subsection complements Section 5.2 (D2) by cross-tabulating S2 Recall along two axes simultaneously, namely the four mechanism subtypes (PK-A, PK-B, PD-A, PD-B) and three structural-similarity tiers based on Tanimoto similarity over Morgan fingerprints (radius 2, 2048 bits) of the two drug SMILES. Tier cutoffs follow our companion analysis. Low corresponds to , Mid to , and High to . All numbers are 3-seed mean±std on the 800-drug subset under pattern P4 (One-Hop KG sequence). The matching cross-tab for the eight conventional baselines is in Appendix C.4.
Table 42: S1 fine-tuned LLM AUC-ROC (top) and Recall (bottom) on the 800-drug subset (3-seed mean±std). Best per column in bold.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| AUC-ROC | |||||
| Llama-3.2-1B | 0.806 ±0.014 | 0.804 ±0.024 | 0.836 ±0.001 | 0.843 ±0.009 | 0.798 ±0.004 |
| Llama-3.2-3B | 0.819 ±0.021 | 0.807 ±0.012 | 0.827 ±0.010 | 0.838 ±0.014 | 0.828 ±0.005 |
| Llama-2-7B | 0.789 ±0.025 | 0.797 ±0.006 | 0.827 ±0.008 | 0.771 ±0.067 | 0.812 ±0.011 |
| Llama-2-13B | 0.804 ±0.017 | 0.827 ±0.010 | 0.839 ±0.024 | 0.836 ±0.019 | 0.811 ±0.007 |
| Qwen2.5-0.5B | 0.779 ±0.012 | 0.788 ±0.019 | 0.841 ±0.007 | 0.839 ±0.016 | 0.788 ±0.016 |
| Qwen2.5-3B | 0.718 ±0.039 | 0.808 ±0.020 | 0.828 ±0.023 | 0.841 ±0.045 | 0.801 ±0.052 |
| Qwen2.5-7B | 0.742 ±0.092 | 0.580 ±0.031 | 0.798 ±0.068 | 0.778 ±0.062 | 0.822 ±0.012 |
| Qwen2.5-14B | 0.749 ±0.069 | 0.759 ±0.048 | 0.777 ±0.049 | 0.812 ±0.062 | 0.792 ±0.058 |
| Gemma-3-1B | 0.785 ±0.013 | 0.794 ±0.008 | 0.830 ±0.012 | 0.828 ±0.005 | 0.798 ±0.013 |
| Gemma-3-4B | 0.817 ±0.015 | 0.816 ±0.009 | 0.845 ±0.010 | 0.849 ±0.004 | 0.815 ±0.013 |
| Gemma-3-12B | 0.837 ±0.010 | 0.806 ±0.059 | 0.858 ±0.008 | 0.861 ±0.008 | 0.834 ±0.010 |
| Recall | |||||
| Llama-3.2-1B | 0.674 ±0.071 | 0.689 ±0.071 | 0.762 ±0.007 | 0.764 ±0.020 | 0.684 ±0.091 |
| Llama-3.2-3B | 0.741 ±0.051 | 0.683 ±0.030 | 0.766 ±0.060 | 0.684 ±0.039 | 0.677 ±0.024 |
| Llama-2-7B | 0.640 ±0.020 | 0.633 ±0.056 | 0.735 ±0.009 | 0.711 ±0.138 | 0.687 ±0.071 |
| Llama-2-13B | 0.702 ±0.036 | 0.639 ±0.059 | 0.654 ±0.063 | 0.675 ±0.104 | 0.661 ±0.042 |
| Qwen2.5-0.5B | 0.681 ±0.020 | 0.697 ±0.050 | 0.731 ±0.046 | 0.712 ±0.065 | 0.628 ±0.094 |
| Qwen2.5-3B | 0.689 ±0.022 | 0.739 ±0.014 | 0.763 ±0.009 | 0.706 ±0.055 | 0.681 ±0.029 |
| Qwen2.5-7B | 0.650 ±0.047 | 0.618 ±0.147 | 0.663 ±0.060 | 0.643 ±0.023 | 0.753 ±0.092 |
| Qwen2.5-14B | 0.640 ±0.056 | 0.674 ±0.039 | 0.691 ±0.020 | 0.713 ±0.073 | 0.682 ±0.065 |
| Gemma-3-1B | 0.682 ±0.015 | 0.677 ±0.040 | 0.698 ±0.018 | 0.683 ±0.016 | 0.677 ±0.025 |
| Gemma-3-4B | 0.689 ±0.064 | 0.702 ±0.057 | 0.760 ±0.049 | 0.729 ±0.031 | 0.694 ±0.061 |
| Gemma-3-12B | 0.694 ±0.042 | 0.712 ±0.017 | 0.734 ±0.012 | 0.746 ±0.016 | 0.749 ±0.050 |
To keep each table readable we split the eleven fine-tuned LLMs by family across three sub-tables. Table 46 (Llama), Table 47 (Qwen), and Table 48 (Gemma) together cover models spanning four orders of magnitude in parameter count. The PK-A advantage observed for LLM-FT in Table 4 is broadly shared. Recall on PK-A reaches 0.84–0.91 for the strongest LLM (Llama-3.2-1B), with Qwen2.5-14B as a close second at 0.79–0.88, well above the strongest baseline (HDN-DDI at 0.84 in High-tier only). PK-B remains the universal weak spot for LLMs as well, mirroring the conventional baselines and reinforcing the Section 5.2 finding that the Type A advantage under the supplied KG context recurs across model families.
Cross-Axis Observations. Three observations emerge across the three tables. First, the absolute level of Recall differs sharply across mechanism subtypes regardless of similarity tier. PK-A reaches near-saturation for the leading LLM (Llama-3.2-1B at 0.84–0.91 from Low to High) while PK-B caps below 0.52 even at High similarity. The PK-A vs. PK-B gap therefore reflects the availability of mediating-entity evidence rather than structural overlap, consistent with the Section 5.2 view that A-B selectivity reflects access-versus-availability of supporting evidence. Second, by combined AUC and Recall (Section 5.4 and Appendix D.4), Llama-3.2-1B is the strongest LLM and Qwen2.5-14B is the second-strongest, and this ranking transfers to the mech-similarity grid. Llama-3.2-1B leads PK-A across all three tiers and ties Qwen2.5-14B for PK-B High at 0.511. This rules out raw scale as the primary driver and points to fine-tuning data exposure to mediating-entity prompts. Third, PD-B High receives the strongest baseline performance from HDN-DDI and TextDDI (Table 31), both of which exceed every LLM in that cell. PD-B (no shared target) is precisely the regime where pretrained pharmacological text and dense KG message-passing carry the most weight, and where the mediating-entity advantage of LLM-FT is least informative.
D.6 Memorization Control: Synonym Robustness
We test whether the fine-tuned LLM's prediction on a test pair is driven by the chemical identity of the two drugs or by the specific surface string of their canonical DrugBank names. If the model has
Table 43: S2 fine-tuned LLM AUC-ROC (top) and Recall (bottom) on the 800-drug subset (3-seed mean±std). Best per column in bold.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| AUC-ROC | |||||
| Llama-3.2-1B | 0.685 ±0.027 | 0.696 ±0.008 | 0.772 ±0.013 | 0.776 ±0.020 | 0.709 ±0.025 |
| Llama-3.2-3B | 0.725 ±0.030 | 0.729 ±0.025 | 0.773 ±0.004 | 0.785 ±0.018 | 0.737 ±0.023 |
| Llama-2-7B | 0.700 ±0.015 | 0.704 ±0.009 | 0.762 ±0.010 | 0.731 ±0.039 | 0.716 ±0.023 |
| Llama-2-13B | 0.721 ±0.022 | 0.731 ±0.005 | 0.781 ±0.017 | 0.781 ±0.015 | 0.726 ±0.017 |
| Qwen2.5-0.5B | 0.673 ±0.012 | 0.675 ±0.022 | 0.759 ±0.018 | 0.766 ±0.013 | 0.693 ±0.021 |
| Qwen2.5-3B | 0.549 ±0.083 | 0.737 ±0.007 | 0.756 ±0.003 | 0.769 ±0.059 | 0.713 ±0.085 |
| Qwen2.5-7B | 0.598 ±0.110 | 0.563 ±0.014 | 0.762 ±0.058 | 0.740 ±0.041 | 0.706 ±0.079 |
| Qwen2.5-14B | 0.614 ±0.117 | 0.671 ±0.105 | 0.704 ±0.071 | 0.750 ±0.053 | 0.705 ±0.082 |
| Gemma-3-1B | 0.680 ±0.021 | 0.698 ±0.014 | 0.757 ±0.036 | 0.756 ±0.012 | 0.707 ±0.028 |
| Gemma-3-4B | 0.731 ±0.017 | 0.726 ±0.014 | 0.784 ±0.016 | 0.781 ±0.015 | 0.735 ±0.020 |
| Gemma-3-12B | 0.756 ±0.019 | 0.735 ±0.027 | 0.794 ±0.004 | 0.798 ±0.008 | 0.767 ±0.015 |
| Recall | |||||
| Llama-3.2-1B | 0.509 ±0.141 | 0.609 ±0.083 | 0.668 ±0.058 | 0.697 ±0.021 | 0.650 ±0.113 |
| Llama-3.2-3B | 0.652 ±0.084 | 0.565 ±0.016 | 0.698 ±0.063 | 0.584 ±0.048 | 0.555 ±0.044 |
| Llama-2-7B | 0.517 ±0.025 | 0.516 ±0.032 | 0.622 ±0.104 | 0.655 ±0.114 | 0.532 ±0.056 |
| Llama-2-13B | 0.581 ±0.109 | 0.527 ±0.117 | 0.549 ±0.069 | 0.600 ±0.119 | 0.556 ±0.062 |
| Qwen2.5-0.5B | 0.726 ±0.149 | 0.599 ±0.044 | 0.661 ±0.026 | 0.646 ±0.058 | 0.676 ±0.107 |
| Qwen2.5-3B | 0.814 ±0.263 | 0.612 ±0.104 | 0.661 ±0.103 | 0.618 ±0.050 | 0.590 ±0.066 |
| Qwen2.5-7B | 0.644 ±0.309 | 0.555 ±0.072 | 0.605 ±0.075 | 0.612 ±0.046 | 0.646 ±0.168 |
| Qwen2.5-14B | 0.490 ±0.104 | 0.506 ±0.150 | 0.629 ±0.018 | 0.660 ±0.053 | 0.508 ±0.023 |
| Gemma-3-1B | 0.560 ±0.052 | 0.551 ±0.038 | 0.658 ±0.080 | 0.569 ±0.078 | 0.600 ±0.018 |
| Gemma-3-4B | 0.594 ±0.089 | 0.530 ±0.026 | 0.658 ±0.111 | 0.613 ±0.087 | 0.602 ±0.045 |
| Gemma-3-12B | 0.517 ±0.016 | 0.650 ±0.024 | 0.578 ±0.046 | 0.616 ±0.043 | 0.646 ±0.112 |
Table 44: Llama-3.2-1B fine-tuned under P4 on the 1,900-drug full benchmark (3-seed mean±std).
| Setting | AUC-ROC | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|
| S0 | |||||
| S1 | |||||
| S2 |
internalised drug identity, replacing each canonical name with one of its DrugBank synonyms (a different surface form of the same drug) should leave the prediction nearly unchanged. A large drop, by contrast, would indicate that the canonical string is acting as a memorization key beyond what the rest of the prompt encodes.
Protocol. For every test pair on the 800-subset S2 split, we render up to synonym variants by replacing both and with the -th DrugBank synonym of each drug (deterministic, alphabetical order). All other prompt content is held tied to the original drug IDs. In particular, the P4 KG facts (targets, enzymes, transporters, carriers, pathways) are not perturbed. Only the cosmetic name strings change. Eligible synonyms are extracted from the top-level <drug><synonyms><synonym> list of the DrugBank XML and filtered by seven rules:
(1) English-readable
(2) length
(3) ASCII letters / digits / spaces / hyphen only
(4) lower-cased synonym distinct from canonical
(5) character-bigram Jaccard vs. canonical (excludes hyphenation and casing variants)
(6) no leading digit or single letter (excludes CAS numbers and abbreviations)
(7) no characters.
Table 45: Text-description and KG-context comparison on the 800-drug S2 subset (3-seed mean±std). Best mean per column in bold.
| Method / Prompt | AUC-ROC | Recall |
|---|---|---|
| TextDDI (RoBERTa) | ||
| Llama-3.2-1B, P1 (names) | ||
| Llama-3.2-1B, P7 (names + descriptions) | ||
| Llama-3.2-1B, P4 (KG context) | ||
| Llama-3.2-1B, P6 (KG context + descriptions) |
Table 46: S2 Recall on the 800-drug subset, broken down by mechanism subtype × Tanimoto similarity tier. Llama family fine-tuned LLMs under P4 (3-seed mean±std). n is the per-cell positive count averaged across seeds. Best per row in bold.
| Type | Tier | n | Llama-3.2-1B | Llama-3.2-3B | Llama-2-7B | Llama-2-13B |
|---|---|---|---|---|---|---|
| PK-A | Low | 183 | ||||
| PK-A | Mid | 250 | ||||
| PK-A | High | 255 | ||||
| PK-B | Low | 157 | ||||
| PK-B | Mid | 129 | ||||
| PK-B | High | 95 | ||||
| PD-A | Low | 15 | ||||
| PD-A | Mid | 17 | ||||
| PD-A | High | 45 | ||||
| PD-B | Low | 242 | ||||
| PD-B | Mid | 251 | ||||
| PD-B | High | 271 |
A pair is included iff both drugs have at least one eligible synonym; this yields pairs out of the original S2 test set. We evaluate two parallel setups, each at three random seeds:
-
FT-on-P1. Llama-3.2-1B with the per-seed best-S2 LoRA trained on P1 (Zero-Shot), scored under P1 (zero-shot, name-only). The synonym variant differs from the canonical only in two name tokens.
-
FT-on-P4. Llama-3.2-1B with the per-seed best-S2 LoRA trained on P4 (One-Hop KG sequence), scored under P4 (one-hop KG, sequence). The KG context anchors the prompt to drug identity through entity strings tied to the original DB IDs.
All five reported metrics in Table 49 are computed at the pair level and averaged across the three seeds. We report the agreement rate , the mean between canonical and synonym, the Pearson correlation between the two scalars, and the discriminative AUC under each naming.
Findings. The FT-on-P4 model is markedly more name-robust than the FT-on-P1 model. Agreement rises from 0.730 to 0.846, the mean canonical/synonym gap falls from 0.229 to 0.125, and the Pearson correlation between canonical and synonym more than doubles, from 0.399 to 0.822. The discriminative AUC under synonym names also tracks the canonical AUC much more tightly under P4 than under P1 (drop of 0.018 versus 0.054). The pattern is consistent with the KG context anchoring the prediction to the underlying drug identity, so that swapping the surface name string has little effect on the decision. Under P1, where the prompt carries no information beyond the two names, the model has no other anchor and the synonym substitution materially shifts predictions on roughly of pairs. Together, the two rows indicate that the cold-start performance of the fine-tuned P4 model is not driven by memorization of the drug name strings themselves.
Table 47: S2 Recall on the 800-drug subset, broken down by mechanism subtype Tanimoto similarity tier. Qwen family fine-tuned LLMs under P4 (3-seed mean std). is the per-cell positive count averaged across seeds. Best per row in bold.
| Type | Tier | n | Qwen2.5-0.5B | Qwen2.5-3B | Qwen2.5-7B | Qwen2.5-14B |
|---|---|---|---|---|---|---|
| PK-A | Low | 183 | ||||
| PK-A | Mid | 250 | ||||
| PK-A | High | 255 | ||||
| PK-B | Low | 157 | ||||
| PK-B | Mid | 129 | ||||
| PK-B | High | 95 | ||||
| PD-A | Low | 15 | ||||
| PD-A | Mid | 17 | ||||
| PD-A | High | 45 | ||||
| PD-B | Low | 242 | ||||
| PD-B | Mid | 251 | ||||
| PD-B | High | 271 |
Table 48: S2 Recall on the 800-drug subset, broken down by mechanism subtype Tanimoto similarity tier. Gemma family fine-tuned LLMs under P4 (3-seed mean std). is the per-cell positive count averaged across seeds. Best per row in bold.
| Type | Tier | n | Gemma-3-1B | Gemma-3-4B | Gemma-3-12B |
|---|---|---|---|---|---|
| PK-A | Low | 183 | 0.643 ±0.255 | 0.753 ±0.133 | 0.669 ±0.108 |
| PK-A | Mid | 250 | 0.689 ±0.235 | 0.760 ±0.121 | 0.733 ±0.089 |
| PK-A | High | 255 | 0.709 ±0.212 | 0.799 ±0.050 | 0.776 ±0.072 |
| PK-B | Low | 157 | 0.262 ±0.126 | 0.275 ±0.095 | 0.236 ±0.060 |
| PK-B | Mid | 129 | 0.380 ±0.119 | 0.358 ±0.110 | 0.367 ±0.067 |
| PK-B | High | 95 | 0.444 ±0.142 | 0.378 ±0.128 | 0.407 ±0.070 |
| PD-A | Low | 15 | 0.876 ±0.141 | 0.984 ±0.027 | 0.966 ±0.025 |
| PD-A | Mid | 17 | 0.848 ±0.073 | 0.795 ±0.113 | 0.874 ±0.058 |
| PD-A | High | 45 | 0.907 ±0.040 | 0.903 ±0.048 | 0.966 ±0.025 |
| PD-B | Low | 242 | 0.490 ±0.073 | 0.552 ±0.091 | 0.575 ±0.083 |
| PD-B | Mid | 251 | 0.514 ±0.024 | 0.569 ±0.121 | 0.628 ±0.077 |
| PD-B | High | 271 | 0.622 ±0.059 | 0.645 ±0.168 | 0.696 ±0.079 |
D.7 Memorization Control: Temporal Analysis
We start from the pretraining-memorization hypothesis. If pretraining-side memorization drives cold-start performance, test pairs containing older, more thoroughly documented drugs should be easier than those containing newer drugs, because older drugs have a larger footprint in the LLM's pretraining corpus. We design two complementary analyses to test it, a post-hoc stratification of existing S2 results by FDA approval year (Section D.7.1) and a temporal cold-start split where the train/test partition is governed by drug approval date (Section D.7.2). Both use Llama-3.2-1B under P4 to match the main-paper configuration.
D.7.1 Post-Hoc Stratification by FDA Approval Year
We stratify the existing S2 test-set predictions of Llama-3.2-1B (P4) on the 800-drug subset by each test pair's earlier-approved drug FDA year (the more recent drug determines the cold-start identity, but the earlier-approved drug carries the longer pretraining footprint, so we anchor each pair on the older drug). Earliest approval years are extracted from the DrugBank products. start_dates field, which yields a year for 680 of the 800 drugs (85.0%). Concretely, each test pair is assigned the bucket of . A pair where the two drugs sit in different brackets is therefore placed in the bucket of the older one (e.g. a 1985–2015 pair goes to Pre-2000), and a pair in which either drug has no parseable approval year is bucketed as Unknown. Of the 800 drugs, 120 lack any
Table 49: Synonym robustness on 800-subset S2 ( pairs). Mean±std over 3 seeds. Higher agreement / Pearson and lower indicate name-robustness.
| Setup | N | Agreement | Pearson r | |||
|---|---|---|---|---|---|---|
| P1 (zero-shot) | 556 | 0.730 ± 0.037 | 0.229 ± 0.011 | 0.399 ± 0.039 | 0.692 ± 0.008 | 0.638 ± 0.033 |
| P4 (one-hop KG) | 556 | 0.846 ± 0.003 | 0.125 ± 0.015 | 0.822 ± 0.016 | 0.771 ± 0.038 | 0.753 ± 0.036 |
parseable date, which is why the Unknown row of Table 50 carries a non-trivial pair count even though every other bucket is defined drug-side by year.
Table 50: Llama-3.2-1B (P4) S2 Recall and AUC, stratified by the older drug's earliest FDA approval year (3-seed mean ± std on the 800-drug subset). Drugs is the per-bucket drug count on the 800-subset (sums to 800). is the per-bucket positive pair count averaged across seeds (sums to the S2 positive count).
| Approval bucket | Drugs | pos | Recall | AUC |
|---|---|---|---|---|
| Pre-2000 | 388 | 1240 | 0.687 ± 0.027 | 0.768 ± 0.021 |
| 2000–2009 | 103 | 138 | 0.801 ± 0.051 | 0.843 ± 0.033 |
| 2010–2019 | 127 | 134 | 0.864 ± 0.129 | 0.802 ± 0.079 |
| 2020+ | 62 | 20 | 0.968 ± 0.055 | 0.813 ± 0.084 |
| Unknown | 120 | 381 | 0.543 ± 0.190 | 0.735 ± 0.059 |
| ALL | 800 | 1913 | 0.697 ± 0.021 | 0.776 ± 0.020 |
We initially expected, under the pretraining-memorization hypothesis, that older drugs would show higher Recall, since their associated literature accumulates over time. The observed pattern is the opposite. Recall rises monotonically from Pre-2000 (0.687) through 2000–2009 (0.801) and 2010–2019 (0.864) to 2020+ (0.968), with Cohen's between Pre-2000 and 2020+ (in the wrong direction for memorization). Two factors plausibly explain this reverse trend. First, drugs approved more recently appear with more complete KG annotations in DrugBank (more enzymes, transporters, and mediating entities listed), which directly strengthens the channel that drives correct predictions in Section 5.3. Second, pairs containing only Pre-2000 drugs are over-represented among the difficult cases that require fully novel mediating paths, since the older subnetwork has been mined more exhaustively in prior interaction databases. The Unknown bucket's low Recall (0.543) is consistent with this reading. Drugs without parseable approval dates are largely veterinary, withdrawn, or investigational compounds whose KG entries are sparse, removing the mediating signal entirely. The observed Recall-year ordering runs counter to the older-drug advantage expected under the pretraining-memorization hypothesis.
D.7.2 Temporal Cold-Start Split
Setup. We complement the post-hoc stratification with a hard temporal split, where the train/test partition is governed entirely by drug FDA approval year. For each cutoff , drugs approved before form the training pool and drugs approved in or after form the held-out cold-start pool . The training set is the set of pairs internal to and the test set is the set of pairs internal to (both drugs cold). The four cutoffs span four FDA regulatory eras, namely Hatch-Waxman (1985, extreme temporal shift), ICH harmonisation (1995, near-balanced split), the targeted-therapy era (2005), and the immune-checkpoint era (2010, smallest shift). 120 of the 800 random-cold-start drugs lack a parseable FDA approval year and are excluded, leaving at every cutoff. Llama-3.2-1B is fine-tuned under P4 (One-Hop KG sequence) separately for each cutoff at three random seeds.
Findings. AUROC rises monotonically with the cutoff year, from 0.687 at 1985 to 0.760 at 2010, and F1 follows the same ordering. The 2010 cutoff approaches the random-cold-start S2 AUROC of approximately 0.77 reported in Section 5.1, indicating that the temporal split converges toward the random-drug split in difficulty as the temporal gap between train and test pools shrinks. The ranking is consistent with a non-memorization factor. The size of the training pool ( rises from 237 to 491 across the sweep) gives the model more training signal. The pretraining-memorization hypothesis
Table 51: Llama-3.2-1B (P4) on the temporal cold-start splits (3-seed mean±std). is the train / cold-pool drug count after filtering out drugs without a parseable approval year.
| Cutoff | AUROC | F1 | ||
|---|---|---|---|---|
| 1985 | 237 / 443 | 31,358 | ||
| 1995 | 335 / 345 | 19,106 | ||
| 2005 | 436 / 244 | 9,396 | ||
| 2010 | 491 / 189 | 5,956 |
predicts the opposite ordering, since under that hypothesis test pairs with older drugs should be easier on account of their larger pretraining presence. The monotonic increase therefore reinforces the conclusion of Section D.7.1 that pretraining-side memorization is not the primary driver of cold-start performance.
D.8 Assessing Pretraining Memorization
We assess whether direct recall of pretrained DDI facts explains LLM-FT's cold-start performance. This assessment draws on three behavioral comparisons:
(i) In the approval-year stratification, newer-drug pairs achieve higher Recall than older-drug pairs (Table 50), opposite to the expected advantage from older drugs' greater pretraining exposure. (ii) Without fine-tuning, open-weight LLMs under P4 obtain near-random S2 AUC-ROC (Table 38), indicating that pretrained DDI knowledge is not reliably expressed in direct inference. (iii) Input masking further identifies the evidence supporting fine-tuned predictions: removing drug names has little effect on PK-A, whereas masking KG entities causes a larger decrease (Table 5). Together, these results suggest that the observed performance is better explained by responsiveness to supplied mediator evidence than by direct recall of drug-pair identities.
E Diagnostic Analysis Details
E.1 Formal KPS Definitions
This appendix gives the operational definitions behind Table 6 and the per-method tables in Section 5.3. All indicators are pair-level absolute prediction-probability differences aggregated by mechanism bucket. The KPS-derived numbers (Sections E.2 and E.3) are 3-seed means standard deviation on the 800-drug S2 test set. The attention-level analyses in Section E.4 use a single random seed unless otherwise stated, and Section E.4.4 extends the intervention experiments to three seeds and two architectures.
Drug-Swap Candidate Construction. For every positive S2 pair with both drugs in (cold), we collect every such that (i) is observed in S1 or S2 with label , and (ii) is itself a cold drug. The resulting triples table contains 63.5K–92.5K triples per seed (each contributes candidates on average).
KPS-F (Drug-Replacement Sensitivity). For each method ,
where is the subset whose anchor pair falls in mechanism bucket , and is method 's S2-test predicted probability for the positive class. The ALL bucket averages over all positive . KPS-F is a per-method-shared metric. Every baseline and LLM-FT consume the same , so cross-method comparisons are directly meaningful.
KPS-Channel (Channel-Mask Sensitivity). For multi-channel methods (LLM-FT, MKG-FENN, TIGER), we measure how predictions change when one input channel is symmetrically blanked for both drugs in the pair. Using the swap-table anchors :
where and is the bucket-restricted set of anchors. The masking operation is method-specific.
-
LLM-FT. Substitute prompt placeholders. KPS-Name masks both drug names ( vs. in Table 52). KPS-KG replaces all KG entity strings with [ENTITY] ( vs. ).
-
MKG-FENN. Zero the four GNN output embeddings before the FusionLayer. KPS-KG zeros (entity) and (DDI topology) for both and . KPS-mol zeros (substructure) and (RDKit property).
-
TIGER. Zero the dual-channel embeddings before the fusion FC. KPS-KG zeros . KPS-mol zeros .
For all three methods the mask is symmetric (both and are blanked), so KPS-Channel measures the marginal prediction sensitivity to the entire channel rather than a single-side perturbation. Single-channel baselines (DeepDDI, SSI-DDI, DSN-DDI, HDN-DDI, EmerGNN, TextDDI) admit no meaningful channel-mask, so we report only KPS-F for them.
KSAI (Channel-Interaction Asymmetry). For LLM-FT, the four R0–R3 mask conditions form a factorial (name on/off KG on/off). KSAI quantifies whether the KG-channel sensitivity changes when the name channel is also blanked:
i.e., the per-pair difference averaged within each bucket. Positive KSAI indicates the model becomes more sensitive to KG when the name is removed, i.e., the name channel partially compensates for KG when both are present. We report KSAI only for LLM-FT. MKG-FENN and TIGER expose no separable name channel that can be masked independently of the mol or KG channel, so R1 / R3 have no architectural analogue.
E.2 Masking Experiment: Full Factorial Decomposition
This appendix complements Table 5 and Figure 6 with the full eight-cell factorial under both Top-3 KG and Full KG (no top- truncation, ). All numbers are 3-seed means on the 800-drug subset, S2 test set. The eight conditions are summarized in Table 52. Across all conditions the method instruction (the P4 verbatim text in Appendix D.1) is held fixed and only (drug names and key entity strings) is rewritten. Therefore, the model is never told that masking has occurred and behavioural differences across R0–R7 reflect the controlled contribution of each channel rather than instruction-level priming.
Table 52: Eight masking conditions used in the Section 5.3 factorial. R0–R3 retrieve at most three KG entities per type per drug (Top-3). R4–R7 disable both top- truncation and the prompt-token cap, so every annotated entity is presented to the model.
| ID | Method directory | KG | Drug name | Key entity | Token cap |
|---|---|---|---|---|---|
| R0 | One_Hop_KG_Sequence | Top-3 | real | real | 1250 |
| R1 | OHKS_Mask_Name | Top-3 | [DRUG_* | real | 1250 |
| R2 | OHKS_Mask_Entity | Top-3 | real | [ENTITY] | 1250 |
| R3 | OHKS_Mask_Name_Entity | Top-3 | [DRUG_* | [ENTITY] | 1250 |
| R4 | OHKS_Full | Full | real | real | 4096 |
| R5 | OHKS_Full_Mask_Name | Full | [DRUG_* | real | 4096 |
| R6 | OHKS_Full_Mask_Entity | Full | real | [ENTITY] | 4096 |
| R7 | OHKS_Full_Mask_Name_Entity | Full | [DRUG_* | [ENTITY] | 4096 |
Per-Bucket AUC Under All 8 Conditions. Table 53 reports 3-seed-mean AUC for every (bucket, condition) cell. Values match the main-paper Top-3 columns (R0–R3) and add the four Full-KG columns (R4–R7).
Table 53: AUC-ROC by mechanism bucket × masking condition. 3-seed mean ± std on the 800-drug subset, S2.
| Bucket | Top-3 KG | Full KG | ||||||
|---|---|---|---|---|---|---|---|---|
| R0 | R1 | R2 | R3 | R4 | R5 | R6 | R7 | |
| PK-A | ||||||||
| PK-B | ||||||||
| PD-A | ||||||||
| PD-B | ||||||||
| ALL | ||||||||
(a) Name effect when Entity is masked

(b) Entity effect when Name is masked

Figure 6: Channel interaction on LLM-FT (800-drug, 3-seed mean, Top-3 KG / R0–R3). Each pair shows one channel's marginal masking effect with the other channel present (light) vs. already masked (dark). Type A. Modest interaction (KSAI averaged over PK-A and PD-A = 0.025). Type B. Clear cross-channel compensation. Each channel's marginal effect is larger when the other is already masked (KSAI averaged over PK-B and PD-B = 0.040). Per-bucket KSAI values are reported in Table 55. Referenced from Section 5.3.
KG Completeness Effect (Top-3 → Full). Comparing R4 against R0 isolates the joint effect of (i) uncapping KG retrieval and (ii) extending the prompt token budget, with no masking on either condition. The 3-seed-mean uncap effect is small but uniformly positive, with on Type A, +0.30 on Type B, and +0.59 overall. Type A benefits roughly more than Type B from the additional entities, consistent with the anchor-based paradigm in Section 5.3. A richer entity context provides more candidate anchors when a key mediating entity exists, but offers little to pairs whose interaction must be inferred from name-activated prior knowledge.
Mask Asymmetry Is Preserved Under Full KG. The factorial decomposition (R4–R7) reproduces the channel-dominance pattern of R0–R3. Type A is entity-dominant under Full KG (PK-A entity -6.8 / name +1.2, PD-A entity -1.5 / name -0.3, all ). Type B is name-dominant (PK-B name -4.4 / entity +0.3, PD-B name -2.9 / entity -1.8, all ). Sign and ranking of every channel effect match the Top-3 column in Table 5. Only PK-A's name effect remains positive under both Top-3 and Full KG, suggesting drug-name information can interfere with the use of explicit KG entities in PK-A prediction. The cross-channel asymmetry under Full KG follows the same Type B > Type A ordering observed for KSAI under Top-3 KG. Adding KG entities therefore neither suppresses nor amplifies the masking-driven channel selection observed in the main paper. The A/B channel-dominance pattern is a robust property of LLM-FT independent of the KG-truncation budget.
E.3 Full KPS Tables
Per-Bucket KPS-F Across All Nine Methods. Table 54 expands Table 6 to per-bucket means ± standard deviations. The bridging-entity selectivity called out in the main text materializes as follows. EmerGNN's PK-A KPS-F (0.486) is 1.65× its PK-B (0.294), and LLM-FT shows a similar PK-A/PK-B ratio of 1.49×. Every other method falls within [0.98, 1.23], and their A–B gap stays at most +0.052, well separated from EmerGNN's +0.170 and LLM-FT's +0.145.
Table 54: KPS-F per (method, bucket), 3-seed mean ± std. Bold marks the two methods with substantial A–B gaps. Sample counts aggregated across seeds. ALL ≈ 230K, PK-A ≈ 81K, PK-B ≈ 47K, PD-A ≈ 8.4K, PD-B ≈ 97K.
| Method | PK-A | PK-B | PD-A | PD-B | ALL | A-B gap |
|---|---|---|---|---|---|---|
| DeepDDI | ||||||
| SSI-DDI | ||||||
| DSN-DDI | ||||||
| HDN-DDI | ||||||
| EmerGNN | ||||||
| TIGER | ||||||
| MKG-FENN | ||||||
| TextDDI | ||||||
| LLM-FT |
Per-Bucket KPS-Channel + KSAI for LLM-FT. Table 55 reports the four mask-derived indicators on LLM-FT. The PK-A/PD-A vs. PK-B/PD-B asymmetry on KPS-KG (Named) and KPS-Name mirrors the masking dominance pattern of Table 5. PK-A is entity-dominant (KPS-KG = 0.167 > KPS-Name = 0.083), and PD-B is name-dominant (KPS-Name = 0.129 > KPS-KG = 0.121). KSAI is uniformly positive, indicating the name channel partially compensates for KG presence when both are available. The compensation grows as one moves from Type A to Type B (PK-A 0.012 → PD-B 0.046).
Table 55: LLM-FT (Llama-3.2-1B, P4) per-bucket channel-mask indicators. KPS-KG and KPS-Name are mask-derived (R0/R1/R2/R3 of Table 52). KSAI-masking is the factorial interaction . 3-seed mean std.
| Indicator | PK-A | PK-B | PD-A | PD-B | ALL |
|---|---|---|---|---|---|
| KPS-Name (KG present) | |||||
| KPS-KG (Name present) | |||||
| KPS-KG (Name masked) | |||||
| KSAI-masking |
Per-Bucket KPS-Channel for Multi-Channel Baselines. Table 56 reports KPS-mol and KPS-KG for MKG-FENN and TIGER, computed by symmetrically zeroing the relevant embeddings before the fusion layer (Appendix E.1). Both methods are KG-dominant in absolute terms (KG/mol ratios for MKG-FENN, for TIGER). Crucially, both are near-uniform across buckets. MKG-FENN's KPS-KG range is [0.294, 0.321] ( spread), and TIGER's is [0.199, 0.217] (). This contrasts sharply with LLM-FT's KPS-KG bucket spread of (PK-A 0.167 vs. PD-A 0.090), confirming that LLM-FT dynamically compensates across knowledge sources whereas conventional baselines exhibit near-uniform sensitivity.
E.4 Attention-Level Channel Analysis
This appendix provides the full results behind the controlled attention intervention reported in Table 7. Unless otherwise stated, experiments use Llama-3.2-1B with the same LoRA fine-tuning protocol on the S2 test set. For this model, attention weights are extracted from all 16 layers 32 heads using eager attention. Each input token is classified into one of seven classes (instruction template, drug A/B name, drug A/B SMILES, drug A/B KG entities), and we record the attention from the answer token (last non-padding position) to all input tokens.
Table 56: Channel-mask KPS for the two multi-channel baselines (MKG-FENN, TIGER) on the 800-drug subset, S2, 3-seed mean ± std. Mask is symmetric (both drugs blanked). See Appendix E.1 for the per-method embedding-zero protocol.
| Method | Channel | PK-A | PK-B | PD-A | PD-B | ALL |
|---|---|---|---|---|---|---|
| MKG-FENN | KPS-mol | |||||
| KPS-KG | ||||||
| TIGER | KPS-mol | |||||
| KPS-KG |
E.4.1 Layer- and Head-Level Functional Specialization
Layer-wise (Figure 7b), KG entity attention rises sharply from layer 7 and peaks at layers 11–13 for PK-A (reaching 22% at L12), while drug-name attention rises in the deeper layers (L10–L15) across mechanism buckets. Head-wise (Table 57), three Layer-7 heads (L7 H3/H8/H11) allocate 51–60% of their attention to KG-entity tokens (KG heads), and three deep-layer heads (L14 H21, L13 H5, L10 H23) emerge as Name heads, with L14 H21 dominantly name-specialised (70% name attention) and L13 H5 / L10 H23 at 17–33% (well above the 2% base-model baseline). KG heads show a sharp Type A/B asymmetry, activating much more on Type A samples (Figure 7c, e.g., L7 H3 KG-attention 0.82 on PK-A vs. 0.49 on PD-B), while Name heads activate more uniformly across mechanism buckets. This KG-head Type A selectivity is the architectural mirror of the Type A entity dominance observed in Section 5.3.
Table 57: Top specialised attention heads in the fine-tuned Llama-3.2-1B identified by token-class attention fraction.
| Function | Head | KG attn | Name attn | Layer |
|---|---|---|---|---|
| KG-focused | L7 H3 | 60.1% | 12.5% | Mid (7) |
| KG-focused | L7 H8 | 50.8% | 14.5% | Mid (7) |
| KG-focused | L7 H11 | 53.5% | 17.2% | Mid (7) |
| Name-focused | L14 H21 | 18.7% | 70.4% | Deep (14) |
| Name-focused | L13 H5 | 24.5% | 33.0% | Deep (13) |
| Name-focused | L10 H23 | 21.9% | 17.1% | Mid-deep (10) |
To rule out positional confounds from the causal mask, we compute per-token attention ratios at matched positions (relative position 0.3–0.7). Drug-name tokens receive the per-token attention of instruction tokens, while KG-entity tokens receive only and SMILES tokens . The high aggregate KG share is therefore driven by the large number of KG tokens rather than per-token salience, but the ratio still confirms that name and KG tokens are not artifacts of the causal-mask geometry.
E.4.2 Controlled Attention Intervention: Full Results
We selectively suppress attention from the answer token to specific token classes by adding to the corresponding pre-softmax scores via a 4D attention mask, then re-evaluate the full S2 test set. Table 58 reports both absolute AUROC and AUROC under six intervention conditions.
Beyond the all-KG vs. all-Name double dissociation, the table also varies the suppression scope from a single head (L7 H3) to the three top KG heads to all KG attention. To make this granularity ladder visible across mechanism buckets, and to compare attention-level intervention against input-level token masking from Section 5.3, we plot the per-bucket effects in Figure 8.
Granularity. Figure 8a shows that a single head (L7 H3) produces a negligible drop on PK-A (+0.006), and the three top KG heads together produce only a small drop (-0.019), accounting for less than 10% of the full all-KG effect (-0.219). The single-head and three-head effects are similar in magnitude, indicating functional redundancy within the top KG-head group. The bar height jumps sharply from 3 heads to all KG, far exceeding the gap from one head to three. The same ladder is visible on PD-A and PD-B in the figure, although with smaller absolute magnitudes. The
Table 58: Attention intervention on LLM-FT (S2). The top block reports absolute AUROC, and the bottom block reports AUROC relative to the unintervened baseline. Bold marks the largest effect per group. Suppressing all KG attention collapses PK-A by , while suppressing all Name attention hurts PD-B but leaves PK-A unchanged .
| Condition | ALL | PK-A | PK-B | PD-A | PD-B |
|---|---|---|---|---|---|
| Baseline | 0.798 | 0.939 | 0.690 | 0.930 | 0.733 |
| Suppress KG heads (3) | 0.776 | 0.920 | 0.689 | 0.875 | 0.702 |
| Suppress Name heads (3) | 0.799 | 0.948 | 0.685 | 0.937 | 0.730 |
| Suppress ALL KG | 0.673 | 0.720 | 0.630 | 0.739 | 0.652 |
| Suppress ALL Name | 0.774 | 0.939 | 0.650 | 0.928 | 0.697 |
| Suppress L7 H3 only | 0.786 | 0.945 | 0.690 | 0.898 | 0.704 |
| AUROC vs. baseline | |||||
| Suppress KG heads (3) | -0.022 | -0.019 | -0.001 | -0.055 | -0.031 |
| Suppress Name heads (3) | +0.001 | +0.009 | -0.005 | +0.007 | -0.003 |
| Suppress ALL KG | -0.125 | -0.219 | -0.061 | -0.191 | -0.081 |
| Suppress ALL Name | -0.024 | +0.000 | -0.040 | -0.002 | -0.036 |
| Suppress L7 H3 only | -0.013 | +0.006 | +0.000 | -0.032 | -0.029 |
KG-attending function is therefore widely distributed across heads even though it is concentrated at layer 7, and the full all-heads suppression is needed to reproduce the largest PK-A degradation.
Token Masking vs. Attention Suppression. Figure 8b compares attention suppression against the input-token masking from Section 5.3 across all four mechanism buckets. Each marker is one (bucket, perturbation pair). The two methods probe different surfaces. Token masking rewrites a single key entity or name in the input, whereas attention suppression zeroes out an entire token class across all heads. They therefore agree qualitatively but differ in magnitude. Most KG-related markers sit well below the diagonal, with the exception of the 3-head suppression on PK-A, and PK-A is the most extreme case (KG attention suppression vs. entity-token masking ). Name-related markers (squares) cluster near the origin, indicating both perturbations have limited effect on the name channel for PK-A and PD-A. On PK-A specifically, name-attention suppression leaves the prediction unchanged and name-token masking even improves it slightly , consistent with weak name-channel dependence on PK-A. The two methods therefore agree on the qualitative dissociation that PK-A is KG-driven and name-insensitive, while differing in absolute magnitude in the expected direction.
E.4.3 Attention Steering: Negative Result
Motivated by the intervention findings, we test whether explicitly modifying the attention mechanism can improve predictions beyond the LoRA-fine-tuned baseline. We evaluate two categories of methods. (A) Learnable attention modules, trained with LoRA and base-model parameters frozen, comprise Segment-Aware Attention Bias (SAB, 5,632 params, learnable bias per (layer, head, segment , segment )), Per-Head Temperature (PHT, 352 params), Targeted Head Bias (THB, 96 params, SAB applied only to the six functional heads of Table 57), and Instruction Suppression Bias (ISB, 11 params, one scalar per layer subtracted from attention to instruction-segment keys). (B) Zero-parameter inference-time methods comprise Instruction Attention Decay (IAD, multiplying instruction-key attention by ), Contrastive Decoding (logits – logits ), and DoLa (early- vs. final-layer logit contrast).
The negative result is itself informative. Across both learnable and zero-parameter approaches, no method exceeds noise, indicating that LoRA fine-tuning has already optimised the attention distribution close to its capacity limit. The bottleneck for further improvement lies not in attention allocation but in knowledge capacity. Type B groups lack shared entities (PK-B) or sufficient pretrained pharmacological coverage (PD-B), and attention redistribution alone cannot overcome these limitations.
Table 59: Attention-steering results on S2 AUROC, single random seed on the 800-drug subset. ALL is reported in relative to the LoRA-FT baseline (0.798, single seed). No method achieves a meaningful improvement.
| Cat. | Method | Best lr | ALL | PK-A | PK-B | PD-A | PD-B | ΔALL |
|---|---|---|---|---|---|---|---|---|
| — | Baseline (LoRA-FT) | — | 0.798 | 0.939 | 0.690 | 0.930 | 0.733 | — |
| A | SAB | 5e-4 | 0.799 | 0.934 | 0.688 | 0.935 | 0.739 | +0.1 |
| A | PHT | 1e-3 | 0.797 | 0.927 | 0.686 | 0.931 | 0.739 | -0.2 |
| A | THB | 1e-3 | 0.799 | 0.939 | 0.690 | 0.930 | 0.734 | +0.0 |
| A | ISB | 1e-2 | 0.799 | 0.937 | 0.687 | 0.935 | 0.737 | +0.1 |
| B | IAD (γ=0.8) | — | 0.796 | 0.939 | 0.688 | 0.925 | 0.730 | -0.2 |
| B | CD (α=0.1) | — | 0.798 | 0.939 | 0.690 | 0.931 | 0.733 | -0.0 |
| B | DoLa (early=2) | — | 0.793 | 0.934 | 0.678 | 0.927 | 0.730 | -0.5 |
E.4.4 Stability Across Seeds and Architectures
We repeat the six intervention conditions for Llama-3.2-1B and Qwen-2.5-0.5B over seeds 42, 43, and 44, using the complete S2 test set of each 800-drug subset. Within each architecture, KG- and name-focused heads are identified once from seed 42 attention and held fixed across the three runs. This prevents head reselection from contributing to cross-seed variation. For each condition and group, AUROC is computed relative to the baseline within the same seed before taking the mean and sample standard deviation across seeds.
The fixed KG heads in Llama-3.2-1B are L7 H3, L7 H8, and L7 H11, with L10 H23, L14 H21, and L13 H5 as the name heads. For Qwen-2.5-0.5B (24 layers 14 heads), the corresponding sets are L12 H2, L14 H8, and L12 H4 for KG attention, and L17 H0, L16 H11, and L12 H9 for name attention. Single-head suppression targets L7 H3 in Llama and L12 H2 in Qwen, and the all-KG and all-name conditions apply to every layer and head.
For Llama-3.2-1B, cross-seed variation in overall AUROC is small relative to the effect of suppressing all KG attention (Table 60). Across architectures, the -intervals for the mean PK-A change under this intervention overlap and exclude zero, both for Llama and Qwen. The PK-A decrease also exceeds the PD-B decrease in all six model-seed combinations. Together, these results show that stronger PK-A sensitivity to KG-attention suppression persists across the tested seeds and architectures.
E.5 Embedding Geometry Evidence for Mechanism and KG Utilization
This appendix provides direct embedding-level evidence supporting two design choices of COLDDDI: (i) the PK/PD mechanism distinction is geometrically encoded in model representations, and (ii) KG access does not imply KG utilization, as demonstrated by opposite KG-injection effects across methods with similar input access.
Setup. We compare TIGER (mol+KG hybrid baseline) and LLM-FT (LoRA-tuned Llama-3.2-1B under P4) on the S2 split's 1,919 positive pairs. Each method has two embedding conditions, namely Without KG (KG channel zeroed for TIGER, entity tokens masked for LLM-FT) and With KG (full forward pass).
Projection. For each method, the pooled (no-KG, with-KG) embeddings are projected onto two axes. The horizontal axis is a Fisher LDA direction between pooled positive and negative centroids. The vertical axis is the first principal component of the residual after the discriminant component is removed, orthogonal to the LDA direction by construction. Both axes are z-scored on the pooled distribution, so the two rows of a column share a common visual frame. For visual clarity, each panel shows a randomly sampled subset of the 1,919 positives, with the same subset reused across all four panels for direct point-by-point comparison.
Decision Boundary. The dashed line in each panel is the 2D linear approximation of the model's high-dimensional decision boundary. For each column we fit a logistic regression on the pooled
Table 60: Attention-intervention stability on S2 of the 800-drug subset (3-seed mean±std). For each model, the upper block reports absolute AUROC and the lower block reports within-seed AUROC relative to the unintervened baseline.
| Condition | ALL | PK-A | PK-B | PD-A | PD-B |
|---|---|---|---|---|---|
| Llama-3.2-1B: AUROC | |||||
| Baseline | |||||
| Suppress KG heads (3) | |||||
| Suppress Name heads (3) | |||||
| Suppress ALL KG | |||||
| Suppress ALL Name | |||||
| Suppress L7 H3 only | |||||
| AUROC vs. baseline | |||||
| Suppress KG heads (3) | |||||
| Suppress Name heads (3) | |||||
| Suppress ALL KG | |||||
| Suppress ALL Name | |||||
| Suppress L7 H3 only | |||||
| Qwen-2.5-0.5B: AUROC | |||||
| Baseline | |||||
| Suppress KG heads (3) | |||||
| Suppress Name heads (3) | |||||
| Suppress ALL KG | |||||
| Suppress ALL Name | |||||
| Suppress L12 H2 only | |||||
| AUROC vs. baseline | |||||
| Suppress KG heads (3) | |||||
| Suppress Name heads (3) | |||||
| Suppress ALL KG | |||||
| Suppress ALL Name | |||||
| Suppress L12 H2 only | |||||
(no-KG, with-KG) predictions of that method, with the model's predicted label (not the ground-truth label) as the target. The same line is therefore shared between the two rows of a column, so points crossing the line between rows correspond directly to a flip in the model's prediction. Residual disagreements (full-opacity dots on the negative side and half-opacity dots on the positive side) reflect head structure that this 2D plane cannot capture.
Two Narrative Claims Supported by Figure 9. (1) PK/PD stratification is geometrically real. The PK and PD centroids ( markers) are visibly separated within each method's representation, with LLM-FT showing a clearer PK/PD split than TIGER on the with-KG row. PK/PD is therefore not just a label distinction but a structural property that stronger representations capture more clearly.
(2) KG access KG utilization. Comparing the centroid markers between the two rows of each column reveals the KG-induced centroid shift. For TIGER, KG injection drives the centroids toward the model-negative side of the decision boundary, with a net flip of (TP FN exceeding FN TP). For LLM-FT, the same KG injection drives the centroids toward the model-positive side, with a net flip of . Two methods with the same KG inputs therefore route the KG signal in opposite directions, providing solid visual evidence that KG access does not imply KG utilization (also evidence for cross-method KPS-F gap, reported in Table 6).

(a) Token-class share, base vs. fine-tuned, broken down by mechanism bucket. Y-axis is the fraction of the answer-token attention probability mass falling on each token class, averaged over the bucket's positive pairs and pooled over all layers and heads.

(b) Layer-wise attention trajectory of the fine-tuned model, per mechanism bucket. Y-axis is the answer-token attention probability mass on KG-entity tokens at each transformer layer, averaged across heads and over the bucket's positive pairs.
PK-A PK-B PD-A PD-B per-head mean across groups
KG-focused heads (Layer 7)

Name-focused heads (Layers 10-14)
(b)
(c) Per-head per-group activations on the six specialised heads identified in Table 57. Y-axis is the answer-token attention received by each head from each token class, averaged over the mechanism bucket's positive pairs.
Figure 7: Fine-tuning redistributes attention from instruction tokens to KG entities and drug names, and concentrates this gain in three KG-attending heads at layer 7 and three name-attending heads at layers 10–15.

(a) AUROC by mechanism bucket under each intervention condition. Granularity ladder L7 H3 only 3 KG heads all KG attention shows that the bulk of the PK-A KG dependency is distributed across heads beyond the top-3.
(a) KG Channel
(b) Name Channel

Token Masking AUROC (5.3, R0-R3, 3-seed)
ALL KG Entity Mask
ALL Name Name Mask
Name Heads Name Mask
---- y = x
▲ KG Heads Entity Mask
(b) Attention suppression vs. input-token masking across all four mechanism buckets. Each marker is one (bucket, perturbation pair). Most KG-related markers sit well below the y=x diagonal, with the exception of the 3-head suppression on PK-A, indicating attention suppression has a stronger effect than token masking. The Name-related markers (squares) cluster near the origin, indicating both methods agree that name has limited impact on PK-A and PD-A.
Figure 8: Controlled attention intervention. (top) AUROC across DDI groups under five intervention conditions plus the unintervened baseline. (bottom) Comparison between attention-level intervention and input-level token masking from Section 5.3.
PK and PD pair embeddings across methods, under KG ablation

PK PD --- model decision boundary (2D fit)
Figure 9: S2 pair embeddings projected onto each method’s Fisher LDA axis and residual PC1. Rows. Without/with one-hop KG. Columns. TIGER, LLM-FT. Red/blue dots. PK/PD positives, full opacity if predicted correctly and half opacity otherwise. Dashed line. 2D logistic regression on the model’s predicted label, fitted on pooled (no-KG, with-KG) pairs and shared between the two rows of a column. Dashed ellipses. Gaussian confidence regions per class on the visible subset. × markers. Per-class centroids on the visible subset. The KG-induced centroid shift can be read by comparing the × markers between the two rows of a column. Bottom-right inset (bottom row). FN→TP and TP→FN counts split by PK/PD plus signed net total. Net flip. -114 (TIGER, KG hurts), +234 (LLM-FT, KG helps).