ADMIL: Attention-Distilled Multiple Instance Learning for Selective Foundation Model Inference in Pathology
Authors: Duncan Stothers, Ren-Chin Wu, William Lotter
Organizations: Department of Data Science, Dana-Farber Cancer Institute, Boston, MA · Department of Pathology, Dana-Farber Cancer Institute, Boston, MA · Department of Pathology, Brigham and Women’s Hospital, Boston, MA · Harvard Medical School, Boston, MA
Attention-based multiple instance learning (ABMIL) using pathology foundation model embeddings is effective for slide-level tasks, but exhaustive inference requires applying a large image encoder to every foreground tile despite the subsequent attention distribution often concentrating over a small subset of informative regions. We introduce ADMIL (Attention-Distilled Multiple Instance Learning), a selective-compute framework that distills an ABMIL teacher's attention into a lightweight tile-selection model, PriorNet. Using an EfficientNet architecture, PriorNet learns the teacher attention distribution from raw tile pixels with KL divergence; at inference, it scores the foreground pool, selects the top-K tiles, and invokes the expensive foundation model only on that subset before a selected-bag ABMIL student predicts the slide label. Across BRACS, PANDA, and CAMELYON16, ADMIL matches full-teacher headline performance at K=4, 8, and 128 tiles, respectively, avoiding >98% of foundation model (Virchow2) tile embeddings and model inference FLOPs. Random and teacher-attention oracle controls show that this result depends on task-relevant selection rather than tile-count reduction alone. Quantitative and qualitative analyses suggest that PriorNet recovers the teacher's tile ordering with high fidelity while focusing on task-relevant morphological regions. ADMIL shows that nearly all expensive tile encodings can be removed without sacrificing slide-level performance, providing a potential path for more efficient deployment in clinical settings where latency and compute costs are key considerations.
Figures & tables
Figure 1: ADMIL overview. Stage 1: A lightweight image encoder (PriorNet) learns to estimate the attention distribution produced by a frozen foundation model-based ABMIL teacher. Stage 2: PriorNet selects the top- K tiles for generating foundation model embeddings, which are used to train a separate top- K ABMIL predictor. At deployment, ADMIL reduces compute cost by decreasing the number of foundation model calls.
Figure 2: Slide-level performance versus selected tile budget. Columns correspond to CAMELYON16, PANDA, and BRACS. The top row reports each dataset’s primary metric and the bottom row its secondary metric. The black dotted line denotes full-teacher performance, which is compared to ADMIL, a random tile selector, and a top- K teacher oracle. The red dashed vertical line indicates the K value where ADMIL reaches teacher performance. The x-axis is logarithmic and reports both raw K and the corresponding mean foreground fraction. Error bars correspond to 95% confidence intervals.
Figure 3: Teacher-support retrieval by PriorNet. Values correspond to the fraction of the teacher top- K tiles found among the PriorNet top- T tiles, averaged across test slides within each dataset. Cells with T<K are masked. All panels use the same color scale.
Figure 4: Example attention maps. Each row contains a representative test slide from one dataset (left: CAMELYON16, right: PANDA). Panels show the WSI thumbnail, full-bag teacher attention, selected-bag student attention, and the top attended tiles.
Figure 5: Sensitivity to the PriorNet supervision tile budget. Each panel compares PriorNet models trained with 5%, 10%, or 20% of each slide’s foreground candidates. The black dotted line denotes the full-teacher reference. Error bars correspond to 95% confidence intervals. The 10% setting is the default used for main results; the other curves assess robustness to the supervision fraction.
Dataset
Metric
Kcrit
Full teacher
Teacher 95% CI
ADMIL at Kcrit
ADMIL 95% CI
FM saved (%)
FLOPs saved (%)
BRACS
Balanced Acc.
4
0.648
[0.594, 0.700]
0.670
[0.617, 0.720]
99.8
99.6
PANDA
QWK
8
0.854
[0.838, 0.870]
0.858
[0.842, 0.874]
98.5
98.3
CAMELYON16
AUROC
128
0.976
[0.954, 0.991]
0.978
[0.960, 0.992]
99.0
98.7
Table 1: Performance at the descriptive critical tile budget Kcrit . FM saved indicates the percentage of foundation model tile embeddings avoided. Model FLOPs saved accounts for PriorNet, foundation model, and ABMIL operations at inference.
Dataset
Pearson
Pearson 95% CI
Spearman
Spearman 95% CI
CAMELYON16
0.456
[0.425, 0.487]
0.799
[0.778, 0.821]
PANDA
0.622
[0.532, 0.713]
0.839
[0.816, 0.861]
BRACS
0.342
[0.246, 0.412]
0.579
[0.518, 0.628]
Table 2: Correlation between teacher attention and PriorNet scores. Values are computed per WSI and then averaged across WSIs.
In weakly supervised Whole Slide Image (WSI) classification, feature extractors typically compress each image tile into a single global embedding. Consequently, slide-level aggregators are restricted to this coarse tile scale, concealing fine-grained sub-tile evidence from the attention mechanism. We introduce DI-MIL, a framework that decouples encoding context from instance granularity through decomposed instances. By clustering dense spatial tokens from a frozen foundation model within each tile, DI-MIL converts a single tile into multiple independently weighted instance embeddings. As a training-free post-encoding module, DI-MIL integrates seamlessly into existing pipelines without requiring re-encoding or downstream architectural modifications. We evaluate DI-MIL on cytopathology, a challenging testbed where sparse diagnostic signals are easily diluted within standard tiles. Across four datasets, three frozen foundation models, and two attention-based aggregators, DI-MIL demonstrates consistent efficacy, improving 67 of 72 metric-level comparisons, with the largest mean gains reaching 3.64 points under cytopathology-specific backbones. In a broader comparison against seven representative MIL baselines, DI-MIL paired with ACMIL achieves highest mean performance in 33 of 36 backbone-dataset-metric comparisons. Ablations show that direct smaller tiling inflates the extracted tile count by up to 43.3× with non-monotonic performance, whereas DI-MIL incurs zero additional image-extraction overhead while achieving the strongest overall results. These results establish instance construction as an orthogonal design dimension in MIL, supporting DI-MIL as a cost-efficient solution under sparse diagnostic evidence.
Runsheng Liu, Cheng Jin, Hao Jiang +1
Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, Hong Kong, China. · Department of Chemical and Biological Engineering, The Hong Kong University of Science and Technology, Hong Kong, China. · Division of Life Science, The Hong Kong University of Science and Technology, Hong Kong, China. +3
Foundation Models (FMs) have recently redefined the state-of-the-art in histopathology by providing robust representations for whole-slide image (WSI) analysis. However, selecting the optimal foundation model (FM) for a specific clinical cohort currently requires multiple preprocessing steps, followed by computationally expensive feature extraction and the training of a Multiple Instance Learning (MIL) aggregator for every model. In this work, we investigate whether efficient tile-level linear probing can serve as a reliable proxy for slide-level performance, reducing the need to run full slide-level pipelines for every candidate encoder. We benchmark 19 state-of-the-art FMs on 42 slide-level and 16 tile-level tasks, comparing tile probing metrics against slide-level outcomes using ABMIL and Mean Pooling aggregations. We observe a high correlation between tile and slide performance across varying task difficulties, indicating that encoder representation quality is the primary determinant of WSI success. Sensitivity analyses show that transferability is stable across models and is more influenced by cohort sizes and numbers of tiles per slide than by average task difficulty. We also measure the agreement in best performing models between tile and slide-level tasks, showing tile benchmarks reliably shortlist strong candidates. Overall, our study indicates that tile-level benchmarking provides an efficient and practical first step for narrowing down candidate models, while slide-level evaluation remains essential for final validation on clinical tasks.
Sofiène Boutaj, Leo Fillioux, Maria Vakalopoulou +2
Université Paris-Saclay, CentraleSupélec, Gustave Roussy, INSERM, IHU PRISM, Cancer Data Science Unit, France · Université Paris-Saclay, CentraleSupélec, MICS Laboratory, France
Multiple instance learning (MIL) has become the main paradigm for whole-slide image (WSI) analysis in computational pathology. However, existing MIL aggregators are still typically trained from scratch for each downstream task, relying on limited slide-level labels to learn both aggregation mechanisms and downstream discriminative representations simultaneously. As a result, they often suffer from unstable optimization, overfitting, and limited transferability. Similar to pretrained ResNet and Vision Transformer models in natural image learning, MIL also requires reusable pretrained initialization. However, high-quality slide-level pretraining data remain scarce, and MIL models are usually lightweight and weakly supervised, making large-scale pretraining difficult in practice. To address this challenge, we propose a distillation-based pretraining framework for MIL, which leverages two slide-level foundation models, TITAN and CARE, as teachers to transfer their representational knowledge into a diverse set of MIL architectures. To effectively balance supervision from different teachers, we further introduce an angular dispersion normalized distillation loss. The distilled weights are then used as initialization for downstream adaptation. We conduct systematic evaluations on 15 benchmark datasets under both linear probing and full-parameter fine-tuning, and further validate its advantages in few-shot scenarios. Experimental results show that pretraining generally improves MIL aggregators over from scratch training, especially in linear-probing and few-shot settings, while maintaining the computational efficiency of lightweight MIL models. Code is available at https://github.com/fu0201/MIL_Pretrained.
Mingxi Fu, Jiawen Li, Renao Yan +4
Tsinghua Shenzhen International Graduate School, Tsinghua University · University of Washington · City University of Hong Kong (Dongguan) +2