From Scores to Safe Sets: Exact Safety--Constrained Decoding for Medication Recommendation
Animesh Agarwal, Meysam Ghaffari, Nina Fatehi, Anushka Swarup, Carlos Morato
Key points
From the paper's conclusion- These results show that medication recommendation is not only a representation-learning problem: even with a frozen clinical model, how its scores are converted into a constrained medication set can materially affect the final prediction.
Abstract
Recent generative medication recommendation systems ultimately produce sets of drugs, but drug--drug interaction (DDI) constraints depend on the set as a whole. A natural post-hoc approach is to first predict medications and then locally repair interacting pairs by removing one drug at a time. We ask whether this local repair step itself introduces avoidable error. Using fixed medication scores from FLAME's frozen classifier on MIMIC-III, we compare increasingly strong local repair strategies with an exact global decoder while holding the scores, output size, and DDI constraint fixed. The global decoder jointly selects the highest-scoring feasible medication set using mixed-integer linear programming. Across validation and test splits, global decoding consistently achieves higher Jaccard similarity than greedy repair, degree-aware repair, and degree-aware repair strengthened with exhaustive 1-swap local search. Its advantage is small under loose DDI constraints and becomes larger as the constraint tightens; on the test split it reaches +0.0064 Jaccard over the strongest local baseline at the strict DDI operating point. The finding also holds across a fine accuracy--DDI sweep at matched realized DDI exposure and under three score representations. At the strict setting, global decoding retains more true-positive medications while removing more false positives. These results show that medication recommendation is not only a representation-learning problem: even with a frozen clinical model, how its scores are converted into a constrained medication set can materially affect the final prediction.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Clinical Evidence-Guided Residual Learning for Medication Recommendation with Dynamic DDI RegularizationarXiv · 2026
- HEM-Med: A Hierarchical Agentic Memory Framework for Safe Multi-Center Medication RecommendationarXiv · 2026
- Self-Evolving Dual-Role Deliberation for Medication Recommendation from Clinical RecordsarXiv · 2026
- RTSANet: learning sequential-attentive hybrid networks for drug information-enhanced medication recommendation.Computer methods in biomechanics and biomedical engineering · 2026
- ProAlign-DDI: A Zero-Shot Drug-Drug Interaction Event Prediction Framework with Prototype Alignment.Journal of chemical information and modeling · 2026
- Beyond unseen entities: Auditable cold-start evaluation for drug interaction prediction.PLoS computational biology · 2026