Abstract
Multi-instance learning (MIL) is a critical framework for analyzing whole-slide images (WSIs) in digital pathology, where labels are assigned to entire slides rather than individual patches. However, standard MIL methods often struggle with extreme class imbalance and covariate shifts across different data sources. We present Buffer-MIL, a novel framework that utilizes a global "buffer" of representative positive instances to guide classification. By comparing input patches against this curated memory bank, Buffer-MIL achieves superior robustness and sets new state-of-the-art results on the Camelyon16 dataset, reaching 94.0% accuracy in multi-scale settings.
Introduction
Analyzing Whole-Slide Images (WSIs) in digital pathology is a "needle in a haystack" problem. These images are massive (gigapixels), yet often only a tiny fraction of the tissue contains diagnostic features like tumor cells. Because pixel-level annotation is incredibly labor-intensive, researchers use Multi-Instance Learning (MIL), where a whole slide (a "bag") is labeled, but the individual patches ("instances") are not.
Standard MIL approaches face two major hurdles:
- Class Imbalance: In a positive slide, the vast majority of patches might still be healthy tissue, leading models to overfit or miss the rare positive signals.
- Covariate Shift: The appearance of tissue can vary significantly between different hospitals or scanners. Models often latch onto "noisy" features that don't generalize well to new datasets.
Methods
The authors propose Buffer-MIL, which introduces a "buffer-vs-all" attention mechanism to address these challenges.
The Critical Buffer
The model maintains a buffer ($B$) containing the top-$k$ most "critical" instances from every positive slide in the training set. A "critical" instance is defined as one that is highly informative of the positive class and absent in negative slides. This buffer acts as a global memory bank of known-good positive examples.
Attention Mechanism and Aggregation
Instead of the standard approach of comparing patches within a single slide (self-attention), Buffer-MIL compares every patch in an input slide against the entire buffer. This allows the model to leverage a global "gold standard" of what disease looks like rather than relying solely on internal patch relationships.
The buffer is dynamic, refreshed periodically (e.g., every 10 epochs) as the model improves its ability to identify representative patches. For final classification, the authors found that mean aggregation of buffer scores outperformed max aggregation, as it builds a "consensus" across many representative examples, making the system less sensitive to outliers.
Experimental Results
The model was evaluated on two major public benchmarks: Camelyon16 (breast cancer metastasis) and TCGA Lung Cancer (subtyping LUAD vs. LUSC).
Buffer-MIL demonstrated significant improvements over existing state-of-the-art (SOTA) models like DS-MIL:
- Camelyon16 Performance: Achieved a 2.2% increase in accuracy and a 2.0% increase in AUC over previous SOTA in a single-scale setting. When using multiple image resolutions, Buffer-MIL reached 94.0% accuracy.
- Ablation Studies: The researchers proved that selecting "critical" patches for the buffer is significantly more effective than random "reservoir" sampling, confirming that the quality of the buffer content is vital for performance.
Discussion and Key Insights
Buffer-MIL provides stability through its global memory; the model does not have to "rediscover" what a tumor looks like for every new slide. Furthermore, the authors argue that "critical" instances (actual tumor cells) are morphologically more stable across different datasets than noisy background patches. By forcing the model to focus on these stable features via the buffer, it generalizes better to unseen data and resists covariate shift.
While Buffer-MIL excels at classification, future work is needed to adapt the framework for complex tasks like survival prediction, where tissue morphology may not have a direct, simple connection to the outcome. Future iterations could also utilize multiple buffers per concept to capture greater biological diversity.
Summary updated