From Medprompt to o1: Exploration of Run-Time Strategies for Medical Challenge Problems and Beyond

Harsha Nori, Naoto Usuyama, Nicholas King, Scott Mayer McKinney, Xavier Fernandes, Sheng Zhang, Eric HorvitzarXiv 2024 · DOI

Abstract

OpenAI’s o1-preview model has established a new benchmark for artificial intelligence in medicine, outperforming GPT-4 even when the latter is augmented by the sophisticated "Medprompt" strategy. This study explores the performance of "reasoning-native" models, revealing that traditional few-shot prompting can actually hinder o1’s accuracy. By evaluating o1-preview across diverse benchmarks, including the USMLE-style MedQA and the 2024 Japanese Medical Licensing Exam, the researchers demonstrate that while o1-preview achieves record-breaking results, it necessitates a fundamental shift in prompt engineering and a careful consideration of the cost-accuracy trade-off.

Introduction

For the past year, the "Medprompt" strategy—integrating few-shot learning, chain-of-thought (CoT) reasoning, and ensembling—represented the gold standard for adapting general-purpose LLMs to the medical domain without intensive fine-tuning. With the release of OpenAI’s o1-preview, which utilizes reinforcement learning to perform internal reasoning, new questions arise: Does a reasoning-native model still benefit from complex run-time steering? How does it handle high-stakes medical nuances? And is the significant computational cost of its "thinking" phase justified by the gains in accuracy?

Methodology

The researchers compared o1-preview against the GPT-4 family (GPT-4, GPT-4 Turbo, and GPT-4o) using several run-time strategies:

  • Zero-shot: Simple prompting without examples.
  • Few-shot (kNN): Providing contextually similar medical cases retrieved from a database.
  • Medprompt: A combination of kNN few-shot, automated CoT, and choice-shuffle ensembling.
  • Extended Reasoning: Explicitly prompting o1 to "think carefully" to increase reasoning tokens.
  • Ensembling: Running multiple iterations (up to 15x) with shuffled answer choices to utilize majority voting.

Datasets

Performance was measured across a robust suite of benchmarks:

  • Standard Benchmarks: MedQA (USMLE-style), MedMCQA, NCLEX (Nursing), and medical subsets of MMLU (e.g., Clinical Knowledge, Anatomy).
  • JMLE-2024: A newly curated benchmark based on the 2024 Japanese Medical Licensing Exam, ensuring the model could not have memorized the answers during training and testing its reasoning in non-English contexts.

Results and Discussion

Performance Breakthroughs and Benchmark Saturation

o1-preview achieved a staggering 96.0% accuracy on the MedQA (USMLE) benchmark, significantly surpassing the 90.2% achieved by GPT-4 with Medprompt. On many MMLU subsets, the model is reaching 98-99% accuracy, suggesting that these benchmarks are nearing saturation and that remaining errors may stem from noise or flaws within the datasets themselves.

Figure 2: MedQA accuracy over time and performance across diverse medical benchmarks.

The Shift in Prompt Engineering

A critical finding was the counter-intuitive impact of few-shot prompting on o1-preview. While few-shot examples are a staple of prompt engineering for previous models, they actually decreased o1's accuracy. This suggests that excessive context may interfere with the model's internalized reasoning processes. Conversely, ensembling remained highly effective, serving as a variance reduction technique that further boosted performance.

The Pareto Frontier: Accuracy vs. Cost

The study mapped accuracy against API costs, revealing a clear Pareto frontier. While o1-preview is the absolute leader in performance, GPT-4o remains the most cost-effective "value" option. Achieving the jump from 92% to 96% accuracy on MedQA requires a 10x to 100x increase in cost due to the high price of reasoning tokens and the necessity of ensembling for peak results.

Figure 1: Enhanced Pareto Frontier showing the trade-off between accuracy and total cost for various models and strategies.

Conclusion and Future Directions

While o1-preview sets a new standard, its "black box" reasoning—where reasoning tokens are hidden from the API—presents challenges for auditing clinical logic. As benchmarks saturate, the community requires more complex, open-ended clinical reasoning challenges. Future research should focus on "metareasoning" systems that can dynamically decide whether a query requires a cheap model or the expensive, high-powered reasoning of o1, optimizing both performance and cost.

Summary updated

Abstract

