Multi-faceted Distillation of Base-Novel Commonality for Few-Shot Object Detection

Shuang Wu, Wenjie Pei, Dianwen Mei, Fanglin Chen, Jiandong Tian, Guangming Lu

Introduction

Few-shot object detection (FSOD) aims to bridge the gap between data-rich "base" classes and data-poor "novel" classes. The prevailing paradigm involves a two-stage process: pre-training on a large-scale dataset followed by fine-tuning on a limited number of novel samples. However, this approach often relies on the assumption that the model will implicitly learn transferable features. In practice, models frequently overfit to the specific characteristics of base classes, struggling to generalize to novel categories.

This paper introduces a Multi-Faceted Distillation (MFD) framework designed to move beyond implicit learning. By explicitly modeling the commonalities between base and novel classes across three distinct dimensions—recognition, localization, and distribution—the framework significantly enhances the model's ability to detect novel objects with minimal supervision.

The Challenge: Conflated Knowledge and Data Scarcity

The authors identify two primary hurdles in standard FSOD approaches. First, standard detectors often fail to distinguish between class-agnostic knowledge (e.g., general edges, shapes, or limbs) and class-specific knowledge (e.g., the unique features of a specific animal). Without explicit guidance, the model may prioritize base-specific features that do not apply to novel classes.

Second, object detection requires two fundamentally different skills: identifying what an object is (classification) and where it is (localization). These tasks rely on different feature types—classification focuses on local salient regions, while localization requires global boundary information. Standard architectures often conflate these features, leading to suboptimal transfer of knowledge.

Methodology: Multi-Faceted Distillation (MFD)

The MFD framework addresses these challenges by decoupling the feature space and explicitly transferring knowledge through three facets:

To improve classification, the model utilizes a dedicated classification feature space ($\mathcal{F}_{cls}$). It calculates the cosine similarity between base class samples and novel class prototypes. These similarities serve as "soft labels," guiding the novel class classifier by leveraging the semantic relationships between known and unknown categories.

Recognizing that localization requires different information than recognition, the authors establish a separate localization feature space ($\mathcal{F}_{loc}$). Similarities calculated in this space are used as weights to aggregate bounding box regressors. This allows the model to use the well-trained regressors of base classes to help refine the boundaries of novel objects.

3. Distribution Commonality

To combat the extreme scarcity of novel data, the authors employ "Distribution Calibration." By identifying the $k$-nearest base classes for a given novel class, the model estimates the feature variance of the novel class. It then samples from this calibrated Gaussian distribution to "hallucinate" additional features, effectively augmenting the training set with synthetic but representative data.

Efficiency via Memory Bank

To ensure computational efficiency, the framework incorporates a Memory Bank. This queue-based system dynamically stores and updates Region of Interest (RoI) features, eliminating the need to re-extract features for the entire dataset during every training iteration.

Experimental Results

The MFD framework was evaluated on the PASCAL VOC and MS COCO benchmarks, integrated into the DeFRCN baseline. The results demonstrate significant improvements, particularly in low-shot settings:

  • PASCAL VOC: On Split 1 in the 1-shot setting, the method achieved 63.4% nAP50, a substantial increase from the baseline's 57.0%.
  • MS COCO: In the 1-shot setting, performance improved from 6.5% to 10.8% nAP, nearly doubling the results of several previous state-of-the-art methods.
  • Versatility: The authors demonstrated that the MFD module is "plug-and-play," providing consistent gains of 2-7% mAP when added to various architectures such as TFA, FSCE, and Retentive R-CNN.

Key Insights

One of the most significant findings is the importance of variance over mean in distribution distillation. The authors found that transferring the mean of base class distributions to novel classes often leads to identity confusion. However, transferring the variance (the spread of features) allows the model to capture the diversity of novel classes without losing their distinct identity.

Furthermore, the results confirm that explicit decoupling is crucial. By separating the feature spaces for recognition and localization, the model can distill the specific type of commonality required for each task, leading to more robust generalization.

Conclusion

The Multi-Faceted Distillation framework provides a structured way to leverage base class knowledge for few-shot tasks. By explicitly addressing recognition, localization, and distribution, the method sets a new standard for FSOD performance. While the framework introduces new hyperparameters and some memory overhead due to the memory bank, its consistent performance gains across different architectures and datasets make it a powerful tool for addressing the data scarcity problem in computer vision.

Summary updated

BibTeX
@inproceedings{wu2022multi,
  author = {Shuang Wu and Wenjie Pei and Dianwen Mei and Fanglin Chen and Jiandong Tian and Guangming Lu},
  title = {{Multi-faceted Distillation of Base-Novel Commonality for Few-Shot Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20077-9\_34},
}
Figure