Abstract
One-shot object detection (OSOD) aims to detect all object instances towards the given category specified by a query image. Most existing studies in OSOD endeavor to explore effective cross-image correlation and alleviate the semantic feature misalignment, however, ignoring the phenomenon of the model bias towards the base classes and the generalization degradation on the novel classes. Observing this, we propose a novel framework, namely Base-class Suppression and Prior Guidance (BSPG) network to overcome the problem. Specifically, the objects of base categories can be explicitly detected by a base-class predictor and adaptively eliminated by our base-class suppression module. Moreover, a prior guidance module is designed to calculate the correlation of high-level features in a non-parametric manner, producing a class-agnostic prior map to provide the target features with rich semantic cues and guide the subsequent detection process. Equipped with the proposed two modules, we endow the model with a strong discriminative ability to distinguish the target objects from distractors belonging to the base classes. Extensive experiments show that our method outperforms the previous techniques by a large margin and achieves new state-of-the-art performance under various evaluation settings.
Introduction
One-Shot Object Detection (OSOD) is a challenging task where a model must identify all instances of a target category in a scene given only a single query image. A primary obstacle in this field is model bias. During training, models are exposed to extensive data from "base classes" (e.g., people, cars). Consequently, when tasked with detecting a "novel class" (unseen during training), the model often erroneously identifies base-class objects as the target. For instance, a model might misidentify a person as a rare bird because its internal representations are heavily weighted toward recognizing humans. This bias leads to high false-positive rates and limited generalization.
Methodology
The proposed Base-class Suppression and Prior Guidance (BSPG) network addresses these challenges through two primary components integrated into a Faster R-CNN-based framework.
Base-class Suppression (BcS) Module
The BcS module acts as a "negative filter." It incorporates an auxiliary base-class predictor trained specifically to recognize the original training categories. If this branch detects a region with high confidence as a base-class object, the BcS module adaptively suppresses that detection in the final output. To prevent the accidental suppression of novel objects that share visual similarities with base classes, the module calculates the cosine similarity between the query and the proposal, adjusting the suppression intensity accordingly.
Prior Guidance (PG) Module
The PG module provides class-agnostic semantic cues. Unlike traditional methods that rely solely on learned weights, this module employs a non-parametric approach to calculate the correlation between high-level features of the query and target images. This process generates a "prior map"—a heatmap highlighting regions likely to contain the target object. This map reweights features in the detection head, guiding the model's attention toward relevant areas before final prediction.
Experiments and Results
The BSPG model was evaluated on standard benchmarks, including MS COCO (80 classes, 60 base/20 novel) and PASCAL VOC (20 classes, 16 base/4 novel). To ensure fair evaluation, the backbone was pre-trained on a reduced ImageNet dataset to avoid exposure to novel classes.
On the MS COCO dataset, BSPG achieved an Average Precision (AP) of 13.8% and an AP50 of 25.3%, significantly outperforming previous state-of-the-art methods such as SaFT and AIT. The model also demonstrated strong performance in few-shot settings; for example, in a 5-shot scenario on COCO, BSPG reached 33.5% AP50. Qualitative analysis confirms that the model effectively ignores distractors, such as humans, when searching for novel categories like "horse" or "bus."
Discussion and Conclusion
The success of BSPG highlights two critical insights for OSOD:
- Inhibition is as vital as Activation: Explicitly learning to suppress base-class distractors is essential for reducing false positives.
- Semantic Priors: High-level features are superior for generating prior maps as they capture semantic meaning rather than just low-level textures, enhancing robustness to scale and appearance variations.
While BSPG sets a new benchmark, its performance remains tied to the strength of the base-class predictor. Future research may focus on further mitigating the fundamental bias between base and novel classes and optimizing the computational efficiency of these auxiliary modules for real-time applications.
Summary updated