cs.CVOct 7, 2026

SpatialUQ: Post-Hoc Uncertainty Quantification from Spatial Consistency in Black-Box Vision Models

Authors: Md Kawsher Mahbub, Milon Biswas, Mirza Niaz Morshed, Wei Yu

Organizations: NPI University of Bangladesh · Towson University · University of Asia Pacific

Abstract

Clinical vision models are often deployed as frozen black boxes with no access to internals, retraining, or ground truth at inference time. We introduce \textbf{SpatialUQ}, a post-hoc uncertainty method using only output probabilities. It measures the Jensen-Shannon divergence between the global prediction and the mean of five fixed spatial crops in six deterministic forward passes. The premise is simple, trustworthy predictions are spatially consistent. On NIH ChestX-ray14 (DenseNet-121, N=25,596N{=}25{,}596), our Multicrop Uncertainty Score (MUS) reaches 0.7840.784 failure-detection AUC versus 0.6640.664 for MC-Dropout (p<10−6p{<}10^{-6}) at one-fifth the compute, with native calibration (SCE=0.049\text{SCE}{=}0.049 vs.\ 0.1270.127 for ℓ1\ell_1), the best-calibrated among methods above 0.78 AUC. A supervised fusion of MUS with entropy, confidence, and ℓ1\ell_1 reaches 0.8320.832, outperforming a five-member ensemble (0.8130.813). MUS scales with model quality, reaching 0.8990.899 with BiomedCLIP (ρ=0.846ρ= 0.846), while this relationship remains meaningful in-distribution (ρ=0.523ρ= 0.523) but breaks down under severe distribution shift (VinBigData, ρ=0.027ρ= 0.027). MUS is well-suited to diffuse findings but is less dependable for small focal lesions such as nodules. Code and experimental materials are publicly available at https://huggingface.co/datasets/kawsher11/SpatialUQ.

Figures & tables

Appendix figures & tables38 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Uncertainty Is Not a Safety Net for Clinical VQA, but Can It Anticipate Model Failure?

    Jun 15, 2026Arnisa Fazla, Alberto Testoni, Ameen Abu-Hanna +2Large Language Model UncertaintyMedical Visual Question Answering

  2. SegWithU: Uncertainty as Perturbation Energy for Single-Forward-Pass Risk-Aware Medical Image Segmentation

    Apr 16, 2026Tianhao Fu, Austin Wang, Charles Chen +2Semi-Supervised Medical Image SegmentationUncertainty-Aware Classification

  3. Rethinking Correctness for Uncertainty Estimation in Clinical Prediction with Vision-Language Models

    Sep 14, 2026Mingcheng Zhu, Jinning Liang, Tingting ZhuClinical PredictionCorrectness