DDIAgents: Mechanism-Conditioned Context Flow for Drug-Drug Interaction Prediction
Summary
Proposes DDIAgents, a mechanism-conditioned multi-agent framework for drug-drug interaction prediction that dynamically routes relevant biomedical knowledge to specialized expert agents and aggregates their analyses, outperforming existing feature-based, graph-based, and LLM-based methods.
View Cached Full Text
Cached at: 07/01/26, 05:37 AM
# DDIAgents: Mechanism-Conditioned Context Flow for Drug-Drug Interaction Prediction Source: [https://arxiv.org/html/2606.31085](https://arxiv.org/html/2606.31085) Zhenqian Shen,Yu Liu[yu\.liu@eng\.ox\.ac\.uk](https://arxiv.org/html/2606.31085v1/mailto:[email protected])Institute of Biomedical Engineering,University of OxfordOxfordUnited Kingdom,Xiaoyi Fu[xiaoyif@alumni\.cmu\.edu](https://arxiv.org/html/2606.31085v1/mailto:[email protected])Division of Emerging Interdisciplinary Areas,Hong Kong University of Science and TechnologyHong KongChinaandQuanming Yao[qyaoaa@tsinghua\.edu\.cn](https://arxiv.org/html/2606.31085v1/mailto:[email protected])Department of Electronic EngineeringTsinghua UniversityBeijingChina \(2026\) ###### Abstract\. Drug\-drug interaction \(DDI\) prediction is essential for medication safety, yet it requires reasoning over heterogeneous biomedical evidence whose relevance changes across interaction mechanisms\. We propose DDIAgents, a mechanism\-conditioned multi\-agent framework that performs DDI prediction through dynamic knowledge orchestration\. Given a drug pair, a planner agent instantiates specialized expert agents, routes mechanism\-relevant knowledge sources to each agent, and aggregates their analyses through a conclusion agent\. By adapting context flow to the inferred interaction mechanism, DDIAgents reduces irrelevant information, supports complementary expert reasoning, and produces interpretable agent\-level rationales\. Extensive experiments on realistic DDI prediction benchmarks show that DDIAgents consistently outperforms existing feature\-based, graph\-based, LLM\-based, and agent\-based baselines\. Beyond prediction performance, DDIAgents demonstrates how multi\-agent systems can organize heterogeneous scientific knowledge for adaptive and interpretable AI4Science reasoning\. Drug\-Drug Interaction Prediction, Multi\-Agent System, Dynamic Context Flow ††copyright:acmlicensed††journalyear:2026††doi:XXXXXXX\.XXXXXXX††isbn:978\-1\-4503\-XXXX\-X/2018/06## 1\.Introduction Modern drug discovery is defined by prohibitive costs and protracted timelines, frequently taking 10–15 years and over 2 billion dollars per approved drug\(DiMasi et al\.,[2016](https://arxiv.org/html/2606.31085#bib.bib6); Prasad et al\.,[2017](https://arxiv.org/html/2606.31085#bib.bib22)\)\. It is therefore crucial to identify drug\-drug interactions \(DDIs\) that could lead to adverse drug reactions and serious health risks for patients\. However, DDI prediction remains a challenging scientific problem due to intricate biomedical mechanisms, including altered pharmacokinetics and pharmacodynamics\(Palleria et al\.,[2013](https://arxiv.org/html/2606.31085#bib.bib21)\), alongside clinical treatment factors\(Roberts and Gibbs,[2018](https://arxiv.org/html/2606.31085#bib.bib25)\)\. Moreover, candidate DDI verification is expensive and time\-consuming, requiring extensive experiments from preclinical studies to large\-scale clinical trials\. This setting reflects a broader data\-efficient AI4Science challenge: direct labels and experimental feedback are costly, so models must make better use of prior knowledge, task structure, and limited feedback rather than relying only on scaling supervision\(Wang et al\.,[2020](https://arxiv.org/html/2606.31085#bib.bib38),[2026](https://arxiv.org/html/2606.31085#bib.bib37)\)\. In this work, we focus on a complementary agentic question: how should a reasoning system decide which biomedical evidence each expert should use when the underlying interaction mechanism changes across drug pairs? To accelerate DDI discovery, a variety of computational methods have been developed for prediction\(Qiu et al\.,[2021](https://arxiv.org/html/2606.31085#bib.bib23); Lin et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib15)\)\. These methods broadly fall into three categories: feature\-based, graph\-based, and large language model \(LLM\)\-based approaches\. Feature\-based methods\(Ryu et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib27); Liu et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib17)\)typically encode drugs with molecular features and train neural networks for interaction prediction\. Graph\-based methods broadly utilize graph embedding methods, graph neural networks \(GNNs\) or graph transformers to extract predictive features from diverse data sources, ranging from individual drug molecular structures\(Nyamabo et al\.,[2021](https://arxiv.org/html/2606.31085#bib.bib20); Yang et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib43)\)to complex biomedical networks\(Zitnik et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib49); Zhang et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib47)\)\. LLM\-based methods primarily utilize the powerful reasoning capabilities based on textual descriptions of drugs and interactions\(Zhu et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib48); Xu et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib42)\)\. Despite these advances, DDI prediction is not merely a single\-pattern learning problem; it is a mechanism\-conditioned knowledge orchestration problem\. First, different drug pairs can be governed bydiverse mechanisms, from physiological modulation and drug–target binding events to chemically mediated reactions\. Second, the decisive evidence exhibitsknowledge heterogeneity, spanning natural\-language descriptions, structured biomedical relations, and molecular substructures\. A metabolism\-driven interaction may require enzyme or transporter evidence, whereas a target\-overlap interaction may depend more on pathway or adverse\-effect evidence\. However, most existing approaches remain inflexible: they follow fixed reasoning patterns and rely on static evidence integration, which can introduce irrelevant evidence or miss the modality that is decisive for a specific mechanism\. Meanwhile, the recent emergence of LLM\-based multi\-agent systems in other scientific domains has become a promising solution for providing adaptable mechanism analysis of DDIs\. Analogous to a multidisciplinary research team, multi\-agent frameworks coordinate multiple role\-specialized “expert” agents to solve complex problems\(Boiko et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib4); Swanson et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib32)\)\. This perspective also aligns with data\-efficient agentic learning, where performance is improved by organizing roles, feedback, and interactions rather than simply increasing labeled data or model scale\(Wang et al\.,[2026](https://arxiv.org/html/2606.31085#bib.bib37)\)\. In such systems, the reasoning performance critically depends on thecontext flow, namely how knowledge sources are routed to the agents that need it\. However, existing multi\-agent systems often rely on a fixed context flow, where agents are restricted to a predefined knowledge scope\. This rigidity forces expert agents to handle a fixed scope of knowledge regardless of the specific task, which can introduce irrelevant information into the reasoning process and obscure the critical insights\. To address the challenges above, we introduce DDIAgents, a mechanism\-conditioned multi\-agent framework for DDI prediction that leverages dynamic context flow for specialized DDI analysis\. Specifically, DDIAgents conducts the following three stages iteratively\. Firstly, expert agent instantiation gathers a team of specialized expert agents\. Secondly, dynamic context flow routes suitable knowledge sources to each expert agent according to the mechanism\-specific evidence needs of the current drug pair\. Finally, expert agents generate domain\-specific analyses that are synthesized by a conclusion agent to either yield a final prediction or provide strategic guidance for iterative refinement\. Experiments on two benchmark datasets demonstrate the superior performance of DDIAgents compared to existing methods\. Furthermore, the agent\-based analysis demonstrates that DDIAgents yields interpretable mechanistic explanations of predicted DDIs\. The main contributions are summarized as follows: - •We formulate DDI prediction as a mechanism\-conditioned knowledge orchestration problem and introduce DDIAgents, a multi\-agent framework that explicitly accounts for diverse mechanisms and heterogeneous biomedical evidence\. - •We design a dynamic context flow mechanism that strategically routes heterogeneous knowledge sources to specialized agents, thereby enhancing knowledge utility and reducing noisy information in the DDI reasoning process\. - •We perform extensive experiments on two benchmark datasets, demonstrating that DDIAgents consistently outperforms existing feature\-based, graph\-based, LLM\-based, and agent\-based approaches\. Comprehensive case studies further show that DDIAgents provides interpretable agent\-level insights into the underlying mechanisms of DDIs\. ## 2\.Related Works ### 2\.1\.Drug\-Drug Interaction Prediction DDI prediction has recently been a critical topic in computational pharmacology, aiming to identify potential drug interactions that may lead to adverse effects or altered therapeutic efficacy\(Han et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib12); Lin et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib15)\)\. Existing approaches are commonly grouped into feature\-based, graph\-based, and LLM\-based methods\. Feature\-based methods encode drugs with molecular descriptors and train supervised predictors\(Rogers and Hahn,[2010](https://arxiv.org/html/2606.31085#bib.bib26); Ryu et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib27); Liu et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib17); Xie et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib41)\)\. They work well when interactions are driven by chemical properties, but often struggle to incorporate broader biological mechanisms\. Graph\-based methods exploit structured relations from molecular graphs and biomedical networks through knowledge graph embedding methods\(Yao et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib44)\), GNNs\(Zitnik et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib49); Zhang et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib47)\)or heterogeneous graph transformers\(Su et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib31)\)\. While they better capture relational evidence, their pipelines and knowledge fusion are typically fixed, limiting adaptability when the decisive evidence varies across drug pairs\. Recently, LLM\-based methods prompt models with drug or interaction descriptions\(Zhu et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib48); Xu et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib42); Raveendran et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib24)\), retrieve graph\-path evidence\(Abdullahi et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib2)\), or apply case\-based reasoning to reuse historical DDI cases\(Liu et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib16)\)\. In particular, CBR\-DDI shows that historical cases can provide useful reasoning examples for LLM\-based DDI prediction\. This case\-reuse direction is complementary to DDIAgents: our focus is not to build a historical case repository, but to decide, for each drug pair and mechanism hypothesis, how heterogeneous biomedical evidence should be routed to specialized agents\. Thus, DDIAgents targets mechanism\-conditioned knowledge orchestration rather than case\-based rationale transfer\. Overall, existing DDI prediction methods provide complementary strengths, but most still follow uniform reasoning patterns and static knowledge utilization\. This rigidity is a key limitation for DDI prediction, where different drug pairs require different explanatory routes and different forms of supporting evidence\. ### 2\.2\.Multi\-Agent Reasoning for Scientific Tasks Powered by strong natural language understanding and generation, LLMs have recently enabled a new paradigm for tackling complex scientific tasks via multi\-agent collaboration\(Boiko et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib4); Kim et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib14); Swanson et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib32)\)\. Compared with conventional machine learning pipelines, multi\-agent systems decompose a task into role\-specialized agents, each equipped with distinct domain expertise and responsibilities\. This design principle is closely related to data\-efficient agentic learning, which studies how agent systems can adapt under limited supervision, limited feedback, and costly interactions\(Wang et al\.,[2026](https://arxiv.org/html/2606.31085#bib.bib37)\)\. Coscientist\(Boiko et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib4)\)is an early framework that formulates an end\-to\-end workflow for autonomous chemical research, coordinating agents such as planner agent, document searchers and experiment executors\. SciAgents\(Ghafarollahi and Buehler,[2025](https://arxiv.org/html/2606.31085#bib.bib10)\)builds a materials\-science knowledge graph and organizes a team to generate hypotheses by following evidence paths extracted from the knowledge graph\. Virtual Lab\(Swanson et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib32)\)instantiates a group of LLM scientist agents for interdisciplinary research and has been applied to novel nanobody design\. Related directions also explore multi\-agent systems for clinical decision\-making, assembling expert agents with distinct specialties\(Tang et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib33); Kim et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib14)\)\. Despite these advances, many multi\-agent systems rely on fixed agent configurations and static information\-access patterns\. In scientific problems where different sub\-problems require different knowledge sources, the way information is allocated across agents can substantially influence reasoning quality and interpretability\. Figure 1\.Three DDI examples with different mechanisms: \(a\) pharmacokinetic change, \(b\) pharmacodynamic interference, \(c\) chemically mediated synergy\. The prediction of these DDIs requires different knowledge and expertise\. ## 3\.Motivation ### 3\.1\.DDI Prediction as a Mechanism\-conditioned Reasoning Problem Drug–drug interaction \(DDI\) prediction is fundamental to medication safety, yet it remains challenging in realistic settings becauseit requires mechanism\-conditioned reasoning rather than single\-pattern learning\. Clinically meaningful DDIs arise from different mechanisms, and the correct interaction type for each drug pair depends on identifying the governing mechanism, rather than applying a universal decision rule\. Figure[1](https://arxiv.org/html/2606.31085#S2.F1)highlights that clinically meaningful DDIs can be driven by diverse mechanisms, including pharmacokinetic change, pharmacodynamic interference and chemically mediated synergy\. These mechanisms correspond to qualitatively different causal explanations and therefore require different reasoning paths\.Effective DDI prediction thus requires selecting an appropriate explanatory route before determining the interaction type\. A closely related challenge is thatthe decisive evidence is heterogeneous, mechanism\-conditioned, and demands complementary expert perspectives\. No single modality or fixed expert viewpoint is uniformly informative across all DDIs\. When knowledge is aggregated without expert\-guided selection, critical evidence can be diluted by irrelevant context and cross\-perspective distraction, ultimately undermining reliable prediction\. ### 3\.2\.Limitations of Static Reasoning and the Need for Dynamic Context Flow Despite substantial progress, most existing DDI prediction methods implicitly assume static reasoning\. Feature\-based and graph\-based models rely on fixed pipelines and static feature fusion, while recent LLM\-based methods typically employ fixed prompts and retrieval scopes\. As a result,they reuse the same reasoning pattern and evidence across drug pairs, which can either omit the modality most relevant to the governing mechanism or overwhelm the model with irrelevant context\. Multi\-agent reasoning provides a natural abstraction for incorporating multiple expert perspectives, butnaive multi\-agent designs remain insufficient\. Most existing multi\-agent systems for scientific tasks adopt a fixed context flow, i\.e\., heterogeneous knowledge is routed to expert agents according to a predetermined scheme\. This rigidity constrains experts to static information scopes and prevents adaptation when mechanisms vary across instances\.Therefore, the primary bottleneck is not agent collaboration itself, but how knowledge is allocated to agents\. These observations lead to a key insight:mechanism\-selective biomedical reasoning requires instance\-adaptive context flow\. For each drug pair, the system should dynamically determine which experts to instantiate, which types of knowledge each expert should access, and whether these choices need to be revised as intermediate analyses reveal uncertainty or disagreement\. This insight directly motivatesDDIAgents, which models expert instantiation and knowledge routing as per\-instance and iterative decisions, enabling targeted, interpretable and robust DDI prediction\. Figure 2\.The overall framework of the proposed DDIAgents, which iteratively conducts three stages: \(a\) Expert agent instantiation, \(b\) Dynamic context flow, \(c\) Analysis and decision making\. ## 4\.Methodology ### 4\.1\.Problem Setup Let𝒟\\mathcal\{D\}be the set of all drugs andℛ\\mathcal\{R\}be the set of possible interaction types\. In the DDI prediction problem, effective utilization of heterogeneous knowledge sources is critical\. We define a collection of knowledge sources as𝒮\\mathcal\{S\}that are relevant to the reasoning process in DDI prediction\. Formally, the DDI prediction problem is to learn a predictorppthat maps a pair of drugs and the integrated knowledge sources to a DDI type\. For any drug pair\(u,v\)∈𝒟×𝒟\(u,v\)\\in\\mathcal\{D\}\\times\\mathcal\{D\}and knowledge sources𝒮\\mathcal\{S\}, the predicted DDI typer∈ℛr\\in\\mathcal\{R\}is given by: \(1\)r=p\(u,v;𝒮\)r=p\(u,v;\\mathcal\{S\}\) For agent\-based methods, we implement a filtering stage to handle the context overflow caused by an exhaustive list of DDI candidates\. A traditional model\(Su et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib31); Xu et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib42)\)is trained to filter a predefined number of the most probable DDI candidates\. The DDI prediction problem and these candidates are then formatted into a multiple\-choice questionqq, serving as the input for agent\-based methods\. ### 4\.2\.Overall Framework The framework of DDIAgents \(as shown in Figure[2](https://arxiv.org/html/2606.31085#S3.F2)\) incorporates the following three stages:\(a\) Expert agent instantiation:given a DDI query, a planner agent instantiates a tailored set of expert agents with distinct expertise\. This enables adaptive expertise composition, avoiding rigid agent configurations\.\(b\) Dynamic context flow:the planner agent assigns each expert a mechanism\-relevant subset of knowledge sources\. This mitigates information overload and supports targeted and specialized reasoning\.\(c\) Analysis and decision making:expert agents conduct specialized analyses, and a conclusion agent synthesizes their outputs to either deliver a final prediction or request another analysis iteration\. If the conclusion agent detects unresolved uncertainty or conflicting evidence, its feedback serves as an update signal for the next iteration, guiding expert agent instantiation and dynamic context flow to avoid repetition of the same reasoning pattern\. ### 4\.3\.Expert Agent Instantiation Selecting appropriate experts is essential for reliable and mechanism\-aware DDI interpretation\. In the first iteration \(t=1t=1\), we instantiate three core experts to cover complementary perspectives on clinical risk, pharmacokinetics, and biological mechanism: - •Pharmacist\(Weideman et al\.,[1999](https://arxiv.org/html/2606.31085#bib.bib39)\): Focuses on practical, patient\-oriented risks and outcomes of drugs in clinical usage\. - •Pharmacokineticist\(Yu et al\.,[2019](https://arxiv.org/html/2606.31085#bib.bib45)\): Analyzes absorption, distribution, metabolism and excretion to identify exposure\-altering interactions\. - •Pharmacologist\(Niu et al\.,[2019](https://arxiv.org/html/2606.31085#bib.bib19)\): Reasons about pharmacodynamic properties and mechanism\-level biological effects\. For subsequent iterations \(t\>1t\>1\), the framework moves beyond this fixed configuration\. Instead of reusing the same roles, the planner analyzes the original query together with the conclusion agent’s feedback from iterationt−1t\-1to instantiate a new set of experts\. Concretely, the planner agent identifies unresolved gaps or conflicts in the last iteration, and then specifies expertise profiles via targeted role instructions \(see Appendix[A\.8](https://arxiv.org/html/2606.31085#A1.SS8)\)\. This adaptive instantiation allows DDIAgents to revise its reasoning trajectory to match the case\-specific difficulty, rather than applying a fixed analytic pattern across all drug pairs\. Figure 3\.Comparison between DDIAgents framework and previous multi\-agent methods\. ### 4\.4\.Dynamic Context Flow To support specialized and rigorous expert analyses, we introduce a dynamic context flow that routes knowledge sources to experts in an expertise\-aware and mechanism\-dependent manner\. Concretely, we organize domain knowledge into a set of heterogeneous knowledge sources, each capturing a complementary view: - •Molecular Structural Knowledge: We incorporate the intrinsic chemical topology of drugs\. Specifically, we utilize SMILES strings to represent the atom\-bond connectivity and functional groups of drug molecules, which are fundamental to understanding the steric and electronic basis of interactions\. - •Biomedical Relational Knowledge: We leverage the systemic connectivity of drugs within the biological network\. This encompasses known DDI training data, drug\-target associations and drug side\-effect profiles\. This view places the drug within the broader context of the biomedical system\. - •Semantic Contextual Knowledge: We utilize natural language descriptions to capture high\-level pharmacological concepts\. This includes concise summaries of drug mechanisms and interaction types generated by LLMs\(Achiam et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib3)\), providing a semantic layer that complements raw structural data\. Given these knowledge sources, the dynamic context flow controls how they are assigned to expert agents\. Specifically, the planner agent assigns each expert agent a subset of knowledge sources that aligns with the agent’s expertise and the current reasoning demands\. As a result, agents may receive different combinations of evidence within the same iteration\. For instance, a chemistry\-oriented expert may be assigned primarily structural evidence, while a biology\-oriented expert may focus on relational evidence, and a clinical expert may rely more on semantic descriptions and safety\-oriented relational cues\. This allocation is updated across iterations using the intermediate feedback from the conclusion agent, enabling the system to shift attention as the hypothesized mechanism sharpens or new uncertainties emerge\. By turning knowledge allocation into a targeted, expertise\-aware pipeline, dynamic context flow mitigates two common failure modes in DDI reasoning\. Firstly, it reduces information dilution\(Shi et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib29)\), where mechanism\-critical evidence is buried in irrelevant context\. Secondly, it alleviates cross\-domain distraction\(Shen et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib28)\), where experts are forced to process outside their functional role\. This design prepares for the next stage of the framework: since each expert receives a role\-aligned subset of knowledge sources, the subsequent analysis step can construct a tailored evidence context per expert and elicit deeper, more focused reasoning\. ### 4\.5\.Analysis and Decision Making At each iterationtt, before expert agents begin reasoning, the system constructs a tailored knowledge context for them\. This context is formed by retrieving and filtering the most pertinent evidence from the knowledge sources assigned in the current iteration \(see Appendix[A\.3](https://arxiv.org/html/2606.31085#A1.SS3)\)\. The goal is to provide a focused but sufficient knowledge input, which is rich enough to support a mechanism\-grounded analysis, while avoiding unnecessary information that can obscure critical cues\. Given the query and its curated context, each expert produces a DDI prediction and a structured rationale grounded in the provided evidence, reflecting its domain perspective\. These expert reports are then passed to a conclusion agent, which synthesizes the set of analyses into a single decision\. Rather than treating expert outputs as independent opinions, the conclusion agent aggregates them into a coherent explanation that resolves cross\-expert dependencies\. The conclusion agent has two types of possible outputs\. If the evidence and expert analyses are sufficient, it finalizes the DDI prediction along with a consolidated reasoning trace\. Otherwise, it produces iteration feedback that explicitly identifies what remains uncertain and recommends how the next iteration should adjust—both in terms of which new experts to instantiate and which knowledge sources to prioritize\. This feedback closes the loop, ensuring that subsequent iterations are guided by concrete suggestions rather than repeating the same reasoning pattern\. ### 4\.6\.Comparison with Existing Works Table[1](https://arxiv.org/html/2606.31085#S4.T1)reveals a key limitation of existing DDI prediction methods: they typically pre\-commit to a narrow knowledge source scope\. Feature\-based methods mainly depend on molecular structure, graph\-based methods incorporate biomedical networks but usually exclude unstructured descriptions, and LLM\-based approaches usually depend on text alone\. As a result, when the decisive cue for a drug pair lies outside the model’s preferred modality, predictions can fail due to missing evidence\. In contrast, DDIAgents simultaneously considers all of these knowledge sources, and routes them to experts in a mechanism\-aware, instance\-adaptive manner\. Figure[3](https://arxiv.org/html/2606.31085#S4.F3)further contrasts DDIAgents with representative multi\-agent frameworks for scientific tasks\. Unlike existing systems that rely on static execution, DDIAgents adopts an adaptive and iterative reasoning framework\. Rather than maintaining fixed agent roles, DDIAgents leverages specialized agent instantiation to generate specialized experts tailored to specific sub\-problems as the task evolves\. The most significant distinction lies in the context flow, with different systems applying different mapping patterns: - •1\-to\-1 \(Isolated\): Virtual Lab\(Swanson et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib32)\)assigns specific, pre\-defined knowledge sources to specific agents in a fixed, parallel mapping\. - •1\-to\-N \(Monolithic\): SciAgents\(Ghafarollahi and Buehler,[2025](https://arxiv.org/html/2606.31085#bib.bib10)\)relies on a single, monolithic knowledge graph distributed across multiple agents\. - •N\-to\-N \(Broadcast\): Coscientist\(Boiko et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib4)\)and MDAgents\(Kim et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib14)\)distribute all available information to every agent uniformly\. - •N\(t\)\-to\-N\(t\) \(Dynamic\): DDIAgents treats the relation between knowledge sources and agents as variables that evolve over time\. It adaptively maps pertinent, domain\-specific data to the relevant experts based on the current reasoning state\. Table 1\.Knowledge source utilization comparison\. ## 5\.Experiments Table 2\.General performance comparison between different DDI prediction methods\. Results are reported as mean±\\pmstd over 5 independent runs\. The best and second\-best results are highlighted in bold and underline, respectively\.### 5\.1\.Experimental Setup Datasets\.Following\(Yu et al\.,[2021](https://arxiv.org/html/2606.31085#bib.bib46); Zhang et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib47)\), we conduct experiments on two widely used public DDI prediction datasets: DrugBank\(Wishart et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib40)\), a multiclass DDI prediction dataset where each drug pair is associated with one of 86 possible interaction types; TWOSIDES\(Tatonetti et al\.,[2012](https://arxiv.org/html/2606.31085#bib.bib34)\), a multilabel DDI prediction dataset that records 209 possible side effects\. Experimental Setting\.To incorporate realistic factors in evaluation, we partition the drug set𝒟\\mathcal\{D\}into known drugs𝒟known\\mathcal\{D\}\_\{\\textnormal\{known\}\}and new drugs𝒟new\\mathcal\{D\}\_\{\\textnormal\{new\}\}based on approval time\. We consider three prediction tasks: S0 \(known–known\), S1 \(known–new\), and S2 \(new–new\)\. In this work, we focus on the more realistic and challenging S1/S2 tasks, and report S0 results in Appendix[B\.1](https://arxiv.org/html/2606.31085#A2.SS1)\. Evaluation Metrics\.For the DrugBank dataset that features a single interaction type per drug pair, we employed Accuracy and F1 Score\. The TWOSIDES dataset often includes multiple interaction types per drug pair; thus, we framed the analysis as a recommendation task, using Hit@5 and NDCG@5 for evaluation\. This evaluation method differs from most existing works that use TWOSIDES for binary classification \(results shown in Appendix[B\.2](https://arxiv.org/html/2606.31085#A2.SS2)\)\. We argue that binary classification tasks are often redundant and include uninformative negative samples\. Our proposed ranking metrics accurately reflect realistic scenarios where a drug pair may exhibit multiple interactions, and the objective is to identify the most probable risks\. Implementation Details\.We use Qwen2\.5 series\(Team,[2024](https://arxiv.org/html/2606.31085#bib.bib36)\)as the backbone LLM for DDIAgents and other types of agent\-based baseline methods in quantitative experiments\. We set the maximum iteration roundT=3T=3and agent numberm=3m=3\. For DrugBank, each DDI question takes 12\.83 seconds on average, and for TWOSIDES it takes 15\.66 seconds—both within an acceptable range\. More implementation details are shown in Appendix[A](https://arxiv.org/html/2606.31085#A1)\. Our code and data are available at[https://github\.com/zgs0314/DDIAgents](https://github.com/zgs0314/DDIAgents)\. Baseline Methods\.In this work, we compare our proposed DDIAgents framework with four types of baseline methods: \(1\)Feature\-based methods: MLP\(Rogers and Hahn,[2010](https://arxiv.org/html/2606.31085#bib.bib26)\); \(2\)Graph\-based methods: MSTE\(Yao et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib44)\), Decagon\(Zitnik et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib49)\), EmerGNN\(Zhang et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib47)\)and TIGER\(Su et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib31)\); \(3\)LLM\-based methods: Single LLM\(Hong et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib13)\), TextDDI\(Zhu et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib48)\), DDI\-GPT\(Xu et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib42)\), CBR\-DDI\(Liu et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib16)\), K\-Path\(Abdullahi et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib2)\); and \(4\)Agent\-based methods: Reflexion\(Shinn et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib30)\), Debate\(Du et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib7)\), AgentVerse\(Chen et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib5)\), MDAgents\(Kim et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib14)\)\. ### 5\.2\.General Performance Comparison Table[2](https://arxiv.org/html/2606.31085#S5.T2)summarizes the overall comparison across S1 and S2 tasks on DrugBank and TWOSIDES\. We can see that our proposed DDIAgents framework consistently outperforms all baseline methods\. Compared with the best\-performing baseline, DDIAgents improves F1 by 13\.77% in S2 tasks on DrugBank, and increases NDCG@5 by 7\.15% in S2 tasks on TWOSIDES\. These gains validate the core design of DDIAgents: orchestrating multiple expert agents and routing specialized knowledge sources to each expert to enable complementary and targeted reasoning\. Among baselines, feature\-based and graph\-based models show comparatively weak performance\. A key reason is that the evaluation protocol adopts an approval\-time\-based drug split to better reflect real\-world deployment, which substantially increases task difficulty\. Under this more realistic setting, methods that rely on molecular features or limited graph structure cannot effectively leverage heterogeneous evidence, and thus struggle to capture the diverse mechanisms underlying DDIs\. The performance of LLM\-based methods also remains limited, primarily because they utilize only the textual descriptions, which fails to comprehensively model the multi\-faceted evidence required for robust DDI prediction\. In particular, the Single LLM baseline performs poorly, suggesting that memorization or knowledge leakage in current LLMs is not the primary driver of strong performance in this task\. In contrast, agent\-based methods generally achieve the best performance among different types of methods\. This is because their strong capability in handling heterogeneous knowledge sources and the shared high\-recall candidate retriever provides a reasonable starting point for the prediction \(its performance is shown in Appendix[B\.3](https://arxiv.org/html/2606.31085#A2.SS3)\)\. Notably, methods that incorporate multiple expert agents \(e\.g\., MDAgents and AgentVerse\) consistently outperform single\-agent methods \(e\.g\., Reflexion\)\. This comparison highlights the critical need for integrating specialized analyses from multiple complementary perspectives\. Figure 4\.A prediction case of DDIAgents\. Bold red text indicates incorrect answers and bold green text indicates correct answers\. ### 5\.3\.Ablation Study To validate the effectiveness of the proposed components in DDIAgents, we compare it with the following variants: \(a\) w/o DynExp, which utilizes three predefined expert agents across iterations; \(b\) w/o DynKnow, which provides all of the knowledge sources instead of using dynamic context flow; \(c\) w/o Iter, which only uses a single iteration to obtain the DDI prediction\. From results in Table[3](https://arxiv.org/html/2606.31085#S5.T3), we can see that removing any proposed component results in a performance drop, validating the necessity of the designs in DDIAgents\. Specifically, the largest performance degradation is in the ”w/o DynKnow” variant, highlighting the critical importance of the dynamic context flow\. Furthermore, we observe that the iterative analysis component is more crucial for the TWOSIDES dataset\. We hypothesize this is because the DDI prediction task on TWOSIDES requires selecting multiple DDI types from a set of candidates, leading to a higher frequency of inter\-expert disagreement and, consequently, making the iterative refinement process essential for consensus and accurate prediction\. Table 3\.Comparison of different variants of DDIAgents ### 5\.4\.Case Study Figure[4](https://arxiv.org/html/2606.31085#S5.F4)shows an exemplar case of DDIAgents on a DDI prediction problem on DrugBank dataset using large\-scale frontier model \(GPT\-4o\)\. The case study details a two\-iteration process to predict the DDI type between Pirfenidone and Teriflunomide, ultimately identifying the correct answer\. In the first iteration, the DDIAgents framework utilizes predefined pharmacist, pharmacokineticist, and pharmacologist as expert agents to analyze the question, but they failed to reach a consensus\. In this case, the conclusion agent identifies conflicting evidence and generates targeted iteration guidance\. Its feedback calls for instantiating toxicology and regulatory experts, identifies regulatory labeling as a key source for dynamic context flow, and prioritizes liver toxicity as the main focus for subsequent expert analysis\. Acting on this directive, expert agent instantiation in the second iteration gathers toxicology specialist, regulatory affairs expert, and liver injury specialist as updated experts better suited to the problem\. The dynamic context flow then prioritizes official drug labeling and mechanistic toxicology evidence to fill the identified gaps\. With these refined inputs, expert analysis converges on a unified understanding of the mechanisms underlying hepatocellular injury\. Finally, the decision\-making stage confirms the prediction of “increased risk or severity of adverse effects”, supported by an explanation of synergistic toxic burden and the clinical need to monitor liver function tests\. To verify the reliability, we performed a secondary search of relevant literature, confirming that output analysis is well\-supported by established clinical evidence\(Macías\-Barragán et al\.,[2010](https://arxiv.org/html/2606.31085#bib.bib18)\)\. More DDI prediction cases using Qwen 2\.5 7B are shown in Appendix[B\.6](https://arxiv.org/html/2606.31085#A2.SS6)\. ### 5\.5\.Performance across DDI Type Frequencies In this section, we evaluate the robustness of DDIAgents framework across various DDI types using the DrugBank dataset\. Representative methods from different categories are selected for comparison, including MLP, TIGER, DDI\-GPT, Reflexion, MDAgents and DDIAgents\. Given the inherent class imbalance, we employ a frequency\-based ranking to categorize DDI types into five quintile bins based on frequency\. The “0%–20%” bin contains the most frequent DDI types, while the “80%–100%” bin represents the long\-tail DDI types\. Figure[5](https://arxiv.org/html/2606.31085#S5.F5)illustrates the average prediction accuracy across DDI type bins on S1 tasks\. The results demonstrate that DDIAgents consistently outperforms all baseline methods across every frequency interval\. Notably, the performance advantage of DDIAgents becomes increasingly significant on long\-tail DDI types\. This trend suggests that while traditional models depend on high\-frequency patterns, DDIAgents better handles rare, data\-sparse interactions through collaborative agents and dynamic context flow\. Figure 5\.DDI prediction performance across DDI type frequency bins on DrugBank S1 tasks\. ### 5\.6\.Performance across Different LLM Models To rigorously validate the generalizability and inherent robustness, we conducted an extensive evaluation on DDIAgents using various LLMs as agents and compared them with the strongest baseline, MDAgents\. Our initial set of experiments focused on assessing the influence of model scale within a unified family, utilizing the Qwen 2\.5 series with sizes ranging from 0\.5B to 72B parameters\. The results in Figure[6](https://arxiv.org/html/2606.31085#S5.F6)show that DDIAgents outperforms MDAgents at most tested model sizes, and that both frameworks improve steadily as model scale increases\. Notably, the smaller models \(0\.5B and 1\.5B\) were unable to achieve satisfactory prediction performance for both methods, underscoring the requirement for a sufficiently capable LLM base to execute the complex tasks within the multi\-agent system\. Furthermore, DDIAgents achieves higher performance as model size increased, which suggests a greater capacity to stimulate the emergent capabilities of large\-scale LLMs\. \(a\)S1 tasks \(b\)S2 tasks Figure 6\.The performance of DDIAgents and MDAgents with different LLM model sizes on the DrugBank dataset\.To evaluate the cross\-architecture generalizability, we compared the performance of DDIAgents and MDAgents across LLMs of comparable scales, including Qwen 2\.5 7B, Llama 3\.1 8B\(Dubey et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib9)\), Gemma 2 9B\(Team et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib35)\)and ChatGLM 3 6B\(Du et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib8)\)\. The results in Table[4](https://arxiv.org/html/2606.31085#S5.T4)indicate that DDIAgents consistently outperforms MDAgents, demonstrating superior robustness and reasoning capabilities\. Notably, while both frameworks perform well with Qwen 2\.5, Llama 3\.1 and Gemma 2, DDIAgents maintains a substantial lead in F1 scores, which indicates its enhanced capacity for analyzing long\-tail DDI types\. The relatively low performance of ChatGLM 3 may stem from its training that is less optimized for complex biomedical reasoning\. Table 4\.The performance of DDIAgents and MDAgents using LLM models with similar sizes on DrugBank dataset\. ### 5\.7\.Comparison on Generated Contents To evaluate the quality of the generated explanations, we conducted a comparative analysis between DDIAgents and MDAgents\. We employed a state\-of\-the\-art LLM \(GPT\-4o\) as a judge to evaluate their responses on S2 tasks across four domain\-specific dimensions\(Guo et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib11)\): - •Thoroughness: how comprehensively the system addresses the multi\-faceted nature of DDIs; - •Diversity: the breadth of explored biological mechanisms; - •Rationality: whether the answer provides reasonable analysis; - •Overall: a holistic judgment of which system provides a more useful and trustworthy reference for drug interaction analysis\. As shown in Table[5](https://arxiv.org/html/2606.31085#S5.T5), DDIAgents consistently outperforms MDAgents across all dimensions\. The expert agent instantiation phase enhances pharmacological thoroughness and mechanistic diversity by integrating specialized domain expertise into the reasoning process\. Simultaneously, the dynamic context flow and iterative feedback loops refine agent outputs, significantly boosting clinical rationality\. By replacing static discussions with active collaboration, DDIAgents captures complex biochemical interactions more accurately, providing more reliable and comprehensive DDI explanations than generic multi\-agent frameworks\. Table 5\.Win rates \(%\) for generated contents of DDIAgents vs\. MDAgents across four dimensions on S2 tasks\. ## 6\.Conclusion In this work, we presented DDIAgents, a mechanism\-conditioned multi\-agent framework for DDI prediction\. Rather than treating DDI analysis as static feature fusion or historical case reuse, DDIAgents frames the task as knowledge orchestration: for each drug pair, dynamic context flow routes heterogeneous biomedical evidence to specialized agents according to mechanism\-specific reasoning needs\. Extensive experiments demonstrate that DDIAgents consistently outperforms state\-of\-the\-art baselines\. Furthermore, DDIAgents provides interpretable agent\-level mechanistic insights into predicted interactions, offering a useful direction for adaptive and evidence\-grounded AI4Science reasoning\. Despite these advancements, the current implementation relies on a fixed agent collaboration scheme, which may restrict the system’s adaptability\. Future work will develop a more flexible collaboration scheme with multiple interaction patterns based on the specific context\. Additionally, we plan to incorporate more critical knowledge sources to expand the dynamic context flow and further enhance predictive accuracy and robustness\. ## 7\.Limitations and Ethical Considerations Limitations\.The current DDIAgents adopts a fixed agent collaboration scheme with predefined interaction protocols\. While this simplifies orchestration, it may reduce adaptability when different DDI queries would benefit from alternative coordination patterns\. In addition, DDIAgents currently relies on a limited set of knowledge\-source types in the dynamic context flow, which may omit clinically decisive evidence\. Ethical considerations\.Our experiments use publicly available drug resources rather than patient\-identifiable records\. Nevertheless, any clinical deployment should ensure proper consent, governance and strong security for data access and storage\. DDIAgents is intended for decision support but not final decisions\. The outputs should be verified with reliable evidence to mitigate harms from hallucinations or misuse\. ## GenAI Disclosure This work uses Generative AI\. The LLM\-based baselines and agent\-based methods rely on large language models to generate predictions and explanations for DDI queries\. The case studies include representative model\-generated outputs to illustrate the agent workflows\. All such content is produced at inference time for research evaluation and demonstration, and may contain inaccuracies as discussed in the Limitations and Ethical Considerations section\. ## Acknowledgment Q\. Yao is supported Beijing Natural Science Foundation \(No\.4242039\) and Beijing Science and Technology Program \(No\.Z251100008125003\)\. ## References - \(1\) - Abdullahi et al\.\(2025\)Tassallah Abdullahi et al\.2025\.K\-paths: reasoning over graph paths for drug repurposing and drug interaction prediction\.*arXiv preprint arXiv:2502\.13344*\(2025\)\. - Achiam et al\.\(2023\)Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al\.2023\.GPT\-4 technical report\.*arXiv preprint arXiv:2303\.08774*\(2023\)\. - Boiko et al\.\(2023\)Daniil A Boiko, Robert MacKnight, Ben Kline, and Gabe Gomes\. 2023\.Autonomous chemical research with large language models\.*Nature*624, 7992 \(2023\), 570–578\. - Chen et al\.\(2023\)Weize Chen, Yusheng Su, Jingwei Zuo, Cheng Yang, Chenfei Yuan, Chi\-Min Chan, Heyang Yu, Yaxi Lu, Yi\-Hsin Hung, Chen Qian, et al\.2023\.Agentverse: facilitating multi\-agent collaboration and exploring emergent behaviors\. In*International Conference on Learning Representations*\. - DiMasi et al\.\(2016\)Joseph A DiMasi, Henry G Grabowski, and Ronald W Hansen\. 2016\.Innovation in the pharmaceutical industry: new estimates of R&D costs\.*Journal of Health Economics*47 \(2016\), 20–33\. - Du et al\.\(2023\)Yilun Du, Shuang Li, Antonio Torralba, Joshua B Tenenbaum, and Igor Mordatch\. 2023\.Improving factuality and reasoning in language models through multiagent debate\. In*International Conference on Machine Learning*\. - Du et al\.\(2022\)Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang\. 2022\.GLM: general language model pretraining with autoregressive blank infilling\. In*Association for Computational Linguistics*\. 320–335\. - Dubey et al\.\(2024\)Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al\-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al\.2024\.The Llama 3 herd of models\.*arXiv preprint arXiv:2407\.21783*\(2024\)\. - Ghafarollahi and Buehler \(2025\)Alireza Ghafarollahi and Markus J Buehler\. 2025\.SciAgents: automating scientific discovery through bioinspired multi\-agent intelligent graph reasoning\.*Advanced Materials*37, 22 \(2025\), 2413523\. - Guo et al\.\(2024\)Zirui Guo, Lianghao Xia, Yanhua Yu, Tu Ao, and Chao Huang\. 2024\.LightRAG: simple and fast retrieval\-augmented generation\.*arXiv preprint arXiv:2410\.05779*\(2024\)\. - Han et al\.\(2022\)Ke Han, Peigang Cao, Yu Wang, Fang Xie, Jiaqi Ma, Mengyao Yu, Jianchun Wang, Yaoqun Xu, Yu Zhang, and Jie Wan\. 2022\.A review of approaches for predicting drug–drug interactions based on machine learning\.*Frontiers in Pharmacology*12 \(2022\), 814858\. - Hong et al\.\(2023\)Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, et al\.2023\.MetaGPT: meta programming for a multi\-agent collaborative framework\. In*International Conference on Learning Representations*\. - Kim et al\.\(2024\)Yubin Kim, Chanwoo Park, Hyewon Jeong, Yik S Chan, Xuhai Xu, Daniel McDuff, Hyeonhoon Lee, Marzyeh Ghassemi, Cynthia Breazeal, and Hae W Park\. 2024\.MDagents: an adaptive collaboration of LLMs for medical decision\-making\.*Advances in Neural Information Processing Systems*37 \(2024\), 79410–79452\. - Lin et al\.\(2023\)Xuan Lin, Lichang Dai, Yafang Zhou, Zu\-Guo Yu, Wen Zhang, Jian\-Yu Shi, Dong\-Sheng Cao, Li Zeng, Haowen Chen, Bosheng Song, et al\.2023\.Comprehensive evaluation of deep and graph learning on drug–drug interactions prediction\.*Briefings in Bioinformatics*24, 4 \(2023\), bbad235\. - Liu et al\.\(2025\)Guangyi Liu, Yongqi Zhang, Xunyuan Liu, and Quanming Yao\. 2025\.Case\-based reasoning enhances the predictive power of LLMs in drug\-drug interaction\.*arXiv preprint arXiv:2505\.23034*\(2025\)\. - Liu et al\.\(2022\)Zun Liu et al\.2022\.Predict multi\-type drug–drug interactions in cold start scenario\.*BMC Bioinformatics*\(2022\), 75\. - Macías\-Barragán et al\.\(2010\)José Macías\-Barragán, Ana Sandoval\-Rodríguez, Jose Navarro\-Partida, and Juan Armendáriz\-Borunda\. 2010\.The multifaceted role of pirfenidone and its novel targets\.*Fibrogenesis & Tissue Repair*3, 1 \(2010\), 16\. - Niu et al\.\(2019\)Jin Niu, Robert M Straubinger, and Donald E Mager\. 2019\.Pharmacodynamic drug–drug interactions\.*Clinical Pharmacology & Therapeutics*105, 6 \(2019\), 1395–1406\. - Nyamabo et al\.\(2021\)Arnold K Nyamabo, Hui Yu, and Jian\-Yu Shi\. 2021\.SSI–DDI: substructure–substructure interactions for drug–drug interaction prediction\.*Briefings in Bioinformatics*22, 6 \(2021\), bbab133\. - Palleria et al\.\(2013\)Caterina Palleria, Antonello Di Paolo, Chiara Giofrè, Chiara Caglioti, Giacomo Leuzzi, Antonio Siniscalchi, Giovambattista De Sarro, and Luca Gallelli\. 2013\.Pharmacokinetic drug–drug interaction and their implication in clinical management\.*Journal of Research in Medical Sciences*18, 7 \(2013\), 601\. - Prasad et al\.\(2017\)Vinay Prasad, Kevin De Jesús, and Sham Mailankody\. 2017\.The high price of anticancer drugs: origins, implications, barriers, solutions\.*Nature Reviews Clinical Oncology*14, 6 \(2017\), 381–390\. - Qiu et al\.\(2021\)Yang Qiu, Yang Zhang, Yifan Deng, Shichao Liu, and Wen Zhang\. 2021\.A comprehensive review of computational methods for drug\-drug interaction detection\.*IEEE/ACM Transactions on Computational Biology and Bioinformatics*19, 4 \(2021\), 1968–1985\. - Raveendran et al\.\(2025\)Kithusshand Raveendran, Deshan Sumanathilaka, Kanagasabai Thiruthanigesan, Pavinithan Retnakumar, and Yathukulan Sivapiragasam\. 2025\.PharmaMap\-LLM: Fine\-Tuning Large Language Models for Drug\-Drug Interaction \(DDI\) Analysis\. In*International Conference on Advancements in Computing \(ICAC\)*\. 1–6\. - Roberts and Gibbs \(2018\)Arthur G Roberts and Morgan E Gibbs\. 2018\.Mechanisms and the clinical relevance of complex drug–drug interactions\.*Clinical Pharmacology: Advances and Applications*\(2018\), 123–134\. - Rogers and Hahn \(2010\)David Rogers and Mathew Hahn\. 2010\.Extended\-connectivity fingerprints\.*Journal of Chemical Information and Modeling*50 \(2010\), 742–754\. - Ryu et al\.\(2018\)Jae Yong Ryu et al\.2018\.Deep learning improves prediction of drug–drug and drug–food interactions\.*Proceedings of the National Academy of Sciences*115 \(2018\), E4304–E4311\. - Shen et al\.\(2024\)Leyang Shen, Gongwei Chen, Rui Shao, Weili Guan, and Liqiang Nie\. 2024\.MoME: mixture of multimodal experts for generalist multimodal large language models\.*Advances in Neural Information Processing Systems*37 \(2024\), 42048–42070\. - Shi et al\.\(2023\)Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H Chi, Nathanael Schärli, and Denny Zhou\. 2023\.Large language models can be easily distracted by irrelevant context\. In*International Conference on Machine Learning*\. 31210–31227\. - Shinn et al\.\(2023\)Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao\. 2023\.Reflexion: language agents with verbal reinforcement learning\.*Advances in Neural Information Processing Systems*36 \(2023\), 8634–8652\. - Su et al\.\(2024\)Xiaorui Su et al\.2024\.Dual\-channel learning framework for drug\-drug interaction prediction via relation\-aware heterogeneous graph transformer\. In*AAAI Conference on Artificial Intelligence*\. 249–256\. - Swanson et al\.\(2025\)Kyle Swanson, Wesley Wu, Nash L Bulaong, John E Pak, and James Zou\. 2025\.The virtual lab of AI agents designs new SARS\-CoV\-2 nanobodies\.*Nature*\(2025\), 1–3\. - Tang et al\.\(2024\)Xiangru Tang, Anni Zou, Zhuosheng Zhang, Ziming Li, Yilun Zhao, Xingyao Zhang, Arman Cohan, and Mark Gerstein\. 2024\.Medagents: large language models as collaborators for zero\-shot medical reasoning\. In*Findings of the Association for Computational Linguistics*\. 599–621\. - Tatonetti et al\.\(2012\)Nicholas P Tatonetti et al\.2012\.Data\-driven prediction of drug effects and interactions\.*Science Translational Medicine*\(2012\)\. - Team et al\.\(2024\)Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al\.2024\.Gemma 2: improving open language models at a practical size\.*arXiv preprint arXiv:2408\.00118*\(2024\)\. - Team \(2024\)Qwen Team\. 2024\.Qwen2\.5: a party of foundation models\.[https://qwenlm\.github\.io/blog/qwen2\.5/](https://qwenlm.github.io/blog/qwen2.5/) - Wang et al\.\(2026\)Yaqing Wang, Zhenlin Luo, Peiyao Zhao, Yunfeng Cai, and Quanming Yao\. 2026\.Beyond scaling: A survey on data\-efficient agentic learning\. In*International Joint Conference on Artificial Intelligence*\. - Wang et al\.\(2020\)Yaqing Wang, Quanming Yao, James T\. Kwok, and Lionel M\. Ni\. 2020\.Generalizing from a few examples: A survey on few\-shot learning\.*Comput\. Surveys*53, 3, Article 63 \(2020\), 34 pages\.[https://doi\.org/10\.1145/3386252](https://doi.org/10.1145/3386252) - Weideman et al\.\(1999\)Rick A Weideman, Ira H Bernstein, and W Paul McKinney\. 1999\.Pharmacist recognition of potential drug interactions\.*American Journal of Health\-System Pharmacy*56, 15 \(1999\), 1524–1529\. - Wishart et al\.\(2018\)David S Wishart et al\.2018\.DrugBank 5\.0: a major update to the DrugBank database for 2018\.*Nucleic Acids Research*46 \(2018\), 1074–1082\. - Xie et al\.\(2025\)Lingxuan Xie, Tengfei Ma, Yuqin He, Yiping Liu, and Xiangxiang Zeng\. 2025\.Predicting Drug–Drug Interaction via Dual\-Drug Visual Representation\.*Journal of Chemical Information and Modeling*65, 19 \(2025\), 9999–10010\. - Xu et al\.\(2024\)Chengqi Xu et al\.2024\.DDI\-GPT: explainable prediction of drug\-drug interactions using large language models enhanced with knowledge graphs\.*bioRxiv*\(2024\), 2024–12\. - Yang et al\.\(2022\)Ziduo Yang, Weihe Zhong, Qiujie Lv, and Calvin Yu\-Chian Chen\. 2022\.Learning size\-adaptive molecular substructures for explainable drug–drug interaction prediction by substructure\-aware graph neural network\.*Chemical Science*13, 29 \(2022\), 8693–8703\. - Yao et al\.\(2022\)Junfeng Yao et al\.2022\.Effective knowledge graph embeddings based on multidirectional semantics relations for polypharmacy side effects prediction\.*Bioinformatics*38 \(2022\), 2315–2322\. - Yu et al\.\(2019\)Jingjing Yu, Ichiko D Petrie, René H Levy, and Isabelle Ragueneau\-Majlessi\. 2019\.Mechanisms and clinical significance of pharmacokinetic\-based drug\-drug interactions with drugs approved by the US Food and Drug Administration in 2017\.*Drug Metabolism and Disposition*47, 2 \(2019\), 135–144\. - Yu et al\.\(2021\)Yue Yu et al\.2021\.SumGNN: multi\-typed drug interaction prediction via efficient knowledge graph summarization\.*Bioinformatics*37 \(2021\), 2988–2995\. - Zhang et al\.\(2023\)Yongqi Zhang et al\.2023\.Emerging drug interaction prediction enabled by a flow\-based graph neural network with biomedical network\.*Nature Computational Science*3 \(2023\), 1023–1033\. - Zhu et al\.\(2023\)Fangqi Zhu et al\.2023\.Learning to describe for predicting zero\-shot drug\-drug interactions\. In*Conference on Empirical Methods in Natural Language Processing*\. - Zitnik et al\.\(2018\)Marinka Zitnik et al\.2018\.Modeling polypharmacy side effects with graph convolutional networks\.*Bioinformatics*34 \(2018\), 457–466\. ## Appendix ASupplementary Information ### A\.1\.Description of DDI Examples in Motivation Part In Table[6](https://arxiv.org/html/2606.31085#A1.T6), we provide textual descriptions of diverse DDI mechanisms illustrated in Figure[1](https://arxiv.org/html/2606.31085#S2.F1)\. Here we provide more comprehensive explanations on DDI mechanisms and details of reference knowledge used in exemplar cases\. Table 6\.Three DDI examples with different mechanisms\. ### A\.2\.The Classification of Knowledge Sources As summarized in Table[7](https://arxiv.org/html/2606.31085#A1.T7), the DDI prediction is enhanced by introducing several types of knowledge sources\. For both DrugBank and TWOSIDES, this includes drug SMILES, drug\-target interactions, and drug\-side effect information\. A critical component of the knowledge source is the pharmacological categorization of known DDIs\. Specifically, DDIs in DrugBank are divided into six distinct classes based on their pharmacokinetic and pharmacodynamic mechanisms, while DDIs in TWOSIDES are categorized into nine medical system\-based classes\. Table 7\.Knowledge source categorization for different datasets\. ### A\.3\.Implementation Details of Knowledge Retrieval by Expert Agents Before expert agent analysis, the knowledge context is obtained through a retrieval process as follows: - •A textual encoder transforms the DDI question and all knowledge entries within the assigned sources into embeddings\. - •Relevance scores are determined via cosine similarity between the query embedding and each entry embedding\. - •We perform a top\-k retrieval operation independently for each type of knowledge source assigned to the agent\. This prevents a single dominant source from overshadowing other relevant but less frequent data types\. The final context is the union of these retrieved subsets\. ### A\.4\.Algorithm of DDIAgents The algorithm of DDIAgents is shown in Algorithm[1](https://arxiv.org/html/2606.31085#alg1), which includes the iteration of three critical stages: Expert agent instantiation, Dynamic context flow, Analysis and Decision making\. Algorithm 1DDIAgents for DDI Prediction through Multi\-Agent System1:DDI Question, Knowledge sources and Knowledge textual encoder 2: t←1t\\leftarrow 1 3:whileTruedo 4:// Stage \(a\): Expert agent instantiation 5:if t=1t=1then 6:Instantiate expert agents as predefined domain experts \(Pharmacist, Pharmacokineticist and Pharmacologist\) 7:else 8:Expert agent instantiation based on feedback of conclusion agent in t−1t\-1iteration 9:endif 10:// Stage \(b\): Dynamic context flow 11:foreach expert agentdo 12:Evaluate knowledge source assigned for the expert agent 13:endfor 14:// Stage \(c\): Analysis and decision making 15:Identify allocated data source types from dynamic context flow 16:For each expert, retrieve top\- kkknowledge entries based on semantic similarity through knowledge textual encoder 17:foreach expert agentdo 18:Generate specific expert analysis 19:endfor 20:Synthesize findings from all agents 21:if 𝒪Ct\\mathcal\{O\}\_\{C\}^\{t\}requires refinementthen 22:Generate iteration guidance 23: t←t\+1t\\leftarrow t\+1 24:else 25:break 26:endif 27:endwhile 28:returnfinal answer and explanation ### A\.5\.Statistics of Datasets We present the general statistics of datasets in experiments in Table[8](https://arxiv.org/html/2606.31085#A1.T8)\. Here𝒟\\mathcal\{D\}represents the set of drugs,ℛ\\mathcal\{R\}denotes the set of interactions and𝒩\\mathcal\{N\}refers to the set of DDIs\. Table 8\.Statistics of DDI prediction datasets in experiments\. ### A\.6\.Evaluation Metrics According to the evaluation metrics mentioned in Section[5\.1](https://arxiv.org/html/2606.31085#S5.SS1), the evaluation metrics include F1\-Score, accuracy for DrugBank: - •F1\-Score \(Macro\)=1‖𝒫D‖∑p∈𝒫D2Pp⋅RpPp\+Rp=\\frac\{1\}\{\|\|\\mathcal\{P\}\_\{D\}\|\|\}\\sum\_\{p\\in\\mathcal\{P\}\_\{D\}\}\\frac\{2P\_\{p\}\\cdot R\_\{p\}\}\{P\_\{p\}\+R\_\{p\}\}, wherePpP\_\{p\}andRpR\_\{p\}are the precision and recall for the interaction typepp, respectively\. - •Accuracy: the proportion of correctly predicted interaction types relative to the ground\-truth interaction types\. For TWOSIDES dataset, we use Hit@5 and NDCG@5 as evaluation metrics\. Denoteℐ1:5\\mathcal\{I\}\_\{1:5\}as the recommended interaction for the given query drug pairs,𝒯\\mathcal\{T\}as the ground\-truth interaction list and𝕀\\mathbb\{I\}as the indicator function\. These metrics can be represented as follows: - •Hit@5=𝕀\(\|ℐ1:5∩𝒯\|\)=\\mathbb\{I\}\(\|\\mathcal\{I\}\_\{1:5\}\\cap\\mathcal\{T\}\|\)\. - •NDCG@5=∑i=15𝕀\(ℐi∈T\)/log2\(i\+1\)∑i=1min\(\|T\|,5\)1/log2\(i\+1\)=\\frac\{\\sum\_\{i=1\}^\{5\}\\mathbb\{I\}\(\\mathcal\{I\}\_\{i\}\\in T\)/\\log\_\{2\}\(i\+1\)\}\{\\sum\_\{i=1\}^\{\\min\(\|T\|,5\)\}1/\\log\_\{2\}\(i\+1\)\}\. ### A\.7\.Baseline Methods Here we present a more detailed introduction of baseline methods compared in experiments: - •MLP\(Rogers and Hahn,[2010](https://arxiv.org/html/2606.31085#bib.bib26)\)is a classic supervised learning approach that utilizes a multi\-layer perceptron to map drug chemical fingerprints to specific interaction types between drug pairs\. - •MSTE\(Yao et al\.,[2022](https://arxiv.org/html/2606.31085#bib.bib44)\)specially designs a knowledge graph embedding scoring function to model complex relations in DDI prediction problems\. - •Decagon\(Zitnik et al\.,[2018](https://arxiv.org/html/2606.31085#bib.bib49)\)is a representative GNN\-based approach that performs multi\-relational link prediction by extracting and aggregating information from biomedical networks\. - •EmerGNN\(Zhang et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib47)\)is a specialized GNN that utilizes a flow\-based architecture to identify critical paths within biomedical networks, specifically optimized for predicting interactions involving emerging drugs\. - •Single LLM is a straightforward method that directly uses LLMs to answer textual DDI prediction questions without adding any supplementary information\. In our experiments, we implement this baseline using Qwen2\.5\-7B as the backbone model\. - •TIGER\(Su et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib31)\)is a hybrid architecture featuring a dual\-channel graph transformer, which simultaneously captures the internal structural information of drug molecular graphs and the global topological features of biomedical networks\. - •TextDDI\(Zhu et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib48)\)is the first framework to leverage the zero\-shot capabilities of LLMs for DDI prediction, utilizing textual drug descriptions and interaction histories\. - •DDI\-GPT\(Xu et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib42)\)captures relevant information of query drugs from biomedical networks and uses biomedical large language model to enhance DDI prediction performance\. - •CBR\-DDI\(Liu et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib16)\)adapts the ”Case\-Based Reasoning” paradigm to the LLM setting, enabling the LLM model to retrieve and learn from past DDI instances to solve new DDI queries\. - •K\-path\(Abdullahi et al\.,[2025](https://arxiv.org/html/2606.31085#bib.bib2)\)extracts critical paths from biomedical networks as important background to enhance the LLM prediction performance on DDI prediction problem\. - •Reflexion\(Shinn et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib30)\)is a reinforcement learning\-inspired architecture that enables single agent to improve its performance through self\-reflection, where it critiques past mistakes and stores them in a verbal memory to inform more accurate future attempts\. - •Debate\(Du et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib7)\)is a multi\-agent collaboration protocol where specialized agents iteratively critique and refine each other’s responses until a consensus is reached\. - •AgentVerse\(Chen et al\.,[2023](https://arxiv.org/html/2606.31085#bib.bib5)\)is a dynamic framework that adjusts the composition of an agent group based on the specific progress and complexity of the problem\-solving task\. - •MDAgents\(Kim et al\.,[2024](https://arxiv.org/html/2606.31085#bib.bib14)\)is a multi\-agent system specifically tailored for medical decision\-making, employing adaptive protocols that scale in complexity based on the perceived difficulty of the clinical case\. ### A\.8\.Prompt used in Experiments In this section, we provide the prompt templates of different agents in DDIAgents in Table[9](https://arxiv.org/html/2606.31085#A1.T9)\-Table[12](https://arxiv.org/html/2606.31085#A1.T12)\. Table 9\.System prompt for planner in expert agent instantiation\.You are a medical expert who specializes in categorizing a specific drug\-drug interaction prediction problem into specific areas of medicine\.You need to complete the following steps:1\. Carefully read the drug\-drug interaction prediction problem with candidate choices and feedbacks from last iteration round\.2\. Based on the problem, provide three experts that are suitable to answer the question from different perspectives\.3\. Provide three expert names and use one sentence to describe their roles, respectively\.You should output in exactly the same format as: \(1\) \[expert1 name\]: \[one sentence describes the role of expert1\]\. \(2\) \[expert2 name\]: \[one sentence describes the role of expert2\]\. \(3\) \[expert3 name\]: \[one sentence describes the role of expert3\]\.Question: \{\{Question\}\}Candidate interaction types: \{\{Candidate DDI types\}\}Analysis in last round: \{\{Feedback from conclusion agent\}\}Please provide your split of three experts:Table 10\.System prompt for planner in dynamic context flow \(for DrugBank dataset\)\.You are a medical librarian who specializes in managing medical knowledge sources for medical experts\.Given the medical expert name, his expertise, drug\-drug interaction prediction problem and knowledge sources, please select the relevant information needed\.Expert name: \{\{Expert name\}\}\. Expertise: \{\{Expertise\}\}\.Question: \{\{Question\}\}Candidate interaction types: \{\{Candidate DDI types\}\}Knowledge sources:A\. Absorption DDIs: an absorption DDI occurs when one drug alters the rate or extent of absorption and bioavailability of a second drug, leading to a decrease in its concentration and potential loss of efficacy or an increase in its concentration and potential worsening of adverse effects\.B\. Distribution DDIs: a distribution DDI occurs when one drug alters the distribution of a second drug throughout the body, typically by affecting plasma protein binding or transport, leading to changes in the free serum concentration of Drug2, which may result in altered efficacy or toxicity\.C\. Metabolic DDIs: a Metabolic DDI occurs when one drug alters the rate of metabolism of a second drug, typically via enzyme inhibition or induction, leading to either a change in Drug2’s serum concentration or an alteration in the concentration of its active or inactive metabolites\.D\. Excretion DDIs: An Excretion DDI occurs when one drug alters the rate of renal or biliary excretion of a second drug, leading to either an increase in the elimination rate and potential loss of Drug2 efficacy or a decrease in the elimination rate and potential Drug2 toxicity due to elevated serum levels\.E\. Synergistic DDIs: a synergistic DDI is an interaction where two drugs combined produce an effect \(therapeutic or adverse\) that is greater than the sum of the effects of each drug given alone, typically resulting in an increase in the intensity of specific pharmacodynamic activities, such as toxicity or efficacy\.F\. Antagonistic DDIs: an antagonistic DDI is an interaction where one drug opposes the effect of a second drug by competing for the same receptor or having counteracting physiological effects, resulting in a decrease in the therapeutic efficacy or an attenuation of the adverse effects of Drug2\.G\. SMILES of two drugs\.H\. Drug targets: the targets two drugs both bind\.I\. Drug side effects: the side effects two drugs both cause\.Please ONLY output your choices with letter sequences \(from A\-I\) and separate them with spaces\.Table 11\.System prompt for expert agent analysis\.You are a \{\{Expert name\}\} who specializes in \{\{Agent expertise\}\}\.You are provided with:\- Two drugs and their descriptions\.\- Candidate interaction types predicted by a deep learning model, each with a short description\.\- Relevant knowledge sources as a reference\.\- Analysis summary of different agents in the last round\.Note:\- You MUST give your answer in English, MUST not contain characters in other language\.\- The interaction could be from Drug 1 to Drug 2, or from Drug 2 to Drug 1\.Please choose the most plausible interaction type based on the provided information and your medical knowledge\.Input format:Question: What is the drug\-drug interaction type between \[Drug 1\] and \[Drug 2\]?\[Drug 1\]: \[Description of Drug 1\]; \[Drug 2\]: \[Description of Drug 2\]\.Candidate interaction types:\- A\. \[Interaction Type A\]: \[Description of Interaction Type A\]\- B\. \[Interaction Type B\]: \[Description of Interaction Type B\]\.\.\.Reference knowledge sources: \.\.\.The answer of other agents in the last round: \.\.\.Output Format:Interaction type A/B/C/D/E\.\[Your analysis to explain your choice\. \]Now answer this question: \.\.\.Table 12\.System prompt for decision making\.You are a medical expert specializing in pharmacology and drug safety\.Your task is to predict the most likely drug\-drug interaction \(DDI\) between a given pair of drugs\.You are provided with the prediction and information from multiple experts\.Please take their answer into comprehensive consideration and judge whether the evidence provided is enough to obtain a conclusion\.You are provided with:\- Two drugs and their descriptions\.\- Candidate interaction types predicted by a deep learning model, each with a short description\.\- The answer of other agents for reference\.Note:\- You MUST give your answer in English, MUST not contain characters in other language\.\- If there are contradictions among the answer of different agents, it is encouraged to require a new round of analysis for different experts\.Input format:Question: What is the drug\-drug interaction type between \[Drug 1\] and \[Drug 2\]?\[Drug 1\]: \[Description of Drug 1\]; \[Drug 2\]: \[Description of Drug 2\]\.Candidate interaction types:\- A\. \[Interaction Type A\]: \[Description of Interaction Type A\]\- B\. \[Interaction Type B\]: \[Description of Interaction Type B\]\.\.\.The answer of other agents: \.\.\.Output must strictly follow the format below\.If you think the evidence provided is enough, the output format MUST be:Yes\. Interaction type A/B/C/D/E\.\[Your analysis to explain your choice\. \]If you think the evidence provided is not enough, the output format MUST be:No\. \[One sentence to summarize the answer of each expert agent, respectively\.\]\[Suggestion for further analysis on the question\. \]Now answer this question: \.\.\. ## Appendix BMore Experimental Results ### B\.1\.Experimental Results on S0 Setting Table[16](https://arxiv.org/html/2606.31085#A2.T16)details the performance of various methods within the S0 tasks, which focuses on predicting interactions between known drugs\. While the proposed DDIAgents maintain strong performance, the performance gap between models is less pronounced in S0 than in S1 and S2 tasks\. This suggests that traditional methods can effectively leverage the rich interaction history of known drugs, making the prediction task less challenging than in zero\-shot or cold\-start scenarios\. ### B\.2\.Experimental Results on TWOSIDES Dataset with Traditional Evaluation Setting To provide a comprehensive comparison with existing literature, we report the performance of DDIAgents on the TWOSIDES dataset using the traditional binary classification setting\. While we maintain that the ranking\-based metrics \(Hit@5 and NDCG@5\) introduced in Section[5\.1](https://arxiv.org/html/2606.31085#S5.SS1)better reflect clinical realities by addressing the multi\-label nature of drug\-drug interactions, these supplementary results in Table[13](https://arxiv.org/html/2606.31085#A2.T13)serve as a benchmark against standard methodologies\. Here we use the following two evaluation metrics: - •ROC\-AUC=∑k=1nTPkΔFPk=\\sum\_\{k=1\}^\{n\}TP\_\{k\}\\Delta FP\_\{k\}measures the area curve of receiver operating characteristics\. - •Accuracy: the proportion of correctly predicted DDIs for each DDI type\. As shown, DDIAgents consistently outperforms all baseline methods across both S1 and S2 tasks, demonstrating its robustness when evaluated under traditional binary classification setting\. Table 13\.Performance of representative methods on TWOSIDES with traditional setting\. The best and second\-best results are highlighted in bold and underline, respectively\. ### B\.3\.Candidate Retrieval Performance of the Traditional Model To enable efficient agent\-based DDI prediction, we first train a traditional model as a*candidate retriever*that filters a small set of highly probable interaction types for each drug pair\. Specifically, we keep the top\-5 candidates for DrugBank and the top\-20 candidates for TWOSIDES, aiming to maintain a high upper bound on recall; otherwise, the downstream agents would be fundamentally limited by missed candidates\. Table[14](https://arxiv.org/html/2606.31085#A2.T14)reports the retrieval statistics of this traditional model\. Overall, the model can successfully narrow the DDI candidate choice while retaining most true interaction types among the retrieved candidates\. However, its prediction quality remains limited, as reflected by substantially lower accuracy/Hit@5 rates\. For instance, on DrugBank, the retriever achieves high Recall@5 \(93\.92% in S1 and 89\.46% in S2\), yet its accuracy is only 50\.68% \(S1\) and 33\.47% \(S2\), indicating that high\-recall filtering alone is insufficient for accurate DDI prediction\. These results support our design choice: the traditional model serves to maximize recall and reduce the candidate space, while the performance gains of multi\-agent systems mainly come from the subsequent agent\-based analysis that improves precision through mechanism\-aware reasoning\. Table 14\.Candidate retrieval performance of the traditional model used for agent\-based DDI prediction\. Here “\(agt\)” refers to the result of DDIAgents\.DrugBankS1S2AccAcc\(agt\)Recall@5AccAcc\(agt\)Recall@550\.6855\.7593\.9233\.4738\.2189\.46TWOSIDESS1S2Hit@5Hit@5\(agt\)Hit@20Hit@5Hit@5\(agt\)Hit@2043\.9053\.9478\.2333\.5142\.2668\.56 ### B\.4\.Ablation Study on Iteration Round of DDIAgents Here we present the results varying the iterative analysis roundttin Figure[7](https://arxiv.org/html/2606.31085#A2.F7)to assess its impact on model efficacy\. For initial analysis rounds \(t≤3t\\leq 3\), the performance of DDIAgents consistently improves asttincreases, a gradual enhancement that strongly underscores the necessity of the iterative analysis process for effective DDI prediction\. For analysis rounds extending beyondt=3t=3, performance across both datasets stabilizes, indicating that the model achieves peak efficacy within a few iterations\. \(a\)DrugBank, S1 tasks \(b\)DrugBank, S2 tasks \(c\)TWOSIDES, S1 tasks \(d\)TWOSIDES, S2 tasks Figure 7\.Varying the iteration round of DDIAgents\. ### B\.5\.Prediction Performance Using Large\-scale Frontier Model Table[17](https://arxiv.org/html/2606.31085#A2.T17)reports the S2 results of DDIAgents when replacing the backbone LLM with a large\-scale frontier model \(GPT\-4o\)\. On DrugBank dataset, GPT\-4o yields a clear gain in F1 score \(18\.17→\\rightarrow20\.75\), suggesting that a stronger model particularly improves performance on the harder and less frequent DDI types captured by F1 score\. On TWOSIDES, GPT\-4o brings consistent improvements on both ranking metrics, which further highlights the prediction potential of DDIAgents under S2 tasks\. ### B\.6\.More DDI prediction cases In this section, we provide additional DDI prediction case studies for DDIAgents using Qwen 2\.5 7B as the backbone LLM\. Table[18](https://arxiv.org/html/2606.31085#A2.T18)reports the same drug pair as the case illustrated in Figure[4](https://arxiv.org/html/2606.31085#S5.F4)\(Section[5\.4](https://arxiv.org/html/2606.31085#S5.SS4)\)\. While DDIAgents with GPT\-4o correctly predicts the ground\-truth interaction in Section[5\.4](https://arxiv.org/html/2606.31085#S5.SS4), the Qwen 2\.5 7B backbone produces an incorrect prediction after a single iteration\. This comparison suggests that stronger backbone reasoning can translate into improved overall performance for DDIAgents\. In addition, Table[19](https://arxiv.org/html/2606.31085#A2.T19)presents a case where DDIAgents with Qwen 2\.5 7B arrives at the correct prediction after two iterations, highlighting the benefit of iterative refinement even with a smaller backbone model\. ### B\.7\.The Statistics of Newly Instantiated Agents To characterize the dynamics of expert agent instantiation, we summarize the most frequently created new expert agents and their predictive utility on DrugBank S2 tasks in Table[15](https://arxiv.org/html/2606.31085#A2.T15)\. The total number reflects how often DDIAgents identifies a mechanism\-specific reasoning gap that is not well covered by the default experts and therefore requests a specialized perspective\. Overall, “Cardiologist”, “Neurologist”, and “Toxicologist” are instantiated most often, suggesting that a substantial portion of hard cases in DrugBank S2 require specialized clinical safety assessment and adverse\-event reasoning beyond general pharmacology\. Notably, instantiation frequency does not always align with per\-agent accuracy: “Endocrinologist” and “Gastroenterologist” achieve higher accuracy despite being created less often\. This pattern indicates that certain expert perspectives are high\-yield when triggered \(i\.e\., they provide decisive evidence for a narrower subset of queries\), whereas other experts are broad\-coverage but face more ambiguous cases\. These statistics provide empirical evidence that DDIAgents benefits from dynamic expert instantiation: rather than relying on a fixed agent pool, it adaptively composes the experts needed to match the interaction\-dependent evidence required by each query\. Table 15\.The statistics of newly instantiated agents\. ### B\.8\.Case Study: the Correlation between Expert and Knowledge Source in Dynamic Context Flow We conduct a case study to analyze the context flow of DDIAgents on the DrugBank dataset under S2 tasks \(as shown in Figure[8](https://arxiv.org/html/2606.31085#A2.F8)\)\. For clarity, we illustrate three predefined expert agents, noting that the instantiated expert profiles can vary across iterations\. The retrieval rates of each expert over different knowledge sources are illustrated\. Overall, Metabolic DDIs, Synergistic DDIs, and DDI descriptions are retrieved most frequently across experts, suggesting that these sources provide particularly informative evidence for accurate DDI prediction\. Moreover, the experts exhibit distinct retrieval preferences consistent with their functional roles\. The Pharmacist emphasizes clinically oriented evidence \(e\.g\., drug side effects, drug targets, and textual DDI descriptions\), the Pharmacokineticist focuses on ADME\-related sources \(Absorption, Distribution, Metabolic and Excretion DDIs\), and the Pharmacologist places relatively more weight on molecular structure signals \(e\.g\., Drug SMILES\) for chemical mechanism analysis\. Table 16\.Performance comparison between different DDI prediction methods on S0 tasks\. The best and second\-best results are highlighted in bold and underline, respectively\.Table 17\.Performance of DDIAgents using GPT\-4o as the backbone LLM\.Table 18\.The DDI prediction case by DDIAgents using Qwen 2\.5 7B as the backbone LLM \(The same DDI prediction question as illustrated in Section[5\.4](https://arxiv.org/html/2606.31085#S5.SS4)\)\.Table 19\.A DDI prediction case by DDIAgents that different agents achieve consensus in two iterations\.Table 20\.A DDI prediction case by DDIAgents that different agents achieve concensus in two iterations \(continued\)\.Pulmonologist \(Iteration 2\)Assigned knowledge sources:Absorption DDIs, Metabolic DDIs, Drug targets and Drug side effects\. Answer: Interaction type D\.Based on the provided descriptions and the deep learning model’s predictions, there are indications that riociguat may enhance the hypotensive effects of macitentan, which is a significant concern given the clinical context of pulmonary arterial hypertension \(PAH\) where maintaining adequate blood pressure is critical\. The pharmacologist’s suggestion of interaction type E, which indicates an increased risk of adverse effects due to synergistic vasodilation, aligns with the known mechanisms of action for both drugs\. Riociguat works by increasing nitric oxide bioavailability and cGMP levels, leading to vasodilation, while macitentan inhibits VEGFR\-1 and VEGFR\-2, also promoting vasodilation\. The combination could result in excessive vasodilation, leading to hypotension\. This is further supported by the pharmacist’s and pharmacologist’s consensus favoring interaction type E\. The deep learning model’s prediction of an increased hypotensive activity is the most plausible based on the available information and expert opinions\.Nephrologist \(Iteration 2\)Assigned knowledge sources:Absorption DDIs, Metabolic DDIs, Excretion DDIs and Synergistic DDIs\. Answer: Interaction type E\.Riociguat is known to cause vasodilation, and Macitentan also has vasodilatory effects by inhibiting VEGFR\-1 and VEGFR\-2\. Given that both drugs can lead to hypotension, the combination is likely to enhance this effect\. The deep learning model suggests an increased hypotensive activity, which aligns with the pharmacological actions of both drugs\. The pharmacist and pharmacologist have also favored this interaction type, indicating a consensus on the potential for increased hypotension\. Therefore, the most plausible interaction type is that riociguat may increase the hypotensive activities of Macitentan, leading to a heightened risk of fainting, falls, or shock\.Conclusion agent \(Iteration 2\)Yes\. Interaction type E\.Based on the comprehensive analysis of the provided information and expert opinions, the most plausible interaction between Riociguat and Macitentan is that Riociguat may increase the hypotensive activities of Macitentan\. Both drugs have vasodilatory effects, with Riociguat increasing cyclic guanosine monophosphate \(cGMP\) levels and Macitentan inhibiting VEGFR\-1 and VEGFR\-2\. The deep learning model also indicates an increased hypotensive activity, which aligns with the known mechanisms of action\. Furthermore, the consensus among the pharmacologist, pharmacist, and other experts supports this interaction type, emphasizing the potential risk to explain\.Figure 8\.Knowledge retrieval rates across expert agents and knowledge sources on DrugBank S2 tasks\. ### B\.9\.An Illustrative Example for Comparison on Generation Contents In order to provide a clearer comparison between the generated contents of MDAgents and DDIAgents in Section[5\.7](https://arxiv.org/html/2606.31085#S5.SS7), we present an illustrative example in Table[21](https://arxiv.org/html/2606.31085#A2.T21)\. The contents include the DDI question, the answer by MDAgents and DDIAgents, and the LLM judgment\. We can see that DDIAgents outperforms in all of the evaluation dimensions including thoroughness, diversity, rationality and overall quality\. Table 21\.Illustrative case: generated content comparison between MDAgents and DDIAgents\.
Similar Articles
SafeRx-Agent: A Knowledge-Grounded Multi-Agent Framework for Safe and Explainable Medication Recommendation
Introduces SafeRx-Agent, a knowledge-grounded multi-agent framework for safe and explainable medication recommendation that generates fine-grained ATC code predictions while controlling drug interactions and contraindications, evaluated on MIMIC-III and MIMIC-IV datasets.
MARD: Mirror-Augmented Reasoning Distillation for Mechanism-Level Drug-Drug Interaction Prediction
Introduces MARD, a 7B-parameter model for mechanism-level drug-drug interaction prediction using mirror-augmented reasoning distillation, achieving state-of-the-art accuracy at ~1% of frontier API cost and demonstrating genuine pharmacological reasoning over memorization.
BioInsight: Multi-Agent Orchestration for Interactive Biomedical Knowledge Discovery
BioInsight is a multi-agent system that transforms static biomedical reports into interactive, evidence-centered interfaces by organizing disease-specific evidence through structured artifacts and deterministic citation normalization.
Where Black-box Drug-Target Interaction Prediction Models Look: Cross-Method Explainability
A study presenting a cross-method explainability audit of the BridgeDPI drug-target interaction model, combining gradient-based attributions and occlusion to reveal modality dominance and artifacts, providing testable hypotheses for drug discovery.
DrugSAGE:Self-evolving Agent Experience for Efficient State-of-the-Art Drug Discovery
DrugSAGE is a framework that accumulates and reuses cross-task memory to build state-of-the-art drug discovery models efficiently, outperforming baseline agents by 10-30% on held-out tasks.