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

Multiple instance learning with graph neural networks

Ming Tu, Jing Huang, Xiaodong He, Bowen ZhouarXiv 2019

Abstract

This paper introduces the first end-to-end framework that treats Multiple Instance Learning (MIL) as a graph classification problem. By leveraging Graph Neural Networks (GNNs) to model the structural relationships between instances within a "bag," the proposed model moves beyond the restrictive assumption that data points are independent and identically distributed (i.i.d.). Experimental results across medical imaging, text categorization, and classic MIL benchmarks demonstrate that this approach achieves state-of-the-art performance while providing high interpretability through hierarchical clustering.

Introduction

Multiple Instance Learning (MIL) is a form of weakly supervised learning where training data is organized into "bags." In the standard MIL setting, a bag is labeled positive if at least one instance inside it is positive, and negative if all instances are negative. A common example is medical imaging, where a large image (the bag) may contain many small patches (instances), only a few of which show signs of pathology.

Historically, the core challenge in MIL has been the i.i.d. assumption, where algorithms treat instances within a bag as totally unrelated. However, in real-world scenarios—such as sentences in a document or regions in an image—instances often possess significant spatial or sequential correlations. This paper addresses the limitations of ignoring this "structural information" by transforming the MIL problem into a graph classification task.

Methodology

The authors propose a three-step pipeline to contextualize instances within their respective bags:

  1. Graph Building: To convert a bag into a graph, a heuristic based on Euclidean distance is used. If the distance between the feature vectors of two instances is below a threshold ($\eta$), an undirected edge is drawn between them, allowing the model to capture clusters of similar instances.
  2. GNN Embedding: A variant of GraphSAGE is applied to perform message passing. This allows each node (instance) to update its representation based on its neighbors, effectively contextualizing every instance within the bag's global structure.
  3. Graph Aggregation (Pooling): To produce a single bag-level label, the graph is collapsed into a single vector. The framework primarily utilizes Differentiable Pooling (DiffPool), which learns to hierarchically cluster nodes.
  4. Deep Supervision: To improve stability and mitigate vanishing gradients, "Deep Supervision" (DS) is implemented by adding auxiliary loss functions at various stages of the network.
The proposed end-to-end GNN framework for MIL, incorporating graph coarsening and deep supervision.

Experimental Evaluation

The model was evaluated on three distinct data types to test its versatility:

  • Classic MIL Benchmarks: Five popular datasets including MUSK1, MUSK2 (molecule activity), and image datasets (FOX, TIGER, ELEPHANT).
  • Text Categorization: 20 datasets derived from the 20 Newsgroups corpus, where documents serve as bags and sentences as instances.
  • Medical Imaging: The Messidor dataset, used for screening diabetic retinopathy from retinal fundus photographs.

Key Results and Insights

The GNN-based approach demonstrated significant improvements over previous state-of-the-art (SOTA) methods:

  • Benchmark Performance: The model outperformed previous SOTA methods, such as Attention-MIL and mi-Graph, on four out of five classic benchmark datasets.
  • Medical Imaging Breakthrough: On the Messidor dataset, the model achieved 74.2% accuracy, representing a 6% relative reduction in error rate compared to previous non-deep learning SOTA methods.
  • Text Categorization: The model achieved the highest average accuracy across all 20 text tasks (0.816), beating the MI-Net baseline on 11 individual tasks.
Performance comparison of the proposed GNN approach against state-of-the-art MIL algorithms on classic benchmark datasets.

Beyond raw performance, the use of DiffPool provides inherent interpretability. The "assignment matrix" in the pooling layers acts as a built-in importance map, allowing researchers to identify which specific instances or clusters triggered a positive bag label—a critical feature for clinical applications.

Conclusion

By shifting the perspective of MIL from unordered sets to relational graphs, this work successfully exploits local patterns that traditional MIL ignores. While the current heuristic for graph construction is effective, future work may involve latent graph learning, where the model learns to predict edges dynamically. Despite the increased computational complexity of graph processing, the gains in accuracy and interpretability mark a significant advancement for weakly supervised learning in structured domains.

Summary updated

BibTeX
@misc{tu2019multiple,
  author = {Ming Tu and Jing Huang and Xiaodong He and Bowen Zhou},
  title = {{Multiple instance learning with graph neural networks}},
  year = {2019},
  eprint = {1906.04881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.04881},
}
Figure