Abstract: Learning object detection from few examples recently emerged to deal with data-limited situations. While most previous works merely focus on the performance on few-shot categories, we claim that the ability to detect 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 on base class performance at all. Our approach has demonstrated that the long desired never-forgetting learner is available in object detection.
Introduction
In realistic applications, AI systems often need to learn new concepts on the fly from very limited data. However, standard deep learning models suffer from catastrophic forgetting: when fine-tuned to recognize a "novel" class, they frequently lose the ability to accurately detect original "base" classes.
While most research focuses on Few-Shot Object Detection (FSOD)—optimizing performance solely for new classes—this paper addresses Generalized Few-Shot Object Detection (G-FSD). In G-FSD, the model must detect both base and novel classes simultaneously. Current approaches are often either computationally expensive (meta-learning) or lead to significant performance degradation in the original model (transfer learning).
Methodology: Retentive R-CNN
Retentive R-CNN builds upon the Faster R-CNN architecture with two primary modifications designed to preserve knowledge while integrating new concepts.
1. Bias-Balanced RPN
Standard Region Proposal Networks (RPN) trained on base classes are often biased, treating novel objects as "background." To mitigate this, Retentive R-CNN ensembles a frozen "base" RPN with a fine-tuned "novel" RPN. By applying a max operation on their objectness scores, the framework ensures the model proposes regions for both old and new objects effectively.
2. Re-detector with Consistency Loss
Instead of a single detection head, the model utilizes two in parallel:
- Base Detector ($det^b$): A frozen head that perfectly retains original knowledge.
- Novel Detector ($det^n$): A head fine-tuned on both base and novel classes.
To prevent the novel detector from deviating too far from established knowledge, a Consistency Loss (KL-Divergence) is applied. This forces the novel head to produce probability distributions for base classes that match the original frozen base head.
Key Insights
- The "Background" Trap: Base detectors are often so specialized that they actively suppress novel classes as background. Simple fine-tuning fails because the model is essentially fighting its own previous training.
- RPN Bias: Contrary to the common assumption that RPNs are class-agnostic, they are actually biased toward the classes seen during training, necessitating the Bias-Balanced approach.
- Ensembling for Retention: Keeping a frozen copy of the base detector to act as a "teacher" via consistency loss achieves the "never-forgetting" property essential for incremental learning.
Experimental Results
Retentive R-CNN was evaluated on MS-COCO and Pascal VOC benchmarks, achieving state-of-the-art (SOTA) results in the generalized setting.
- Zero Degradation: On MS-COCO, while competing methods saw base class Accuracy (bAP) drop by 3-10 points, Retentive R-CNN maintained the exact performance of the original pretrained model (39.2 bAP).
- Superior Overall Performance: In the 10-shot MS-COCO setting, it achieved an overall AP of 32.1, significantly outperforming the previous best transfer-learning method (TFA) at 28.7.
- Efficiency: The model remains computationally efficient despite its dual-head architecture, running at 75.7ms per image—faster than many meta-learning competitors.
Conclusion
Retentive R-CNN demonstrates that a "never-forgetting" learner is achievable in object detection. While it perfectly preserves base class knowledge, a significant gap remains between novel class performance and base class performance. Future work will focus on narrowing this "few-shot gap" and moving toward a more seamless, continuous incremental learning flow.
Summary updated