Improving medical reasoning through retrieval and self-reflection with retrieval-augmented large language models

Minbyul Jeong, Jiwoong Sohn, Mujeen Sung, Jaewoo Kang

Introduction

Large Language Models (LLMs) have shown significant promise in various domains, yet they frequently struggle with "hallucinations"—the generation of factually incorrect but plausible-sounding information. In high-stakes fields like medicine, these errors can be critical. While standard Retrieval-Augmented Generation (RAG) attempts to mitigate this by grounding responses in external documents, it often suffers from indiscriminate retrieval (introducing noise) and a lack of domain-specific depth.

To address these challenges, researchers have developed Self-BioRAG, a specialized framework that enhances medical reasoning by integrating on-demand retrieval with self-reflection. Unlike traditional models, Self-BioRAG evaluates when to seek external evidence and critiques its own reasoning using specialized "reflective tokens."

Comparison of traditional generation, standard RAG, and the proposed Self-BioRAG framework.

The Self-BioRAG Framework

The core innovation of Self-BioRAG lies in its ability to mimic human clinical expertise by selectively retrieving information and reflecting on its internal logic.

1. Reflective Tokens

The model generates internal metadata in the form of reflective tokens to guide its reasoning process:

  • [RET]: Determines if external retrieval is necessary based on the complexity of the query.
  • [REL]: Assesses whether the retrieved evidence is relevant to the specific medical question.
  • [SUP]: Verifies if the generated answer is fully supported by the retrieved evidence.
  • [USE]: Evaluates the overall utility and clinical accuracy of the final response.

2. Training and Inference Pipeline

The development of Self-BioRAG involves a sophisticated two-stage training process. First, a "Critic LM" is trained using GPT-4 labels to correctly assign reflective tokens to medical instructions. This Critic is then used to filter and label a large-scale biomedical dataset, which serves as the training ground for the "Generator LM" (based on LLaMA2).

The data construction, training, and inference pipeline for Self-BioRAG, showcasing how the model handles cases with and without retrieval.

3. Domain-Specific Optimization

Self-BioRAG is tailored for the medical field through specialized components:

  • MedCPT Retriever: A retriever fine-tuned on 255 million PubMed search logs to ensure high-quality evidence fetching.
  • Specialized Medical Corpus: A knowledge base comprising PubMed abstracts, PMC full-text articles, clinical guidelines, and authoritative medical textbooks.

Key Insights and Results

The implementation of Self-BioRAG yielded several critical insights into medical AI:

  • On-Demand Retrieval: By only retrieving information when internal knowledge is insufficient, the model avoids the "noise" associated with unnecessary searches for simple queries. This mimics human expertise, where simple questions are answered directly while complex cases prompt research.
  • The Value of Textbooks: Clinical reasoning performance improved significantly when the model retrieved information from medical textbooks compared to broader, less structured datasets like PubMed abstracts alone.
  • Performance Gains: The 7B parameter version of Self-BioRAG achieved a 7.2% absolute improvement over existing state-of-the-art open-source models on major medical benchmarks like MedQA (USMLE).
  • Long-form Accuracy: In generating complex medical explanations, the model outperformed standard RAG by an 8% Rouge-1 score, demonstrating better alignment with expert-level clinical reasoning.

Limitations and Future Directions

While Self-BioRAG represents a significant leap forward, challenges remain. In scenarios where context is already provided (e.g., PubMedQA), the retriever can occasionally introduce redundant information that slightly degrades performance. Future research will focus on refining these retrieval mechanisms and employing more granular, expert-led evaluations to further improve the reliability of clinical explanations in larger-scale models.

Summary updated

BibTeX
@article{jeong2024improving,
  author = {Minbyul Jeong and Jiwoong Sohn and Mujeen Sung and Jaewoo Kang},
  title = {{Improving medical reasoning through retrieval and self-reflection with retrieval-augmented large language models}},
  journal = {Bioinformatics},
  year = {2024},
  doi = {10.1093/bioinformatics/btae238},
}
Figure