Frustratingly Simple Few-Shot Object Detection

Xin Wang, Thomas E. Huang, Joseph Gonzalez, Trevor Darrell, Fisher Yu

Abstract

Few-shot object detection (FSOD) aims to detect novel objects with only a few annotated examples. While the research community has recently pivoted toward complex meta-learning architectures, this paper demonstrates that a "frustratingly simple" two-stage fine-tuning approach (TFA) significantly outperforms them. By freezing a pre-trained detector's backbone and fine-tuning only the last layers on a balanced dataset, the authors achieve a 2–20 point improvement over previous state-of-the-art results on PASCAL VOC, MS COCO, and LVIS.

Introduction

Object detection is a fundamental computer vision task that requires identifying both the category and location of objects. In the few-shot regime, models must learn to detect novel classes from very few examples (e.g., 1 to 30 bounding boxes).

The prevailing research trend has been to move away from standard fine-tuning, which was thought to perform poorly in low-data scenarios, toward elaborate meta-learning frameworks. These frameworks are designed to "learn how to learn" by training on a series of small tasks involving support and query images. However, as shown in Figure 5, these meta-learners are often computationally expensive and difficult to optimize.

A typical two-stage meta-learning framework for few-shot object detection, involving complex meta-training and meta fine-tuning stages.

Furthermore, the authors identify that existing FSOD benchmarks are highly unstable. A single "lucky" choice of training samples can cause significant swings in accuracy, making it difficult to assess the true efficacy of different algorithms without multi-run evaluations.

The Two-stage Fine-tuning Approach (TFA)

The proposed Two-stage Fine-tuning Approach (TFA) is remarkably straightforward and consists of two distinct phases:

  1. Stage I (Base Training): A standard object detector (e.g., Faster R-CNN) is trained on a large dataset containing abundant "base" classes to learn robust feature representations.
  2. Stage II (Few-shot Fine-tuning): A small, balanced dataset is created containing $K$ instances of both base and novel classes. The "feature extractor" components—including the backbone, Region Proposal Network (RPN), and ROI feature extractor—are frozen. Only the final layers, specifically the box classifier and box regressor, are fine-tuned.
The Two-stage Fine-tuning Approach (TFA). Stage I (left) trains on abundant base data, while Stage II (right) fine-tunes only the final layers on a balanced few-shot dataset with a fixed feature extractor.

A key component of TFA's success is the use of a Cosine Similarity Classifier. Instead of a standard linear layer, the model calculates the cosine similarity between image features and learned class weights. This acts as instance-level normalization, reducing feature variance in low-data regimes and preventing base class weights from overwhelming novel ones.

Experimental Results and Insights

The authors evaluated TFA on three major benchmarks: PASCAL VOC, MS COCO, and LVIS. To address benchmark instability, they introduced a revised evaluation protocol that averages performance over multiple random samples of "shots" with 95% confidence intervals.

Key Findings: * Feature Transferability: Features learned from abundant base classes are highly robust and transferable. Complex meta-learning for feature extraction may be unnecessary. * The Power of Freezing: Freezing the backbone prevents overfitting to the small number of novel examples, forcing the model to leverage its general knowledge. * Massive Gains: TFA consistently outperformed previous meta-learning methods (such as FSRW and Meta R-CNN) by 2 to 20 points. In extreme 1-shot scenarios, TFA often doubled the accuracy of prior state-of-the-art methods. * Base Class Retention: Unlike many few-shot methods that suffer from "catastrophic forgetting," TFA maintains high accuracy on base classes because the feature extractor remains frozen.

Conclusion

While TFA is highly effective, it still faces challenges such as misclassifying novel objects as visually similar base objects and localization errors due to limited training data. Nonetheless, this work serves as a "reality check" for the field, suggesting that simple transfer learning baselines should be properly optimized before developing complex architectures. TFA establishes a powerful and simple new baseline for the few-shot object detection community.

Summary updated

BibTeX
@inproceedings{wang2020frustratingly,
  author = {Xin Wang and Thomas E. Huang and Joseph Gonzalez and Trevor Darrell and Fisher Yu},
  title = {{Frustratingly Simple Few-Shot Object Detection}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure