Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis

Kunming Tang, Zhiguo Jiang, Jun Shi, Wei Wang, Haibo Wu, Yushan Zheng

Introduction

The analysis of gigapixel whole slide images (WSIs) is a cornerstone of modern digital pathology. Due to the immense size of these images, researchers typically employ Multiple Instance Learning (MIL), where an image is decomposed into thousands of patches. Features are extracted from these patches offline to facilitate efficient training of downstream classifiers. However, this offline approach introduces a significant limitation: the inability to perform standard image-space data augmentations during the MIL training phase without incurring prohibitive computational costs.

The Challenge: Balancing Efficiency and Augmentation

Traditional data augmentation, such as color jittering or geometric transformations, is crucial for model generalization. In WSI analysis, performing these "online" requires re-processing raw pixels for every training iteration, which is bottlenecked by I/O and GPU throughput. Conversely, "offline" feature extraction fixes the representations, preventing the model from seeing variations. Existing feature-space augmentation methods, like Mixup, often fail to preserve the semantic biological integrity of the tissue.

Methodology: PRDL and PRS

To address these challenges, the researchers introduced Promptable Representation Distribution Learning (PRDL) and Promptable Representation Sampling (PRS). This framework bridges the gap between image-space intuition and feature-space efficiency.

1. Promptable Representation Distribution Learning (PRDL)

PRDL shifts the paradigm from mapping patches to static vectors to mapping them to probability distributions. Built upon the DINO self-supervised framework, a distribution estimator learns to represent each patch as a Gaussian distribution defined by a mean and variance. This approach acknowledges that a single tissue patch can have multiple valid representations depending on varying imaging conditions.

2. Promptable Representation Sampling (PRS)

To utilize these learned distributions, the framework uses Augmentation Prompts. These are binary vectors that specify desired image-space operations (e.g., "Flip: Yes, ColorJitter: No"). These prompts guide learnable augmentation masks that constrain the feature distribution. During MIL training, the model samples "augmented" representations from the prompted distribution, effectively simulating real-time image-space augmentation at the speed of vector operations.

Overview of the PRDL and PRS framework, illustrating the learning of representation distributions and the prompted sampling process.

Experimental Evaluation

The framework was rigorously evaluated on three large-scale lung cancer histopathology datasets:

  • USTC-EGFR: 754 WSIs (5-way classification).
  • TCGA-EGFR: 696 WSIs (2-way classification).
  • TCGA-LUNG-3K: 3,064 WSIs (3-way classification).

Evaluation followed a patient-level split (6:1:3) for training, validation, and testing to ensure unbiased results.

Results and Discussion

The PRDL+PRS framework demonstrates substantial performance gains over state-of-the-art MIL models, including CLAM and TransMIL.

  • Performance Gains: On the TCGA-EGFR dataset, the method achieved an 18.4% improvement in F1-score over the baseline DINO model.
  • Robustness: In the USTC-EGFR cohort, the model reached an AUC of 89.4%, outperforming other feature-space augmentation techniques like DAGAN and Mixup.
  • Efficiency: By decoupling augmentation from pixel-level extraction, the framework maintains the high training speeds of offline MIL while gaining the generalization benefits of online augmentation.
Radar charts comparing PRDL+PRS against various self-supervised and augmentation baselines across three datasets and multiple metrics.

Conclusion

PRDL and PRS offer a novel, controllable way to perform data augmentation in the feature space for gigapixel pathology. By treating representations as promptable distributions, the framework preserves semantic meaning while providing significant boosts in classification accuracy and stability. Future work will explore extending these prompts to more complex, domain-specific pathology transformations.

Summary updated

BibTeX
@inproceedings{tang2025promptable,
  author = {Kunming Tang and Zhiguo Jiang and Jun Shi and Wei Wang and Haibo Wu and Yushan Zheng},
  title = {{Promptable Representation Distribution Learning and Data Augmentation for Gigapixel Histopathology WSI Analysis}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i7.32779},
}
Figure