Benchmarking Retrieval-Augmented Generation for Medicine

TL;DR

Introduced MIRAGE benchmark and MedRAG toolkit, boosting GPT-3.5 accuracy to 71.57%, approaching GPT-4 performance.

cs.CL 🔴 Advanced 2024-02-21 32 views
Guangzhi Xiong Qiao Jin Zhiyong Lu Aidong Zhang
medical QA RAG LLMs information retrieval benchmarking

Key Findings

Methodology

This study introduces the MIRAGE benchmark with 7,663 medical questions and the MedRAG toolkit, systematically evaluating 41 RAG configurations. MedRAG integrates five corpora, four retrievers, and six LLMs, supporting zero-shot learning.

Key Results

  • MedRAG improved GPT-3.5 accuracy to 71.57%, a 17.9% increase over chain-of-thought prompting.
  • PubMed corpus performed best across all tasks, with RRF-4 retriever achieving optimal results.
  • Discovered log-linear scaling between performance and snippet count, and observed 'lost-in-the-middle' effects.

Significance

This work provides a comprehensive evaluation framework and optimization guidelines for RAG systems in medicine, addressing hallucinations and outdated knowledge in LLMs, significantly enhancing reliability and accuracy in medical QA.

Technical Contribution

First systematic comparison of RAG components' impact on medical QA performance. Proposed MedCorp corpus and RRF-4 retriever combination, validating RAG's potential in medicine.

Novelty

MIRAGE is the first benchmark tailored for medical RAG, combining diverse corpora and retrievers to highlight RAG's unique advantages in medical QA.

Limitations

  • Limited improvement for complex medical exam questions due to retrieval challenges.
  • High computational resources required for large-scale corpora.
  • Evaluations limited to zero-shot learning scenarios, excluding fine-tuning.

Future Work

Future work could explore more efficient retrieval algorithms, broader medical corpora, and hybrid approaches combining fine-tuning with RAG.

AI Executive Summary

Large language models (LLMs) excel in medical QA but face challenges like hallucinations and outdated knowledge. To address this, the authors introduced the MIRAGE benchmark and MedRAG toolkit, systematically evaluating 41 RAG configurations across five corpora, four retrievers, and six LLMs.

Experiments showed that MedRAG significantly improved GPT-3.5 and Mixtral performance, bringing them close to GPT-4 levels. The combination of the PubMed corpus and RRF-4 retriever yielded the best results. Additionally, the study uncovered a log-linear scaling relationship between snippet count and performance and observed 'lost-in-the-middle' effects in medical RAG.

This work provides actionable guidelines for optimizing RAG systems in medicine, recommending comprehensive corpora like MedCorp and robust retrievers like RRF-4. Future research could explore hybrid methods combining fine-tuning with RAG to further enhance accuracy and reliability in medical QA.

Deep Analysis

Background

LLMs have shown remarkable progress in medical QA, but hallucinations and outdated knowledge limit their practical application. RAG, which integrates external retrieval, offers a promising solution. However, systematic evaluations and optimization guidelines for medical RAG are lacking.

Core Problem

Medical QA requires accurate and reliable answers, but LLMs often generate hallucinated responses. Optimizing RAG components to improve performance in medical QA remains an open challenge.

Innovation

This study introduces the MIRAGE benchmark, the first systematic evaluation of RAG in medicine. Combined with the MedRAG toolkit, it integrates diverse corpora and retrievers to validate RAG's potential.

Methodology

  • �� Developed MIRAGE benchmark with 7,663 medical questions.
  • �� Created MedRAG toolkit supporting five corpora (e.g., PubMed, StatPearls) and four retrievers (e.g., BM25, MedCPT).
  • �� Evaluated six LLMs (e.g., GPT-3.5, Mixtral) in zero-shot learning.
  • �� Analyzed the impact of snippet count on performance.

Experiments

Experiments utilized the MIRAGE benchmark to evaluate 41 RAG configurations. Corpora included PubMed and StatPearls, with retrievers like BM25 and RRF-4. Chain-of-thought prompting served as the baseline.

Results

MedRAG improved GPT-3.5 accuracy to 71.57%, a 17.9% increase over chain-of-thought prompting. PubMed corpus performed best, with RRF-4 retriever achieving optimal results.

Applications

RAG can be applied in medical education, clinical decision support, and research literature retrieval, enhancing efficiency and accuracy in accessing medical information.

Limitations & Outlook

Limited improvement for complex medical exam questions due to retrieval challenges. High computational resources required for large-scale corpora.

Plain Language Accessible to non-experts

Think of RAG as a doctor's assistant. The doctor (LLM) has vast knowledge but sometimes forgets or gets things wrong. RAG acts like a librarian, fetching the latest, most relevant medical literature to help the doctor provide accurate answers.

ELI14 Explained like you're 14

Imagine you're taking a test, and the teacher lets you use books but you have to find the right pages yourself. RAG is like a super librarian who quickly finds the exact pages you need. Cool, right?

Glossary

RAG (Retrieval-Augmented Generation)

A framework combining retrievers and generative models to enhance output quality using external information.

Used to reduce hallucinations and provide up-to-date medical knowledge.

MIRAGE (Medical RAG Evaluation)

A benchmark designed for medical RAG, containing 7,663 medical questions.

Used to systematically evaluate RAG configurations.

MedRAG Toolkit

A toolkit supporting various corpora, retrievers, and LLMs for RAG implementation.

Used for testing RAG performance on MIRAGE.

PubMed

A database of biomedical literature, crucial for medical research.

Serves as a primary corpus for medical QA.

RRF (Reciprocal Rank Fusion)

An algorithm combining results from multiple retrievers to improve retrieval performance.

Optimizes retrieval effectiveness in RAG systems.

Open Questions Unanswered questions from this research

  • 1 How to improve retrieval for complex medical exam questions?
  • 2 How to reduce computational costs in large-scale RAG systems?

Applications

Immediate Applications

Medical Education

Helps students quickly locate exam-relevant knowledge, improving study efficiency.

Clinical Decision Support

Provides doctors with the latest medical literature to aid diagnosis and treatment.

Long-term Vision

Intelligent Medical Assistant

Builds a comprehensive, reliable medical QA system to enhance healthcare services.

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.

cs.CL cs.AI