AugDiff: Diffusion-Based Feature Augmentation for Multiple Instance Learning in Whole Slide Image

Zhuchen Shao, Liuxi Dai, Yifeng Wang, Haoqian Wang, Yongbing Zhang

TL;DR

This paper introduces AugDiff, a novel method that leverages Diffusion Models for feature augmentation in Multiple Instance Learning (MIL) for Whole Slide Images (WSIs). By generating diverse and semantically consistent features, AugDiff significantly improves MIL performance and is substantially faster than traditional image augmentation techniques.

What Problem Does This Paper Address?

Whole Slide Images (WSIs) in computational pathology are massive, gigapixel-sized images. Analyzing them with Multiple Instance Learning (MIL) involves breaking them down into tens of thousands of smaller patches. While MIL is powerful for weakly supervised learning (where only the overall image label is known), this patch-heavy nature creates a significant computational bottleneck, especially for data augmentation. Traditional image augmentation, applied offline before feature extraction, is time-consuming and can struggle to generate truly diverse or realistic features due to the inherent redundancy in image data. Existing feature augmentation methods, like Mixup or GAN-based approaches, often produce unrealistic features or suffer from unstable performance. The challenge is to find an efficient and effective way to augment features that improves MIL performance without prohibitive computational costs or generating unrealistic data.

Methods

The core innovation is the integration of Diffusion Models (DMs) into the MIL framework for feature augmentation, dubbed AugDiff. DMs are known for their ability to generate diverse and high-quality data. AugDiff leverages this by:

  • Feature-Level Augmentation: Instead of augmenting raw images, AugDiff augments the extracted patch features. This avoids repeated, costly feature extraction during training.
  • Diffusion Model Integration: A Latent Diffusion Model (LDM) is employed to generate augmented features. The LDM operates in the feature space, making it computationally efficient.
  • Controlled Semantic Preservation: A key challenge in feature augmentation is retaining the original semantic meaning of the features. AugDiff addresses this by using the step-by-step denoising process inherent in DMs. This allows for control over how much semantic information is preserved during augmentation, preventing, for example, a "normal" tissue feature from becoming a "tumor" feature.
  • Image Augmentation for DM Training: To guide the DM in generating diverse features, AugDiff uses six common image augmentation techniques (rotation, elastic deformation, affine transformation, blur, color jitter, HED jitter) to create a richer training dataset for the Diffusion Model itself.
  • Two-Stage Sampling: The sampling process in AugDiff involves a K-step diffusion followed by K-step denoising. This ensures that the augmented features are semantically consistent with the original features while still being diverse.

Datasets

The paper evaluates AugDiff on three distinct cancer datasets:

  • SICAPv2: Prostate cancer WSIs with Gleason-grade annotations.
  • UnitoPatho: Colorectal cancer polyps dataset.
  • TMAs: Pancreatic cancer dataset.

The authors used 4-fold cross-validation for SICAPv2 and TMAs, and the official splitting for UnitoPatho. No new benchmarks were introduced; the focus was on evaluating AugDiff on existing datasets.

Key Insights and Ideas

  • Feature Augmentation is Key for WSI MIL: The sheer scale of WSIs makes traditional image augmentation inefficient. Augmenting at the feature level is a more practical and computationally feasible approach.
  • Diffusion Models Excel at Diverse Feature Generation: DMs, with their inherent generative capabilities, are well-suited to creating a wide variety of augmented features, overcoming the limitations of simpler methods like Mixup.
  • Controlled Semantics are Crucial: Simply generating diverse features isn't enough; they must retain their original meaning. AugDiff's step-by-step denoising process is a clever way to achieve this balance.
  • AugDiff is Significantly Faster: By avoiding repeated feature extraction, AugDiff offers a substantial speedup over patch-based image augmentation, making MIL training more efficient.
  • Generalization is Strong: AugDiff demonstrates good generalization capabilities, performing well even when pre-trained on one dataset and tested on another.

Key Results

  • Performance Improvement: AugDiff consistently achieved the highest AUC (Area Under the ROC Curve) across various MIL models, feature extractors, and datasets, outperforming no augmentation, pseudo-bag construction, feature mixup, GAN-based augmentation, and patch augmentation. For example, on SICAPv2 (ResNet18), AugDiff achieved a mean AUC improvement of +2.3% over patch augmentation.
  • Speed Advantage: AugDiff was over 30 times faster than patch augmentation, as visualized in Figure 3, which shows a dramatic reduction in time needed per WSI as the number of patches increases.
  • Quality of Augmentation: Visualizations using UMAP (Figure 4, 6, 7) showed that AugDiff's augmented features formed more distinct structures and approached the distribution of patch augmentation, indicating high-quality, semantically relevant augmentations.
  • Comparison to SSL: AugDiff outperformed self-supervised learning (SSL) methods like SimSiam in terms of performance, especially on smaller datasets, highlighting its direct applicability to MIL tasks.

Limitations and Future Work

  • Conditional Guidance Impact: The paper found that the conditional guidance mechanism, while useful in image generation, had a less significant impact on feature augmentation performance. The authors suggest that the core benefit comes from feature diversity, and the difference between conditional and unconditional augmentation might be subtle in this context. They also note that the difference between distinct feature augmentation types might be harder to learn than image augmentation types.
  • Future Work: The authors plan to evaluate AugDiff on larger datasets and explore faster sampling techniques to further improve its speed. They also suggest investigating improvements to the conditional guidance mechanism for feature augmentation.

Summary updated

BibTeX
@article{shao2024augdiff,
  author = {Zhuchen Shao and Liuxi Dai and Yifeng Wang and Haoqian Wang and Yongbing Zhang},
  title = {{AugDiff: Diffusion-Based Feature Augmentation for Multiple Instance Learning in Whole Slide Image}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2024},
  doi = {10.1109/tai.2024.3454591},
}
Figure