MINI: Mining Implicit Novel Instances for Few-Shot Object Detection

Yuhang Cao, Jiaqi Wang, Yiqi Lin, Dahua Lin

Abstract

Learning from a few training samples is a desirable ability of an object detector, inspiring the explorations of Few-Shot Object Detection (FSOD). Most existing approaches employ a pretrain-transfer paradigm. The model is first pre-trained on base classes with abundant data and then transferred to novel classes with a few annotated samples. Despite the substantial progress, the FSOD performance is still far behind satisfactory. During pre-training, due to the co-occurrence between base and novel classes, the model is learned to treat the co-occurred novel classes as backgrounds. During transferring, given scarce samples of novel classes, the model suffers from learning discriminative features to distinguish novel instances from backgrounds and base classes. To overcome the obstacles, we propose a novel framework, Mining Implicit Novel Instances (MINI), to mine the implicit novel instances as auxiliary training samples, which widely exist in abundant base data but are not annotated. MINI comprises an offline mining mechanism and an online mining mechanism. The offline mining mechanism leverages a self-supervised discriminative model to collaboratively mine implicit novel instances with a trained FSOD network. Taking the mined novel instances as auxiliary training samples, the online mining mechanism takes a teacher-student framework to simultaneously update the FSOD network and the mined implicit novel instances on the fly. Extensive experiments on PASCAL VOC and MS-COCO datasets show MINI achieves new state-of-the-art performance on any shot and split. The significant performance improvements demonstrate the superiority of our method.

Introduction

Few-shot object detection (FSOD) is a critical frontier in computer vision, aiming to build models that can recognize new objects after seeing only a handful of examples. While humans perform this task effortlessly, deep learning models typically require thousands of labeled images to achieve high accuracy. Most current FSOD methods follow a "pretrain-then-transfer" strategy: training on "base classes" with abundant data and then fine-tuning on "novel classes" with limited samples. However, this approach faces a significant hurdle known as Background Bias.

The Problem: Background Bias and Co-occurrence

The core issue identified by the authors is that objects often co-occur in natural scenes. For example, a cat might be sitting on a sofa, or a rider might be on a motorcycle. In standard datasets, if only the "sofa" or "motorcycle" is annotated as a base class, the model is explicitly taught that the "cat" or the "rider" is merely part of the background.

Implicit novel instances (e.g., cats, riders) often co-occur with base classes but remain unannotated, leading to background bias.

When the model is later asked to learn these novel classes from just a few shots, it must overcome its previous training that these objects are "not objects." These "implicit" novel instances are abundant in base data but are treated as noise or background, hindering the model's ability to learn discriminative features.

The MINI Framework

To address this, the paper introduces MINI (Mining Implicit Novel Instances), a framework designed to turn these unannotated background objects into valuable training data. MINI operates through two complementary stages:

1. Offline Mining

To identify hidden objects without the bias of a supervised detector, MINI employs a Self-Supervised Learning (SSL) model. Unlike supervised models, SSL learns features based on visual similarity rather than labels, making it ideal for finding novel objects that were previously ignored.

A key innovation here is Adaptive Thresholding. Instead of a fixed confidence score, MINI calculates thresholds based on the mean and standard deviation of scores for each specific class. This accounts for the varying difficulty in detecting different object types, ensuring that "harder" classes like birds aren't ignored in favor of "easier" ones like buses.

2. Online Mining and Refinement

Once training begins, MINI uses a Teacher-Student framework to refine these discoveries.

  • The Student: Learns from both the few labeled shots and the mined instances.
  • The Teacher: An Exponential Moving Average (EMA) of the student that mines new instances "on the fly" as the model's understanding improves.
  • Adaptive Mingling: The system balances high-quality offline samples with increasingly diverse online samples, using a dedicated IoU branch to filter out poorly localized boxes that might confuse the regressor.

Key Results and Performance

MINI was evaluated on the PASCAL VOC and MS-COCO datasets, achieving massive jumps over previous state-of-the-art (SOTA) methods.

Performance comparison (nAP50) on PASCAL VOC. MINI significantly outperforms standard TFA and TFA with basic mining across all shot counts.

In the PASCAL VOC 1-shot scenario (Split 1), MINI achieved 72.0 nAP50, a staggering improvement over the previous best of 53.6. On the more challenging MS-COCO dataset (30-shot), MINI reached 27.3 mAP, outperforming the previous SOTA by 4.7 points. Notably, MINI showed robust improvements across every single "shot" count, proving its effectiveness in both ultra-low-data and slightly more data-rich environments.

Conclusion

The success of MINI suggests that "data scarcity" in few-shot learning is partly an artificial constraint of our labeling processes. By intelligently mining the "background" of existing datasets using self-supervised features and adaptive thresholding, MINI effectively bridges the gap between base and novel class learning. This "mining" philosophy offers a promising path forward for other few-shot tasks, such as instance segmentation and video object detection.

Summary updated

BibTeX
@misc{cao2022mini,
  author = {Yuhang Cao and Jiaqi Wang and Yiqi Lin and Dahua Lin},
  title = {{MINI: Mining Implicit Novel Instances for Few-Shot Object Detection}},
  year = {2022},
  eprint = {2205.03381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.03381},
}
Figure