Rethinking Few-Shot Object Detection on a Multi-Domain Benchmark

Kibok Lee, Hao Yang, Satyaki Chakraborty, Zhaowei Cai, Gurumurthy Swaminathan, Avinash Ravichandran, Onkar Dabeer

Abstract

Traditional Few-Shot Object Detection (FSOD) research has primarily focused on homogeneous benchmarks where base and novel classes originate from the same domain. This paper challenges that paradigm by introducing MoFSOD, a diverse 10-domain benchmark designed to reflect real-world applications. Through rigorous evaluation, the authors demonstrate that simple fine-tuning (FT) often outperforms complex state-of-the-art methods and that model architecture and pre-training data are more critical for few-shot success than previously realized.

Introduction

Few-Shot Object Detection (FSOD) aims to enable models to detect novel objects using only a handful of training examples (e.g., 1, 5, or 10 "shots"). To date, the field has largely relied on datasets like PASCAL VOC or MS COCO. In these benchmarks, the "base" classes used for initial training and the "novel" classes used for few-shot adaptation are drawn from the same visual distribution.

However, real-world deployment often requires transferring knowledge from a general-purpose dataset (like COCO) to specialized domains such as aerial imagery, medical scans, or industrial logos. This paper argues that existing benchmarks fail to capture this "domain gap," leading to specialized algorithms that may overfit to specific dataset splits rather than learning true cross-domain generalization.

The MoFSOD Benchmark

To address these limitations, the researchers curated MoFSOD, a benchmark comprising 10 distinct datasets across diverse domains:

  • Aerial: VisDrone
  • Agriculture: DeepFruits
  • Animals: iWildCam
  • Cartoon: Clipart
  • Fashion: iMaterialist
  • Food: Oktoberfest
  • Logos: LogoDet-3K
  • Persons: CrowdHuman
  • Security/X-ray: SIXray
  • Traffic: KITTI

Beyond domain diversity, the authors proposed Natural K-Shot Sampling. Unlike traditional methods that artificially balance classes in few-shot episodes, this method maintains the original class distribution of the target dataset. This approach provides a more representative evaluation of how models handle real-world data imbalances.

Methodology: A Back-to-Basics Approach

The study systematically re-evaluates the FSOD pipeline through several key lenses:

1. Fine-Tuning vs. Specialized Algorithms

The authors tested the efficacy of simple fine-tuning (FT) against specialized FSOD algorithms. They explored the impact of "freezing" layers—a common technique to prevent overfitting in low-data regimes. They found that while freezing helps when source and target domains are similar, unfreezing the entire network is essential when the domain gap is large, as it allows the model to adapt its feature extraction to new visual patterns.

2. Architecture and Pre-training

The research compared standard architectures like Faster R-CNN against Cascade R-CNN, CenterNet2, and Transformer-based models (Deformable-DETR). A significant finding was that architectures performing identically on COCO can have vastly different transfer capabilities. For example, Cascade R-CNN-P67 outperformed standard versions by 3-4% due to superior feature utilization.

3. Proposed Extensions: FSCE+ and LVIS+

The authors introduced two enhancements to existing methods:

  • FSCE+: An extension of Few-Shot Contrastive Learning that unfreezes more layers and utilizes a simplified detection head.
  • LVIS+: A method that leverages CLIP (Contrastive Language-Image Pre-training) text embeddings to initialize the object classifier. This allows the model to start with a semantic understanding of class names before seeing any domain-specific images.

Key Insights and Results

The empirical results on MoFSOD challenge several prevailing beliefs in the FSOD community:

  • The Strength of Fine-Tuning: In the 10-shot setting on MoFSOD, simple Fine-Tuning (FT) achieved 52.6 AP50, significantly outperforming specialized methods like TFA (35.2) and DeFRCN (48.2).
  • The Impact of Language-Vision Pre-training: The LVIS++ method, which combines CLIP embeddings with large-scale pre-training on a unified dataset (OpenImages, Object365, etc.), reached 59.4 AP50, setting a new state-of-the-art for the benchmark.
  • Domain Distance Correlation: The study established a clear correlation: as the visual distance between the pre-training set and the target domain increases, the performance benefit of unfreezing more layers during fine-tuning becomes more pronounced.

Conclusion and Future Work

This research suggests that the FSOD community should shift its focus from complex, specialized algorithms toward better pre-training strategies and architectural choices. The MoFSOD benchmark provides a more rigorous testing ground for these efforts.

While the current measure for "domain distance" (based on class-agnostic object recall) effectively captures localization gaps, the authors note it may overlook classification-specific gaps. Future work includes developing "smart-tuning" methods that automatically determine optimal layer freezing based on the specific task and designing architectures specifically optimized for cross-domain generalization.

Summary updated

BibTeX
@inproceedings{lee2022rethinking,
  author = {Kibok Lee and Hao Yang and Satyaki Chakraborty and Zhaowei Cai and Gurumurthy Swaminathan and Avinash Ravichandran and Onkar Dabeer},
  title = {{Rethinking Few-Shot Object Detection on a Multi-Domain Benchmark}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20044-1\_21},
}
Figure