# SafeDrug: Dual Molecular Graph Encoders for Recommending Effective and Safe Drug Combinations

arXiv: https://arxiv.org/abs/2105.02711 · HTML: https://mlsanity.com/paper/2105.02711/

## Key facts

- Cited by 54 papers in the map (data through 14 Oct 2026).
- Builds on 13 of its 30 references that are in the map.
- First posted on arXiv 5 May 2021.

## Builds on (most cited first, 13 of 13)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [Convolutional Networks on Graphs for Learning Molecular Fingerprints](https://mlsanity.com/paper/1509.09292/) (2015)
- [Analyzing Learned Molecular Representations for Property Prediction](https://mlsanity.com/paper/1904.01561/) (2019)
- [RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanism](https://mlsanity.com/paper/1608.05745/) (2016)
- [Learning Deep Transformer Models for Machine Translation](https://mlsanity.com/paper/1906.01787/) (2019)
- [Doctor AI: Predicting Clinical Events via Recurrent Neural Networks](https://mlsanity.com/paper/1511.05942/) (2015)
- [Pre-training of Graph Augmented Transformers for Medication Recommendation](https://mlsanity.com/paper/1906.00346/) (2019)
- [GAMENet: Graph Augmented MEmory Networks for Recommending Medication Combination](https://mlsanity.com/paper/1809.01852/) (2018)
- [Dual Memory Neural Computer for Asynchronous Two-view Sequential Learning](https://mlsanity.com/paper/1802.00662/) (2018)
- [CASTER: Predicting Drug Interactions with Chemical Substructure Representation](https://mlsanity.com/paper/1911.06446/) (2019)
- [SMR: Medical Knowledge Graph Embedding for Safe Medicine Recommendation](https://mlsanity.com/paper/1710.05980/) (2017)
- [DeepPurpose: a Deep Learning Library for Drug-Target Interaction Prediction](https://mlsanity.com/paper/2004.08919/) (2020)

## Built on by (most cited first, 30 of 54)

- [GraphCare: Enhancing Healthcare Predictions with Personalized Knowledge Graphs](https://mlsanity.com/paper/2305.12788/) (2023)
- [Graph-based Molecular Representation Learning](https://mlsanity.com/paper/2207.04869/) (2022)
- [Large Language Model Distilling Medication Recommendation Model](https://mlsanity.com/paper/2402.02803/) (2024)
- [ManyDG: Many-domain Generalization for Healthcare Applications](https://mlsanity.com/paper/2301.08834/) (2023)
- [Predictive Modeling with Temporal Graphical Representation on Electronic Health Records](https://mlsanity.com/paper/2405.03943/) (2024)
- [VITA: 'Carefully Chosen and Weighted Less' Is Better in Medication Recommendation](https://mlsanity.com/paper/2312.12100/) (2023)
- [TACCO: Task-guided Co-clustering of Clinical Concepts and Patient Visits for Disease Subtyping based on EHR Data](https://mlsanity.com/paper/2406.10061/) (2024)
- [Contrastive Learning on Medical Intents for Sequential Prescription Recommendation](https://mlsanity.com/paper/2408.10259/) (2024)
- [Towards a Medical AI Scientist](https://mlsanity.com/paper/2603.28589/) (2026)
- [RareAgents: Autonomous Multi-disciplinary Team for Rare Disease Diagnosis and Treatment](https://mlsanity.com/paper/2412.12475/) (2024)
- [Multi-task Heterogeneous Graph Learning on Electronic Health Records](https://mlsanity.com/paper/2408.07569/) (2024)
- [Unveiling Discrete Clues: Superior Healthcare Predictions for Rare Diseases](https://mlsanity.com/paper/2501.16373/) (2025)
- [Democratizing Large Language Model-Based Graph Data Augmentation via Latent Knowledge Graphs](https://mlsanity.com/paper/2502.13555/) (2025)
- [Fine-grained List-wise Alignment for Generative Medication Recommendation](https://mlsanity.com/paper/2505.20218/) (2025)
- [Node Duplication Improves Cold-start Link Prediction](https://mlsanity.com/paper/2402.09711/) (2024)
- [Natural Language-Assisted Multi-modal Medication Recommendation](https://mlsanity.com/paper/2501.07166/) (2025)
- [Bridging Data Gaps of Rare Conditions in ICU: A Multi-Disease Adaptation Approach for Clinical Prediction](https://mlsanity.com/paper/2507.06432/) (2025)
- [CIDGMed: Causal Inference-Driven Medication Recommendation with Enhanced Dual-Granularity Learning](https://mlsanity.com/paper/2403.00880/) (2024)
- [Recent Developments in GNNs for Drug Discovery](https://mlsanity.com/paper/2506.01302/) (2025)
- [Sequential Condition Evolved Interaction Knowledge Graph for Traditional Chinese Medicine Recommendation](https://mlsanity.com/paper/2305.17866/) (2023)
- [DKINet: Medication Recommendation via Domain Knowledge Informed Deep Learning](https://mlsanity.com/paper/2305.19604/) (2023)
- [OntoMedRec: Logically-Pretrained Model-Agnostic Ontology Encoders for Medication Recommendation](https://mlsanity.com/paper/2401.15814/) (2024)
- [KEDRec-LM: A Knowledge-distilled Explainable Drug Recommendation Large Language Model](https://mlsanity.com/paper/2502.20350/) (2025)
- [PyHealth 2.0: A Comprehensive Open-Source Toolkit for Accessible and Reproducible Clinical Deep Learning](https://mlsanity.com/paper/2601.16414/) (2026)
- [SafeRx-Agent: A Knowledge-Grounded Multi-Agent Framework for Safe and Explainable Medication Recommendation](https://mlsanity.com/paper/2605.29146/) (2026)
- [SAFER: A Calibrated Risk-Aware Multimodal Recommendation Model for Dynamic Treatment Regimes](https://mlsanity.com/paper/2506.06649/) (2025)
- [ARMR: Adaptively Responsive Network for Medication Recommendation](https://mlsanity.com/paper/2507.04428/) (2025)
- [MediRec: Enhancing Chinese Medication Recommendation with Explainable Clinical Reasoning](https://mlsanity.com/paper/2510.21084/) (2025)
- [Traceable Drug Recommendation over Medical Knowledge Graphs](https://mlsanity.com/paper/2510.27274/) (2025)
- [Overview of CHIP 2025 Shared Task 2: Discharge Medication Recommendation for Metabolic Diseases Based on Chinese Electronic Health Records](https://mlsanity.com/paper/2511.06230/) (2025)

## Abstract (arXiv)

Medication recommendation is an essential task of AI for healthcare. Existing works focused on recommending drug combinations for patients with complex health conditions solely based on their electronic health records. Thus, they have the following limitations: (1) some important data such as drug molecule structures have not been utilized in the recommendation process. (2) drug-drug interactions (DDI) are modeled implicitly, which can lead to sub-optimal results. To address these limitations, we propose a DDI-controllable drug recommendation model named SafeDrug to leverage drugs' molecule structures and model DDIs explicitly. SafeDrug is equipped with a global message passing neural network (MPNN) module and a local bipartite learning module to fully encode the connectivity and functionality of drug molecules. SafeDrug also has a controllable loss function to control DDI levels in the recommended drug combinations effectively. On a benchmark dataset, our SafeDrug is relatively shown to reduce DDI by 19.43% and improves 2.88% on Jaccard similarity between recommended and actually prescribed drug combinations over previous approaches. Moreover, SafeDrug also requires much fewer parameters than previous deep learning-based approaches, leading to faster training by about 14% and around 2x speed-up in inference.
