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

Optimizing Bag Features for Multiple-Instance Retrieval

Zhouyu Fu, Feifei Pan, Cheng Deng, Wei Liu

Introduction

Multiple-Instance (MI) learning typically organizes data into "bags," where each bag contains multiple "instances." A common example is an image (the bag) composed of various segmented regions (instances). While traditional MI research has focused heavily on classification—determining if a bag contains at least one relevant instance—real-world applications like image or drug retrieval often require finding similar objects rather than simple binary categorization.

Existing MI methods face several hurdles in retrieval tasks:

  1. Label Constraints: Most require explicit bag-level class labels, which are often unavailable.
  2. Computational Complexity: Direct bag comparisons (e.g., via Hausdorff distance) are computationally expensive at scale.
  3. Rigidity: Classification-based approaches often fail to capture the nuanced similarities inherent in practical datasets.

Methodology

The authors propose a two-step framework to transform MI retrieval into a standard single-instance retrieval task.

Bag Feature Encoding

Each bag is mapped to a single feature vector by measuring the maximum similarity between its instances and a set of "reference points" or prototypes. A high feature value indicates that at least one instance in the bag is highly similar to a specific prototype.

Prototype Optimization

The core innovation lies in treating prototypes as continuous variables in the feature space. Unlike previous methods that select existing instances as prototypes, this algorithm optimizes their locations to maximize discriminative power.

Conceptual diagram of prototype optimization using push and pull forces based on bag similarity.

The optimization process uses pairwise similarity labels to adjust prototype positions:

  • Pull: Similar bags are pulled together in the embedding space.
  • Push: Dissimilar bags are pushed apart.

The authors formulate a least-squares cost function based on these pairwise labels and solve it using a conjugate gradient method, effectively positioning prototypes in the most discriminative regions of the instance space.

Results and Discussion

The proposed method, bagFeatO (Optimized Bag Features), was evaluated on four MI benchmarks: MUSK1, MUSK2, COREL-10, and COREL-20.

Performance and Efficiency

On the MUSK1 dataset, bagFeatO achieved a Mean Average Precision (MAP) of 0.956, significantly outperforming standard Hausdorff distance (0.62) and MI kernels. Furthermore, the method demonstrated robustness, with a small set of 32 optimized prototypes outperforming non-optimized methods using 128 prototypes.

Visualization of final bag features (left) and the convergence of the cost function (right) during optimization.

Once bag-level feature vectors are computed, retrieval becomes a simple vector distance calculation. This reduces complexity from $O(n^2d)$ for traditional bag-to-bag metrics to $O(m)$, where $m$ is the number of prototypes.

Key Insights

  • Pairwise Labels are Sufficient: Powerful retrieval metrics can be learned using only knowledge of which pairs are similar, without requiring explicit class labels.
  • Continuous Optimization: Allowing prototypes to move freely in the instance space provides the flexibility to find "ideal" representatives that may not exist in the raw training data.

Conclusion

This paper introduces the first supervised approach for MI retrieval that moves beyond classification. By optimizing prototypes in a continuous space, the authors enable efficient, high-performance similarity search. Future work may address initialization sensitivity—currently mitigated by K-means—and extend the framework to handle multi-label ambiguity where similarity is context-dependent.

Summary updated

BibTeX
@inproceedings{fu2015optimizing,
  author = {Zhouyu Fu and Feifei Pan and Cheng Deng and Wei Liu},
  title = {{Optimizing Bag Features for Multiple-Instance Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9539},
}
Figure