Abstract
Although large language models (LLMs) often produce impressive outputs, it remains unclear how they perform in real-world scenarios requiring strong reasoning skills and expert domain knowledge. We set out to investigate whether GPT-3.5 (Codex and InstructGPT) can be applied to answer and reason about difficult real-world-based questions. We utilize two multiple-choice medical exam questions (USMLE and MedMCQA) and a medical reading comprehension dataset (PubMedQA). We investigate multiple prompting scenarios: Chain-of-Thought (CoT, "think step-by-step"), zero- and few-shot (prepending the question with question-answer exemplars) and retrieval augmentation (injecting Wikipedia passages into the prompt). For a subset of the USMLE questions, a medical expert reviewed and annotated the model's CoT. We found that InstructGPT can often read, reason and recall expert knowledge. Failures are primarily due to lack of knowledge and reasoning errors and trivial guessing heuristics are observed, e.g., too often predicting labels A and D on USMLE. Sampling and combining many completions overcome some of these limitations. Using 100 samples, Codex 5-shot CoT not only gives close to well-calibrated predictive probability but also achieves human-level performances on the three datasets. USMLE: 60.2%, MedMCQA: 62.7% and PubMedQA: 78.2%.
Introduction
While LLMs have shown remarkable fluency, the medical field requires more than just linguistic competence; it demands high-stakes reasoning, the ability to recall specific expert knowledge, and the capacity to synthesize clinical data. This study addresses a critical question: Are these models actually reasoning through medical cases, or are they performing sophisticated pattern matching? Furthermore, we explore how different "prompt engineering" strategies—such as asking the model to "think step-by-step"—affect performance on difficult, real-world-based medical exams where the passing threshold is traditionally set by human experts.
Methods
The researchers evaluated several models, including the GPT-3.5 series (InstructGPT, Codex) and open-source models like Llama-2 (70B). The methodology relied on four main pillars:
- Prompt Engineering: The study compared "Direct" prompting against Chain-of-Thought (CoT) prompting, using cues like "Let’s think step by step."
- Self-Consistency (Ensembling): Instead of relying on a single output, the researchers sampled multiple reasoning paths (up to $k=100$) and used a majority vote to determine the final answer.
- Retrieval Augmentation (Grounding): The team tested whether providing the model with relevant snippets from Wikipedia (retrieved via BM25) could reduce hallucinations.
- Expert Human Evaluation: A medical expert manually annotated 50 generated reasoning chains to categorize successes and failures based on logic, knowledge recall, and comprehension.
Datasets
The study focused on three popular medical benchmarks:
- MedQA-USMLE: Questions from the US Medical Licensing Examination, consisting of complex clinical vignettes requiring multi-step reasoning.
- MedMCQA: A large-scale dataset from Indian medical school entrance exams (AIIMS and NEET PG), which is more knowledge-centered.
- PubMedQA: A reading comprehension task requiring "yes/no/maybe" answers based on provided PubMed abstracts.
Key Insights
- The Power of Ensembling: One of the most effective strategies was ensembling. By generating 100 different reasoning paths and selecting the most common conclusion, models significantly boosted their accuracy. This suggests that LLMs often possess the correct knowledge but can be led astray in a single reasoning path.
- Knowledge vs. Logic: Expert evaluation revealed that models often maintained correct logic (70% of cases) but failed due to incorrect or insufficient knowledge (58% of cases). The "reasoning engine" is often functional, but the factual "fuel" can be unreliable.
- Open-Source Parity: Llama-2 70B achieved 62.5% accuracy on MedQA-USMLE, outperforming several versions of GPT-3.5 and indicating that the gap between closed-source and open-source models is closing in specialized domains.
- Calibration: Codex demonstrated strong calibration; when the model assigned a high probability to an answer, it was usually correct. This is vital for clinical safety, allowing systems to signal uncertainty.
Results
Using a 5-shot CoT ensemble with 100 samples, Codex reached 60.2% on MedQA-USMLE, 62.7% on MedMCQA, and 78.2% on PubMedQA. These results effectively meet or exceed the human passing threshold across all three datasets.
Limitations and Conclusion
Despite these successes, several hurdles remain. There is a persistent risk of data contamination in public exam datasets, although analysis suggests the models are performing genuine reasoning rather than simple memorization. Furthermore, simple Wikipedia-based retrieval provided only modest gains, suggesting a need for more sophisticated "medical-grade" retrieval systems using clinical guidelines.
Finally, while models can reason, they still exhibit biases, such as a "positional bias" toward selecting labels 'A' or 'D' when uncertain. These tools should be viewed as assistants to human decision-making rather than replacements, necessitating robust safety guardrails as they are integrated into medical workflows.
Summary updated