nnMIL: A generalizable multiple instance learning framework for computational pathology
Xiangde Luo, Jinxi Xiang, Yuanfeng Ji, Ruijiang Li

TL;DR
nnMIL is a versatile multiple-instance learning framework that effectively integrates patch-level foundation models for accurate, reliable, and generalizable slide-level predictions in computational pathology, supporting diverse clinical tasks.
Contribution
The paper introduces nnMIL, a scalable, task-aware MIL framework that enhances pathology model generalization, uncertainty estimation, and performance across multiple datasets and tasks.
Findings
Outperformed existing MIL methods across 35 clinical tasks.
Demonstrated strong cross-model and cross-cohort generalization.
Enabled reliable uncertainty quantification and survival stratification.
Abstract
Computational pathology holds substantial promise for improving diagnosis and guiding treatment decisions. Recent pathology foundation models enable the extraction of rich patch-level representations from large-scale whole-slide images (WSIs), but current approaches for aggregating these features into slide-level predictions remain constrained by design limitations that hinder generalizability and reliability. Here, we developed nnMIL, a simple yet broadly applicable multiple-instance learning framework that connects patch-level foundation models to robust slide-level clinical inference. nnMIL introduces random sampling at both the patch and feature levels, enabling large-batch optimization, task-aware sampling strategies, and efficient and scalable training across datasets and model architectures. A lightweight aggregator performs sliding-window inference to generate ensemble…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAI in cancer detection · Cell Image Analysis Techniques · Digital Imaging for Blood Diseases
