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

Yifeng Yang, Lin Zhu, Zewen Sun, Hengyu Liu, Qinying Gu +1 more
3/13/2025
cs.CVcs.LG

No official code found. Best implementation: zxk1212/OODD (19 stars, last commit 2025-05-09).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

zxk1212/OODDCommunity100%

[CVPR2025] The implementation of the paper "OODD: Test-time Out-of-Distribution Detection with Dynamic Dictionary".

192Shell, PythonMar 1, 20251 years ago

Similar Papers

Cite this paper

@article{yang2025oodd,
  title  = {OODD: Test-time Out-of-Distribution Detection with Dynamic Dictionary},
  author = {Yifeng Yang and Lin Zhu and Zewen Sun and Hengyu Liu and Qinying Gu and Nanyang Ye},
  year   = {2025},
  eprint = {2503.10468},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10468v1},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.10468.svg)](https://codeofpaper.com/paper/2503.10468)

Discussion