Rethinking Prototype-based Similarity Learning for Few-Shot Object Detection
About
Few-shot object detection aims to detect novel object categories from only a few labeled examples, avoiding costly large-scale annotation. Recent prototype-based similarity learning approaches enable training-free adaptation by matching query features with class prototypes. However, they suffer from two fundamental limitations: (i) class confusion arising from inter-class similarity margin collapse, and (ii) insufficient visual cues for precise localization, as similarity scores capture only class-level semantic affinity while providing limited spatial information. To address these issues, we introduce two complementary components. Text-Anchored Semantic Mask (TSMa) leverages class-level text features as semantic anchors to identify semantically aligned channels through channel-wise interaction between visual and text features. By suppressing style-induced spurious responses and emphasizing class-intrinsic signals, TSMa enlarges inter-class similarity margins and mitigates class confusion. We further propose Stage-Aligned Hierarchical Autoregressive Regression (SHARe), which reformulates localization as a hierarchical autoregressive process that progressively refines bounding boxes across multiple stages. SHARe leverages the layer-wise characteristics of ViT representations by aligning feature abstraction levels with regression stages: deeper layers guide early coarse localization, while shallower layers rich in edge and texture cues refine spatial details in later stages. Experiments on COCO demonstrate a new state of the art, outperforming the previous best by +10.1 nAP, with extensive analysis validating each component. The code is available at https://github.com/VisualScienceLab-KHU/ReSet.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Detection | Pascal VOC (Novel Split 2) | nAP5067.7 | 125 | |
| Object Detection | Pascal VOC (Novel Split 3) | AP5074.6 | 125 | |
| Object Detection | Pascal VOC (Novel Split 1) | nAP5079.7 | 60 | |
| Object Detection | COCO 10-shot 2014 | nAP47.1 | 13 | |
| Object Detection | COCO 30-shot 2014 | Novel Class AP47.4 | 13 | |
| Object Detection | Pascal VOC Aggregate | Average nAP5068.1 | 12 | |
| Object Detection | COCO 2017 | nAP50 Split 146.6 | 7 |