Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking Retrieval-Augmented Generation for Medicine

Guangzhi Xiong, Qiao Jin|arXiv (Cornell University)|Feb 20, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science23 citations
TL;DR

This paper introduces Mirage, a medical QA benchmark for evaluating retrieval-augmented generation (RAG) systems, and MedRag, a toolkit to systematically compare corpora, retrievers, and LLMs across 7,663 questions from five medical QA datasets. It provides practical best practices for medical RAG based on large-scale experiments.

ABSTRACT

While large language models (LLMs) have achieved state-of-the-art performance on a wide range of medical question answering (QA) tasks, they still face challenges with hallucinations and outdated knowledge. Retrieval-augmented generation (RAG) is a promising solution and has been widely adopted. However, a RAG system can involve multiple flexible components, and there is a lack of best practices regarding the optimal RAG setting for various medical purposes. To systematically evaluate such systems, we propose the Medical Information Retrieval-Augmented Generation Evaluation (MIRAGE), a first-of-its-kind benchmark including 7,663 questions from five medical QA datasets. Using MIRAGE, we conducted large-scale experiments with over 1.8 trillion prompt tokens on 41 combinations of different corpora, retrievers, and backbone LLMs through the MedRAG toolkit introduced in this work. Overall, MedRAG improves the accuracy of six different LLMs by up to 18% over chain-of-thought prompting, elevating the performance of GPT-3.5 and Mixtral to GPT-4-level. Our results show that the combination of various medical corpora and retrievers achieves the best performance. In addition, we discovered a log-linear scaling property and the "lost-in-the-middle" effects in medical RAG. We believe our comprehensive evaluations can serve as practical guidelines for implementing RAG systems for medicine.

Motivation & Objective

  • Assess how different RAG components (corpora, retrievers, LLMs) affect medical QA performance.
  • Provide a scalable, zero-shot evaluation framework reflecting real-world medical information needs.
  • Offer practical guidelines for selecting data sources and models in medical RAG deployments.

Proposed method

  • Introduce Mirage, a benchmark with 7,663 questions from five medical QA datasets featuring zero-shot and question-only retrieval settings.
  • Develop MedRag, a toolkit comprising four retrievers, four corpora, and six LLMs to evaluate RAG systems in medicine.
  • Prepend retrieved snippets to questions and use chain-of-thought prompting with deterministic settings for all LLMs.
  • Evaluate performance using accuracy across multi-choice tasks, with standard deviations as error bounds.

Experimental results

Research questions

  • RQ1How do different medical corpora influence RAG accuracy across diverse medical QA tasks?
  • RQ2Which retrievers (lexical, semantic, domain-specific) most effectively retrieve medically relevant snippets for RAG?
  • RQ3What is the impact of combining multiple retrievers (RRF) on medical QA performance?
  • RQ4How does RAG performance scale with the number of retrieved snippets across different tasks?
  • RQ5What practical recommendations can be derived for deploying medical RAG in terms of corpus, retriever, and model choices?

Key findings

  • MedRag improves accuracy for six LLMs by up to 18% relative to chain-of-thought prompting.
  • GPT-3.5 and Mixtral with MedRag can reach GPT-4 level performance on Mirage for some tasks.
  • PubMed is robust across all Mirage tasks; MedCorp (a combination of all corpora) provides strong, task-robust results.
  • MedCPT and BM25 are strong individual retrievers; combining retrievers (RRF) generally helps, but gains vary by task and corpus.
  • A log-linear scaling pattern exists between the number of retrieved snippets and model performance, with a “lost-in-the-middle” effect observed for ground-truth snippet position.
  • Best-practice recommendations include favoring PubMed and MedCorp corpora, using MedCPT as a reliable retriever, and considering RRF configurations (e.g., RRF-2 or RRF-4) depending on corpus.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.