Abstract
Open-set object detection (OSOD) aims to detect the known categories and reject unknown objects in a dynamic world, which has achieved significant attention. However, previous approaches only consider this problem in data-abundant conditions, while neglecting the few-shot scenes. In this paper, we seek a solution for the generalized few-shot open-set object detection (G-FOOD), which aims to avoid detecting unknown classes as known classes with a high confidence score while maintaining the performance of few-shot detection. The main challenge for this task is that few training samples induce the model to overfit on the known classes, resulting in a poor open-set performance. We propose a new G-FOOD algorithm to tackle this issue, named Few-shOt Open-set Detector (FOOD), which contains a novel class weight sparsification classifier (CWSC) and a novel unknown decoupling learner (UDL). To prevent over-fitting, CWSC randomly sparses parts of the normalized weights for the logit prediction of all classes, and then decreases the co-adaptability between the class and its neighbors. Alongside, UDL decouples training the unknown class and enables the model to form a compact unknown decision boundary. Thus, the unknown objects can be identified with a confidence probability without any threshold, prototype, or generation. We compare our method with several state-of-the-art OSOD methods in few-shot scenes and observe that our method improves the F-score of unknown classes by 4.80%-9.08% across all shots in VOC-COCO dataset settings.
Introduction: The Challenge of G-FOOD
Standard object detectors typically operate under a "closed-set" assumption, presuming that every object encountered belongs to a predefined set of training categories. In real-world applications like autonomous driving, this assumption is hazardous; a model might erroneously classify an unfamiliar obstacle as a "car" with high confidence simply because it lacks an "unknown" category.
While Open-Set Object Detection (OSOD) addresses this by identifying unknown objects, it generally requires large-scale training data. Conversely, Few-Shot Object Detection (FSOD) focuses on learning from minimal examples but often ignores the open-set problem. This research introduces Generalized Few-Shot Open-Set Object Detection (G-FOOD), a framework that enables detectors to recognize novel objects from just a few examples while simultaneously rejecting completely unknown objects.
The primary hurdle in G-FOOD is overfitting. When a model is trained on very few samples (e.g., three images of a "bird"), it develops an overly narrow definition, making it difficult to distinguish between a new bird species (novel class) and a completely unrelated unknown object.
The FOOD Framework
To address these challenges, the authors propose the Few-shOt Open-set Detector (FOOD), built upon the Faster R-CNN architecture with two key innovations:
1. Class Weight Sparsification Classifier (CWSC)
Inspired by Dropout theory, the CWSC acts as a powerful regularizer. During training, it randomly "sparsifies" (zeros out) portions of the normalized weights used for classification. This mechanism prevents the model from becoming overly "co-adapted" to specific, potentially non-representative features of the few-shot classes. By forcing the model to rely on a more diverse feature set, CWSC helps it generalize better at the decision boundary between known and unknown classes.
2. Unknown Decoupling Learner (UDL)
Traditional Softmax classification is a zero-sum game; increasing the probability of one class necessitates decreasing others. This is problematic for open-set detection as it forces unknown objects into known categories. The UDL replaces this with a binary sigmoid for a dedicated "unknown" class, decoupling it from the known categories to prevent optimization conflicts. The model is trained using "high conditional energy" samples—proposals where the model's uncertainty is highest—treating them as pseudo-unknowns to map out the "dark matter" of the feature space.
Experimental Evaluation
The FOOD model was evaluated on three newly established benchmarks:
- VOC10-5-5: A PASCAL VOC split with 10 base, 5 novel (few-shot), and 5 unknown classes.
- VOC-COCO: A cross-dataset benchmark (trained on VOC, tested against 40 COCO unknown categories).
- LVIS315-454-461: A large-scale, long-tail dataset reflecting real-world distributions.
Key Results
The FOOD model significantly outperformed adapted state-of-the-art OSOD methods:
- Unknown Rejection: Improved the F-score of unknown classes by 4.80% to 9.08% across various shot settings (1 to 30 images).
- Recall: On the VOC10-5-5 10-shot benchmark, unknown recall reached 45.84%, nearly doubling baseline performance.
- Generalization: In the VOC-COCO test, the model maintained high performance on known classes while effectively identifying entirely unseen objects.
Conclusion and Future Directions
The FOOD framework demonstrates that weight sparsification and decoupled learning are effective strategies for the G-FOOD task. However, a remaining challenge is the occasional misidentification of novel (few-shot) classes as unknown. Future work may involve incorporating Intersection over Union (IoU) constraints during optimization to better distinguish between poorly localized known objects and genuine unknowns.
Summary updated