Can large language models reason about medical questions?

Valentin Liévin, Christoffer Egeberg Hother, Andreas Geert Motzfeldt, Ole Winther

TL;DR

This paper investigates whether general-purpose large language models (LLMs) can tackle complex medical reasoning without specialized fine-tuning. By leveraging advanced prompting techniques like Chain-of-Thought (CoT) and self-consistency ensembling, the authors demonstrate that models like GPT-3.5 and Llama-2 can reach passing scores on professional medical licensing exams, though they still struggle with specific reasoning errors and positional biases.

What Problem Does This Paper Address?

While LLMs have shown remarkable fluency, their ability to perform multi-step reasoning in high-stakes, knowledge-dense domains like medicine remains a subject of intense debate. Most previous evaluations focused on simple fact retrieval. This study asks: Can a general-purpose model actually reason through a clinical case, or is it just performing sophisticated pattern matching? The authors aim to benchmark the "zero-shot" and "few-shot" capabilities of both proprietary (GPT-3.5 series) and open-source (Llama-2) models against difficult, real-world medical examinations.

Methods

The researchers explored several prompting strategies to elicit better reasoning:

  • Chain-of-Thought (CoT): Prompting the model with "Let's think step by step" to encourage explicit intermediate reasoning steps before arriving at a final answer.
  • Few-shot Prompting: Providing the model with a few examples of question-explanation-answer triplets to set the expected logic and format.
  • Self-Consistency (Ensembling): Instead of taking a single answer, the authors sampled multiple reasoning paths (up to $k=100$) and used a majority vote to determine the final answer. This effectively trades inference-time compute for higher accuracy.
  • Retrieval Augmentation (RAG): Using a BM25 retriever to pull relevant context from Wikipedia to "ground" the model's responses in factual data.
  • Expert Annotation: A medical expert manually reviewed 50 generated reasoning chains to categorize them based on correct/incorrect reasoning, knowledge recall, and reading comprehension.
The researchers used various prompt templates, including direct and CoT versions, to test model performance.

Datasets

The study utilized three primary benchmarks:

  1. MedQA-USMLE: Questions styled after the US Medical Licensing Examination, requiring professional-level clinical reasoning.
  2. MedMCQA: A large-scale dataset from Indian medical school entrance exams (AIIMS and NEET PG).
  3. PubMedQA: A reading comprehension task where models must answer "yes/no/maybe" based on provided biomedical abstracts.

The authors noted that MedQA-USMLE is significantly more challenging than the USMLE subset found in the popular MMLU benchmark.

Key Insights and Ideas

  • Reasoning is the Bottleneck: Expert evaluation revealed that when models fail, it’s rarely due to poor reading comprehension. Instead, 86% of incorrect answers involved reasoning errors, and 74% showed a lack of specific domain knowledge.
  • Inference-Time Scaling: A major "aha" moment was the impact of ensembling. As shown in Figure 5, increasing the number of sampled reasoning paths consistently improved accuracy, allowing the model to eventually cross the human passing threshold.
  • The Open-Source Catch-up: While GPT-3.5 (Codex) was the early leader, open-source models are closing the gap rapidly. Llama-2 70B achieved a 62.5% accuracy on MedQA, actually outperforming the proprietary Codex model in some configurations.
  • Positional Bias: The models exhibit a "decoy" effect or positional bias, often favoring certain labels (like 'D') when they are uncertain, suggesting that the order of multiple-choice options can significantly sway the model.
The generative process uses an ensemble approach where multiple reasoning paths (CoTs) are sampled to find the most likely answer.

Key Results

  • Passing the Exam: Using 5-shot CoT with ensembling ($k=100$), GPT-3.5 (Codex) reached passing scores on all three datasets: 60.2% on MedQA-USMLE, 62.7% on MedMCQA, and 78.2% on PubMedQA.
  • Calibration: The models are surprisingly well-calibrated, meaning the probability they assign to an answer generally correlates with the likelihood of that answer being correct. They "know what they know."
  • Llama-2 Performance: Llama-2 70B passed the MedQA-USMLE with 62.5% accuracy, demonstrating that high-parameter open-source models are viable for complex domain tasks.
Accuracy on the USMLE benchmark increases significantly as more reasoning paths are sampled and ensembled.

Limitations and Future Work

Despite these successes, the authors caution against clinical deployment. The models still "hallucinate" incorrect medical facts and can be lead astray by the phrasing or ordering of questions.

Future work is directed toward:

  • Better Grounding: Moving beyond simple Wikipedia retrieval to more specialized medical knowledge bases.
  • Addressing Bias: Developing techniques to mitigate the positional biases observed in multiple-choice formats.
  • Reasoning Safeguards: Creating automated ways to verify the logical steps in a Chain-of-Thought to prevent "right answer, wrong reason" scenarios.

Summary updated

BibTeX
@article{lievin2024can,
  author = {Valentin Liévin and Christoffer Egeberg Hother and Andreas Geert Motzfeldt and Ole Winther},
  title = {{Can large language models reason about medical questions?}},
  journal = {Patterns},
  year = {2024},
  doi = {10.1016/j.patter.2024.100943},
}
Figure