cs.LGMar 21, 2026

GraphDiffMed: Knowledge-Constrained Differential Attention with Pharmacological Graph Priors for Medication Recommendation

Authors: Krati Saxena, Tomohiro Shibata

Organizations: Kyushu Institute of Technology, Kitakyushu, Fukuoka, Japan

Abstract

Recommending safe and effective medication combinations from electronic health records (EHRs) is a core clinical AI problem, yet it remains difficult because patient trajectories are long, noisy, and clinically heterogeneous. Existing methods typically excel at either temporal modeling across visits or pharmacological knowledge integration (e.g., drug-drug interactions, DDIs), but rarely achieve both while robustly suppressing noise. We present GraphDiffMed, a knowledge-constrained medication recommendation framework built on dual-scale Differential Attention v2. Differential attention is applied at both intra-visit and inter-visit levels to filter spurious signals within encounters and across longitudinal history, while pharmacological constraints are incorporated during learning. Experiments on MIMIC-III and ablation studies show that this design consistently improves recommendation quality and ranking over strong baselines while achieving a more favorable safety performance balance. We further find that the strongest-performing configuration uses only demographic auxiliary features under our experimental setting. Overall, GraphDiffMed demonstrates that combining noise-aware attention with pharmacological constraints yields more reliable and clinically meaningful medication recommendation. We open-source our code at https://github.com/saxenakrati09/GraphDiffMed.

Figures & tables

Explore similar work

CardsList
  1. HypeMed: Enhancing Medication Recommendations with Hypergraph-Based Patient Relationships

    Mar 19, 2026Xiangxu Zhang, Xiao Zhou, Hongteng Xu +1Recommender SystemsClinical Decision Support

  2. GRAIN: Molecules Are Not the Right Granularity -- Active-Ingredient Modeling for Safe Medication Recommendation

    Jul 30, 2026Juao Fan, Jinhan Li, Shengxin ZhuClinical Decision Support

  3. HADRec: A Hierarchy-Aware Drug Recommendation Framework by Fusing Molecular Knowledge and Electronic Health Record

    Oct 1, 2026Junke Wang, Hongshun Ling, Li Zhang +4Clinical Decision Support