Augmenting Black-box LLMs with Medical Textbooks for Biomedical Question Answering

Yubo Wang, Xueguang Ma, Wenhu Chen

TL;DR

The LLM-AMT (LLMs Augmented with Medical Textbooks) framework significantly boosts the medical expertise of general-purpose language models by pairing them with a specialized retrieval pipeline. By sourcing information from authoritative medical textbooks rather than general knowledge bases like Wikipedia, the system allows "black-box" models like GPT-4 to outperform specialized, multi-billion parameter models like Med-PaLM 2 on professional medical exams.

What Problem Does This Paper Address?

While Large Language Models (LLMs) show promise in healthcare, they suffer from two major hurdles: "memory distortion" (hallucinations) and a lack of deep, domain-specific knowledge. Standard Retrieval-Augmented Generation (RAG) systems often rely on Wikipedia or search engines, which lack the technical depth required for professional medical reasoning.

Furthermore, fine-tuning massive models on medical corpora is prohibitively expensive and often results in models that are difficult to update. The authors sought to create a "plug-and-play" framework that could turn a general-purpose LLM into a medical expert simply by giving it better "study materials"—authoritative textbooks—and a smarter way to read them.

Methods

The authors proposed a four-stage pipeline, LLM-AMT, designed to maximize the utility of dense medical texts:

  1. Query Augmenter: Before searching, the system uses an LLM to perform Query Rewriting (mapping colloquial symptoms like "high white cell count" to professional terms like "leukocytosis") and Query Expansion (using Chain-of-Thought to generate hypothetical reasoning paths).
  2. HybTextR (Hybrid Textbook Retriever): This module combines Sparse Retrieval (looking for exact keyword matches) and Dense Retrieval (looking for semantic meaning). The results are then re-ordered by a BERT-based Reranking Model to ensure the most relevant passages rise to the top.
  3. Knowledge Self-Refiner (KSR): Medical textbooks are dense. A relevant passage might be long, but only one sentence might be useful. KSR uses a two-tiered filtering process—a Relevance Filter to discard off-topic passages and a Usefulness Filter to extract only the most helpful segments.
  4. LLM Reader: The final generator (e.g., GPT-4) receives the original question plus the highly distilled "Refined Knowledge" to produce a final, reasoned answer.
Figure 1: Overview of our proposed pipeline. GPT-3.5-Turbo is prompted to perform a series of tasks including query rewriting, query expansion, relevance evaluation, and usefulness evaluation. Details of the case presented in the figure can be found in Appendix A.7.

Datasets

The system was evaluated on three challenging benchmarks derived from professional medical licensing exams:

  • MedQA-USMLE: Questions from the United States Medical Licensing Examination.
  • MedQA-MCMLE: Questions from the Chinese Medical Licensing Examination.
  • MedMCQA: A large-scale dataset from Indian medical entrance exams (AIIMS/NEET-PG).

The retrieval corpus consisted of 51 authoritative medical textbooks, totaling approximately 27 million tokens. For comparison, they also tested against a standard Wikipedia dump.

Key Insights and Ideas

  • Quality Over Quantity: The textbook corpus is roughly 100x smaller than Wikipedia in terms of total tokens, yet it provided a performance boost of 7.8%–13.7% over Wikipedia-based retrieval. This highlights that for specialized domains, the authority of the source matters more than the scale of the data.
  • The Power of Refinement: The Knowledge Self-Refiner (KSR) was critical. Medical passages often contain "distractor" information. By filtering for usefulness at the segment level, the authors improved accuracy by nearly 2% over just using raw retrieved passages.
  • Black-Box Superiority: One of the most striking findings is that a general-purpose model (GPT-4) augmented with this pipeline can beat a model specifically pre-trained on massive medical datasets (Med-PaLM 2). This suggests that sophisticated retrieval might be more efficient than specialized pre-training.

Key Results

The LLM-AMT framework demonstrated substantial improvements across all tested datasets:

  • State-of-the-Art Performance: LLM-AMT (using GPT-4) achieved 88.1% accuracy on MedQA-USMLE, outperforming Med-PaLM 2 (85.4%) by 2.7%.
  • Significant Gains: Compared to a vanilla GPT-3.5 baseline, the framework improved accuracy by 11.6% to 16.6%.
  • Hallucination Reduction: Human evaluations by medical professionals showed a 16% reduction in hallucinations during open-ended QA tasks compared to the baseline LLM.
Table showing performance comparison of various models on MedQA and MedMCQA.

Limitations and Future Work

Despite its success, the authors note two primary limitations:

  • Explainability: While the model uses authoritative sources, the internal reasoning of the "black-box" LLM remains opaque, which is a hurdle for clinical trust and accountability.
  • Interactivity: The current system is designed for single-turn question answering. Real-world clinical practice requires nuanced, multi-turn dialogue, empathetic engagement, and the ability to ask follow-up questions—capabilities this framework does not yet address.

Future research could focus on making the reasoning process more transparent and adapting the RAG framework for interactive, patient-facing applications.

Summary updated

Abstract

Large-scale language models (LLMs) like ChatGPT have demonstrated impressive abilities in generating responses based on human instructions. However, their use in the medical field can be challenging due to their lack of specific, in-depth knowledge. In this study, we present a system called LLMs Augmented with Medical Textbooks (LLM-AMT) designed to enhance the proficiency of LLMs in specialized domains. LLM-AMT integrates authoritative medical textbooks into the LLMs' framework using plug-and-play modules. These modules include a Query Augmenter, a Hybrid Textbook Retriever, and a Knowledge Self-Refiner. Together, they incorporate authoritative medical knowledge. Additionally, an LLM Reader aids in contextual understanding. Our experimental results on three medical QA tasks demonstrate that LLMAMT significantly improves response quality, with accuracy gains ranging from 11.6% to 16.6%. Notably, with GPT-4-Turbo as the base model, LLM-AMT outperforms the specialized Med-PaLM 2 model pre-trained on a massive amount of medical corpus by 2-3%. We found that despite being 100x smaller in size, medical textbooks as a retrieval corpus is proven to be a more effective knowledge database than Wikipedia in the medical domain, boosting performance by 7.8%-13.7%.
BibTeX
@inproceedings{wang2024augmenting,
  author = {Yubo Wang and Xueguang Ma and Wenhu Chen},
  title = {{Augmenting Black-box LLMs with Medical Textbooks for Biomedical Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=ow4GNNiNDW},
}
Figure