TL;DR
The proposed Attention-based Generative Latent Replay (AGLR-CL) framework addresses the challenge of catastrophic forgetting in digital pathology without violating patient privacy. By using Gaussian Mixture Models (GMMs) filtered by attention scores, it synthesizes past data distributions in the latent space rather than storing raw images. This buffer-free approach achieves state-of-the-art continual learning performance on par with privacy-violating, buffer-based methods.
What Problem Does This Paper Address?
In computational pathology, Whole Slide Images (WSIs) are massive, gigapixel-resolution digital slides used for disease detection and biomarker assessment. Training deep learning models on these images typically relies on Multiple Instance Learning (MIL) due to the lack of pixel-level annotations. However, these models struggle with domain shifts—variations in morphological features caused by different organs, patient cohorts, staining protocols, or scanner manufacturers across institutions.
While fine-tuning a model on a new hospital's dataset seems like an obvious solution, it leads to catastrophic forgetting (CF), where the model loses its ability to classify data from previously learned domains. Continual learning (CL) strategies mitigate this, but the most effective methods are "buffer-based," meaning they store a subset of real patient images from past domains. In the medical field, this creates severe data privacy, legal, and storage bottlenecks. Existing privacy-preserving, buffer-free methods unfortunately suffer from poor performance.
Methods
The authors introduce AGLR-CL (Attention-based Generative Latent Replay Continual Learning), a buffer-free framework designed for domain-incremental WSI classification.
The workflow consists of the following key steps:
- Feature Extraction: WSIs are tessellated into patches, and a frozen foundation model (UNI) extracts low-dimensional patch embeddings.
- Attention-Guided Filtering: Because WSIs contain a lot of uninformative background tissue, an Attention-Based MIL (AB-MIL) aggregator scores the patches. The framework discards low-attention patches, keeping only the top $q\%$ (set to 80% in experiments) of the most salient embeddings.
- GMM-Based Distribution Modeling: Instead of saving the actual embeddings, the framework trains class-wise multivariate GMMs on the filtered patch features to capture domain variations. Concurrently, a one-dimensional GMM is fitted on the patch counts to capture slide-level tissue variability.
- Generative Latent Replay: When transitioning to a new domain, the model generates synthetic "pseudo-WSIs" by sampling patch counts and embeddings from the previously saved GMM families. The model is then trained on a hybrid dataset combining new real data and old synthetic data, reinforcing past knowledge without storing a single real image.
Datasets
The framework was validated on multiple public WSI datasets across diverse organs (colorectal, colon, stomach, uterine, lung, and breast) and clinical centers to simulate realistic domain shifts. The repositories used include:
- The Cancer Genome Atlas (TCGA)
- Clinical Proteomic Tumor Analysis Consortium (CPTAC)
- PAIP2020 challenge
- Early Breast Cancer Core-Needle Biopsy WSI (BCNB)
The tasks evaluated include biomarker screening (Microsatellite Instability [MSI] and Tumor Mutational Burden [TMB]) and molecular status prediction (Progesterone Receptor [PR] and Human Epidermal Growth Factor Receptor 2 [HER2]).
Key Insights and Ideas
- Generative Latent Replay Beats Raw Storage: Storing raw gigapixel images is impractical for privacy and storage reasons. Replaying data in the latent space via statistical models (GMMs) circumvents privacy regulations entirely while keeping the storage footprint negligible.
- Attention as a Denoising Filter: WSIs are inherently noisy. Filtering out low-attention patches before fitting the GMMs ensures that the generative model only memorizes diagnostically relevant features, preventing the GMMs from wasting capacity on background or artifacts.
- Preserving Slide-Length Variability: WSIs vary drastically in patch counts. By explicitly modeling patch count distributions with a 1D GMM, the synthetic streams maintain realistic structural variability, which is crucial for MIL aggregators.
Key Results
The authors evaluated AGLR-CL across five curated domain-incremental sequences (a1 to a5).
- Outperforming Buffer-Free Baselines: AGLR-CL consistently outperformed traditional buffer-free regularization methods (such as LwF, EWC, and SI) across metrics like weighted F1-score, AUROC, and AUPRC.
- Matching Buffer-Based Performance: Remarkably, despite storing zero real historical data, the proposed method performed on par with—and sometimes exceeded—buffer-based methods (Replay and GDumb). For instance, in sequence
a2(MSI prediction), AGLR-CL achieved a weighted F1 accuracy of 78.01, significantly higher than the buffer-based Replay method (68.34).
Limitations and Future Work
The authors noted a limitation during the Tumor Mutational Burden (TMB) prediction task (sequence a5). In this specific scenario, the attention-guided filtering step slightly degraded performance compared to training on all patches. This likely occurred because TMB outcomes exhibit high morphological variability across different organs; discarding patches prematurely can occasionally hurt data recovery for highly complex, heterogeneous biomarkers.
Future work may focus on developing adaptive filtering thresholds or exploring more sophisticated generative models to better handle extreme morphological diversity across multi-organ tasks.
Summary updated