Incremental Few-Shot Object Detection

Juan-Manuel Pérez-Rúa, Xiatian Zhu, Timothy M. Hospedales, Tao Xiang · DOI

Introduction

Standard deep learning models for object detection are typically static, trained offline on a fixed set of classes with extensive supervision. Expanding these models to include new categories usually requires retraining on the entire dataset—a process that is computationally expensive and often infeasible due to data privacy or storage constraints. Simply fine-tuning on new data leads to "catastrophic forgetting," where the model loses its ability to detect previously learned base classes.

This paper introduces ONCE (OpeN-ended Centre nEt), a framework designed for Incremental Few-Shot Object Detection (iFSD). ONCE enables a model to register new object categories using only a few examples in a single forward pass, without forgetting base classes or requiring access to the original training data.

The ONCE Framework

The core innovation of ONCE lies in decomposing the detection task into class-generic and class-specific components. Built upon the point-based CentreNet architecture, the system identifies objects by their center points, simplifying the meta-learning process compared to traditional box-based region proposal networks.

The ONCE architecture featuring a two-stage training process: Stage I for base feature extraction and Stage II for meta-learning the class code generator.

As illustrated in the figure above, training occurs in two distinct stages:

  1. Stage I (Base Training): A class-generic feature extractor is trained on a large set of base classes to learn robust visual representations (edges, textures, shapes).
  2. Stage II (Meta-Learning): A Class Code Generator is trained. This meta-network takes a "support set" (a few images of a new class) and predicts the convolutional weights—or "class codes"—needed for the object locator to identify that specific category.

At inference, enrolling a new class requires no gradient descent. A few support images are passed through the generator, and the resulting code is "plugged in" to the frozen detector.

Experimental Evaluation

The researchers evaluated ONCE on major benchmarks including MS COCO, PASCAL VOC, and DeepFashion2. A key focus was the model's performance in an incremental setting where classes are added sequentially.

Performance comparison (AP and AR) as classes are incrementally added. ONCE maintains stable performance, while fine-tuning and feature reweighting methods suffer from catastrophic forgetting.

Key Results

  • Zero Forgetting: Unlike standard fine-tuning, which sees base class performance crash as new classes are added, ONCE maintains stable performance. On the COCO dataset, ONCE preserved a consistent 17.9 AP on base classes, whereas fine-tuning dropped to near zero (1.1 AP).
  • Superior Few-Shot Learning: In 10-shot scenarios, ONCE significantly outperformed established meta-learning algorithms like MAML and other few-shot methods when restricted to the incremental setting.
  • Operational Efficiency: Because registration involves only a single forward pass, ONCE is highly suitable for real-time deployment on resource-constrained devices like mobile robots or smartphones.

Discussion and Conclusion

The success of ONCE highlights the importance of decoupling feature extraction from class-specific parameters. By freezing the base knowledge and adding new classes as independent plugins, the model achieves order-free learning where the sequence of class introduction does not impact final performance.

However, challenges remain. While ONCE is a breakthrough for incremental learning, the absolute mean Average Precision (mAP) for novel classes is still lower than that of models trained on thousands of images. Furthermore, the model's ability to generalize depends on the diversity of the initial base classes. Future work may explore more sophisticated code generators or methods to evolve the feature extractor over time without inducing forgetting.

In summary, ONCE provides a scalable and efficient path toward open-ended object detection, bridging the gap between static laboratory models and the dynamic learning requirements of real-world applications.

Summary updated

BibTeX
@inproceedings{perezrua2020incremental,
  author = {Juan-Manuel Pérez-Rúa and Xiatian Zhu and Timothy M. Hospedales and Tao Xiang},
  title = {{Incremental Few-Shot Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01386},
}
Figure