Abstract
Multiple instance learning (MIL) is the preferred approach for whole slide image classification. However, most MIL approaches do not exploit the interdependencies of tiles extracted from a whole slide image, which could provide valuable cues for classification. This paper presents a novel MIL approach that exploits the spatial relationship of tiles for classifying whole slide images. To do so, a sparse map is built from tiles embeddings, and is then classified by a sparse-input CNN. It obtained state-of-the-art performance over popular MIL approaches on the classification of cancer subtype involving 10,000 whole slide images. Our results suggest that the proposed approach might (i) improve the representation learning of instances and (ii) exploit the context of instance embeddings to enhance the classification performance.
Introduction
Histological Whole Slide Images (WSIs) are gigantic, often containing billions of pixels. This scale prevents direct processing by standard convolutional neural networks (CNNs) due to GPU memory constraints. The standard workaround is Multiple Instance Learning (MIL), where a WSI is divided into smaller "tiles" (instances). These tiles are processed independently, and their features are pooled to classify the entire slide (the bag).
However, traditional MIL typically assumes that tiles are independent and identically distributed (i.i.d.), effectively treating the WSI as an unordered bag of features. This approach discards critical spatial context—the physical arrangement of tumor cells, lymphocytes, and stroma relative to one another. SparseConvMIL addresses this gap by embedding the MIL paradigm into a sparse convolutional architecture that preserves spatial layout without the memory overhead of processing full-resolution gigapixel images.
Methods: The SparseConvMIL Framework
SparseConvMIL is a fully differentiable framework that maps patch embeddings back to their original spatial locations to form a sparse grid, which is then processed by a sparse-input CNN.
The pipeline consists of several key stages:
- Tile Embedding: Sampled patches from the WSI are converted into 1D embeddings using a standard CNN encoder ($f_{\theta_1}$).
- Sparse Map Construction: Instead of global pooling, embeddings are placed back at their original $(x, y)$ coordinates on a 2D grid representing the WSI. Because only a fraction of the WSI is sampled, this grid is mostly empty (sparse).
- Downsampling Factor ($d$): To ensure convolutional filters can bridge the gap between distant tiles, the authors introduce a downsampling factor. This artificially brings coordinates closer together in the sparse map, facilitating the capture of spatial context.
- Sparse-Input CNN: The model employs sparse convolutions, which only perform computations on "active" cells where tiles are present. This allows for spatial reasoning across the entire WSI footprint with minimal memory and compute usage.
- Spatial Data Augmentation: Rotations, flips, and deformations can be applied directly to the sparse map coordinates after the expensive tile embedding step, enabling highly efficient training.
Experimental Results
The model was evaluated on two primary datasets: CRCHistoPhenotype (100 images for epithelial vs. non-epithelial classification) and The Cancer Genome Atlas (TCGA), a massive dataset featuring 10,000 WSIs spanning 32 different cancer subtypes.
On the small-scale CRCHistoPhenotype dataset, SparseConvMIL achieved a balanced accuracy of 0.944 and an F1-score of 0.932, outperforming standard Attention-based MIL (0.904 accuracy). The most significant results were observed on the large-scale TCGA benchmark.
As shown in the results table, SparseConvMIL (Proposed-c128,c128) significantly outperformed established baselines. It achieved an accuracy of 0.568 and an AUC of 0.944, substantially higher than Attention-MIL (0.487 accuracy) and Graph-CNN (0.464 accuracy). Notably, SparseConvMIL demonstrated better scalability; while attention-based methods often stagnate as parameter counts increase, the sparse convolutional approach effectively utilized additional capacity to improve performance.
Discussion and Conclusion
The success of SparseConvMIL highlights that spatial context is a vital diagnostic signal in pathology. By treating the WSI as a structured grid rather than an unordered bag, the model captures tissue-level patterns that i.i.d. methods miss.
A critical hyperparameter is the downsampling factor. If it is too small, tiles remain isolated, and filters cannot learn context; if it is too large, multiple tiles may collide at the same coordinate, leading to information loss. Future work will focus on improving model interpretability and exploring more complex sparse-input architectures to further push the boundaries of automated WSI analysis.
Summary updated