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

Yubo Wang, Xueguang Ma, Wenhu Chen

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 LLM-AMT 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%.

Introduction

While general-purpose Large Language Models (LLMs) like GPT-4 show remarkable versatility, they often struggle in high-stakes, knowledge-dense fields like medicine. A primary issue is "memory distortion," where models generate plausible but factually incorrect medical advice. Fine-tuning these massive models on domain-specific data is often prohibitively expensive and difficult to scale.

Existing Retrieval-Augmented Generation (RAG) systems frequently rely on general knowledge bases like Wikipedia, which often lack the professional depth and terminology required for complex clinical reasoning. To address this, researchers developed LLM-AMT, a framework that augments "black-box" models with a specialized retrieval pipeline grounded in authoritative medical textbooks. This approach allows general LLMs to access high-quality, professional knowledge without extensive retraining.

The LLM-AMT Framework

The LLM-AMT system is built around four "plug-and-play" modules designed to bridge the gap between colloquial queries and technical medical knowledge:

  1. Query Augmenter: This module standardizes patient descriptions. It rewrites colloquial terms into medical terminology (e.g., converting "high blood cell count" to "leukocytosis") and uses query expansion to prompt the LLM to reason through the problem before retrieval, identifying key terms to guide the search.
  2. Hybrid Textbook Retriever (HybTextR): To ensure high recall, the system combines sparse retrieval (SPLADE) for keyword matching with dense retrieval (DPR) for semantic meaning. A BERT-based cross-encoder then reranks the results to find the most relevant passages.
  3. Knowledge Self-Refiner: This novel two-step process filters out noise. A Relevance Filter discards off-topic passages, while a Usefulness Filter decomposes remaining passages into segments, keeping only the specific sentences that directly answer the query. This prevents the LLM from being overwhelmed by irrelevant technical detail.
  4. LLM Reader: The final, refined knowledge is provided to the base LLM (e.g., GPT-4) to generate a grounded, accurate response.
Overview of the LLM-AMT framework, illustrating the four key modules: Query Augmenter, Hybrid Textbook Retriever, Knowledge Self-Refiner, and LLM Reader.

Experimental Setup

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

  • MedQA-USMLE: English questions from the US Medical Licensing Exam.
  • MedQA-MCMLE: Simplified Chinese questions from the Chinese Medical Licensing Exam.
  • MedMCQA: A large-scale dataset covering 2,400 healthcare topics across 21 medical subjects.

The retrieval corpus consisted of 51 authoritative medical textbooks (approx. 27 million tokens), which was compared against a standard Wikipedia dump (approx. 2.1 billion tokens) to test the impact of knowledge quality versus quantity.

Key Results

The LLM-AMT framework demonstrated significant performance improvements over both vanilla LLMs and specialized models:

  • Outperforming Specialized Models: LLM-AMT using GPT-4-Turbo achieved 88.1% accuracy on MedQA-USMLE, outperforming Med-PaLM 2 (a model pre-trained on massive medical corpora) by 2.7%.
  • Quality Over Quantity: Despite being 100x smaller than Wikipedia, the medical textbook corpus was far more effective, boosting performance by up to 13.7%. This suggests that authoritative depth is more valuable than general breadth for specialized domains.
  • Hallucination Reduction: Human evaluations showed a 16% reduction in hallucinations compared to base models, highlighting the framework's ability to ground responses in factual evidence.
Performance comparison of various models on MedQA-USMLE and MedMCQA benchmarks, highlighting the superiority of the Textbook-Augmented LLM-AMT approach.

Discussion and Future Work

The success of LLM-AMT underscores the importance of high-quality, curated knowledge in RAG systems. The Knowledge Self-Refiner was particularly critical, providing a consistent 1.9% accuracy gain by pruning irrelevant technical noise that can lead to "information diffusion" in LLMs.

However, limitations remain. The system currently relies on static textbooks and may miss the latest clinical trial results or breakthrough research. Furthermore, while accuracy is high, the internal reasoning of the "black-box" LLM remains opaque, which is a hurdle for clinical explainability. Future research will focus on integrating real-time research updates and multi-modal data, such as medical imaging, into the retrieval pipeline to further enhance clinical utility.

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 Clinical Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=ow4GNNiNDW},
}
Figure