Instance Mining with Class Feature Banks for Weakly Supervised Object Detection

Yufei Yin, Jiajun Deng, Wengang Zhou, Houqiang Li

Introduction

Weakly Supervised Object Detection (WSOD) aims to train object detectors using only image-level labels, bypassing the need for expensive, manually annotated bounding boxes. While Multiple Instance Learning (MIL) is the standard approach, it frequently suffers from the "part-localization" problem. Instead of identifying the entire object, MIL-based models often converge on the most discriminative parts—such as a bird's head or a car's wheels—because these features are highly consistent across images. This paper introduces IM-CFB, a framework designed to overcome this limitation by leveraging "Class Feature Banks" to capture a more holistic representation of object categories.

The IM-CFB Framework

The proposed Instance Mining with Class Feature Banks (IM-CFB) framework integrates a memory-based approach into the standard detection pipeline. By storing and retrieving representative features across the entire dataset, the model gains a global perspective that individual images lack.

The IM-CFB architecture, featuring the MIL and FGIM branches alongside Class Feature Banks and Online Instance Refinement.

The architecture consists of two primary novel components:

  1. Class Feature Banks (CFB): A memory module that stores a set of representative feature vectors for each object category. This allows the model to "remember" what objects look like in diverse poses and contexts encountered throughout training.
  2. Feature Guided Instance Mining (FGIM): An algorithm that uses the CFB to guide the selection of object proposals. By calculating the similarity between current proposals and the high-quality features stored in the bank, FGIM can identify complete object instances that the standard MIL branch might overlook.

Key Insights: Moving from Parts to Whole Objects

The core innovation of IM-CFB is using cross-image diversity to solve the part-localization problem. In a single image, a specific part might be the most reliable indicator of a class. However, by comparing proposals against a bank of features from many different images, the model learns that the "whole" object is the most consistent commonality.

Conceptual flow of IM-CFB: The feature bank helps select proposals that cover the entire object, whereas standard MIL often settles on discriminative parts.

The framework employs a weighted update strategy for the feature banks. Rather than a simple first-in-first-out replacement, new confident features are merged with existing ones using a weighted average. This approach suppresses noise and ensures the bank maintains a diverse, high-quality representation of each class.

Experimental Results

The researchers evaluated IM-CFB on the Pascal VOC 2007 and 2012 benchmarks, achieving state-of-the-art performance for weakly supervised detection:

  • Pascal VOC 2007: The model achieved 54.3% mAP, a significant improvement over previous single-model methods.
  • Retraining Performance: When used to generate pseudo-labels for a standard Fast R-CNN detector, the performance further increased to 55.8% mAP and 72.2% CorLoc.
  • Ablation Studies: Adding the FGIM module to a baseline MIL model improved mAP from 34.8% to 38.0%, demonstrating the effectiveness of feature-guided mining.

Conclusion and Future Work

IM-CFB demonstrates that global memory is a powerful tool for overcoming the inherent limitations of image-level supervision. By identifying entire objects rather than just their most distinct parts, the framework sets a new standard for WSOD. Despite these gains, challenges remain in complex scenes where the model may still focus on parts or group multiple adjacent objects into a single bounding box. Future research will likely focus on improving object disentanglement and further refining the noise-filtering mechanisms within the feature banks.

Summary updated

BibTeX
@inproceedings{yin2021instance,
  author = {Yufei Yin and Jiajun Deng and Wengang Zhou and Houqiang Li},
  title = {{Instance Mining with Class Feature Banks for Weakly Supervised Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i4.16429},
}
Figure