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

Dual-stream Maximum Self-attention Multi-instance Learning

Bin Li, Kevin W. Eliceiri · DOI

Abstract

Multi-instance learning (MIL) is a form of weakly supervised learning where a single class label is assigned to a bag of instances while the instance-level labels are not available. Training classifiers to accurately determine the bag label and instance labels is a challenging but critical task in many practical scenarios, such as computational histopathology. Recently, MIL models fully parameterized by neural networks have become popular due to the high flexibility and superior performance. Most of these models rely on attention mechanisms that assign attention scores across the instance embeddings in a bag and produce the bag embedding using an aggregation operator. In this paper, we proposed a dual-stream maximum self-attention MIL model (DSMIL) parameterized by neural networks. The first stream deploys a simple MIL max-pooling while the top-activated instance embedding is determined and used to obtain self-attention scores across instance embeddings in the second stream. Different from most of the previous methods, the proposed model jointly learns an instance classifier and a bag classifier based on the same instance embeddings. The experiments results show that our method achieves superior performance compared to the best MIL methods and demonstrates state-of-the-art performance on benchmark MIL datasets.

Introduction

In Multi-Instance Learning (MIL), labels are only available for a "bag" of instances rather than individual data points. This is particularly relevant in fields like computational histopathology, where a massive Whole Slide Image (WSI) might be labeled as "cancerous," but the specific cellular patches (instances) responsible for that label are unknown.

Existing neural network-based MIL models often face two significant hurdles. First, full self-attention mechanisms lead to a computational explosion of $O(n^2)$ complexity, making them impractical for large bags. Second, there is a persistent trade-off between the high accuracy of "embedding-based" bag-level models and the interpretability of "instance-based" models. DSMIL addresses both by introducing a dual-stream architecture that optimizes for both efficiency and joint learning.

Methodology

The core innovation of DSMIL is the dual-stream approach using a shared feature extractor. Instead of comparing every instance to every other instance, the model identifies a single "anchor" to guide attention.

The DSMIL architecture featuring dual streams: MIL Max Pooling to identify the top instance and Top-activated self-attention for bag aggregation.
  • Stream 1 (Instance-Level): This stream employs standard MIL max-pooling to evaluate all instances and identify the single "top-activated" instance—the one most likely to trigger a positive bag label.
  • Stream 2 (Bag-Level): This stream uses the top-activated instance from Stream 1 as the sole "query." It calculates attention scores by comparing this single key instance against all other instances in the bag. This reduces complexity from $O(n^2)$ to $O(n)$, making it viable for massive datasets.

The final prediction is a weighted fusion of scores from both streams, allowing the model to act as both a bag-level classifier and a highly accurate instance-level detector.

Experimental Results

The authors evaluated DSMIL across classical benchmarks (MUSK1, MUSK2), synthetic tasks (MNIST-Bag), and real-world medical datasets.

Performance and Scalability

On the MNIST-Bag dataset, where a bag is positive if it contains the digit '9', DSMIL maintained a near-perfect AUC of 0.993 even as bag sizes increased to 300 instances. This robustness to scale is a significant improvement over previous models that degrade as bags grow larger. The model's ability to pinpoint the specific instance responsible for the bag label is demonstrated by the high activation scores assigned to the target digits.

An example of instance-level identification in the MNIST-Bag dataset, where the model correctly assigns a high activation score (0.905) to the '9' instance.

Breakthroughs in Histopathology

DSMIL showed its most impressive gains in medical imaging. On a Breast Cancer dataset, it achieved 93.7% accuracy (0.951 AUC), a massive leap over previous attention-based MIL models which typically hovered around 75% accuracy. It also reached 91.1% accuracy on a Colon Cancer dataset, proving its efficacy in identifying cancerous regions within complex tissue slides.

Conclusion

DSMIL provides a scalable, efficient, and interpretable framework for MIL. By dropping the computational complexity to $O(n)$ through top-activated self-attention, it enables the use of advanced attention mechanisms on high-resolution pathology images. Furthermore, the joint learning of instance and bag classifiers provides a "free" interpretability layer that is critical for clinical applications.

Summary updated

BibTeX
@misc{li2020dual,
  author = {Bin Li and Kevin W. Eliceiri},
  title = {{Dual-stream Maximum Self-attention Multi-instance Learning}},
  year = {2020},
  eprint = {2006.05538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.05538},
}
Figure