Uncertainty-based Data-wise Label Smoothing for Calibrating Multiple Instance Learning in Histopathology Image Classification

Hyeongmin Park, Sungrae Hong, Chanjae Song, Jongwoo Kim, Mun Yong Yi

WACV 2025 · OpenReview

TL;DR

This paper introduces UDLS, a novel method for improving the reliability of deep learning models in histopathology image classification. UDLS enhances Multiple Instance Learning (MIL) frameworks by using data-wise label smoothing, where the smoothing is guided by the model's predictive uncertainty for each individual image. This leads to better calibrated predictions and improved classification performance, crucial for safety-critical medical applications.

What Problem Does This Paper Address?

Histopathology image classification, particularly with Whole Slide Images (WSIs), is vital for diagnosing diseases. However, training deep neural networks (DNNs) for this task is challenging due to the massive size and complexity of WSIs, making full annotation impractical. Multiple Instance Learning (MIL) offers a solution by using only slide-level labels. Despite advancements in MIL, a critical issue remains: the reliability of model predictions. In healthcare, it's not enough for models to be accurate; they must also provide accurate confidence estimates, a property known as "calibration." Poorly calibrated models can be over- or under-confident, leading to potentially dangerous misinterpretations. Existing calibration methods often have limitations, such as requiring multiple inference passes (impractical for real-time use) or applying uniform smoothing across all data, failing to account for individual sample uncertainties.

Methods

The proposed method, Uncertainty-based Data-wise Label Smoothing (UDLS), is a two-stage framework designed to be a plug-in for existing MIL models.

Stage 1: Uncertainty Estimation 1. Data Augmentation: The input WSI (represented as a bag of patch features) is augmented using a technique called PatchFeatureDropout. This method randomly masks patch features to create diverse representations of the same WSI, forcing the model to learn more robust features. 2. Multiple Predictions: The augmented data is fed through the MIL model to generate multiple predictions for each WSI. 3. Predictive Uncertainty Calculation: The predictive entropy of these multiple predictions is calculated. This entropy quantifies how uncertain the model is about its prediction for that specific WSI.

Stage 2: Data-wise Label Smoothing 1. Uncertainty Scaling: The calculated predictive entropy is scaled using a parameter $\alpha$ and normalized between the minimum and maximum entropy values observed across the dataset. This produces a data-wise label smoothing factor (LS) that varies for each WSI. 2. Label Smoothing: The original hard labels of the WSIs are softened using this data-wise LS factor. Harder samples (those with higher uncertainty) receive more smoothing, while easier samples receive less. 3. Retraining: The MIL model is then retrained using the original, un-augmented WSI features but with these newly smoothed labels.

This approach allows the model to learn from its own uncertainty during training, adapting the label smoothing intensity based on the difficulty or ambiguity of each individual sample.

Datasets

The paper evaluates its method on two public histopathology WSI datasets:

  • Camelyon16: A dataset for breast cancer metastasis detection, containing 270 training and 130 testing slides.
  • TCGA (Cancer Genome Atlas) lung cancer dataset: Used for lung cancer classification, split into 729 training and 183 testing slides.

Key Insights and Ideas

  • Leveraging Sample-Specific Uncertainty: The core idea is that not all samples are created equal. UDLS explicitly uses the model's own uncertainty estimate for each WSI to tailor the label smoothing, a significant improvement over uniform label smoothing.
  • Data Augmentation for Uncertainty: PatchFeatureDropout is not just for regularization; it's crucial for generating the diverse predictions needed to estimate uncertainty in the first place.
  • Plug-in Nature: UDLS is designed to be a flexible addition to existing MIL frameworks, meaning it can be readily integrated without requiring a complete overhaul of the MIL architecture.
  • Calibration is Key for Reliability: The paper strongly emphasizes that for medical applications, accurate confidence estimates (calibration) are as important as raw accuracy.

Key Results

  • Improved Calibration: UDLS consistently reduced the Expected Calibration Error (ECE) across various MIL frameworks (AB-MIL, Trans-MIL, DTFD-MIL) on both Camelyon16 and TCGA datasets. For instance, on AB-MIL with TCGA, ECE was reduced from 0.202 to 0.077.
  • Enhanced Classification Performance: Alongside calibration, UDLS also improved accuracy and AUC. For example, on AB-MIL with TCGA, accuracy increased from 0.705 to 0.814, and AUC from 0.795 to 0.881.
  • Reliability of Positive Predictions: UDLS achieved high recall for top-N positive predictions, indicating its effectiveness in reducing false negatives (Type II errors), which is critical in medical diagnosis.
  • Qualitative Improvements: Confidence histograms and reliability diagrams showed that UDLS effectively addressed both under-confidence (AB-MIL) and over-confidence (Trans-MIL, DTFD-MIL) issues, leading to predictions that more closely align with actual accuracy.

Limitations and Future Work

  • Computational Cost: While UDLS is integrated into the training process and doesn't add inference time, Stage 1 involves multiple forward passes for uncertainty estimation, which can increase training time.
  • Hyperparameter Tuning: The scaling factor $\alpha$ for label smoothing still needs to be tuned, although the paper suggests it's less sensitive than other hyperparameters.
  • Generalizability: While tested on two datasets, further validation on more diverse histopathology datasets would strengthen the claims of generalizability.

The authors suggest that their UDLS framework can be applied to other weakly supervised learning scenarios beyond histopathology and that further research could explore more sophisticated uncertainty estimation techniques within their framework.