Which Perturbation Reveals Errors in Black-Box Medical Vision-Language Models?

Baishali Chaudhury, Mohamed Zaid, Jae Oh WooML4H 2026 RejectfromProceedingsasFindingsPoster 2026

TL;DR

When hospitals use medical vision-language models (VLMs) through commercial APIs, they only see the final answer—not the model's internal probabilities or "logits." This paper asks a practical question: if you can only query a black-box model a few times to see if it's likely making a mistake, what should you change between queries? The authors find that asking the model to reason step by step versus answering directly reveals errors far better than changing the output format or randomly resampling—and that a model's own stated confidence is so unreliable it can actually point in the wrong direction.

What Problem Does This Paper Address?

To safely use AI in a clinic, you need to know when to trust it and when to send a case to a human clinician. Traditional uncertainty methods require access to model weights, gradients, or token probabilities. Black-box APIs hide all of that.

The cheapest alternative—simply asking the model "how confident are you?"—is notoriously miscalibrated. A better approach is perturbation-based uncertainty: query the model multiple times in slightly different ways and treat disagreement as a red flag. Prior work has varied input wording, image crops, or decoding temperature, but nobody had systematically tested two levers available on any API: whether the model is asked to reason before answering, and what format the answer must take.

Methods

The authors designed a $2 \times 3$ grid of prompts (six queries per image) across seven configurations of four base models on Amazon Bedrock: Claude Haiku 4.5, Sonnet 4.5, Opus 4.6, and Amazon Nova Lite 2 (tested with reasoning off, low, medium, and high).

Method overview showing the 2x3 query design and how label disagreement and probability entropy combine into MRPE

The two axes were:

  1. Reasoning mode: Direct answer (P1, P3, P5) vs. Chain-of-Thought (P2, P4, P6). Crucially, P2 matches P1 word for word, adding only the instruction to reason step by step.
  2. Answer format: Binary label + probability (P1, P2), ternary label with an explicit "uncertain" option (P3, P4), or binary label + 0–100 confidence (P5, P6).

They measured uncertainty using two behavioral signals:

  • Label Disagreement (BLE): The entropy of the binary label votes across queries.
  • Probability Entropy (SPE): The entropy of the average stated probability from P1 and P2 (which breaks ties when all queries agree on the same label).

These combine into MRPE (BLE + 0.1 * SPE), which ranks cases for clinician review. They compared all 15 possible two-query pairs at matched cost, as well as a 6-query stochastic resampling baseline (temperature 0.8).

Datasets

The authors evaluated their approach on two public medical imaging benchmarks with different label structures:

  • CheXpert (test set): 668 chest radiographs with 14 possible findings (multi-label, where multiple conditions can be present at once).
  • ISIC 2018 Task 3 (test set): 1,512 dermoscopy images with 7 skin lesion diagnoses (single-label, evaluated one-vs-rest).

Key Insights and Ideas

  • Reasoning mode carries the signal; format does not. Pairs that only changed the reasoning mode outperformed pairs that only changed the answer format in all 14 model–dataset combinations. Changing the format on top of reasoning added almost nothing.
  • Two well-chosen queries beat six random ones. Just one direct query and one step-by-step query ({P1, P2}) captured 77% (CheXpert) and 98% (ISIC) of the full six-query battery's above-chance error detection—and beat six rounds of random resampling on every model tested.
  • Stated confidence can actively mislead you. On ISIC, five of the seven model configurations were more confident when they were wrong than when they were right (mean AUROC of 0.457, worse than a coin flip). Routing cases based on stated confidence can actually make clinical outcomes worse.
  • A label-free sanity check. Even without ground-truth labels, a hospital can test whether a model's stated confidence is trustworthy by checking how well it correlates with the two-query behavioral disagreement score. That correlation tracks how useful stated confidence actually is (Spearman $\rho = .786$ on CheXpert, $1.000$ on ISIC).

Key Results

  • Axis comparison: At a matched budget of two queries, reasoning-only pairs beat format-only pairs by a mean macro-AUROC of +.030 on CheXpert and +.026 on ISIC (up to +.074 depending on the model).
  • Error detection: The full six-query MRPE score achieved a mean macro-AUROC of 0.655 on CheXpert and 0.743 on ISIC, beating verbalized confidence (0.541 and 0.457) on all 14 combinations.
Error rate against binned uncertainty for CheXpert and ISIC 2018
  • Simulated clinical review: Sending the 30% most uncertain cases (ranked by MRPE) to a clinician removed 35% of errors on CheXpert and 59% on ISIC. Conversely, routing on stated confidence on ISIC increased remaining errors by 11% on average.
  • Auto-accept: Keeping only cases where both reasoning modes agreed and stated probability was far from 0.5 retained ~42–44% of cases while cutting the error rate by 5.9× on ISIC (and 3.1–3.3× for Claude models on CheXpert).

Limitations and Future Work

The authors note several caveats:

  • Dataset and model scope: Only one dataset was used per label structure (multi-label vs. single-label), and four of the seven configurations were different reasoning-effort settings of a single base model (Nova Lite 2).
  • Prompt and API drift: While P2 isolated the reasoning step from P1, P4 and P6 used slightly longer templates. Additionally, P2 was collected seven months after the other prompts, meaning silent API updates could have introduced drift.
  • Retrospective benchmarks: Both datasets are public (and potentially in the models' training data), and the deferral workflows are retrospective simulations—not prospective clinical trials. Future work is needed to validate these thresholds on private clinical data and understand why probability entropy helped Claude models on CheXpert but not Nova.

Summary updated

BibTeX
@inproceedings{chaudhury2026which,
  author = {Baishali Chaudhury and Mohamed Zaid and Jae Oh Woo},
  title = {{Which Perturbation Reveals Errors in Black-Box Medical Vision-Language Models?}},
  booktitle = {ML4H 2026 RejectfromProceedingsasFindingsPoster},
  year = {2026},
  url = {https://openreview.net/forum?id=5E8njN9SJ0},
}
Figure