Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

OODD: Test-time Out-of-Distribution Detection with Dynamic Dictionary

About

Out-of-distribution (OOD) detection remains challenging for deep learning models, particularly when test-time OOD samples differ significantly from training outliers. We propose OODD, a novel test-time OOD detection method that dynamically maintains and updates an OOD dictionary without fine-tuning. Our approach leverages a priority queue-based dictionary that accumulates representative OOD features during testing, combined with an informative inlier sampling strategy for in-distribution (ID) samples. To ensure stable performance during early testing, we propose a dual OOD stabilization mechanism that leverages strategically generated outliers derived from ID data. To our best knowledge, extensive experiments on the OpenOOD benchmark demonstrate that OODD significantly outperforms existing methods, achieving a 26.0% improvement in FPR95 on CIFAR-100 Far OOD detection compared to the state-of-the-art approach. Furthermore, we present an optimized variant of the KNN-based OOD detection framework that achieves a 3x speedup while maintaining detection performance.

Yifeng Yang, Lin Zhu, Zewen Sun, Hengyu Liu, Qinying Gu, Nanyang Ye• 2025

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionSUN OOD with ImageNet-1k In-distribution (test)
FPR@9521.49
247
Out-of-Distribution DetectionImageNet-1k ID iNaturalist OOD
FPR952.22
132
OOD DetectioniNaturalist
AUROC93.78
95
OOD DetectionImageNet-1k ID Average OOD
AUROC0.96
92
OOD DetectioniNaturalist (OOD) / ImageNet-1k (ID) 1.0 (test)
FPR950.85
90
Out-of-Distribution DetectionImageNet-1K OOD Average
AUROC93.69
71
OOD DetectionImageNet SUN
FPR@9521.99
70
Out-of-Distribution DetectionImageNet-1k (ID) vs Textures (OOD) 1.0 (test)
AUC94.51
64
Out-of-Distribution DetectioniNaturalist (test)
AUROC79
64
Out-of-Distribution DetectionImageNet Far-OOD
AUROC96.13
58
Showing 10 of 43 rows

Other info

Follow for update