Abstract
Few-shot object detection (FSOD) aims to detect objects using only a few examples. How to adapt state-of-the-art object detectors to the few-shot domain remains challenging. Object proposal is a key ingredient in modern object detectors. However, the quality of proposals generated for few-shot classes using existing methods is far worse than that of many-shot classes, e.g., missing boxes for few-shot classes due to misclassification or inaccurate spatial locations with respect to true objects. To address the noisy proposal problem, we propose a novel meta-learning based FSOD model by jointly optimizing the few-shot proposal generation and fine-grained few-shot proposal classification. To improve proposal generation for few-shot classes, we propose to learn a lightweight metric-learning based prototype matching network, instead of the conventional simple linear object/nonobject classifier, e.g., used in RPN. Our non-linear classifier with the feature fusion network could improve the discriminative prototype matching and the proposal recall for few-shot classes. To improve the fine-grained few-shot proposal classification, we propose a novel attentive feature alignment method to address the spatial misalignment between the noisy proposals and few-shot classes, thus improving the performance of few-shot object detection. Meanwhile we learn a separate Faster R-CNN detection head for many-shot base classes and show strong performance of maintaining base-classes knowledge. Our model achieves state-of-the-art performance on multiple FSOD benchmarks over most of the shots and metrics.
Introduction
Deep learning has mastered object detection when given thousands of labels, but it struggles with the Few-Shot Object Detection (FSOD) task—detecting new objects using only 1 to 30 examples. Standard detectors like Faster R-CNN rely on a Region Proposal Network (RPN) to find "interesting" boxes. However, when faced with novel classes, the RPN often fails, producing "noisy" proposals that don't tightly align with the object or misclassifying them as background.
Even if a proposal is found, the final classifier often fails because the feature of the "noisy" box doesn't perfectly match the "clean" prototype of the class. This research addresses two specific gaps: poor proposal quality for novel classes and spatial misalignment between generated proposals and class prototypes.
Methodology
The Meta Faster R-CNN framework utilizes a decoupled architecture that handles "base" classes (with abundant data) and "novel" classes (with few examples) separately, while sharing a common feature extractor.
Meta-RPN
Instead of the traditional linear object/non-object classifier, the model employs a lightweight metric-learning sub-network called Meta-RPN. It uses a feature fusion network (combining multiplication, subtraction, and concatenation) to compare query images against a "class prototype." This allows the RPN to generate category-specific proposals more effectively for unseen classes.
Meta-Classifier with Attentive Feature Alignment (AFA)
To address the misalignment between a noisy proposal and a clean class prototype, the authors introduced the Attentive Feature Alignment module. This module consists of two main components:
- Spatial Alignment: An affinity matrix calculates soft correspondences between every pixel in the proposal and the prototype, effectively "warping" the prototype to match the proposal's pose or viewpoint.
- Foreground Attention: A mask is generated to highlight the actual object and ignore background clutter within the proposal box.
Decoupled Heads
The architecture maintains a separate, standard Faster R-CNN head for base classes. This design prevents "catastrophic forgetting," ensuring the model retains high accuracy on common objects while learning to detect new ones.
Key Insights
- The RPN is a Bottleneck: Most FSOD research focuses on the final classification step. This paper shows that improving the proposal stage (Meta-RPN) is just as critical.
- Alignment Over Resolution: While high-resolution features help, the primary performance killer is the spatial shift between a proposal and a support image. AFA treats this as a correspondence problem.
- Fusion Diversity: Using multiple fusion methods (Multiplication for common features, Subtraction for distance, and Concatenation for learned relations) outperformed any single method.
Experiments and Results
The model was evaluated on MSCOCO and PASCAL VOC benchmarks following standard FSOD protocols (1, 2, 3, 5, 10, and 30 shots).
- MSCOCO: In the 10-shot setting, Meta Faster R-CNN achieved 12.7 AP50, significantly outperforming previous meta-learning baselines (which hovered around 9.1–10.7).
- PASCAL VOC: The model consistently outperformed competitors across all three novel sets, reaching 65.4 AP50 in Novel Set 1 (10-shot).
- Base Class Stability: The decoupled detection head allowed the model to maintain high accuracy on base classes (36.9 AP on COCO), demonstrating its robustness against forgetting.
Conclusion
Meta Faster R-CNN demonstrates that improving the proposal stage and addressing spatial misalignment are critical for effective few-shot object detection. While the model sets new state-of-the-art benchmarks, challenges remain regarding small object detection and contextual misclassification. Future work may involve incorporating multi-scale feature pyramids or explicit image context to further refine performance.
Summary updated