Skip to main content
QUICK REVIEW

[Paper Review] Generalized Few-Shot Object Detection without Forgetting

Zhibo Fan, Yuchen Ma|arXiv (Cornell University)|May 20, 2021
Domain Adaptation and Few-Shot LearningComputer Science3 references21 citations
TL;DR

This paper proposes Retentive R-CNN, a transfer learning-based few-shot object detection method that maintains base class performance while achieving state-of-the-art results on novel classes by leveraging overlooked properties of pretrained detectors. It introduces a Bias-Balanced RPN and Re-detector with a consistency loss to enable few-shot adaptation without forgetting, outperforming prior methods in both base and novel class AP across all settings.

ABSTRACT

Recently few-shot object detection is widely adopted to deal with data-limited situations. While most previous works merely focus on the performance on few-shot categories, we claim that detecting all classes is crucial as test samples may contain any instances in realistic applications, which requires the few-shot detector to learn new concepts without forgetting. Through analysis on transfer learning based methods, some neglected but beneficial properties are utilized to design a simple yet effective few-shot detector, Retentive R-CNN. It consists of Bias-Balanced RPN to debias the pretrained RPN and Re-detector to find few-shot class objects without forgetting previous knowledge. Extensive experiments on few-shot detection benchmarks show that Retentive R-CNN significantly outperforms state-of-the-art methods on overall performance among all settings as it can achieve competitive results on few-shot classes and does not degrade the base class performance at all. Our approach has demonstrated that the long desired never-forgetting learner is available in object detection.

Motivation & Objective

  • To address catastrophic forgetting in few-shot object detection, where existing methods degrade on base classes while adapting to novel ones.
  • To enable generalized few-shot detection (G-FSD), where models must detect both base and novel classes simultaneously in real-world scenarios.
  • To identify and exploit overlooked properties of pretrained detectors that can improve few-shot adaptation without performance drop on base classes.
  • To design a lightweight, efficient detection framework that supports incremental learning with minimal computational overhead.
  • To achieve state-of-the-art overall performance on few-shot detection benchmarks without sacrificing base class accuracy.

Proposed method

  • Introduces Bias-Balanced RPN, which reweights proposals to reduce bias toward seen classes, improving detection of novel objects while preserving base class performance.
  • Proposes Re-detector, a finetuning strategy that uses a consistency loss to align the classifier logits of the novel detector with those of the base detector on base classes.
  • Employs a two-stage training process: first, the backbone and RPN are frozen; second, only the classification and box head heads are fine-tuned with the consistency loss.
  • Uses a shared feature extractor and weight sharing across base and novel detectors to minimize inference cost and enable efficient single-forward detection.
  • Applies a cosine similarity-based consistency loss to regularize the adaptation process, ensuring that the model's predictions on base classes remain stable.
  • Designs the Re-detector to incrementally detect both base and novel classes by leveraging the base detector’s robustness and generalization capability.

Experimental results

Research questions

  • RQ1Can a few-shot object detector maintain high performance on base classes while adapting to novel classes?
  • RQ2What overlooked properties of pretrained detectors can be exploited to prevent forgetting during few-shot adaptation?
  • RQ3How can a detector be designed to efficiently detect both base and novel classes in a single inference pass?
  • RQ4Can a consistency loss between base and novel detector heads improve generalization and reduce forgetting?
  • RQ5Is it possible to achieve state-of-the-art performance on both base and novel classes simultaneously in generalized few-shot detection?

Key findings

  • Retentive R-CNN achieves 39.2% AP on novel classes and 32.1% AP on base classes in the 10-shot setting on MS-COCO, outperforming prior methods in overall performance.
  • The method maintains base class AP at 32.1%, matching the performance of the pretrained detector, thus demonstrating no forgetting.
  • Inference time is 75.7ms on MS-COCO, significantly lower than meta-learning baselines like Meta R-CNN (85.4ms), showing high efficiency.
  • Visualization shows that Retentive R-CNN detects previously missed objects—such as a less salient baseball bat—compared to TFA, confirming improved robustness.
  • The consistency loss ensures that the model's logits on base classes remain close to the base detector’s distribution, enhancing reliability and reducing confusion.
  • Ablation studies confirm that the combination of Bias-Balanced RPN and Re-detector with consistency loss yields the best performance, with the optimal configuration using cosine similarity and shared classification and box heads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.