Abstract
Multi-label Out-of-Distribution (OOD) detection is essential for deploying machine learning models in complex, real-world environments. However, existing methods often struggle with the "imbalance problem," where rare "tail" in-distribution (ID) classes are misidentified as outliers due to their low energy scores. We introduce EDGE (Energy Distribution Gap Expansion), a novel framework designed to address this by explicitly widening the energy distribution gap between hard-to-classify tail samples and unknown inputs. By leveraging auxiliary outlier data and a specialized loss function, EDGE achieves state-of-the-art OOD detection performance across multiple benchmarks without compromising classification accuracy.
Introduction
In practical scenarios, data is rarely confined to single-label categories. For instance, an autonomous driving system must simultaneously recognize pedestrians, vehicles, and traffic signs. Multi-label OOD detection aims to identify inputs that do not belong to any known category. While the JointEnergy score—which aggregates logits across all labels—is a common baseline, it suffers from a critical flaw: it fails to distinguish between rare ID samples ("tail" classes) and actual outliers.
As shown in the performance analysis below, standard models exhibit imbalanced performance; tail samples naturally produce lower energy scores, making them indistinguishable from OOD samples. Surprisingly, common techniques for handling imbalanced classification, such as Focal Loss, can actually exacerbate this issue by collapsing the energy gap necessary for detection.
Methodology: The EDGE Framework
The core of EDGE is a three-part objective function designed to reshape the model's energy space, complemented by a module for selecting informative outliers.
1. The EDGE Loss Function
The total loss, $\mathcal{L}_{edge}$, is composed of three terms:
- Classification Loss ($\mathcal{L}_{id}$): A standard Binary Cross-Entropy loss to maintain high classification performance on known categories.
- Segregation Loss ($\mathcal{L}_{conf}$): Utilizes auxiliary "Outlier Exposure" (OE) data to push the confidence scores of unknown inputs toward zero.
- Expansion Loss ($\mathcal{L}_{gap}$): This term identifies the $k$ in-distribution samples with the lowest energy (the most challenging tail samples) and explicitly maximizes the distance between their energy levels and those of the OOD samples.
2. Outlier Exposure Selection Module (OESM)
The effectiveness of Outlier Exposure depends heavily on the choice of auxiliary data. If the outliers are too dissimilar from the ID data, the model learns a trivial decision boundary. EDGE employs a dilation distance metric based on the Singular Value Decomposition (SVD) of image features. This allows the system to select auxiliary datasets that are semantically related to the training set, forcing the model to learn a more precise and robust boundary.
Experimental Results
The researchers evaluated EDGE on three major multi-label benchmarks: PASCAL-VOC, MS-COCO, and NUS-WIDE. OOD performance was tested against diverse datasets such as Textures, iSUN, and LSUN.
Performance Gains
EDGE demonstrates significant improvements over the JointEnergy baseline:
- FPR95 Reduction: On the MS-COCO dataset, EDGE reduced the False Positive Rate at 95% Recall (FPR95) from 0.48% to a remarkable 0.01% on the LSUN OOD set.
- AUROC Improvement: On the challenging iSUN dataset, EDGE improved the Area Under the ROC Curve (AUROC) from 92.04% to 94.86%.
- Maintained Accuracy: Unlike many OOD methods that degrade classification performance, EDGE maintained or slightly improved the mean Average Precision (mAP) (e.g., 73.79 vs. 73.50 on MS-COCO).
Discussion and Conclusion
The primary insight of this work is that multi-label OOD detection is fundamentally an imbalanced learning problem. By focusing on the distribution gap of energy rather than individual class probabilities, EDGE creates a more "unknown-aware" model.
While the current implementation relies on auxiliary Outlier Exposure data, the success of the energy expansion logic suggests a promising path for future "OE-free" methods. These might involve synthetic outlier generation or self-supervised techniques to define the energy boundary without external datasets. EDGE sets a new standard for robust, multi-label OOD detection in real-world applications.
Summary updated