Learning to Find Common Objects Across Few Image Collections

Amirreza Shaban, Amir Rahimi, Shray Bansal, Stephen Gould, Byron Boots, Richard Hartley

Abstract

This paper addresses the challenge of identifying a common object across multiple image sets, known as "bags," using a weakly supervised Multiple Instance Learning (MIL) framework. The authors propose an energy minimization formulation where unary and pairwise potentials are learned through a meta-learning Relation Network. To ensure scalability, they introduce a greedy divide-and-conquer inference algorithm that is approximately 10x faster than traditional methods while maintaining high accuracy.

Introduction

The task of finding common objects across image collections is a fundamental problem in computer vision, with applications in object co-localization and few-shot recognition. In a typical scenario, a user provides several "positive bags"—folders containing at least one instance of a specific, unknown object—and potentially a "negative bag" that lacks the target object. The goal is to select the correct image or region from each positive bag that represents the shared concept.

Overview of the Multiple Instance Learning (MIL) setup with positive and negative bags.

Traditional MIL methods often struggle with few-shot scenarios or require extensive supervision. This work bridges that gap by learning to identify commonalities across very few weakly supervised collections without prior exposure to the specific object classes during training.

Methodology

The authors model the selection process as a minimum-energy graph labeling problem (Markov Random Field). The core innovation lies in learning the potential functions rather than using hand-crafted metrics.

Learned Potentials

  1. Pairwise Potentials: A Relation Network measures the similarity between images across different positive bags. It learns to assign lower energy scores to pairs containing the same object.
  2. Unary Potentials: These potentials evaluate the relationship between a candidate image in a positive bag and all images in the negative bag. The authors use a novel temperature-scaled softmax (exponential-weighted average) to aggregate these relationships, effectively penalizing candidates that resemble negative examples.

Fast Greedy Inference

Since exact energy minimization is NP-hard, the authors propose a tree-based divide-and-conquer algorithm. By recursively splitting bags and pruning partial solutions to keep only the top $k$ lowest-energy candidates, the method avoids the exponential complexity of exhaustive search.

Experiments and Results

The model was evaluated on several benchmark datasets, including miniImageNet for few-shot recognition and COCO 2017/ILSVRC2013 for object co-localization.

  • Few-Shot Success: On miniImageNet, the method achieved a 79.93% success rate, significantly outperforming deep MIL (67.26%) and MI-SVM (73.33%).
  • Co-Localization Accuracy: The approach reached Correct Localization (CorLoc) scores of 65.34% on COCO and 55.18% on ImageNet, surpassing strong baselines like ATNMIL.
  • Efficiency: The greedy inference algorithm demonstrated a 10x speedup over traditional solvers like A* and TRWS without sacrificing performance.

Discussion and Conclusion

A key insight of this work is that learning metrics via a Relation Network is superior to fixed distance measures. Furthermore, the inclusion of negative bags provides critical information for filtering out common "distractor" objects (e.g., background elements like chairs or people). While the greedy inference is an approximation, empirical results suggest it is highly effective for visual MIL tasks. Future work may involve integrating region proposal generation directly into the learning framework to remove the dependency on pre-computed bounding boxes.

Summary updated

BibTeX
@inproceedings{shaban2019learning,
  author = {Amirreza Shaban and Amir Rahimi and Shray Bansal and Stephen Gould and Byron Boots and Richard Hartley},
  title = {{Learning to Find Common Objects Across Few Image Collections}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00522},
}
Figure