Causal ATTention Multiple Instance Learning for Whole Slide Image Classification

Xiaochun Wu, Haitao Wang, Hejun WuACML 2024

TL;DR

CATTMIL introduces a "front-door adjustment" strategy from causal inference to eliminate dataset bias in medical image classification. By inserting a causal mediator between image patches and the final diagnosis, the model learns to ignore spurious correlations—like staining colors or biases inherited from natural image pre-training—without needing to explicitly identify or measure those biases.

What Problem Does This Paper Address?

In the world of digital pathology, Whole Slide Images (WSIs) are gigapixel-sized files that are too large for standard deep learning. Researchers use Multiple Instance Learning (MIL), where a slide is treated as a "bag" of thousands of small "instances" (patches).

The challenge is dataset bias. Models often latch onto "confounders"—factors that correlate with the label but aren't the cause of it. For example:

  1. Data Generation Bias: If a specific lab uses a pinker stain for cancer samples and a purpler stain for healthy ones, a model might learn that "pink = cancer," failing miserably when it sees a purple cancer slide.
  2. Pre-training Bias: Most MIL models use feature extractors trained on ImageNet (cats, dogs, cars). These extractors carry hidden biases from natural images that don't translate well to the microscopic structures of human tissue.

Previous attempts to fix this (like IBMIL) used "back-door adjustment," which requires researchers to identify and approximate these confounders—a nearly impossible task given how complex and "hidden" these biases can be.

Methods

The authors propose CATTMIL (Causal ATTention Multiple Instance Learning). Instead of trying to measure the bias directly, they use a front-door adjustment causal graph.

  • The Causal Mediator ($Z$): They insert a mediator between the instance features ($H$) and the bag label ($Y$). This creates a path: $H \to Z \to Y$. By calculating the causal effect through this mediator, they can mathematically "cancel out" the influence of unobserved confounders ($C$).
  • Causal ATTention (CATT): This is the practical implementation. It consists of two attention branches:
  • One branch focuses on local features (the specific patches in the current slide).
  • The other branch interacts with a global dictionary of "prototypes" (representative features learned across the entire dataset).
  • Efficiency Trick: Calculating causal effects usually requires massive sampling, which is computationally expensive. CATTMIL uses the Normalized Weighted Geometric Mean (NWGM) to approximate these calculations in a single network forward pass.

Datasets

The model was evaluated on two heavyweights in the pathology field:

  • TCGA-NSCLC: A dataset for classifying lung cancer subtypes (LUSC vs. LUAD). It is relatively balanced, with tumors occupying large portions of the slides.
  • CAMELYON16: A dataset for detecting breast cancer metastasis in lymph nodes. This is highly imbalanced and difficult because the "positive" areas (cancer) are often tiny compared to the rest of the healthy tissue.

Key Insights and Ideas

  • Front-door vs. Back-door: This is the "aha" moment. Most causal AI in computer vision tries to "see" the bias to fix it (back-door). CATTMIL recognizes that in medical imaging, we often don't know what we don't know. Front-door adjustment allows for deconfounding even when the bias is invisible.
  • Pre-training is a Confounder: The paper highlights that using a ResNet trained on ImageNet is a major source of bias. CATTMIL showed the most significant gains when using these "biased" natural image extractors, proving it can effectively "clean" the features for medical use.
  • Plug-and-Play: CATTMIL is designed as an "add-on." It can be attached to existing state-of-the-art MIL models like DSMIL or TransMIL to boost their performance without a total architecture overhaul.

Key Results

  • Performance Boost: CATTMIL improved accuracy by an average of 3.02% and AUC by 2.99% over standard baselines across different feature extractors.
  • State-of-the-Art: It outperformed IBMIL (the leading back-door adjustment method), particularly on the challenging CAMELYON16 dataset.
  • Efficiency: CATTMIL trains roughly 2.0x faster than IBMIL because it doesn't require an extra training stage to approximate confounder values.
  • Robustness: Ablation studies showed the model is stable across different "global dictionary" sizes, meaning it doesn't require tedious hyperparameter tuning to work effectively.

Limitations and Future Work

While CATTMIL is highly effective for global attention-based MIL (models that look at the relationship between all patches), the authors note that it hasn't yet been adapted for local attention-based MIL (which treats patches more independently).

Future work aims to design a more general framework that can apply this causal front-door adjustment to both local and global MIL architectures, potentially creating a universal "de-biasing" layer for all medical AI.

Summary updated

BibTeX
@inproceedings{wu2024causal,
  author = {Xiaochun Wu and Haitao Wang and Hejun Wu},
  title = {{Causal ATTention Multiple Instance Learning for Whole Slide Image Classification}},
  booktitle = {ACML},
  year = {2024},
  url = {https://openreview.net/forum?id=6IFFEe27C3},
}
Figure