Abstract
Multi-instance learning (MIL) has become the standard for whole-slide image (WSI) classification in digital pathology. However, MIL models often suffer from spurious correlations caused by bag contextual priors, such as staining variations or scanner artifacts. We present Interventional Bag Multi-Instance Learning (IBMIL), a novel framework that applies causal intervention to eliminate these confounding effects. By moving from conditional probability $P(Y|X)$ to causal intervention $P(Y|do(X))$ via backdoor adjustment, IBMIL forces the model to focus on diagnostic features rather than contextual noise. Our approach is a "plug-and-play" training strategy that consistently improves the performance and robustness of various MIL aggregators across major benchmarks.
Introduction
The analysis of whole-slide images (WSIs) is central to modern pathology, yet their gigapixel scale presents significant computational challenges. Multi-instance learning (MIL) addresses this by treating a slide as a "bag" of small image patches ("instances"). Despite its success, MIL is prone to learning "bag contextual priors"—spurious correlations where non-diagnostic features (e.g., specific staining reagents or scanner-specific artifacts) become predictive of the label in a specific dataset. This leads to models that are "right for the wrong reasons," failing to generalize to new clinical settings where these contextual cues differ.
Causal Deconfounding Framework
To address this, we reframe WSI classification through a causal lens. In a standard MIL setup, a confounder $C$ (the context) influences both the observed bag $X$ and the label $Y$. This creates a "backdoor path" $X \leftarrow C \rightarrow Y$, leading to biased predictions based on $P(Y|X)$.
IBMIL employs the $do$-operator to perform a causal intervention, $P(Y|do(X))$. As shown in the causal graph, the intervention "cuts" the incoming edges to $X$, effectively removing the influence of the confounder $C$ on the input. This forces the model to learn the direct causal relationship $X \rightarrow Y$, ensuring that predictions are based on intrinsic medical features rather than environmental noise.
The IBMIL Pipeline
The implementation of IBMIL follows a three-stage pipeline designed to be compatible with existing MIL architectures.
- Stage 1 & 2: Initial Training. A standard feature extractor $f(\cdot)$ and aggregator $g(\cdot) \circ \sigma(\cdot)$ are trained to produce initial bag-level features.
- Stage 3: Interventional Training.
- Confounder Dictionary Construction: To represent the hidden confounders, the model applies K-means clustering to the bag features across the entire training set. This creates a "dictionary" of common contexts (e.g., different tissue textures or staining styles) without requiring manual labels.
- Backdoor Adjustment: During training, the model performs backdoor adjustment by simulating the bag's appearance across all contexts in the dictionary. It calculates a weighted average of predictions, effectively de-biasing the model. To maintain efficiency, the authors use the Normalized Weighted Geometric Mean (NWGM) approximation, allowing the intervention to be computed in a single feed-forward pass during inference.
Experimental Results
We evaluated IBMIL on two major public WSI benchmarks: Camelyon16 (breast cancer metastasis detection) and TCGA-NSCLC (lung cancer subtyping).
- Performance Gains: IBMIL consistently improved the Area Under the Curve (AUC) across various aggregators. For instance, on Camelyon16, it boosted the performance of the baseline ABMIL model by 6.36% when using a ResNet-18 backbone.
- Architecture Agnostic: The framework proved effective regardless of the underlying feature extractor. Even with advanced self-supervised backbones like CTransPath, IBMIL provided significant performance lifts (e.g., +1.50% AUC on Camelyon16).
- Robustness: Ablation studies indicated that the method is robust to hyperparameters such as the size of the confounder dictionary and the dimension of the joint feature space, making it easy to deploy without heavy tuning.
Conclusion
IBMIL introduces a principled causal approach to mitigate dataset bias in multi-instance learning for pathology. By decoupling diagnostic features from contextual confounders through backdoor adjustment, it enhances the reliability and generalizability of AI models in clinical workflows. Its "plug-and-play" nature makes it a versatile tool for improving existing and future MIL-based diagnostic systems.
Summary updated