YolOOD: Utilizing Object Detection Concepts for Multi-Label Out-of-Distribution Detection

Alon Zolfi, Guy Amit, Amit Baras, Satoru Koda, Ikuya Morikawa, Yuval Elovici, Asaf Shabtai

Abstract

Multi-label Out-of-Distribution (OOD) detection is a critical yet underexplored area in computer vision. Unlike standard multi-class OOD, multi-label scenarios involve images containing multiple known and potentially unknown objects. We propose YolOOD, a framework that adapts object detection architectures to identify OOD samples by leveraging local "objectness" scores. By modifying the YOLOv5 backbone to focus on objectness and class confidence across a grid, and introducing an expanded responsibility mechanism ($p_k$), YolOOD significantly outperforms global classification-based methods. Our results show a reduction in False Positive Rate (FPR95) of over 12% on realistic benchmarks.

Introduction

Most OOD detection research focuses on multi-class classification, where an image is assumed to contain a single primary subject. However, real-world data is inherently multi-label. Detecting OOD samples in these settings is challenging because a single image may contain both in-distribution (ID) and OOD objects. Existing methods often rely on global features, which struggle to isolate localized OOD elements. YolOOD addresses this by treating the image as a grid of potential objects, utilizing the inherent "objectness" capability of detectors to filter out background and identify novel entities.

Visualization of objectness scores for in-distribution (top) and out-of-distribution (bottom) samples. The model naturally produces lower confidence for OOD objects.

Methodology

YolOOD adapts the YOLOv5 architecture for the OOD task through several key modifications:

1. Architecture and Scoring

The standard bounding box coordinate regression layer is removed. Instead, each grid cell predicts an objectness score (probability of an object's presence) and class scores. During inference, the OOD score is derived from the maximum joint probability across all grid cells: $\max(\text{objectness} \times \text{class score})$. This local evaluation allows the model to detect OOD elements even when they are small or surrounded by ID objects.

2. Expanded Responsibility ($p_k$)

In traditional object detection, only the grid cell at the object's center is responsible for its prediction. YolOOD introduces a parameter $p_k$ to expand this responsibility to multiple cells covering the object. This encourages the model to learn more robust, spatially distributed representations.

The effect of the responsibility parameter $p$ on the grid cells assigned to an object. Increasing $p$ expands the 'responsible' area beyond the central cell.

3. Automated Labeling

To enable training on standard multi-label classification datasets that lack bounding boxes, the authors utilize Grounding DINO to automatically generate pseudo-labels (bounding boxes) based on text descriptions of the ID classes.

Experiments and Results

The model was evaluated on large-scale benchmarks, including PASCAL VOC, MS-COCO, and a new Objects365-in/out split designed to reflect real-world complexity.

YolOOD demonstrates a significant performance leap over state-of-the-art methods like JointEnergy and MaxLogit. Notably, on the Objects365-in vs. NUS-WIDE benchmark, YolOOD reduced the FPR95 from 24.46% to 12.19%. The results confirm that combining objectness with class confidence effectively filters background noise and isolates OOD signals.

Conclusion

YolOOD successfully repurposes object detection concepts for the multi-label OOD problem. By shifting from global to local grid-based analysis and optimizing object responsibility, the method achieves superior robustness and accuracy. Future work may explore pixel-wise granularity through segmentation to further refine OOD localization.

Summary updated

BibTeX
@inproceedings{zolfi2024yolood,
  author = {Alon Zolfi and Guy Amit and Amit Baras and Satoru Koda and Ikuya Morikawa and Yuval Elovici and Asaf Shabtai},
  title = {{YolOOD: Utilizing Object Detection Concepts for Multi-Label Out-of-Distribution Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00553},
}
Figure