Abstract
Drug-drug interactions (DDIs) arise when multiple drugs are administered concurrently. Accurately predicting the specific mechanisms underlying DDIs (named DDI events or DDIEs) is critical for the safe clinical use of drugs. DDIEs are typically represented as textual descriptions. However, most computational methods focus more on predicting the DDIE class label over generating human-readable natural language increasing clinicians' interpretation costs. Furthermore, current methods overlook the fact that each drug assumes distinct biological functions in a DDI, which, when used as input context, can enhance the understanding of the DDIE process and benefit DDIE generation by the language model (LM). In this work, we propose a novel pairwise knowledge-augmented generative method (termed PKAG-DDI) for DDIE text generation. It consists of a pairwise knowledge selector efficiently injecting structural information between drugs bidirectionally and simultaneously to select pairwise biological functions from the knowledge set, and a pairwise knowledge integration strategy that matches and integrates the selected biological functions into the LM. Experiments on two professional datasets show that PKAG-DDI outperforms existing methods in DDIE text generation, especially in challenging inductive scenarios, indicating its practicality and generalization.
Introduction
When a patient takes multiple drugs simultaneously, they may interact in ways that alter efficacy or cause adverse side effects—known as Drug-Drug Interaction Events (DDIEs). Traditionally, AI models have treated DDI prediction as a classification task, assigning drug pairs to rigid categories (e.g., "Class 42"). This approach lacks clinical intuition, as it fails to explain the underlying biological mechanism to a practitioner.
PKAG-DDI addresses this by moving from classification to natural language generation. It generates human-readable descriptions of why and how drugs interact by leveraging the "biological logic" of the interaction. For instance, instead of a label, it might explain that one drug acts as a "gastric alkalinizer" while the partner is "gastric pH sensitive," leading to altered absorption.
Methodology
PKAG-DDI utilizes a Retrieval-Augmented Generation (RAG) framework specifically designed for pharmacology. The architecture is built on two core components:
- Pairwise Knowledge Selector (PKS): Unlike models that analyze drugs in isolation, the PKS employs a cross-attention mechanism that allows the molecular representations of Drug A and Drug B to interact. This enables the model to identify the most relevant biological functions (e.g., specific enzyme inhibition) from a vast knowledge set relative to the partner drug.
- Pairwise Knowledge Integration: The selected functions are integrated into a pre-trained Language Model (Galactica 1.3B). The system uses a joint probability distribution to marginalize over the top-K potential biological function pairs, ensuring the final text is grounded in the most probable biological mechanism.
Experimental Results
The model was evaluated on two professional databases: MecDDI (highly summarized interactions) and DDInter2.0 (complex natural language descriptions). Performance was measured using standard text generation metrics including BLEU, METEOR, and ROUGE-L.
PKAG-DDI consistently outperformed state-of-the-art baselines like MolT5 and MolTC. On the complex DDInter2.0 dataset, PKAG-DDI achieved a BLEU-2 score of 92.39%, a significant improvement over MolTC (83.18%).
Generalization in Cold-Start Scenarios
A key strength of PKAG-DDI is its performance in "Cold Start" and "Scaffold Split" scenarios, where the model encounters drugs with chemical structures entirely different from those in the training set. By reasoning from molecular structure to biological function, the model generalizes far better than those that simply memorize drug-pair patterns, maintaining superior accuracy even when structural similarity is low.
Discussion and Conclusion
The success of PKAG-DDI highlights that biological functions are the "missing link" in DDI modeling. Providing the language model with specific functional context (like "CYP3A4 inhibitor") creates a logical bridge that allows for accurate, explanatory text generation.
While the current model relies on a static knowledge base, future work will explore dynamic knowledge updates to accommodate novel drugs. Currently, PKAG-DDI represents a significant step toward making AI-driven drug safety tools more interpretable and useful for clinical decision-making.
Summary updated