Improving Calibration of Black-Box Radiology AI Using Test-Time Augmentation

Nathan Le, Magdalini Paschali, Arogya Koirala, Andrew Johnston, Zhongnan Fang, David B. Larson, Akshay S. Chaudhari, Camila GonzalezarXiv 2026

TL;DR

The authors introduce DualTTA, a model-agnostic framework that uses clinically grounded test-time augmentation (TTA) to improve the confidence calibration of black-box radiology AI models. Without requiring access to model parameters, logits, or training data, DualTTA reduces Expected Calibration Error (ECE) by up to 54%, even outperforming traditional "white-box" calibration techniques.

What Problem Does This Paper Address?

When AI models are deployed in radiology for tasks like triage or treatment planning, it is vital that their predicted probabilities match real-world risks—a property known as calibration. If a model predicts a 90% chance of a pulmonary embolism, that diagnosis should be correct 90% of the time.

Unfortunately, most commercial medical AI tools operate as "black boxes." Users can only see the final input and output, leaving model architectures, parameters, and training data completely inaccessible. Standard calibration techniques (like Temperature Scaling, MC Dropout, or Deep Ensembles) are useless here because they require internal model access or retraining. This paper addresses the challenge of calibrating these proprietary, black-box systems using only their standard input-output interfaces.

Methods

The authors leverage Test-Time Augmentation (TTA), a technique where an input image is modified in multiple ways, passed through the model, and the resulting predictions are aggregated.

The framework consists of two main components:

  1. Clinically Grounded Augmentation Library: The authors developed a library of 18 3D CT perturbations spanning geometric changes (scaling, rotation, shearing) and physics-based acquisition artifacts (motion blur, noise, undersampling) across three severity levels, all validated by a radiologist to ensure clinical plausibility.
  2. DualTTA Aggregation Strategy: Instead of simply averaging the predictions, the authors propose a novel learned aggregation strategy called DualTTA. It unifies two mechanisms:
  3. Per-augmentation weighting: It learns a specific non-negative weight for each individual perturbation to account for the fact that some augmentations are less reliable than others.
  4. Confidence-gated blending: It blends the aggregated TTA prediction with the original unaugmented baseline prediction. A safety threshold ($\tau = 0.10$) ensures the model's final classification only changes if the TTA prediction is substantially more confident than the baseline, protecting against random fluctuations while correcting overconfident baseline errors.
Fig. 1. Proposed framework for improving black-box calibration. Left: a CT volume is perturbed by geometric and acquisition-based augmentations, and each perturbed volume is scored by the same frozen black-box model (identical black boxes), yielding one class probability estimate per augmentation (green/red bars). (A–F) The com- pared aggregation strategies combine these probabilities into a final, better-calibrated prediction (right side of each panel). Numbers denote aggregation weights, faded bars denote discarded predictions, and gray boxes group augmentations of the same type. In (F), DualTTA additionally blends the aggregated and baseline outputs via a learned coefficient ω.

Datasets

The framework was evaluated on two binary classification tasks using large-scale CT datasets:

  • Pulmonary Embolism (PE) Detection: Evaluated using the INSPECT CTPA dataset (12,716 train / 1,838 val / 3,676 test scans).
  • Intracranial Hemorrhage (ICH) Detection: Evaluated using the RSNA ICH Detection Challenge dataset (15,215 train / 2,174 val / 4,354 test scans).

Key Insights and Ideas

  • Aggregation strategy is make-or-break: Simply applying TTA does not guarantee better calibration. For instance, using a "Max Weighting" strategy (taking the most confident prediction across views) actually severely worsened calibration, driving up overconfidence.
  • Calibration $\neq$ Discrimination: Aggregating predictions across augmentations primarily shifts the model's confidence scores to be more accurate (calibration) rather than changing its overall diagnostic accuracy (discrimination/AUC).
  • Individual weights matter: Learning weights for each specific perturbation level (AugTTA/DualTTA) performs better than grouping them by type (V-ATTA), as it successfully down-weights highly unstable, severe artifacts.

Key Results

DualTTA achieved the strongest overall calibration performance among all TTA methods:

  • PE Detection: Reduced Expected Calibration Error (ECE) by 54% (from 0.239 down to 0.109).
  • ICH Detection: Reduced ECE by 43% (from 0.051 down to 0.029).

Remarkably, despite being a black-box method, DualTTA outperformed internal-access "white-box" methods like Temperature Scaling and MC Dropout across most calibration metrics.

Fig. 2. Reliability diagrams for detecting pulmonary embolism (A) and intracranial hemorrhage (B) across TTA aggregation methods. Each curve shows the mean fraction of positive cases vs. the mean predicted probability across three model seeds. Shaded bands indicate the inter-seed variability (mean ± std across seeds). Adaptive (quantile- based) binning is used: bin edges are determined from each method’s pooled predictions across seeds such that each bin contains an approximately equal number of samples, avoiding unreliable estimates in sparsely populated probability regions. The better the calibration, the closer to the diagonal.

Limitations and Future Work

The primary limitation is that the black-box models evaluated in this study were simulated by freezing a fine-tuned foundation model (MERLIN), rather than testing on actual commercial, proprietary software.

Additionally, the authors note that future work should evaluate how well this framework holds up under explicit real-world domain shifts, such as testing across different scanner manufacturers and varied institutional protocols.

Summary updated

BibTeX
@misc{le2026improving,
  author = {Nathan Le and Magdalini Paschali and Arogya Koirala and Andrew Johnston and Zhongnan Fang and David B. Larson and Akshay S. Chaudhari and Camila Gonzalez},
  title = {{Improving Calibration of Black-Box Radiology AI Using Test-Time Augmentation}},
  year = {2026},
  eprint = {2609.29931},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.29931},
}
Figure