Abstract
Multi-instance learning (MIL) is a type of weakly supervised learning dealing with tasks where data is organized into sets of bags, each containing multiple instances. While bag labels are observed, instance labels remain unknown. A core advantage of MIL is its ability to preserve dependencies among object parts. However, most existing algorithms assume instances are identically and independently distributed (i.i.d.), which is often unrealistic. We propose the Multi-Instance Variational Auto-Encoder (MIVAE) to explicitly model inter-instance dependencies for predicting both bag and instance labels. Experimental results across various benchmarks and medical imaging datasets show that MIVAE outperforms state-of-the-art algorithms in both tasks.
Introduction
In Multi-Instance Learning (MIL), the primary challenge lies in the ambiguity of instance labels. We know a "bag" (e.g., a collection of image patches or a set of sentences) has a certain label, but we don't know which specific "instances" within that bag are responsible for it.
The prevailing "standard" approach in MIL assumes that instances within a bag are independent and identically distributed (i.i.d.). This assumption is frequently violated in real-world applications. For instance, in pathology, patches from the same tissue slide share common characteristics like staining intensity and organ structure. Similarly, sentences in a document share the same author's style and context. Most existing MIL algorithms either ignore these dependencies or focus exclusively on bag-level classification, often at the expense of accurate instance-level identification.
The MIVAE Framework
MIVAE addresses these limitations by treating MIL as a generative modeling problem. It explicitly models the non-i.i.d. nature of bags by disentangling latent factors into two distinct types:
- Bag-level Latent Factor ($z^B$): This variable is shared across all instances in a bag, capturing the overarching structural and contextual dependencies—the "common theme" of the bag.
- Instance-level Latent Factors ($z^I_j$): These variables are unique to each instance, capturing individual variations and specific signals.
The architecture incorporates several key innovations to handle the unique structure of MIL data. To ensure permutation invariance—meaning the model's output is independent of the order of instances—the inference model utilizes an "Average" pooling layer to aggregate bag-level features. Furthermore, by separating the "bag context" from the "instance signal," MIVAE can more effectively "clean" instance-level representations of background noise, leading to sharper classification. An auxiliary classifier is trained alongside the VAE to predict labels directly from these disentangled latent factors using max-pooling.
Experimental Evaluation
MIVAE was evaluated across three diverse domains to test its robustness:
- Classic MIL Benchmarks: Musk1 & Musk2 (drug activity) and Fox, Tiger, and Elephant (image retrieval).
- Text Categorization: The 20 NewsGroups dataset, where articles are treated as bags of sentences. This is particularly challenging due to high label sparsity (only ~3% positive instances).
- Medical Imaging: The Colon Cancer dataset, containing over 22,000 nuclei across 100 H&E stained images. The goal here is to identify cancerous cells (instances) using only image-level (bag) labels.
Key Results and Insights
The primary "Aha" moment of this research is that modeling non-i.i.d. dependencies is not just a theoretical improvement but a significant performance multiplier. When the model understands the "background" context of a bag, the "foreground" positive instances become much more distinguishable.
Bag and Instance Classification
MIVAE achieved state-of-the-art results on several benchmarks. For bag classification, it reached the highest average accuracy on Musk1 (0.904) and Tiger (0.850), outperforming methods like AttentionMIL.
The most significant gains were observed in instance classification. On the Colon Cancer dataset, MIVAE achieved an AUC-PR (Area Under the Precision-Recall Curve) of 0.747, a substantial improvement over AttentionMIL's 0.500. Qualitative results further underscore this success; as shown in the heatmaps below, MIVAE identifies nearly all ground-truth positive nuclei, whereas competing models like mi-Net capture only a small fraction.
Conclusion and Future Work
MIVAE demonstrates that explicitly modeling dependencies within bags leads to superior performance in both bag and instance label prediction. While its generative nature makes it more complex than simple discriminative models, the resulting clarity in instance-level identification—particularly in fields like medical imaging—is invaluable.
Future research could explore alternative permutation-invariant pooling strategies, such as attention mechanisms, within the MIVAE framework. Additionally, adapting the model to handle distribution shifts between training and testing data remains a promising avenue for further development.
Summary updated