arXiv:2610.32452cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32452

AutoMIL: Automated Multiple Instance Learning for Whole-Slide Image Classification

Jonas Waibel, Frank Kramer, Dominik Müller

Jonas WAIBEL a^{a}, Frank KRAMER a^{a} and Dominik MÜLLER a,b,1^{a,b,1}

a^{a}IT-Infrastructure for Translational Medical Research, University of Augsburg, Germany

b^{b}Department of Computer Science, Ulm University of Applied Sciences, Ulm, Germany

ORCiD ID: Jonas Waibel https://orcid.org/0009-0008-1796-9826

ORCiD ID: Frank Kramer https://orcid.org/0000-0002-2857-7122

ORCiD ID: Dominik Müller https://orcid.org/0000-0003-0838-9885

Abstract. Developing multiple instance learning pipelines for the classification of whole-slide images involves many interdependent design decisions and expertise in both pathology and machine learning. We present AutoMIL, an open-source framework that applies principles from the field of automated machine learning to tackle this task by automating integral pipeline steps, such as preprocessing, training and evaluation. In a benchmark evaluation with default settings, AutoMIL reached ROC-AUC scores of 0.94 on UBC-OCEAN, 0.99 on PCam and 0.93–0.96 on a TCGA-NSCLC subset, comparable to specialised pipelines in related work. Ensembling mainly improved performance on imbalanced data, showing that an automated pipeline must adapt to dataset characteristics. AutoMIL thus provides an accessible baseline for whole-slide image classification without manual pipeline configuration.

Keywords. Digital pathology, multiple instance learning, automated machine learning, whole-slide imaging

1. Introduction

The gigapixel size of whole-slide images (WSIs) and the fact that they are usually annotated only at slide level make them unsuited as input for conventional machine learning models based on convolutional neural networks (CNNs). Multiple instance learning (MIL), which treats each slide as a bag of tiles, is a common way to address this [1], but it introduces its own set of design choices, from tissue detection and tile resolution to feature extractor, architecture and training hyperparameters. As a result, developing a MIL pipeline for a new dataset is a complex task that requires time and domain knowledge.

Automated machine learning (AutoML) aims to remove such manual configuration [2], but general-purpose AutoML frameworks do not handle gigapixel images or bag construction, and WSI toolkits such as Slideflow [3] or CLAM [4] provide building blocks whose selection and configuration are left to the user. Here, we propose AutoMIL,

1^{1} Corresponding Author: Dominik Müller, E-mail: dominik.mueller@informatik.uni-augsburg.de.

which addresses this gap by automating the complete workflow with sensible defaults that adapt to the data and the available hardware, so that a model ensemble can be trained and evaluated from raw slides and an annotation file with a single command. Furthermore, we evaluate AutoMIL on three public datasets that differ in class balance, slide heterogeneity and bag structure, compare it with published methods, and identify which dataset characteristics limit such a pipeline.