eess.IVApr 10, 2026

MedFormer-UR: Uncertainty-Routed Transformer for Medical Image Classification

Authors: Mohammed Maaz Sibhai, Abedalrhman Alkhateeb, Saad B. Ahmed

Organizations: [1] Department of Computer Science, Lakehead University

Abstract

To ensure safe clinical integration, deep learning models must provide more than just high accuracy; they require dependable uncertainty quantification. While current Medical Vision Transformers perform well, they frequently struggle with overconfident predictions and a lack of transparency, issues that are magnified by the noisy and imbalanced nature of clinical data. To address this, we enhanced the modified Medical Transformer (MedFormer) that incorporates prototype-based learning and uncertainty-guided routing, by utilizing a Dirichlet distribution for per-token evidential uncertainty, our framework can quantify and localize ambiguity in real-time. This uncertainty is not just an output but an active participant in the training process, filtering out unreliable feature updates. Furthermore, the use of class-specific prototypes ensures the embedding space remains structured, allowing for decisions based on visual similarity. Testing across four modalities (mammography, ultrasound, MRI, and histopathology) confirms that our approach significantly enhances model calibration, reducing expected calibration error (ECE) by up to 35%, and improves selective prediction, even when accuracy gains are modest.

Figures & tables

Explore similar work

CardsList
  1. Confidence-Uncertainty Boundary Calibration for Bayesian Deep Learning in Medical Image Analysis

    Feb 12, 2026Hua Xu, Julián D. Arias-Londoño, Juan I. Godino-LlorenteBayesian Neural NetworksPost-Hoc Calibration

  2. Uncertainty of Vision Medical Foundation Models

    Aug 31, 2026Haoxu Huang, Narges RazavianMedical Imaging Foundation ModelsUncertainty Quantification

  3. Delving Aleatoric Uncertainty in Medical Image Segmentation via Vision Foundation Models

    Apr 13, 2026Ruiyang Li, Fang Liu, Licheng Jiao +8Medical Image SegmentationSegmentation Uncertainty Estimation