Hallucination Improves Few-Shot Object Detection

Weilin Zhang, Yu-Xiong Wang

Abstract

Few-shot object detection (FSOD) is challenged by the limited visual variety in low-data regimes, often leading to poor classifier generalization. This paper proposes a "hallucinator" network that generates synthetic training examples in the feature space. By transferring visual variations—such as lighting, pose, and viewpoint—from data-rich base classes to data-poor novel classes, the method significantly boosts performance in extremely low-data scenarios (1-3 shots). Evaluations on MS COCO and PASCAL VOC demonstrate that this approach achieves new state-of-the-art results by effectively refining decision boundaries and reducing false positives.

Introduction

Object detection models typically require thousands of annotated examples to achieve high accuracy. In contrast, humans can recognize a novel object after seeing it only once. Few-Shot Object Detection (FSOD) aims to bridge this gap. However, standard two-stage detectors like Faster R-CNN struggle in 1-shot scenarios because the Region Proposal Network (RPN) only provides a few similar crops of the same instance. This lack of diversity prevents the classifier from learning a robust decision boundary that generalizes to different environmental conditions or object poses.

Conceptual overview of the Hallucinator network generating synthetic variations in feature space to improve classification.

Methods

The proposed solution is the Hallucinator Network, a simple multi-layer perceptron (MLP) integrated into the Region of Interest (RoI) head.

Feature-Space Augmentation

Instead of the computationally expensive task of generating new images, the hallucinator operates in the feature space. It generates synthetic feature vectors by combining a "seed" feature from a real image, a class prototype (the mean feature of the class), and random noise.

Variation Transfer and EM Training

The hallucinator is first trained on "base classes" to learn the "logic of variation." It then applies this knowledge to novel classes. The training follows an iterative Expectation-Maximization (EM) style approach:

  1. Hallucinator Training: The classifier is frozen, and the hallucinator is trained to produce features that are useful for the current classifier.
  2. Classifier Refinement: The hallucinator is frozen, and its synthetic "hallucinations" are used alongside real data to refine the classifier’s decision boundaries.
The iterative EM-style training process for the Hallucinator and the Box Classifier/Regressor.

Results and Discussion

The approach was evaluated on MS COCO and PASCAL VOC benchmarks. In the 1-shot regime on PASCAL VOC, the hallucinator improved AP50 from 39.8% to 45.1% for the TFA baseline. On MS COCO, consistent improvements were observed across 1, 2, and 3-shot scenarios.

A key insight is that hallucination primarily helps the model reduce false positives. By populating the feature space with synthetic variations, the model learns a tighter decision boundary, preventing it from misclassifying background or other objects as the novel class. The "Aggressive" version of the model, which generates features earlier in the pipeline, proved particularly effective for generalization across radical pose changes.

Conclusion

While the benefits of hallucination diminish as real training data increases (beyond 10 shots), it provides a significant boost in extremely low-data regimes. Future work may explore more sophisticated hallucinator architectures and improved control over the iterative training process to further push the limits of 1-shot detection.

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