Run-time steering strategies like Medprompt are valuable for guiding large language models (LLMs) to top performance on challenging tasks. Medprompt demonstrates that a general LLM can be focused to deliver state-of-the-art performance on specialized domains like medicine by using a prompt to elicit a run-time strategy involving chain of thought reasoning and ensembling. OpenAI's o1-preview model represents a new paradigm, where a model is designed to do run-time reasoning before generating final responses. We seek to understand the behavior of o1-preview on a diverse set of medical challenge problem benchmarks. Following on the Medprompt study with GPT-4, we systematically evaluate the o1-preview model across various medical benchmarks. Notably, even without prompting techniques, o1-preview largely outperforms the GPT-4 series with Medprompt. We further systematically study the efficacy of classic prompt engineering strategies, as represented by Medprompt, within the new paradigm of reasoning models. We found that few-shot prompting hinders o1's performance, suggesting that in-context learning may no longer be an effective steering approach for reasoning-native models. While ensembling remains viable, it is resource-intensive and requires careful cost-performance optimization. Our cost and accuracy analysis across run-time strategies reveals a Pareto frontier, with GPT-4o representing a more affordable option and o1-preview achieving state-of-the-art performance at higher cost. Although o1-preview offers top performance, GPT-4o with steering strategies like Medprompt retains value in specific contexts. Moreover, we note that the o1-preview model has reached near-saturation on many existing medical benchmarks, underscoring the need for new, challenging benchmarks. We close with reflections on general directions for inference-time computation with LLMs.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MedQA · datasetGPT-4oaccuracy88%split: test · few-shot · prompting=few-shot
Source quote
L196: The latest model in the GPT-4 series, GPT-4o (August 2024), introduces a new balance between cost and accuracy. Compared to GPT-4 Turbo, GPT-4o consistently offers both improved accuracy and lower costs across all prompting strategies. As illustrated in Figure~\ref{fig:cost}, GPT-4o significantly shifts the cost-accuracy Pareto frontier, outperforming GPT-4 Turbo on both metrics. While o1-preview excels in terms of absolute accuracy, GPT-4o offers a well-balanced solution with strong performance at a lower cost. For example, increasing from 88% \rightarrow 92% \rightarrow 96% accuracy on the MedQA dataset each requires an order of magnitude increase in price ({\approx}\5 \rightarrow {\approx}\50 \rightarrow {\approx}\500) with the GPT-4o Few-shot, GPT-4o Medprompt, and o1-preview (5x ensemble) strategies respectively. Depending on the specific use case and overall system setup, it is crucial to carefully consider cost-benefit tradeoffs and to optimize resources according to goals and preferences.
MedQA · datasetGPT-4oaccuracy92%split: test · few-shot · prompting=Medprompt
Source quote
L196: The latest model in the GPT-4 series, GPT-4o (August 2024), introduces a new balance between cost and accuracy. Compared to GPT-4 Turbo, GPT-4o consistently offers both improved accuracy and lower costs across all prompting strategies. As illustrated in Figure~\ref{fig:cost}, GPT-4o significantly shifts the cost-accuracy Pareto frontier, outperforming GPT-4 Turbo on both metrics. While o1-preview excels in terms of absolute accuracy, GPT-4o offers a well-balanced solution with strong performance at a lower cost. For example, increasing from 88% \rightarrow 92% \rightarrow 96% accuracy on the MedQA dataset each requires an order of magnitude increase in price ({\approx}\5 \rightarrow {\approx}\50 \rightarrow {\approx}\500) with the GPT-4o Few-shot, GPT-4o Medprompt, and o1-preview (5x ensemble) strategies respectively. Depending on the specific use case and overall system setup, it is crucial to carefully consider cost-benefit tradeoffs and to optimize resources according to goals and preferences.
MedQA · dataseto1-previewaccuracy96%split: test · inference-strategy=5x ensemble
Source quote
L196: The latest model in the GPT-4 series, GPT-4o (August 2024), introduces a new balance between cost and accuracy. Compared to GPT-4 Turbo, GPT-4o consistently offers both improved accuracy and lower costs across all prompting strategies. As illustrated in Figure~\ref{fig:cost}, GPT-4o significantly shifts the cost-accuracy Pareto frontier, outperforming GPT-4 Turbo on both metrics. While o1-preview excels in terms of absolute accuracy, GPT-4o offers a well-balanced solution with strong performance at a lower cost. For example, increasing from 88% \rightarrow 92% \rightarrow 96% accuracy on the MedQA dataset each requires an order of magnitude increase in price ({\approx}\5 \rightarrow {\approx}\50 \rightarrow {\approx}\500) with the GPT-4o Few-shot, GPT-4o Medprompt, and o1-preview (5x ensemble) strategies respectively. Depending on the specific use case and overall system setup, it is crucial to carefully consider cost-benefit tradeoffs and to optimize resources according to goals and preferences.
BibTeX
@misc{nori2024from,
  author = {Harsha Nori and Naoto Usuyama and Nicholas King and Scott Mayer McKinney and Xavier Fernandes and Sheng Zhang and Eric Horvitz},
  title = {{From Medprompt to o1: Exploration of Run-Time Strategies for Medical Challenge Problems and Beyond}},
  year = {2024},
  eprint = {2411.03590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.03590},
}
Figure