NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Attention-based Deep Multiple Instance Learning

Maximilian Ilse, Jakub M. Tomczak, Max Welling

Introduction

Multiple Instance Learning (MIL) addresses scenarios where labels are assigned to sets of instances, known as "bags," rather than individual data points. A bag is considered positive if it contains at least one positive instance and negative if all its instances are negative. This framework is vital in fields like medical imaging—where a whole tissue slide might be labeled based on a few cancerous cells—and drug discovery.

The MIL Challenge: Accuracy vs. Interpretability

Historically, MIL approaches have faced a fundamental trade-off. Instance-level approaches classify individual items before aggregating results, offering interpretability at the cost of accuracy. Conversely, embedding-level approaches map entire bags to single vectors for classification, achieving higher accuracy but functioning as "black boxes." Furthermore, traditional models rely on fixed, non-trainable pooling operators like max or mean, which lack the flexibility to adapt to complex data distributions.

Proposed Method: Attention-based MIL Pooling

Ilse et al. (2018) propose a novel neural pooling operator based on an attention mechanism. This approach treats the bag label as a Bernoulli distribution and utilizes a neural network to learn a weighted average of instance embeddings. The attention weights, determined by a small two-layer network, signify the importance of each instance to the final bag classification.

To capture more complex, non-linear relationships, the authors also introduce Gated Attention. This variant employs a sigmoid "gate" (reminiscent of LSTM units) to refine the attention scores, allowing the model to focus more precisely on relevant instances.

Experimental Results

The proposed models were evaluated on classical MIL benchmarks, synthetic MNIST-bags, and real-world histopathology datasets.

Data Efficiency and Performance

On the MNIST-bags dataset, the attention-based models demonstrated superior data efficiency. As shown in the figure below, these methods significantly outperform traditional approaches like MI-SVM and fixed-pooling methods, particularly when the number of training bags is limited.

In histopathology tasks, the method achieved state-of-the-art results, with an AUC of 0.799 for Breast Cancer and 0.968 for Colon Cancer.

Interpretability

Beyond performance, the attention weights provide a built-in explanation for the model's decisions. In colon cancer tissue analysis, the attention heatmaps closely aligned with ground-truth epithelial cell locations identified by experts, despite the model only being trained on bag-level labels.

Conclusion

Attention-based MIL pooling effectively bridges the gap between performance and interpretability. By replacing rigid pooling operators with a trainable attention mechanism, the model achieves state-of-the-art accuracy while providing transparent insights into its decision-making process. This approach is particularly robust in low-data regimes and offers a powerful tool for complex classification tasks in medical and scientific domains.

Summary updated

BibTeX
@inproceedings{ilse2018attention,
  author = {Maximilian Ilse and Jakub M. Tomczak and Max Welling},
  title = {{Attention-based Deep Multiple Instance Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure