Meta-DETR: Few-Shot Object Detection via Unified Image-Level Meta-Learning

Gongjie Zhang, Zhipeng Luo, Kaiwen Cui, Shijian LuarXiv 2021

TL;DR

This paper introduces Meta-DETR, a novel framework for few-shot object detection that tackles limitations of existing methods by performing meta-learning at the image level, bypassing the need for region proposals. It also uniquely captures inter-class correlations among support classes, leading to improved generalization and reduced misclassification of similar objects.

What Problem Does This Paper Address?

Recognizing new objects with very few examples is a long-standing challenge in computer vision, mirroring human learning capabilities. While few-shot object detection aims to achieve this, current approaches often rely on region-based detectors like Faster R-CNN. These methods struggle with few-shot scenarios because generating accurate region proposals for novel classes with limited data is difficult. Furthermore, existing meta-learning techniques often process support classes one by one, neglecting the valuable correlations that exist between similar classes, which can lead to confusion and misclassification. This paper addresses these two key limitations: the reliance on potentially inaccurate region proposals and the under-utilization of inter-class relationships.

Methods

Meta-DETR is built upon the DETR (DEtection TRansformer) architecture, which operates directly on image-level features without requiring explicit region proposals. This image-level approach inherently circumvents the problem of inaccurate proposals for novel classes. The core innovation lies in the Correlational Aggregation Module (CAM). Unlike previous methods that process support classes sequentially, CAM allows Meta-DETR to attend to multiple support classes simultaneously within a single feed-forward pass. This enables the model to learn and exploit the inter-class correlations, both commonalities and distinctions, among these support classes. The CAM performs feature matching and encoding matching to aggregate query features with support class information and task encodings, respectively. Additionally, the framework explicitly models the background class to handle open-set scenarios.

Datasets

The authors evaluate Meta-DETR on two widely used few-shot object detection benchmarks:

  • Pascal VOC (test 07): This dataset contains 20 object classes. The experiments use three different class splits for novel and base classes.
  • MS COCO (val 2017): This is a more challenging dataset with 80 classes. The experiments use 20 shared classes as novel classes and the remaining 60 as base classes.

Key Insights and Ideas

  • Image-level meta-learning is a viable alternative: By leveraging DETR's architecture, Meta-DETR demonstrates that performing meta-learning directly on image-level features can effectively overcome the limitations of region-based proposals in few-shot scenarios.
  • Inter-class correlation is crucial for fine-grained distinctions: Explicitly modeling the relationships between different support classes (e.g., how cows and sheep are similar but distinct) significantly improves the model's ability to differentiate between them and generalize to novel classes.
  • Simultaneous processing of multiple support classes is key: The ability of CAM to aggregate information from several support classes at once is a critical factor in capturing these inter-class correlations, leading to better performance, especially in lower-shot settings.
  • Background modeling is important for robustness: Explicitly handling the background class helps the model avoid confusion and improve overall detection accuracy.

Key Results

Meta-DETR consistently outperforms state-of-the-art methods on both Pascal VOC and MS COCO datasets by significant margins. For instance, on Pascal VOC, it achieves a +4.6% mAP improvement over the second-best method. The paper also shows that Meta-DETR performs exceptionally well on the stricter AP0.75 metric, further highlighting its ability to produce accurate detections. Qualitative results (visualizations) demonstrate the model's capability to correctly detect novel objects even with limited training data.

Limitations and Future Work

The authors acknowledge that when a very large number of support classes are aggregated simultaneously (beyond 5), performance can drop. They hypothesize this is due to the model's limited capacity to differentiate so many classes at once. This suggests future work could explore more sophisticated aggregation mechanisms or ways to manage a larger number of support classes more effectively. The paper also notes that while Meta-DETR performs well on novel classes, it maintains competitive performance on base classes, indicating a good balance between generalization and retention of learned knowledge.

Summary updated

Abstract

Few-shot object detection has been extensively investigated by incorporating meta-learning into region-based detection frameworks. Despite its success, the said paradigm is constrained by several factors, such as (i) low-quality region proposals for novel classes and (ii) negligence of the inter-class correlation among different classes. Such limitations hinder the generalization of base-class knowledge for the detection of novel-class objects. In this work, we design Meta-DETR, a novel few-shot detection framework that incorporates correlational aggregation for meta-learning into DETR detection frameworks. Meta-DETR works entirely at image level without any region proposals, which circumvents the constraint of inaccurate proposals in prevalent few-shot detection frameworks. Besides, Meta-DETR can simultaneously attend to multiple support classes within a single feed-forward. This unique design allows capturing the inter-class correlation among different classes, which significantly reduces the misclassification of similar classes and enhances knowledge generalization to novel classes. Experiments over multiple few-shot object detection benchmarks show that the proposed Meta-DETR outperforms state-of-the-art methods by large margins. The implementation codes will be released at https://github.com/ZhangGongjie/Meta-DETR.
BibTeX
@misc{zhang2021meta,
  author = {Gongjie Zhang and Zhipeng Luo and Kaiwen Cui and Shijian Lu},
  title = {{Meta-DETR: Few-Shot Object Detection via Unified Image-Level Meta-Learning}},
  year = {2021},
  eprint = {2103.11731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.11731},
}
Figure