Abstract
In digital pathology, Multiple Instance Learning (MIL) is the standard for analyzing Whole Slide Images (WSIs). However, these models are typically static and suffer from "catastrophic forgetting" when updated with new data. This paper identifies that forgetting in MIL occurs primarily within the attention layers rather than the classifier. To address this, we propose Attention Knowledge Distillation (AKD) to preserve model focus and a Pseudo-Bag Memory Pool (PMP) using a "MaxMinRand" strategy to efficiently store critical patches. Our approach achieves a 37% performance boost over existing continual learning methods on large-scale histopathology benchmarks.
Introduction
Whole Slide Imaging (WSI) produces gigapixel-scale files, making pixel-level annotation impractical. Multiple Instance Learning (MIL) circumvents this by treating a slide as a "bag" of patches, using an attention mechanism to identify diagnostically relevant regions. As medical knowledge and scanning technologies evolve, these models must learn incrementally. Standard Continual Learning (CL) techniques, however, often fail in the MIL context, leading to a complete loss of performance on previously learned tasks.
The Source of Forgetting: Attention Drift
Through decoupling experiments, researchers discovered a critical insight: the classifier (the component that assigns diagnostic labels) remains relatively stable during new task training. In contrast, the attention mechanism—the part of the model that decides "where to look"—drifts significantly. When a model that has "forgotten" an old task has its new attention layer swapped for its original one, performance largely recovers.
Mathematically, this is explained by gradient behavior. While classifier gradients are naturally bounded, attention gradients are unbounded and scale with classifier confidence. This makes the attention network highly volatile and prone to rapid forgetting when exposed to new data distributions.
Proposed Methodology
To mitigate attention drift, we introduce two primary components integrated into a student-teacher framework:
- Attention Knowledge Distillation (AKD): This mechanism forces the current (student) model to maintain the same attention distribution as the previous (teacher) model. By minimizing the KL-divergence between attention scores, the model is prevented from losing its focus on critical diagnostic features from earlier tasks.
- Pseudo-Bag Memory Pool (PMP): Storing entire WSIs for replay is storage-prohibitive. PMP creates "distilled" versions of slides using a MaxMinRand strategy. This strategy selects patches with the highest attention (the diagnostic evidence), the lowest attention (the background context), and random patches (to preserve the overall data distribution).
Experimental Results
The framework was evaluated on the Camelyon-TCGA benchmark, simulating a progression across Breast, Lung, and Kidney cancers. The proposed method achieved a Balanced Average Accuracy (AACC) of 0.729, a massive improvement over the 0.352 achieved by standard Experience Replay (ER).
Qualitative analysis via heatmaps confirms that while standard fine-tuning leads to a loss of focus on ground-truth tumor regions over time, our method maintains a consistent and accurate attention map across sequential tasks.
Conclusion
By identifying the attention layer as the primary site of catastrophic forgetting in MIL, we have developed a targeted solution that significantly improves the stability of medical AI. The combination of AKD and PMP allows models to learn incrementally across different organs and diseases with minimal storage overhead. Future work will focus on data-free replay methods to further enhance patient privacy and exploring continuous, boundary-free data streams.
Summary updated