- Rating
- 5
- Clarity
- 2
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The authors study the problem of medication recommendation, which is challenging because it requires modeling the combinatorial space of drug combinations while accounting for adverse drug–drug interactions (DDIs). To address this challenge, they propose RxDiff, a discrete diffusion-based recommendation framework that captures the full dependencies among all recommended medications. In contrast, existing approaches either ignore these dependencies or model them autoregressively. In addition, the authors introduce both training- and inference-time strategies to explicitly encourage recommendations with fewer DDIs, enabling medication recommendations that are not only accurate but also safer for patients.
Strengths and weaknesses
Strengths
- The idea of modeling medication recommendation is novel and well-motivated for the task.
- High quality experiments are conducted to support the utility of the proposed method, including ablation studies that highlight the benefits of the proposed modules.
- The problem of data-driven medication recommendation is significant and has many potential positive real-world impacts.
Weaknesses
-
Overall, the clarity of the proposed methods can be improved in the paper, especially by intuitively motivating the design choices:
- Why is the prescription serialization needed when the introduction has motivated that diffusion does not introduce any arbitrary order-based inductive bias compared to the AR approach? This seems to defeat the purpose of using diffusion models.
- In section 4.3.1, the use of the function is inconsistent; equation (4) depends on while equation (5) does not.
- What's the motivation for using clean context to condition the substitution distribution instead of noised contex from the previous step like standard diffusion models?
- In equation (8), what's the motivation for only applying MLP for sinusoidal embedding but not the positional embedding?
- For the length loss, what's the motivation for applying stopgrad while the diffusion loss does not?
-
The robustness to distribution shift argument is unconvincing. In section 5.3, the authors showed that when all methods are trained with 80% DDI rules but evaluated against 100% DDI rules, RxDiff shows the smallest performance drop compared to the baselines. I think this is an unfair comparison because only RxDiff has access to the full DDI rules during inference; it's natural that it will produce fewer recommendations with DDIs, since it's given additional information, whereas baseline methods are not.
-
Presentation on some of the results is unclear: in Table 1, what is the statistical significance compared against? And what do the error bars in the parentheses represent?
-
Nitpicks:
- Line 133 inconsistently used {PAD} instead of [PAD].
Questions
What is the prevalence of DDIs in the training dataset? To what extent is the DDI challenge driven by the presence of DDIs in the observed prescriptions used for training? If the majority of observed prescriptions are already free of DDIs, why is explicit DDI reduction necessary? If the observed medication regimens contain few or no DDIs, would one expect most recommendation methods to achieve similarly low DDI rates? Could the authors provide additional analysis to clarify whether the reported DDI improvements arise from better modeling or simply reflect characteristics of the underlying dataset?
Have the authors considered a simpler baseline that removes or down-weights training examples containing high-DDI medication combinations? Such a baseline could help determine whether the proposed method provides benefits beyond what can be achieved through straightforward data curation. Relatedly, how would recommendation accuracy and DDI rates change if high-DDI samples were filtered out or assigned lower training weights? Comparing against such a baseline would help quantify the value of the proposed DDI-aware training and inference procedures.
Limitations
Yes
Paper formatting concerns
N/A
We thank the reviewer for the valuable comment. We clarify each concern below.
We thank the reviewer for raising this important point. We clarify that the serialization in RxDiff is only a representation strategy required for applying discrete diffusion over medication tokens with fixed positions, rather than an autoregressive generation constraint. RxDiff does not generate medications sequentially; during both corruption and reverse denoising, all medication positions are simultaneously updated through the diffusion process. Therefore, the model does not introduce an order-dependent inductive bias during generation.
We thank the reviewer for pointing out this notation inconsistency. The function r in Eq. (5) should also be conditioned on the original medication xi0, consistent with Eq. (4). This is a notation typo, and we will correct it in the revised manuscript.
We thank the reviewer for raising this important question. We clarify that the use of clean context is not a general requirement of diffusion models, but a design choice arising from our DDI-guided context-dependent substitution and semi-absorbing forward process.
Specifically, the substitution distribution r(m∣xi0,{xj0}j=i) is defined based on the clean prescription context to inject clinically meaningful DDI noise. Since the clean context is fully observed during training, the forward transitions remain conditionally independent across positions given x0. As discussed in Section 4.3.1 and formally proved in Appendix A, this property enables the semi-absorbing constraint and the derivation of an analytic cumulative marginal for efficient diffusion training.
If the substitution distribution is instead conditioned on the noisy context from the previous step, the transition kernel would become history-dependent, requiring recursive simulation of intermediate noisy states and preventing the efficient closed-form marginal used in our training procedure.
The different treatments of sinusoidal embedding and positional embedding are due to their different roles in RxDiff. The sinusoidal embedding encodes the diffusion timestep, which serves as a continuous condition indicating the current corruption level. Therefore, we apply an MLP to transform it into a task-specific representation compatible with the denoising network. In contrast, the positional embedding only provides token position information for the Transformer encoder and does not represent a semantic conditioning variable. Therefore, it is directly added without additional transformation.
The motivation for applying stop-gradient only in length prediction is to decouple the auxiliary length prediction task from patient representation learning. Since patient contextual representation hc should primarily serve the diffusion backbone to preserve clinically meaningful information for medication generation, stop-gradient prevents the coarse-grained prescription length signal from dominating hc, while allowing the length predictor to learn from the existing clinical representation.
We thank the reviewer for pointing out this potential ambiguity. We agree that the original presentation may not clearly distinguish two effects: robustness to different DDI distributions during training and adaptability to updated DDI knowledge.
Section 5.3(d) was designed to evaluate the latter. Specifically, by limiting the DDI knowledge coverage during training while using updated DDI knowledge during inference, we evaluate whether a model can adapt to evolving safety knowledge, which reflects the realistic scenario that DDI knowledge is continuously updated. This setting also highlights the motivation of RxDiff’s inference-time safety control: DDI knowledge can be treated as an external and updatable module that is incorporated through interaction-aware modulation during inference without retraining, while existing baselines generally lack such modularity.
To further evaluate robustness to different DDI distributions during training, we additionally compare all methods under the same inference-time DDI knowledge coverage (80% DDI rules). The results are shown below:
The results demonstrate that RxDiff maintains superior safety performance under different DDI knowledge distributions, suggesting that its advantage is not solely due to access to updated inference-time DDI knowledge.
To avoid ambiguity, we will revise Section 5.3(d) by renaming it as adaptability to updated DDI knowledge and add the above experiment as a separate evaluation of robustness to different DDI distributions.
We thank the reviewer for pointing out this ambiguity. We clarify that the statistical significance in Table 1 is computed by comparing RxDiff with the best-performing baseline under paired t-test on the test set. The values in parentheses represent the standard deviations over five independently trained models with different random seeds. We will revise the table caption to explicitly state the comparison baseline and the source of the reported standard deviations.
We thank the reviewer for raising this important question. We first clarify the prevalence of DDIs in the observed prescriptions.
These statistics show that most observed prescriptions are not DDI-free. On the contrary, DDIs occur in the majority of prescriptions, and a non-negligible proportion exhibit relatively high interaction risk, confirming the necessity of explicitly modeling prescription safety.
More importantly, the DDI challenge does not arise only from interactions already present in the training data. Medication recommendation is a combinatorial prediction problem, and practical models inevitably make prediction errors rather than perfectly reproducing the ground-truth prescription. These errors may introduce additional drug combinations—and consequently new DDI conflicts—that are absent from the observed prescriptions. Therefore, DDI-aware modeling is also needed to reduce newly introduced conflicts during prescription generation.
To further investigate whether the DDI improvement mainly comes from better modeling, we perform an additional analysis by removing high-risk prescriptions from MIMIC-III. Specifically, we exclude visits whose ground-truth prescription DDI rate is higher than 10%, then re-split the remaining data into training, validation, and test sets, followed by retraining and reevaluating all models under the same setting. The ground-truth DDI rate for this data subset is 4.97%.
After removing high-DDI prescriptions, the ground-truth distribution itself becomes safer, leading to reduced DDI rates for all methods. RxDiff consistently produces prescriptions with lower DDI rates, demonstrating that its safety improvement comes from better interaction-aware modeling rather than simply inheriting dataset statistics.
To evaluate whether RxDiff’s safety improvement can be attributed to simply removing or reducing the influence of high-DDI prescriptions during training, we construct two data curation baselines on the original MIMIC-III training set. Specifically, we first calculate the DDI risk of each training prescription and identify the top 20% high-DDI visits. For the filtering baseline, these high-DDI visits are removed from the training set, and the model is retrained on the remaining data. For the reweighting baseline, all training visits are retained, but the loss contributions of high-DDI visits are down-weighted by a factor of 0.5. All models are evaluated on the original test set without any modification to preserve the original evaluation distribution.
The results show that removing or down-weighting high-DDI prescriptions can slightly reduce the DDI rate by biasing the model toward safer medication patterns. However, this comes at the cost of losing valuable supervision from clinically complex prescriptions, leading to clear degraded recommendation accuracy. Moreover, when facing complex cases in the original test distribution, models trained with reduced exposure to high-DDI regimens have limited ability to balance therapeutic relevance and safety, limiting the effectiveness of such simple data curation strategies. RxDiff maintains a substantially better accuracy–safety trade-off compared, indicating that its advantage comes from explicitly modeling medication interactions rather than simply avoiding high-DDI training examples.
We hope this response clarifies the reviewer’s concern. We are happy to provide additional experiments or analysis if further clarification is needed.