Abstract
Drug repurposing offers a cost-effective alternative to traditional drug discovery by identifying new therapeutic uses for existing, safe medications. However, automating this process requires bridging the gap between chemical structures and medical ontologies. We present DrugCLIP, a framework that adapts contrastive learning to align molecular graph representations of drugs with hierarchical embeddings of disease codes. DrugCLIP achieves a significant performance boost, demonstrating a 16.5% relative improvement in identifying successful drug-disease pairs over previous state-of-the-art methods.
Introduction
The development of novel pharmaceuticals is a high-stakes, multi-billion-dollar process that often spans over a decade. A primary driver of these costs is the high failure rate in early clinical trials due to safety or toxicity concerns. Drug repurposing (or repositioning) mitigates these risks by leveraging drugs already approved for human use. Despite its potential, computational drug repurposing faces challenges including noisy clinical data, the absence of explicit "negative" labels (failed trials), and the difficulty of integrating multimodal data—specifically, 2D molecular graphs and categorical medical diagnosis codes.
Methodology
DrugCLIP addresses these challenges by employing a contrastive learning objective to align drug and disease representations in a shared latent space.
Drug Representation
The framework utilizes a Message Passing Neural Network (MPNN) to encode molecular structures. Molecules are modeled as graphs where atoms serve as nodes and chemical bonds as edges. The MPNN iteratively updates node features based on their local neighborhood, ultimately aggregating these into a global molecular embedding.
Disease Representation
To capture the rich semantic relationships in medical data, DrugCLIP uses a Graph-based Attention Model (GRAM) for disease representation. Rather than treating ICD-10 codes as independent entities, GRAM incorporates the inherent medical hierarchy. A disease's embedding is calculated as a weighted average of its own basic embedding and the embeddings of its ancestors in the medical taxonomy.
Contrastive Learning
Inspired by the CLIP architecture, DrugCLIP optimizes the cosine similarity between drug and disease vectors. During training, the model learns to maximize the similarity of "positive" drug-disease pairs (known successful treatments) while minimizing the similarity for "negative" pairs. In the absence of explicit failure data, the model treats other drugs within the same training batch as synthetic negatives, allowing for effective discriminative learning.
Dataset and Evaluation
The model was evaluated using a curated dataset of approximately 35,000 clinical trials from ClinicalTrials.gov (2000–2023). Molecular structures were sourced from DrugBank and ZINC. To ensure real-world relevance, the researchers employed a temporal split: the model was trained on historical data and tested on trials from 2018–2023. This setup simulates the predictive task of identifying future clinical successes based on existing knowledge.
Results
DrugCLIP consistently outperformed established baselines, including Logistic Regression (LR), Random Forest (RF), and specialized deep learning models like DeepDDI and BPMF.
On the 2018–2020 test set, DrugCLIP achieved a Hit@10% of 57.8%, representing a 16.5% relative improvement over the strongest baseline. Furthermore, the model achieved over 90% Hit@30% across both test periods. This high ranking efficiency suggests that DrugCLIP can reduce the experimental search space by 70% while still capturing 9 out of 10 successful drug-disease interactions. These results were statistically significant, with p-values of 0.018 and 0.013 for the respective test sets.
Conclusion and Future Work
DrugCLIP demonstrates the power of contrastive learning and hierarchical knowledge integration for drug repurposing. By framing the problem as a ranking task and leveraging medical ontologies, it provides a robust tool for prioritizing clinical candidates. Future research will focus on incorporating unstructured text from trial descriptions and patient-level electronic health records (EHR) to provide deeper context, as well as integrating transcriptomic data to improve biological interpretability.
Summary updated