Introduction
Standard object detection models are notoriously "data hungry," often requiring thousands of annotated examples per class to achieve high accuracy. While comprehensive datasets exist for common objects, they represent only a fraction of the tens of thousands of categories encountered in the real world. One-shot object detection aims to address this scalability issue by enabling a model to detect instances of a new object class in a "query" image using only a single "support" example.
Historically, one-shot methods have relied on fine-tuning—re-training specific model components on the new support example. However, fine-tuning is computationally expensive, slow, and highly susceptible to overfitting on the single available example. This paper proposes a novel two-stage, anchor-free framework that generalizes to unseen categories "out of the box" without any time-consuming fine-tuning.
Proposed Architecture
The authors treat detection as a metric-learning matching problem rather than a static classification task. The architecture consists of a Siamese backbone followed by two distinct stages designed to maximize similarity detection.
Stage 1: Matching-FCOS
The first stage is based on the Fully Convolutional One-Stage (FCOS) detector. It utilizes a Siamese backbone to extract features from both the support and query images. A depth-wise cross-correlation is performed between these features, acting as a sliding-window similarity check. This process generates high-recall proposals—regions in the query image that potentially match the support object. By using an anchor-free approach, the model avoids the need for manually tuned anchor boxes, which often fail to generalize to the unpredictable shapes of unseen classes.
Stage 2: Structure-Aware Relation Module (SARM)
A significant limitation of traditional one-shot detectors is the use of global average pooling, which collapses spatial information into a single feature vector. This "bag-of-features" approach loses the internal geometric structure of an object (e.g., the relative positions of a cat's ears and eyes).
To preserve this crucial information, the authors introduce the Structure-Aware Relation Module (SARM). SARM employs pixel-wise convolution blocks to compare local features between the support and query proposals. This allows the model to verify matches based on structural alignment, significantly reducing false positives by ensuring that the query object not only has similar textures but also a similar internal arrangement to the support example.
Training Strategies
To enhance generalization, the framework incorporates two novel training strategies:
- Query-Support Feature Similarity Mining: This technique automatically identifies the most representative support patches during training, mitigating noise introduced by variations in lighting, occlusion, or camera angles.
- Second Stage Knowledge Transfer (SSKT): The SARM is pre-trained on large-scale segmentation datasets (such as FSS-1000). This exposes the module to a vast diversity of object shapes and structures before it is applied to the detection task, providing a robust foundation for geometric reasoning.
Experimental Results
The model was evaluated on several rigorous cross-dataset benchmarks to test its ability to generalize to unseen categories. The proposed method consistently outperformed previous state-of-the-art (SOTA) models like LSTD and RepMet.
- Cross-Dataset Generalization (COCO to ImageNet): The method achieved 31.0 mAP on 50 unseen categories from ImageNet-LOC, representing a +6.9% improvement over previous SOTA.
- Common Class Generalization (COCO to VOC): When trained on COCO and tested on the 20 classes of PASCAL VOC, the model reached 46.1 mAP, a substantial +12.1% improvement over existing baselines.
- Qualitative Performance: The model demonstrated remarkable robustness to intra-class variance, successfully identifying objects even when they differed significantly in color or pose from the support image (e.g., matching a white car to a red car support).
Conclusion and Future Work
The proposed framework demonstrates that anchor-free architectures combined with local structural comparison can eliminate the need for fine-tuning in one-shot detection. While highly effective for most objects, the authors noted performance challenges with complex, highly articulated categories like "person," where pose and clothing variety remain difficult to capture from a single example. Future research may explore K-shot learning—integrating information from multiple support images—to further refine the model's understanding of complex object classes.
Summary updated