Hallucination Improves Few-Shot Object Detection

Weilin Zhang, Yu-Xiong Wang

Abstract

Few-shot object detection (FSOD) aims to recognize novel object categories with very few training examples. A primary challenge in this regime is the lack of intra-class variation, leading to poor decision boundaries. This paper introduces a "hallucinator" network that generates synthetic training examples in the feature space. By transferring variation patterns from data-rich base classes to data-poor novel classes, the proposed method significantly enhances detection performance, particularly in extremely low-data scenarios (1-3 shots).

Introduction

Modern object detection systems typically require thousands of annotated examples per category to achieve high accuracy. However, in many real-world applications, obtaining such large datasets for rare or novel objects is impractical. Few-shot object detection addresses this by attempting to learn from as few as one to ten examples.

The fundamental difficulty in FSOD is not just the scarcity of images, but the resulting lack of variation. A single image of an object in a specific pose and lighting does not provide enough information for a model to generalize to other conditions. While standard Region Proposal Networks (RPNs) can generate multiple bounding boxes around a single instance, these boxes are highly correlated and do not represent true diversity. Consequently, classifiers often fail to distinguish novel objects from background noise or other categories.

Conceptual overview of the hallucinator generating synthetic variations to improve decision boundaries.

Methodology

The authors propose integrating a Hallucinator Network ($H$) into the Region of Interest (RoI) head of a standard detector, such as Faster R-CNN.

Feature-Level Hallucination

Rather than generating synthetic images at the pixel level—which is computationally intensive and prone to artifacts—the hallucinator operates in the high-dimensional feature space. It takes a "seed" feature vector from a real object and generates multiple synthetic variations.

Variation Transfer

The hallucinator is trained on "base classes" that have abundant data. It learns to capture common modes of variation, such as changes in pose, lighting, and occlusion. This learned "logic of variation" is then applied to novel classes. The core insight is that the ways a common object (e.g., a dog) varies are statistically similar to how a rare object (e.g., a Fennec Fox) might vary.

EM-Style Iterative Training

To ensure the hallucinator and the classifier are mutually optimized, the authors employ an Expectation-Maximization (EM) style training process:

  • Step A (Training Hallucinator): The classifier is frozen, and the hallucinator is trained to produce features that are useful for classification.
  • Step B (Training Classifier): The hallucinator is frozen, and the classifier is re-trained using a combination of real and hallucinated features.
The iterative EM-style training process for the hallucinator and the classifier/regressor.

Experimental Results

The approach was evaluated on the PASCAL VOC and MS COCO benchmarks. The method demonstrates its greatest impact in the extremely-few-shot regime (1 to 3 shots).

On the PASCAL VOC 1-shot task, the hallucinator improved the baseline performance from 44.4 to 47.0 AP50. On MS COCO, the model established new state-of-the-art results for 1-shot and 2-shot detection. Quantitative analysis revealed that the primary benefit of hallucination is a significant reduction in false positives. By providing "close-to-boundary" synthetic examples, the hallucinator teaches the classifier to more accurately define the limits of a category, improving its ability to reject incorrect detections.

Conclusion and Future Work

The hallucinator network effectively compensates for the lack of data in few-shot scenarios by synthesizing plausible feature variations. While highly effective in low-data regimes, the benefits diminish as more real training examples become available and provide natural variation. Future research may explore "aggressive" hallucinators that generate more diverse features to handle larger domain shifts between training and testing environments. Additionally, addressing the slight performance degradation on base classes during novel class fine-tuning remains an open challenge in the field of incremental few-shot learning.

Summary updated

BibTeX
@inproceedings{zhang2021hallucination,
  author = {Weilin Zhang and Yu-Xiong Wang},
  title = {{Hallucination Improves Few-Shot Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01281},
}
Figure