[Paper Review] Semantic Relation Reasoning for Shot-Stable Few-Shot Object Detection
This paper proposes SRR-FSD, a few-shot object detection framework that enhances robustness to data scarcity by explicitly modeling semantic relations between base and novel classes using learned word embeddings and a dynamic relation graph. By projecting visual features into a semantic space and refining them via attention-based relation reasoning, SRR-FSD achieves significantly improved and stable performance across low-shot settings, especially under both low explicit and implicit shots.
Few-shot object detection is an imperative and long-lasting problem due to the inherent long-tail distribution of real-world data. Its performance is largely affected by the data scarcity of novel classes. But the semantic relation between the novel classes and the base classes is constant regardless of the data availability. In this work, we investigate utilizing this semantic relation together with the visual information and introduce explicit relation reasoning into the learning of novel object detection. Specifically, we represent each class concept by a semantic embedding learned from a large corpus of text. The detector is trained to project the image representations of objects into this embedding space. We also identify the problems of trivially using the raw embeddings with a heuristic knowledge graph and propose to augment the embeddings with a dynamic relation graph. As a result, our few-shot detector, termed SRR-FSD, is robust and stable to the variation of shots of novel objects. Experiments show that SRR-FSD can achieve competitive results at higher shots, and more importantly, a significantly better performance given both lower explicit and implicit shots. The benchmark protocol with implicit shots removed from the pretrained classification dataset can serve as a more realistic setting for future research.
Motivation & Objective
- Address the instability of few-shot object detectors under data scarcity, particularly when both explicit and implicit shots are limited.
- Leverage the constant semantic relationships between base and novel classes as a stable inductive bias to improve generalization.
- Overcome limitations of existing methods that rely solely on visual features and are sensitive to shot variations.
- Develop a method that integrates textual semantic knowledge with visual detection in an end-to-end, learnable manner.
- Propose a dynamic relation graph to better model inter-class relationships than static or heuristic knowledge graphs.
Proposed method
- Represent each class using pre-trained word embeddings from a large text corpus, forming a semantic space for zero-shot generalization.
- Train the detector to project image features into this semantic space, aligning visual representations with corresponding class embeddings.
- Introduce a dynamic relation graph module using self-attention to learn inter-class relationships among class embeddings, replacing fixed heuristic knowledge graphs.
- Formulate the relation reasoning as a differentiable operation: $\mathbf{W}_{e}^{\prime} = \delta(\mathbf{W}_{e}\mathbf{T}_{f}\mathbf{T}_{g}^{T}\mathbf{W}_{e}^{T})\mathbf{W}_{e}\mathbf{T}_{h}\mathbf{T}_{l} + \mathbf{W}_{e}$, where $\mathbf{W}_{e}$ is the initial word embedding matrix.
- Use the augmented embeddings $\mathbf{W}_{e}^{\prime}$ as classification weights in the detection head, enabling relation-aware classification.
- Fine-tune only the relation reasoning module and projection matrix while freezing the backbone, to avoid overfitting in low-shot regimes.
Experimental results
Research questions
- RQ1Can semantic relations between base and novel classes serve as a stable inductive bias to improve few-shot object detection under data scarcity?
- RQ2How does incorporating learned semantic embeddings and dynamic relation reasoning improve detector robustness to variations in explicit and implicit shots?
- RQ3Does replacing heuristic knowledge graphs with a learnable, data-driven relation graph lead to better few-shot generalization than fixed graphs?
- RQ4Can end-to-end learning of visual-semantic alignment and relation reasoning outperform methods relying solely on visual features?
- RQ5What is the impact of removing novel class samples from the ImageNet pretraining dataset (i.e., eliminating implicit shots) on detector performance, and can the proposed method mitigate this?
Key findings
- SRR-FSD achieves a mean AP50 of 46.1% on the 1-shot VOC benchmark, significantly outperforming FSRW (31.5%) and Meta R-CNN (35.8%) under low-shot conditions.
- At 2-shot, SRR-FSD achieves 55.6% AP50, demonstrating strong generalization even with minimal labeled examples.
- When implicit shots are removed from ImageNet (rm-nov setting), SRR-FSD maintains a 41.5% mAP50 at 1-shot, while the baseline drops drastically, proving its shot-stability.
- The model achieves 65.4% AP50 at 5-shot and 67.4% at 10-shot, showing competitive performance across all shot levels.
- Ablation studies confirm that finetuning more parameters does not improve performance, and that the dynamic relation graph is essential for robustness, outperforming static or heuristic graphs.
- The dynamic relation graph, implemented via self-attention, enables effective knowledge propagation among class embeddings, improving classification accuracy in low-data regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.