Hypercone Assisted Contour Generation for Out-of-Distribution Detection
Annita Vapsi, Andrés Muñoz, Nancy Thomas, Keshav Ramani, Daniel Borrajo
TL;DR
HAC$_k$-OOD proposes a post-training, distribution-free approach to OOD detection by shaping the in-distribution (ID) data manifold with a set of hypercones in the embedding space. It constructs class-specific contours by centering embeddings at class centroids, extracting axes from ID data, and setting per-cone angular and radial boundaries using a k-nearest-neighbor criterion and data-driven radial thresholds. The method achieves state-of-the-art FPR@95 and AUROC on Far- and Near-OOD benchmarks for CIFAR-100 and performs competitively on CIFAR-10, without requiring OOD examples. This work demonstrates that per-direction, adaptive boundaries can better separate ID from OOD than global isotropic boundaries, with efficient inference and potential applicability to other tasks like classification and explainability.
Abstract
Recent advances in the field of out-of-distribution (OOD) detection have placed great emphasis on learning better representations suited to this task. While there are distance-based approaches, distributional awareness has seldom been exploited for better performance. We present HAC$_k$-OOD, a novel OOD detection method that makes no distributional assumption about the data, but automatically adapts to its distribution. Specifically, HAC$_k$-OOD constructs a set of hypercones by maximizing the angular distance to neighbors in a given data-point's vicinity to approximate the contour within which in-distribution (ID) data-points lie. Experimental results show state-of-the-art FPR@95 and AUROC performance on Near-OOD detection and on Far-OOD detection on the challenging CIFAR-100 benchmark without explicitly training for OOD performance.
