GRAIN: Molecules Are Not the Right Granularity -- Active-Ingredient Modeling for Safe Medication Recommendation
Not on the map. Why?
Abstract (arXiv)
Medication recommendation from electronic health records must balance predictive accuracy against the risk of adverse drug-drug interactions (DDIs) under polypharmacy. Existing safety-aware recommenders operate at one of two granularities: the drug code, which treats each medication as an indivisible token, or the molecular substructure, which is finer than pharmacological interaction knowledge is actually organized. We argue that the active ingredient is the missing granularity, and introduce GRAIN, a medication recommendation framework built around it. GRAIN encodes longitudinal patient trajectories (diagnoses, procedures, past medications) with a selective state space backbone that handles long, irregular visit sequences in linear time. On top of it we introduce a joint objective unifying three knowledge sources aligned to a common medication vocabulary: a drug-level DDI graph, an ingredient-level DDI graph obtained by normalizing medication codes to active ingredients via RxNorm, and an EHR-derived co-prescription graph. A proportional controller adapts the accuracy-safety trade-off to the observed validation DDI rate rather than fixing it a priori. Under strictly matched settings -- identical preprocessing, cohort, vocabulary, split, and evaluation code -- GRAIN improves over a re-implemented MambaHealth baseline on MIMIC-IV across all standard multi-label metrics (Jaccard 0.4488 to 0.4983, PRAUC 0.6911 to 0.7485, F1 0.5989 to 0.6453) while reducing the drug-level DDI rate from 0.1875 to 0.0948. We further define an ingredient-level DDI rate, a safety measure invisible to drug-code-level evaluation. The results indicate that ingredient-level normalization recovers predictive signal erased by code-level aggregation, and that it is complementary to, rather than in competition with, accurate sequence modeling.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 18 references that are in the map. First posted on arXiv 30 Jul 2026.
Builds on
8 of 18 references.
References · 8
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2022Large Language Models Encode Clinical Knowledgecited by 1,830
- 2021SafeDrug: Dual Molecular Graph Encoders for Recommending Effective and Safe Drug Combinationscited by 54
- 2018Dual Memory Neural Computer for Asynchronous Two-view Sequential Learningcited by 27
- 2024Mamba4Rec: Towards Efficient Sequential Recommendation with Selective State Space Modelscited by 26
- 2023SHAPE: A Sample-adaptive Hierarchical Prediction Network for Medication Recommendationcited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026SafeRx-Agent: A Knowledge-Grounded Multi-Agent Framework for Safe and Explainable Medication Recommendation
- 2026RES-MR: Risk-Aware Reasoning for Explainable and Safe Medication Recommendation
- 2025Fine-grained List-wise Alignment for Generative Medication Recommendation
- 2026HEM-Med: A Hierarchical Agentic Memory Framework for Safe Multi-Center Medication Recommendation
- 2025Dual-Pathway Fusion of EHRs and Knowledge Graphs for Predicting Unseen Drug-Drug Interactions
- 2025MediRec: Enhancing Chinese Medication Recommendation with Explainable Clinical Reasoning
- 2026Improving Rare Medication Recommendation with Counterfactual Data Augmentation and Large Language Models
- 2026ARMED: Adaptive Retrieval-Augmented Medication Recommendation