TL;DR
One-stage few-shot object detectors typically lag behind their two-stage counterparts due to poor "discriminability"—the ability to tell classes apart. This paper introduces Few-Shot RetinaNet (FSRN), which bridges this gap using a multi-way training strategy and early multi-scale feature fusion, outperforming existing one-stage models while remaining twice as fast as two-stage alternatives.
What Problem Does This Paper Address?
Few-Shot Object Detection (FSOD) is the challenge of teaching a model to detect new categories using only a handful of annotated examples. While two-stage detectors (like Faster R-CNN) have seen success in this area, they are often too slow or computationally heavy for real-time embedded applications. One-stage detectors (like YOLO or RetinaNet) are faster and lighter, but their performance in few-shot scenarios has been significantly worse.
The authors identify two main reasons for this performance gap:
- Narrow Receptive Fields: In many one-stage meta-detectors, the fusion of "query" (the image to search) and "support" (the example object) features happens too late in the network. This results in a post-fusion receptive field that is smaller than the actual anchors, preventing the model from learning instance-level features effectively.
- Weak Learning Signals: Standard meta-learning training often uses a "binary" strategy, looking for only one class per task. This leads to a scarcity of foreground samples, making the training signal weak and prone to vanishing gradients.
Methods
The authors propose Few-Shot RetinaNet (FSRN), which introduces three key architectural and strategic changes:
- Multi-Way Support Training Strategy (MWST): Instead of training the model to find just one class at a time, MWST constructs tasks featuring multiple positive and negative classes per query image. This increases the number of foreground anchors and provides a more robust contrastive learning signal.
- Early Multi-Scale Feature Fusion (MSF): FSRN fuses support and query features immediately after the Feature Pyramid Network (FPN). By doing this "early," the subsequent detection subnets have enough layers to develop a wide receptive field that fully covers the anchor areas.
- Gaussian Prototyping (GP) & Multi-Scale Data Augmentation (MSDA): To improve how the model generalizes to new classes (transferability), the authors use MSDA to jitter image sizes during testing. They also introduce GP, which samples class prototypes from a Gaussian distribution rather than just taking a simple average of support features, helping to prevent overfitting on limited data.
Datasets
The model was evaluated on two standard benchmarks:
- MS-COCO: A challenging dataset where 60 classes are used for base training and 20 novel classes are used for few-shot evaluation (5, 10, and 30-shot settings).
- PASCAL VOC: Evaluated across three different splits of 15 base and 5 novel classes (1, 2, 3, 5, and 10-shot settings).
Key Insights and Ideas
- Discriminability is the Bottleneck: The authors argue that the primary failure of dense (one-stage) meta-detectors isn't their inability to transfer knowledge, but their low discriminability on base classes. If a model can't distinguish between common classes well, it has no hope of doing so for rare ones.
- Receptive Field Geometry: Figure 2 illustrates a crucial "aha moment": if your post-fusion receptive field is $3 \times 3$ but your anchor is $13 \times 13$, the model is essentially trying to identify an object while looking through a straw. FSRN ensures the "view" ($11 \times 11$) is large enough to see the whole anchor.
- The Power of Multi-Way Tasks: Moving from binary classification (is this a cat?) to multi-way classification (is this a cat, dog, or car?) within a single training episode significantly stabilizes the backbone's feature representations.
Key Results
- State-of-the-Art for One-Stage: On MS-COCO (10-shot), FSRN achieved 15.8 nAP, nearly tripling the performance of the previous one-stage leader, MetaYOLO (5.6 nAP).
- Competitive with Two-Stage: FSRN outperforms several well-known two-stage meta-detectors (like Meta-RCNN and FSOD-RPN) while being significantly more efficient.
- Efficiency: FSRN is roughly 2x faster (0.49s vs 0.92s per image) and requires ~44% fewer FLOPS than the two-stage FSOD-RPN.
Limitations and Future Work
- Training Cost: The MWST strategy, while effective, increases computational overhead during the training phase because the model must process more support images per episode.
- Hyperparameter Sensitivity: The authors note that meta-learning training remains sensitive to hyperparameter choices, which can affect stability.
- Future Directions: The authors suggest that their contributions (like MSF and MWST) could potentially be adapted to improve the region proposal stages of two-stage detectors as well.
Summary updated