TL;DR
While Large Language Models (LLMs) show great promise in medical diagnostics, their "temperature"—a parameter controlling randomness—can be the difference between a life-saving catch and a dangerous miss. This study reveals that while GPT-4o can achieve 100% diagnostic accuracy at low temperatures, increasing randomness leads to a staggering 583% increase in diagnostic "noise" and a significant drop in reliability for high-stakes emergency cases.
What Problem Does This Paper Address?
As LLMs like GPT-4o are integrated into clinical decision support and "ambient dictation" (tools that draft notes for doctors), a major hurdle remains: non-determinism. If you ask an LLM the same medical question twice, you might get two different answers.
This variability is largely controlled by a parameter called temperature. A low temperature makes the model "boring" and deterministic (picking the most likely words), while a high temperature makes it "creative" and random. In medical research, this setting is frequently left at the default or—worse—not reported at all. The authors sought to quantify exactly how much this "hidden" setting impacts diagnostic accuracy and the breadth of the differential diagnoses in the high-pressure environment of the Emergency Department (ED).
Methods
The researchers conducted a large-scale simulation using GPT-4o (version 2024-05-13). They selected four complex emergency medicine cases and ran them through the model 250 times each, across five different temperature settings (0.0, 0.25, 0.50, 0.75, and 1.0).
To make the simulation realistic, they tested two conditions:
- With Physical Exam: The model received full triage data.
- Without Physical Exam: The model received only history and vitals (simulating early-encounter limitations).
The model was forced to provide exactly three diagnoses: one "leading" and two "differentials." This constraint prevented the model from "cheating" by listing dozens of possibilities. Accuracy was scored using an automated keyword search, which was then validated by blinded human medical reviewers to ensure the "gold standard" was met.
Datasets
The study utilized cases from the Foundations of Emergency Medicine (FoEM) curriculum.
- Why it matters: FoEM is a widely used, login-protected resource. Because the content is behind a paywall/login, it is less likely to have been "leaked" into the LLM's training data, reducing the risk that the model was simply reciting a memorized answer.
- The Cases: The four cases represented different organ systems: Myxedema Coma (Endocrine), Ascending Cholangitis (GI/Infection), Carbon Monoxide Poisoning (Tox), and Cryptococcal Meningitis (Neuro).
Key Insights and Ideas
- The Precision-Exploration Trade-off: Temperature acts as a tuning dial. At 0.0, the model is a "textbook" doctor—highly accurate but narrow. At 1.0, it becomes a "brainstormer," suggesting a wider range of rare conditions but frequently getting the main diagnosis wrong.
- Case Fragility: Not all diseases react to temperature the same way. Carbon Monoxide Poisoning was "robust"—the model got it right 100% of the time regardless of temperature. However, Ascending Cholangitis was "fragile," with accuracy plummeting as randomness increased.
- The Physical Exam is a Stabilizer: For some conditions, the physical exam was the "anchor." Without it, accuracy for Ascending Cholangitis dropped to 0%, proving that LLMs (much like humans) cannot rely on history alone for certain surgical emergencies.
- Inconsistency as "Noise": High temperature didn't just lead to "creative" thinking; it led to "diluted consensus." As temperature rose, the correct diagnosis appeared less frequently, replaced by a "long tail" of less relevant possibilities.
Key Results
- Perfect Baseline: At temperature 0.0 (with physical exam), GPT-4o achieved 100% accuracy for the leading diagnosis across all cases.
- The Accuracy Slide: As temperature increased to 1.0, overall leading diagnosis accuracy fell to 89.4%.
- Explosion of Breadth: The number of unique diagnoses suggested by the model rose from an average of 4.5 (at temp 0.0) to 26.25 (at temp 1.0)—a 583% increase in diagnostic divergence.
- Human-AI Agreement: The automated scoring method was nearly perfect, showing a Cohen’s kappa of 1.0 after expert adjudication, suggesting that keyword-based evaluation is a reliable way to audit these models.
Limitations and Future Work
The authors acknowledge several limitations:
- Simulated Environment: Real-world ED data is much "messier" and noisier than curated FoEM vignettes.
- Model Specificity: The results apply specifically to GPT-4o; other models (like Claude or Gemini) or newer "reasoning" models (like GPT-o1) might behave differently.
- Small Case Sample: Only four cases were used, which may not represent the full spectrum of emergency medicine.
Future Work: The team is currently analyzing how temperature affects the appropriateness of diagnostic tests the LLM recommends. They also suggest that future clinical AI research must transparently report temperature settings to ensure results are reproducible and safe for patient care.
Summary updated