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

Multi-Instance Causal Representation Learning for Instance Label Prediction and Out-of-Distribution Generalization

Weijia Zhang, Xuanhui Zhang, Hanwen Deng, Min-Ling Zhang

Abstract

Multi-instance learning (MIL) deals with objects represented as bags of instances and can predict instance labels from bag-level supervision. However, significant performance gaps exist between instance-level MIL algorithms and supervised learners since the instance labels are unavailable in MIL. Most existing MIL algorithms tackle the problem by treating multi-instance bags as harmful ambiguities and predicting instance labels by reducing the supervision inexactness. This work studies MIL from a new perspective by considering bags as auxiliary information, and utilize it to identify instance-level causal representations from bag-level weak supervision. We propose the CausalMIL algorithm, which not only excels at instance label prediction but also provides robustness to distribution change by synergistically integrating MIL with identifiable variational autoencoder. Our approach is based on a practical and general assumption: the prior distribution over the instance latent representations belongs to the non-factorized exponential family conditioning on the multi-instance bags. Experiments on synthetic and real-world datasets demonstrate that our approach significantly outperforms various baselines on instance label prediction and out-of-distribution generalization tasks.

Introduction

Multi-instance learning (MIL) is a framework where labels are assigned to sets of instances (bags) rather than individual items. A common challenge in MIL is "supervision inexactness," where the specific instance responsible for a bag's label is unknown. Traditional MIL methods often struggle with Out-of-Distribution (OOD) generalization because they tend to capture spurious correlations—features that are common in positive bags but not causal to the label (e.g., specific lighting or staining in a medical scan).

This paper introduces CausalMIL, which shifts the perspective of MIL from simple disambiguation to structured representation learning. By treating the bag structure as rich auxiliary context rather than a source of ambiguity, the model can triangulate and identify the underlying causal factors of each instance.

Methodology: Causal Representation Learning in MIL

CausalMIL decomposes an instance's latent space into two distinct components:

  1. Causal Factors ($z^c$): Features that directly cause the instance label (e.g., the shape of a malignant cell).
  2. Non-Causal Factors ($z^e$): Environmental features inherited from the bag context (e.g., image noise or staining artifacts).
The CausalMIL graphical model (left) illustrating the generation of instances from causal and non-causal latent factors conditioned on bag information $B_i$, alongside example datasets (right).

The model leverages an identifiable Variational Autoencoder (iVAE) framework. While standard VAEs often learn non-unique representations, CausalMIL achieves identifiability by using the entire bag as auxiliary information. It employs permutation-invariant set networks to aggregate bag data and utilizes non-factorized exponential family priors to capture complex dependencies between instances within the same bag.

Experimental Evaluation

The authors evaluated CausalMIL across several benchmarks, including synthetic bags (MNIST, FashionMNIST, Kuzushiji-MNIST) and real-world medical data (Colon Cancer histopathology).

Performance comparison (F-score and AUC-PR) of CausalMIL against baselines on MNIST, FashionMNIST, and KuzushijiMNIST bag datasets.

As shown in the results, CausalMIL consistently and significantly outperforms state-of-the-art methods like MIVAE and Attn-MIL. On MNIST bags, it achieved an F-score of 0.966. In medical imaging, it reached an F-score of 0.833 on the Colon Cancer dataset, a substantial improvement over previous generative MIL approaches.

Beyond standard metrics, CausalMIL demonstrated exceptional resilience to distribution shifts. In the ColoredMNIST OOD benchmark, where color is a spurious correlation, CausalMIL maintained a test accuracy of 89.2%, whereas standard Empirical Risk Minimization (ERM) crashed to 10.5%.

Conclusion

CausalMIL provides a theoretically grounded approach to MIL by integrating causal discovery with deep generative models. By explicitly separating causal factors from environmental noise using bag-level context, it achieves superior instance-level prediction and robust generalization. Future work may explore extending this framework to generalized MIL assumptions and multi-instance regression tasks.

Summary updated

BibTeX
@inproceedings{zhang2022multi,
  author = {Weijia Zhang and Xuanhui Zhang and Hanwen Deng and Min-Ling Zhang},
  title = {{Multi-Instance Causal Representation Learning for Instance Label Prediction and Out-of-Distribution Generalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=xL3Ya_HlKM},
}
Figure