Attention-disentangled Uniform Orthogonal Feature Space Optimization for Few-shot Object Detection

Taijin Zhao, Heqian Qiu, Yu Dai, Lanxiao Wang, Fanman Meng, Qingbo Wu, Hongliang LiarXiv 2025 · DOI

Abstract

Few-Shot Object Detection (FSOD) is often hindered by the entanglement of class-agnostic objectness and class-specific identity within the feature space. This paper introduces a Uniform Orthogonal Feature Space (UOFS) that geometrically decouples these concepts: feature magnitude represents objectness, while feature angle represents classification. Coupled with a Hybrid Background Optimization (HBO) strategy to mitigate noise from unannotated objects and a Spatial-wise Attention Disentanglement and Association (SADA) module, the proposed framework achieves state-of-the-art results on PASCAL VOC and MS COCO benchmarks, particularly in extreme low-shot scenarios.

Introduction

Few-Shot Object Detection (FSOD) aims to detect novel object classes using only a handful of training examples. Most existing methods are built upon the Faster R-CNN architecture, which calculates classification scores that entangle objectness (the likelihood of being a foreground object) and class probability (the specific category).

This entanglement causes models to learn class-specific rules for objectness, making them struggle to recognize novel objects that differ from base classes. Furthermore, standard training often treats unannotated objects in base images as background, forcing the model to suppress objectness for potential novel classes. To address these issues, the authors propose a geometric decoupling of the feature space.

Methodology

Uniform Orthogonal Feature Space (UOFS)

The core innovation is the transition from a standard Euclidean feature space to an Orthogonal Feature Space. In this setup, the magnitude of the feature vector serves as a class-agnostic measure of objectness, while the angle (cosine similarity to class prototypes) determines the specific classification. This separation allows the model to learn a universal "objectness" skill that transfers effectively to novel classes.

Comparison of Euclidean and Orthogonal Feature Spaces, and optimization strategies.

Hybrid Background Optimization (HBO)

To handle unannotated objects in base training data, the authors employ a Hybrid Background Optimization strategy. Using the SAM-2 zero-shot segmentation model, they extract annotated base objects and paste them onto clean, gray backgrounds. This "Pure Background" set provides unambiguous supervision for training feature magnitude (objectness). Meanwhile, the original images are used to train the angular space, where unannotated objects are treated as "unknown" classes, ensuring they are distributed uniformly rather than being collapsed into base class clusters.

Spatial-wise Attention Disentanglement and Association (SADA)

Objectness and bounding box regression typically require global structural information, whereas classification relies on discriminative local parts. The SADA module uses spatial attention to route the appropriate visual cues to each task branch, resolving conflicts between these distinct requirements.

Key Results and Insights

The proposed method was evaluated on standard FSOD benchmarks:

  • PASCAL VOC: In the 1-shot setting (Split 1), the method achieved 64.3 nAP50, a significant improvement over the previous state-of-the-art DeFRCN (57.0).
  • MS COCO: The model consistently outperformed baselines across 1, 2, 3, 5, and 10-shot configurations. In the 1-shot setting, it achieved 10.3 nAP, compared to DeFRCN's 6.5.

Ablation studies highlighted that the UOFS geometric decoupling is the primary driver of performance, providing a massive boost over standard Euclidean or Cosine spaces. Interestingly, the authors found that simple gray backgrounds were more effective for training objectness than natural background images, as natural backgrounds often contain subtle foreground elements that confuse magnitude optimization.

Conclusion

By decoupling objectness from classification through geometric constraints and refining background supervision, this work significantly advances the state-of-the-art in few-shot object detection. While the model shows some limitations in recalling very small objects due to training data imbalance, the UOFS framework provides a robust foundation for future research into class-agnostic feature representation.

Summary updated

Abstract

Few-shot object detection (FSOD) aims to detect objects with limited samples for novel classes, while relying on abundant data for base classes. Existing FSOD approaches, predominantly built on the Faster R-CNN detector, entangle objectness recognition and foreground classification within shared feature spaces. This paradigm inherently establishes class-specific objectness criteria and suffers from unrepresentative novel class samples. To resolve this limitation, we propose a Uniform Orthogonal Feature Space (UOFS) optimization framework. First, UOFS decouples the feature space into two orthogonal components, where magnitude encodes objectness and angle encodes classification. This decoupling enables transferring class-agnostic objectness knowledge from base classes to novel classes. Moreover, implementing the disentanglement requires careful attention to two challenges: (1) Base set images contain unlabeled foreground instances, causing confusion between potential novel class instances and backgrounds. (2) Angular optimization depends exclusively on base class foreground instances, inducing overfitting of angular distributions to base classes. To address these challenges, we propose a Hybrid Background Optimization (HBO) strategy: (1) Constructing a pure background base set by removing unlabeled instances in original images to provide unbiased magnitude-based objectness supervision. (2) Incorporating unlabeled foreground instances in the original base set into angular optimization to enhance distribution uniformity. Additionally, we propose a Spatial-wise Attention Disentanglement and Association (SADA) module to address task conflicts between class-agnostic and class-specific tasks. Experiments demonstrate that our method significantly outperforms existing approaches based on entangled feature spaces.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
COCO · MS COCO · 20 novel classes overlapping PASCAL VOCUOFS (proposed method with HBO and SADA)nAP (novel mean Average Precision)17.2+3.7 vs baseline5-shot · runs=10 · class-overlap=PASCAL VOC · novel-classes=20
Source quote
L241: Ours │ 9.3 │ 9.3 │ 13.2 │ 13.4 │ 15.1 │ 15.5 │ 17.2 │ 17.6 │ 19.0 │ 19.7 │ 21.0 │ 21.6 }
COCO · MS COCO · 20 novel classes overlapping PASCAL VOCUOFS (proposed method with HBO and SADA)nAP (novel mean Average Precision)19.0+5.5 vs baseline10-shot · runs=10 · class-overlap=PASCAL VOC · novel-classes=20
Source quote
L241: Ours │ 9.3 │ 9.3 │ 13.2 │ 13.4 │ 15.1 │ 15.5 │ 17.2 │ 17.6 │ 19.0 │ 19.7 │ 21.0 │ 21.6 }
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
COCO · MS COCO · 20 novel classes overlapping PASCAL VOCDeFRCN baselinenAP (novel mean Average Precision)4.81-shot · runs=10 · class-overlap=PASCAL VOC · novel-classes=20
Source quote
L238: DeFRCN \cite{qiao2021defrcn} │ 4.8 │ 4.4 │ 8.5 │ 7.8 │ 10.7 │ 10.3 │ 13.5 │ 13.0 │ 16.7 │ 16.7 │ 21.0 │ 21.4
COCO · MS COCO · 20 novel classes overlapping PASCAL VOCDeFRCN baselinenAP (novel mean Average Precision)13.55-shot · runs=10 · class-overlap=PASCAL VOC · novel-classes=20
Source quote
L238: DeFRCN \cite{qiao2021defrcn} │ 4.8 │ 4.4 │ 8.5 │ 7.8 │ 10.7 │ 10.3 │ 13.5 │ 13.0 │ 16.7 │ 16.7 │ 21.0 │ 21.4
BibTeX
@misc{zhao2025attention,
  author = {Taijin Zhao and Heqian Qiu and Yu Dai and Lanxiao Wang and Fanman Meng and Qingbo Wu and Hongliang Li},
  title = {{Attention-disentangled Uniform Orthogonal Feature Space Optimization for Few-shot Object Detection}},
  year = {2025},
  eprint = {2506.22161},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22161},
}
Figure