Few-Shot Object Detection with Model Calibration

Qi Fan, Chi-Keung Tang, Yu-Wing Tai

Introduction

Few-Shot Object Detection (FSOD) aims to detect novel object classes using only a limited number of annotated examples (typically 1 to 10). While standard object detection has matured significantly, FSOD remains challenging due to "Model Bias." Models trained predominantly on abundant base classes develop blind spots, overfitting to base class features and treating novel objects as background. This paper proposes a multi-level calibration framework to mitigate these biases across the backbone, Region Proposal Network (RPN), and detector.

Multi-Level Calibration Framework

The proposed approach addresses bias at three critical stages of the detection pipeline: the feature extractor, the proposal generator, and the final classification head.

Overview of the multi-level calibration framework, including Backbone, RPN, and Detector calibration stages.

Backbone Calibration

Standard FSOD methods often fine-tune a pre-trained backbone solely on detection data, causing it to lose general-purpose feature representations. To prevent this "catastrophic forgetting," the authors implement weight-shared joint training. By incorporating classification images (e.g., from ImageNet) alongside detection images and using Salient Object Detection (SOD) to generate "pseudo-boxes," the backbone is forced to maintain a diverse feature distribution capable of representing both base and novel classes.

RPN Calibration (UA-RPN)

A major hurdle in FSOD is the RPN's tendency to classify novel objects as background. To counter this, the authors introduce an Uncertainty-Aware RPN (UA-RPN).

The UA-RPN architecture uses multiple heads to measure uncertainty, allowing the model to identify novel objects (like the motorcycle) that a standard RPN might miss.

By employing multiple RPN heads with varying supervision signals, the system measures the variance (uncertainty) of proposals. High uncertainty serves as a signal that a novel object may be present. Label and prediction rectification then ensure these potential novel objects are passed to the detector rather than being filtered out as background.

Detector Calibration

With very few samples, the final detector head often fails to capture the true distribution of novel classes. The authors propose a Feature Memory module that leverages cross-class commonalities. By assuming class features follow a Gaussian distribution, the model uses the statistics of similar base classes (e.g., using "horse" statistics for a "cow") to "hallucinate" augmented features for novel classes. This provides a more robust training signal for the classification head when data is scarce.

Experimental Results

The framework was evaluated on MS COCO and Pascal VOC datasets. On MS COCO (5-shot), the method achieved 15.1 mAP, significantly outperforming previous state-of-the-art models like DCNet (12.8) and FSCE (11.9).

Ablation studies confirmed the efficacy of each component: starting from a baseline of 11.3 mAP on COCO, RPN calibration improved performance to 11.8, Backbone calibration to 14.7, and the full combined system reached 15.1. The method proved particularly robust in extremely low-data regimes (1-shot and 2-shot), often outperforming competitors by a wide margin.

Conclusion

By systematically addressing model bias through multi-level calibration, this work establishes a new state-of-the-art for Few-Shot Object Detection. The use of classification data for backbone stability, uncertainty for novel object discovery, and feature hallucination for detector robustness provides a comprehensive solution to the data scarcity problem. Future work may explore relaxing the Gaussian distribution assumption for features or extending these principles to zero-shot scenarios.

Summary updated

BibTeX
@inproceedings{fan2022few,
  author = {Qi Fan and Chi-Keung Tang and Yu-Wing Tai},
  title = {{Few-Shot Object Detection with Model Calibration}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19800-7\_42},
}
Figure