Universal-Prototype Enhancing for Few-Shot Object Detection

Aming Wu, Yahong Han, Linchao Zhu, Yi Yang

Abstract

Few-shot object detection (FSOD) aims to strengthen the performance of novel object detection with few labeled samples. To alleviate the constraint of few samples, enhancing the generalization ability of learned features for novel objects plays a key role. Thus, the feature learning process of FSOD should focus more on intrinsical object characteristics, which are invariant under different visual changes and therefore are helpful for feature generalization. Unlike previous attempts of the meta-learning paradigm, in this paper, we explore how to enhance object features with intrinsical characteristics that are universal across different object categories. We propose a new prototype, namely universal prototype, that is learned from all object categories. Besides the advantage of characterizing invariant characteristics, the universal prototypes alleviate the impact of unbalanced object categories. After enhancing object features with the universal prototypes, we impose a consistency loss to maximize the agreement between the enhanced features and the original ones, which is beneficial for learning invariant object characteristics. Thus, we develop a new framework of few-shot object detection with universal prototypes ($FSOD^{up}$) that owns the merit of feature generalization towards novel objects. Experimental results on PASCAL VOC and MS COCO show the effectiveness of $FSOD^{up}$. Particularly, for the 1-shot case of VOC Split2, $FSOD^{up}$ outperforms the baseline by 6.8% in terms of mAP.

Introduction: The Challenge of Data Scarcity in Detection

Few-Shot Object Detection (FSOD) represents a significant challenge in computer vision: training a model to detect novel objects using only a handful of labeled examples. Standard deep learning models typically require thousands of labels to achieve high accuracy. Current FSOD approaches often rely on meta-learning or fine-tuning, but these methods frequently struggle to generalize. They often fail to capture features that remain consistent across varying visual conditions such as lighting, angles, and noise. Furthermore, many existing methods utilize category-specific prototypes, which are inherently biased when training data is unbalanced (e.g., many "car" samples but very few "motorbike" samples).

Conceptual illustration of universal prototypes capturing shared visual characteristics across different object categories.

Methodology: Universal-Prototype Enhancing ($FSOD^{up}$)

To address these limitations, the authors introduce Universal-Prototype Enhancing ($FSOD^{up}$). The core innovation is the shift from category-specific prototypes to a set of "universal prototypes" learned from all available data, encompassing both common "base" classes and rare "novel" classes.

Key Components

  1. Universal Prototypes: These are learnable vectors designed to capture shared visual primitives—such as textures, edges, or specific shapes—that are common across many different categories. By sharing this information, the model can leverage knowledge from data-rich classes to improve detection in data-poor ones.
  2. Conditional Prototypes: Because universal prototypes are initially learned at the image level, the framework employs an affine transformation to project them into an object-level space. This creates "conditional prototypes" tailored to specific region proposals generated by the network.
  3. Soft-Attention Enhancement: A soft-attention mechanism is used to integrate these prototypes with the original object features, effectively "enhancing" the features with invariant characteristics.
  4. Consistency Loss: To ensure the model focuses on core, invariant traits rather than noise, a KL-Divergence consistency loss is applied. This forces the predictions derived from enhanced features to align with those from original features.
The architecture of the $FSOD^{up}$ framework, highlighting the learning of universal prototypes and the prototypical enhancement process.

Experimental Evaluation

The researchers evaluated $FSOD^{up}$ on two standard benchmarks: PASCAL VOC and MS COCO.

  • PASCAL VOC: The model was tested on three different data splits, with 15 base classes and 5 novel classes. Scenarios ranged from 1 to 10-shot. In the challenging 1-shot case for Split 2, $FSOD^{up}$ achieved 31.2% mAP, representing a 6.8% improvement over the baseline.
  • MS COCO: On the 30-shot task, the framework reached 15.6% mAP, outperforming established baselines like MPSR (13.8%) and Meta R-CNN (12.4%).

Key Insights

  • Feature Cross-Pollination: Universal prototypes allow the model to use information from common objects (like cars) to help identify rare ones (like motorbikes).
  • Invariance and Generalization: By prioritizing features that remain stable across visual changes, the model achieves better generalization to unseen objects.
  • Addressing Class Imbalance: Since prototypes are universal, they are not "starved" for data even when specific categories are rare, reducing bias toward frequent classes.

Conclusion and Future Work

$FSOD^{up}$ demonstrates that focusing on universal, invariant object characteristics significantly boosts performance in few-shot detection tasks. While the multi-stage enhancement process adds some complexity to the Faster R-CNN pipeline, the gains in generalization are substantial. Future research could explore the application of universal prototypes to one-stage detectors like YOLO or Transformer-based architectures like DETR, as well as automating the tuning of hyperparameters like the consistency loss weight.

Summary updated

BibTeX
@inproceedings{wu2021universal,
  author = {Aming Wu and Yahong Han and Linchao Zhu and Yi Yang},
  title = {{Universal-Prototype Enhancing for Few-Shot Object Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=9wh6Maqexy},
}
Figure