Bayesian uncertainty estimation improves clinical decision making in medical AI agents

Frederik Hauke, Patrick Wienholt, Christiane Kuhl, Dyke Ferber, Jakob Nikolas Kather, Sven Nebelung, Daniel TruhnarXiv 2026

TL;DR

Equipping a medical image classifier with Monte Carlo dropout provides a reliable epistemic uncertainty signal that significantly improves error detection. However, downstream LLM decision agents can only effectively exploit this uncertainty when it is presented as a pre-digested binary flag rather than raw numerical scores, cutting confident misdiagnoses from 8.5% to 2.7%.

What Problem Does This Paper Address?

Medical AI models are increasingly capable, but they suffer from a major flaw: they don't know what they don't know. Standard deep learning classifiers typically output a single "point prediction" (a probability score) but lack a reliable measure of their own confidence. This leads to overconfident but entirely incorrect predictions, especially in ambiguous, rare, or atypical clinical cases.

While Bayesian deep learning techniques can estimate this "epistemic" uncertainty (the model's lack of knowledge), a critical gap remains: How should this uncertainty be communicated to downstream AI agents? As clinical workflows increasingly rely on Large Language Models (LLMs) to act as coordinating agents, understanding how to format and deliver uncertainty data so these agents can make safe, optimal decisions is paramount.

Study Overview

Methods

The authors designed a complete pipeline combining computer vision, Bayesian uncertainty estimation, and an LLM-based clinical agent:

  1. The Classifier: They fine-tuned a DINOv2 Vision Transformer (ViT-S/14) to identify eight thoracic findings from chest X-rays.
  2. Uncertainty Estimation: To extract epistemic uncertainty without the massive computational cost of training multiple networks (deep ensembles), they used Monte Carlo (MC) dropout. At inference time, they ran 30 stochastic forward passes with active dropout ($p=0.1$). The predictive standard deviation across these passes served as the uncertainty signal.
  3. The Downstream Agent: They deployed an OpenAI GPT-5.1-based agent acting as a clinical-decision-support tool. Given a patient case, the agent had to choose whether to commit (accept the model's diagnosis) or escalate (order a radiologist second read, CT scan, etc.).
  4. Factorial Experiment: To test how presentation affects decision-making, they routed cases through a $2 \times 2$ experimental design crossing the metric (prediction only vs. prediction + uncertainty) with its representation (raw numerical scores vs. a validation-calibrated binary error-risk flag).

Datasets

The study utilized the publicly available TAIX-Ray Thorax chest-radiograph cohort. The data was split into a patient-stratified arrangement to ensure no patient appeared in more than one split:

  • Training set: 137,593 radiographs
  • Validation set: 34,860 radiographs (used for reliability and data-scaling analyses)
  • Test set: 42,928 radiographs (used for the final agent experiment)

Key Insights and Ideas

  • Uncertainty Tracks Overfitting: One of the most striking findings is that MC-dropout predictive standard deviation perfectly mirrors validation loss over training epochs. As the model begins to overfit and lose generalization capability, the standard deviation rises—even when the deterministic point predictions remain confidently pinned near 0 or 1.
  • LLMs Struggle with Raw Numbers: When the LLM agent was given raw standard deviation values alongside predictions, its performance stagnated. It was unable to optimally interpret the raw numerical uncertainty, operating well below the achievable risk frontier.
  • The "Pre-Digested" Principle: Downstream cognitive agents perform best when the numerical reasoning is kept within the specialist model. Passing a simple, calibrated binary flag ("elevated risk" vs. "normal") allowed the agent to hit the model's optimal error-detection frontier.
Training fit and uncertainty co-evolution

Key Results

  • Improved Error Detection: Adding the MC-dropout uncertainty signal to the baseline point prediction raised the X-ray model's error-detection AUROC from 0.74 to 0.77.
  • Reaching the Frontier: When provided with the binary risk flag, the LLM agent's error-catching sensitivity jumped to 0.79, a significant gain of +0.16 over the raw numerical representation.
  • Reduction in Misdiagnoses: On unreliable findings (cases with above-median uncertainty), providing the binary flag cut the agent's rate of confident misdiagnoses from 8.5% down to 2.7%, while leaving correct, reliable calls untouched.

Limitations and Future Work

  • Single Modality & Cohort: The evaluation was restricted to a single imaging modality (chest X-rays) and a single institutional cohort. Testing on diverse external datasets is required to prove generalizability.
  • Automated Evaluation: The agent's commit-vs-escalate decisions were parsed directly from structured text fields generated by the LLM, rather than being adjudicated by real-world human clinicians. Real clinical validation remains future work.
  • Alternative Bayesian Methods: While MC dropout is highly practical and computationally efficient at inference time, future iterations could explore more expressive methods like deep ensembles or variational inference.

Summary updated

BibTeX
@misc{hauke2026bayesian,
  author = {Frederik Hauke and Patrick Wienholt and Christiane Kuhl and Dyke Ferber and Jakob Nikolas Kather and Sven Nebelung and Daniel Truhn},
  title = {{Bayesian uncertainty estimation improves clinical decision making in medical AI agents}},
  year = {2026},
  eprint = {2607.20582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.20582},
}
Figure