Leveraging Perturbation Robustness to Enhance Out-of-Distribution Detection

Wenxi Chen, Raymond A. Yeh, Shaoshuai Mou, Yan Gu
3/24/2025
cs.CV

No official code found. Best implementation: wenxichen2746/Perturbation-Rectified-OOD-Detection (9 stars, last commit 2025-04-02).

Abstract

Out-of-distribution (OOD) detection is the task of identifying inputs that deviate from the training data distribution. This capability is essential for safely deploying deep computer vision models in open-world environments. In this work, we propose a post-hoc method, Perturbation-Rectified OOD detection (PRO), based on the insight that prediction confidence for OOD inputs is more susceptible to reduction under perturbation than in-distribution (IND) inputs. Based on the observation, we propose an adversarial score function that searches for the local minimum scores near the original inputs by applying gradient descent. This procedure enhances the separability between IND and OOD samples. Importantly, the approach improves OOD detection performance without complex modifications to the underlying model architectures. We conduct extensive experiments using the OpenOOD benchmark~\cite{yang2022openood}. Our approach further pushes the limit of softmax-based OOD detection and is the leading post-hoc method for small-scale models. On a CIFAR-10 model with adversarial training, PRO effectively detects near-OOD inputs, achieving a reduction of more than 10\% on FPR@95 compared to state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

This repository is for the CVPR 2025 work on OOD detection.

93Jinja, ShellMar 14, 20251 years ago

Similar Papers

Cite this paper

@article{chen2025leveraging,
  title  = {Leveraging Perturbation Robustness to Enhance Out-of-Distribution Detection},
  author = {Wenxi Chen and Raymond A. Yeh and Shaoshuai Mou and Yan Gu},
  year   = {2025},
  eprint = {2503.18784},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.18784v1}
}

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.18784.svg)](https://codeofpaper.com/paper/2503.18784)

Discussion