NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentiable Zooming for Multiple Instance Learning on Whole-Slide Images

Kevin Thandiackal, Boqi Chen, Pushpak Pati, Guillaume Jaume, Drew F. K. Williamson, Maria Gabrani, Orcun Goksel

Abstract

Whole-slide images (WSIs) in digital pathology present a significant computational challenge due to their gigapixel scale. Traditional Multiple Instance Learning (MIL) methods often struggle with a trade-off between global context and local resolution. We present ZoomMIL, a novel framework that mimics a pathologist's workflow by scanning slides at low resolution and selectively "zooming in" on diagnostically relevant regions. By utilizing a differentiable top-K selection module, ZoomMIL learns optimal zooming policies under weak supervision, achieving state-of-the-art accuracy with up to a 50x reduction in computational cost.

Introduction: The Context-Resolution Trade-off

Digital pathology relies on analyzing massive WSIs, which can contain billions of pixels. Processing these images typically involves two suboptimal strategies:

  1. Single-scale MIL: Analyzing patches at a fixed magnification. Low magnification loses cellular detail, while high magnification loses tissue context and incurs massive computational overhead (e.g., 150 Tera-FLOPs per slide).
  2. Multi-scale MIL: Processing all patches at multiple resolutions, which is computationally prohibitive as it requires encoding every pixel at the highest magnification to link them to lower-resolution versions.

ZoomMIL addresses this by treating WSI analysis as a hierarchical search, selectively processing only the most informative regions at high resolution.

Comparison of WSI analysis strategies: (a) Pathologist workflow, (b) Single-scale MIL, (c) Multi-scale MIL, and (d) the proposed ZoomMIL approach.

Methodology

ZoomMIL introduces a hierarchical architecture that learns to navigate the slide efficiently using only slide-level labels.

Differentiable Zooming (Diff-TopK)

The core innovation is the Differentiable Top-K (Diff-TopK) module. Traditional top-K selection is a non-differentiable operation, which prevents end-to-end training of the selection policy. ZoomMIL employs a perturbed maximum method to make this selection differentiable, allowing the model to learn which regions are "worth zooming in on" based solely on the final diagnosis.

Dual Gated Attention (DGA)

To decouple classification from navigation, ZoomMIL utilizes Dual Gated Attention. One attention mechanism learns the optimal representation for the current scale, while a second mechanism specifically identifies patches to be passed to the next, higher magnification level.

The ZoomMIL architecture: (I) Detailed view of the hierarchical processing with Dual Gated Attention (DGA) and Differentiable Top-K (T). (II) Simplified inference flow showing the efficient "zoom" path.

Multi-Scale Aggregation and Inference Optimization

Features across scales (e.g., 5x, 10x, 20x) are aggregated using sum-pooling, which effectively captures complementary biological information. During inference, the model is deterministic: it only extracts high-resolution features for patches selected at lower resolutions, bypassing over 95% of uninformative tissue and significantly reducing FLOPs.

Experimental Results

The model was evaluated on three major H&E stained datasets: Colorectal Cancer (CRC), Breast Cancer (BRIGHT), and Lymph Node Metastasis (CAMELYON16).

  • Efficiency: ZoomMIL achieved a 40–50x reduction in FLOPs and processing time compared to standard MIL baselines like CLAM or TransMIL.
  • Performance: On the CRC and BRIGHT datasets, ZoomMIL outperformed all baselines in weighted F1-score and accuracy. On CAMELYON16, it maintained competitive performance while being vastly more efficient.
  • Interpretability: Attention maps generated by the model closely align with cancerous regions identified by expert pathologists, validating that the learned zoom policy focuses on biologically relevant features.

Discussion and Limitations

ZoomMIL demonstrates that efficiency and accuracy are not mutually exclusive in WSI analysis. By learning to ignore uninformative regions like background or healthy stroma, the model focuses its computational budget on critical diagnostic areas.

However, a primary limitation is the "needle in a haystack" problem. In cases where metastases are extremely small (e.g., in CAMELYON16), the model may fail to assign sufficient attention at the lowest magnification. If a feature is missed at the initial scale, the model will not zoom in, potentially leading to false negatives. Future work will focus on refining low-magnification attention to better capture these minute features.

Summary updated

BibTeX
@inproceedings{thandiackal2022differentiable,
  author = {Kevin Thandiackal and Boqi Chen and Pushpak Pati and Guillaume Jaume and Drew F. K. Williamson and Maria Gabrani and Orcun Goksel},
  title = {{Differentiable Zooming for Multiple Instance Learning on Whole-Slide Images}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19803-8\_41},
}
Figure