Proto-OOD: Enhancing OOD Object Detection with Prototype Feature Similarity
Junkun Chen, Jilin Mei, Liang Chen, Fangzhou Zhao, Yan Xing, Yu Hu
TL;DR
Proto-OOD tackles OOD detection in object detection by using prototype-based similarity scoring between input embeddings $r$ and category prototypes $p$, enhanced with a contrastive loss and a negative embedding generator to simulate OOD features. The framework computes $E = H(r,p) \cdot s$, where $H(r,p)$ is cosine similarity and $s$ is the predicted ID/OOD score, and uses a threshold $\gamma$ to separate ID from OOD during inference. Experiments show improvements in FPR95 and AUROC on MS-COCO and OpenImages when evaluated with ID data from Pascal VOC or BDD100K, and the authors also propose Protocol_B to provide fairer OOD evaluation. The work highlights the effectiveness of prototype representations for OOD object detection and provides a practical pipeline that can be integrated with existing detectors.
Abstract
Neural networks that are trained on limited category samples often mispredict out-of-distribution (OOD) objects. We observe that features of the same category are more tightly clustered in feature space, while those of different categories are more dispersed. Based on this, we propose using prototype similarity for OOD detection. Drawing on widely used prototype features in few-shot learning, we introduce a novel OOD detection network structure (Proto-OOD). Proto-OOD enhances the representativeness of category prototypes using contrastive loss and detects OOD data by evaluating the similarity between input features and category prototypes. During training, Proto-OOD generates OOD samples for training the similarity module with a negative embedding generator. When Pascal VOC are used as the in-distribution dataset and MS-COCO as the OOD dataset, Proto-OOD significantly reduces the FPR (false positive rate). Moreover, considering the limitations of existing evaluation metrics, we propose a more reasonable evaluation protocol. The code will be released.
