Case-Based Reasoning Enhances the Predictive Power of LLMs in Drug-Drug Interaction

Guangyi Liu, Yongqi Zhang, Xunyuan Liu, Quanming Yao · DOI

Introduction

Predicting drug-drug interactions (DDIs) is critical for patient safety, particularly when new medications enter the market. This "cold start" scenario—where interaction data is sparse—poses a significant challenge for traditional predictive models. While Large Language Models (LLMs) excel at processing biomedical text, they often struggle with the multi-relational complexity of pharmacology and fail to capture the underlying biological mechanisms.

To address this, researchers have developed CBR-DDI, a framework that mimics clinical reasoning by using Case-Based Reasoning (CBR). Instead of relying solely on raw data, CBR-DDI retrieves and adapts pharmacological principles from similar historical cases to predict interactions for new drug pairs.

Methods: The CBR-DDI Framework

The CBR-DDI architecture improves upon standard retrieval methods by incorporating a structured, multi-stage process:

  1. Knowledge Repository Construction: The system builds a repository where each case includes drug descriptions, structural associations from a Knowledge Graph (KG), and an LLM-distilled interaction mechanism.
  2. Hybrid Retrieval: To identify relevant past cases, the framework combines semantic similarity (using LLM-generated functional descriptions) with structural similarity (using Graph Neural Network embeddings from the BioKG).
  3. Dual-Layer Knowledge Prompting: The predictor LLM receives both external factual knowledge (KG paths) and internal regularity knowledge (distilled mechanisms from retrieved cases).
  4. Representative Sampling: K-Medoids clustering is used to maintain a concise, high-quality repository of representative cases.
Comparison between the Naive-CBR method and the proposed CBR-DDI architecture.

Key Insights: The Power of Analogy

The core innovation of CBR-DDI is its ability to reason by analogy. Pharmacological principles are often universal; for example, if two drugs interact because they compete for the same metabolic enzyme (e.g., CYP3A4), this logic can be applied to new drugs with similar binding properties. By "pre-digesting" historical cases into clear templates, the model reduces hallucinations and improves logical consistency.

Experimental Results

The framework was evaluated on the DrugBank and TWOSIDES datasets, focusing on "cold start" scenarios where one or both drugs in a pair are new to the system.

  • Performance Gains: CBR-DDI achieved a 28.7% accuracy improvement over "Naive-CBR" approaches. Compared to base LLMs without case-based context, the performance boost reached as high as 463% for models like DeepSeek-V3.
  • Model Agnostic: The benefits were consistent across various LLMs, including Llama-3.1 (8B and 70B) and DeepSeek-V3, suggesting that the reasoning methodology is a more significant factor than model scale alone.
  • Interpretability: Unlike "black-box" models, CBR-DDI provides a clear reasoning path by citing specific historical cases and biological mechanisms, offering a "paper trail" for clinical verification.
CBR-DDI conceptual workflow and performance gains on DeepSeek-V3.

Conclusion

CBR-DDI demonstrates that teaching LLMs to reason analogically through historical cases significantly enhances their predictive power in complex biomedical tasks. While current iterations rely on textual and graph-based data, future work aims to integrate molecular structural information (e.g., SMILES strings) to enable even more precise, atom-level interaction analysis.

Summary updated

BibTeX
@inproceedings{liu2025case,
  author = {Guangyi Liu and Yongqi Zhang and Xunyuan Liu and Quanming Yao},
  title = {{Case-Based Reasoning Enhances the Predictive Power of LLMs in Drug-Drug Interaction}},
  booktitle = {XLLM-Reason-Plan @ COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=U7XYP4zRwl},
}
Figure