Hierarchical Few-Shot Object Detection: Problem, Benchmark and Method

Lu Zhang, Yang Wang, Jiaogen Zhou, Chenbo Zhang, Yinglu Zhang, Jihong Guan, Yatao Bian, Shuigeng Zhou

Introduction

Standard Few-Shot Object Detection (FSOD) typically treats object categories as a "flat" list—for example, treating "dog," "car," and "bird" as equidistant concepts. However, real-world objects exist within complex, nested taxonomies. An "African forest elephant" and an "African savannah elephant" share significantly more semantic and visual features with each other than they do with an "Asian elephant," despite all belonging to the same family.

Existing FSOD models often struggle to distinguish between such fine-grained species when provided with only a handful of training examples because they fail to leverage these inherent hierarchical relationships. This paper formalizes the Hierarchical Few-Shot Object Detection (Hi-FSOD) task and introduces both a massive new benchmark and a novel methodology to address these challenges.

The HiFSOD-Bird Benchmark

To facilitate research in this area, the authors present HiFSOD-Bird, the first large-scale hierarchical benchmark for object detection. Unlike standard datasets like COCO or VOC, which feature a limited number of flat categories, HiFSOD-Bird is designed for fine-grained taxonomic challenges:

  • Scale and Diversity: It contains 176,350 images across 1,432 categories, covering over 90% of the world's water birds and a vast array of forest birds.
  • Structure: The dataset utilizes a 4-level biological taxonomy consisting of 32 Orders, 132 Families, 572 Genera, and 1,432 Species.
  • Rich Metadata: Each species includes textual descriptions, providing a foundation for future vision-language or zero-shot research.

Methodology: The HiCLPL Framework

The authors propose HiCLPL (Hierarchical Contrastive Learning and Probabilistic Loss), a two-stage framework designed to ensure model predictions respect biological relationships.

1. Hierarchical Contrastive Learning (HiCL)

HiCL constrains the model's feature space so that the distance between object features reflects their taxonomic distance. The system maintains a "memory bank" of prototypes—representative features for every level of the tree (Order, Family, Genus, Species). The model is penalized if a specific "Species" feature drifts too far from its corresponding "Genus" or "Family" prototype. This forces the latent space to organize itself into a structure that mirrors the biological tree, effectively using the taxonomy as a regularizer to improve generalization when visual data is scarce.

2. Probabilistic Loss (PL) and the "Others" Class

A common failure point in hierarchical classification is error propagation: if a model misclassifies an object at the "Order" level, all subsequent predictions at the "Family" and "Species" levels are inevitably incorrect. To mitigate this, HiCLPL introduces a virtual "others" class at every internal node. This acts as a safety valve, allowing child nodes to "reject" a parent's classification if the sample does not fit the specific sub-categories. During inference, the model employs beam search to navigate the taxonomy and identify the most probable valid path from root to leaf.

Experimental Results

The HiCLPL method demonstrates significant improvements over state-of-the-art FSOD baselines, such as TFA and FSCE, on the HiFSOD-Bird dataset:

  • 1-Shot Performance: HiCLPL achieved 18.95 AP, a substantial increase over the 12.81 AP recorded by the next best competitor, Attention-RPN.
  • 5-Shot Performance: The model maintained its lead with 39.37 AP, outperforming FSCE (38.20 AP).
  • Base Class Stability: Beyond improving performance on novel (few-shot) classes, the hierarchical approach also enhanced performance on base (well-sampled) classes. This suggests that hierarchical organization is a fundamentally superior way to structure object detection features.

Discussion and Future Work

While HiCLPL offers a significant performance boost, it introduces higher computational complexity due to the hierarchical head and the use of beam search during inference, which may impact deployment on edge devices.

Future research directions include integrating natural language processing to leverage the textual descriptions provided in the HiFSOD-Bird dataset. Combining vision-language models like CLIP with this hierarchical structure could further enhance the model's ability to recognize novel species with zero or minimal visual examples.

Summary updated

BibTeX
@inproceedings{zhang2022hierarchical,
  author = {Lu Zhang and Yang Wang and Jiaogen Zhou and Chenbo Zhang and Yinglu Zhang and Jihong Guan and Yatao Bian and Shuigeng Zhou},
  title = {{Hierarchical Few-Shot Object Detection: Problem, Benchmark and Method}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3548412},
}
Figure