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

Multi-Instance Learning with Distribution Change

Weijia Zhang, Zhi-Hua Zhou

Abstract

Multi-Instance Learning (MIL) models typically assume that training and testing data come from the exact same distribution, an assumption that frequently fails in real-world applications. This paper introduces MICS (Multi-Instance Covariate Shift), the first MIL algorithm designed to handle distribution changes by calculating importance weights at both the "bag" and "instance" levels. MICS significantly outperforms existing methods when data distributions shift, while maintaining top-tier performance on standard, unchanging datasets.

Introduction

Multi-Instance Learning (MIL) is a framework where data is organized into "bags," each containing multiple "instances." A bag is labeled positive if it contains at least one positive instance. While standard MIL algorithms assume independent and identically distributed (i.i.d.) data, real-world applications often face "covariate shift"—a change in feature distribution between training and testing environments while the underlying labeling concept remains constant.

The Challenge of Covariate Shift in MIL

In MIL, covariate shift is uniquely complex because it can occur at two distinct levels:

  1. Bag-Level Shift: The overall context or background of the bags changes (e.g., training on images of cars in cities but testing on cars in rural areas).
  2. Instance-Level Shift: The appearance of the target objects themselves changes (e.g., training on red foxes but testing on gray foxes).
A red fox in a grassy environment, representing a typical training instance in MIL image datasets.

Standard techniques for handling covariate shift in single-instance learning rely on weighting training samples by the ratio of test-to-train density. However, these methods fail in MIL because instances within a bag are not independent, and shifts can happen hierarchically. Ignoring the non-i.i.d. relationship of instances within a bag leads to sub-optimal models.

The MICS Algorithm

The authors propose MICS (Multi-Instance Covariate Shift), which addresses these challenges through a dual-weighting strategy:

  • Bag-Level Weighting: MICS treats each bag as a single entity and uses the MI-Kernel to estimate density ratios between training and testing bags.
  • Instance-Level Weighting: To account for intra-bag dependencies, MICS constructs an $\epsilon$-graph for each bag. Instances are connected if their similarity is within a threshold $\epsilon$. Weights are then adjusted based on graph connectivity to prevent over-counting redundant, highly similar instances.
  • Integration: These weights are incorporated into a modified Multi-Instance Kernel for final classification.

Key Results and Discussion

MICS was evaluated against several baselines across text and image datasets with induced shifts. On 20 datasets from the 20 Newsgroups corpus with bag-level shifts, MICS outperformed or matched all competitors. In image classification tasks, MICS showed dominant performance; for the 'mountain' dataset, MICS achieved 98.0% accuracy, significantly higher than the 94.4% achieved by the next best method.

Testing accuracy vs. epsilon value for the Sunset and Mountain datasets, demonstrating the robustness of the graph-based weighting mechanism.

A key component of MICS is the $\epsilon$-graph. Sensitivity analysis shows that performance is stable across a wide range of $\epsilon$ values once a minimum threshold is met, as seen in the accuracy plateaus for both Sunset and Mountain datasets. Crucially, MICS remains "safe" for deployment; it maintains state-of-the-art performance on standard benchmarks (like Musk1 and Musk2) where no distribution shift is present, ensuring no penalty for its use in stable environments.

Conclusion

MICS represents a significant step forward in making Multi-Instance Learning robust for real-world deployment. By explicitly modeling the dual-hierarchy of covariate shift and accounting for the non-i.i.d. nature of instances, it provides a reliable framework for classification under changing conditions. Future work will explore more complex weight integration strategies and address other forms of distribution change beyond covariate shift.

Summary updated

BibTeX
@inproceedings{zhang2014multi,
  author = {Weijia Zhang and Zhi-Hua Zhou},
  title = {{Multi-Instance Learning with Distribution Change}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8971},
}
Figure