LVAERMIL: enhancing multiple instance learning robustness via latent variational autoencoders
Abstract Multiple Instance Learning (MIL) has become widely used in medical imaging classification, where precisely annotated data is scarce. MIL methods treat whole slide images as bags of instances (the patches), and only bag labels are required for training. Recently, MIL methods have shown extraordinary results in both classification and tumor localization benchmark tasks. However, in real-world scenarios, slides may be contaminated by tissue from other specimens or artifacts that can extrapolate MIL models and produce medical errors. This presents a challenge for widespread use of MIL in pathology labs. In this work, we propose Latent-VAE-Robust-MIL (LVAERMIL), a novel probabilistic module that learns the instance-level data distribution using a Variational Autoencoder trained on the latent space produced by a feature extractor. This enables the detection of out-of-distribution patches and their elimination from MIL bags, improving the robustness of any MIL model to whole slide image contaminants. The extensive evaluation performed by contaminating two datasets using four foreign tissues and using two scanner-induced artifacts shows that LVAERMIL maintains or improves the accuracy of the eight state-of-the-art MIL models on contaminated datasets, especially when the amount of contamination in the slides is high.
Authors
- Luz García (ORCID: https://orcid.org/0000-0001-5904-5412)
- Rafael Molina (ORCID: https://orcid.org/0000-0003-4694-8588)
- Lee Cooper (ORCID: https://orcid.org/0000-0002-3504-4965)
- Aggelos K. Katsaggelos (ORCID: https://orcid.org/0000-0003-4554-0070)
- Francisco Javier Sáez-Maldonado (ORCID: https://orcid.org/0009-0003-7838-5879)
- Jeffery A. Goldstein (ORCID: https://orcid.org/0000-0002-4086-057X)
Institutions
- Northwestern University (US)
- Universidad de Granada (ES)
- Chan Zuckerberg Biohub Chicago
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-10-24
- DOI
- https://doi.org/10.1038/s41598-026-76226-0
- Primary Topic
- AI in cancer detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00