paper-with-me

홈 › Papers

Detecting Out-of-distribution Data through In-distribution Class Prior

2023-04-25 · ICML 2023 4 · Xue Jiang, Feng Liu, Zhen Fang, Hong Chen, Tongliang Liu, Feng Zheng, Bo Han

Given a pre-trained in-distribution (ID) model, the inference-time out-of-distribution (OOD) detection aims to recognize OOD data during the inference stage. However, some representative methods share an unproven assumption that the probability that OOD data belong to every ID class should be the same, i.e., these OOD-to-ID probabilities actually form a uniform distribution. In this paper, we show that this assumption makes the above methods incapable when the ID model is trained with class-imbalanced data.Fortunately, by analyzing the causal relations between ID/OOD classes and features, we identify several common scenarios where the OOD-to-ID probabilities should be the ID-class-prior distribution and propose two strategies to modify existing inference-time detection methods: 1) replace the uniform distribution with the ID-class-prior distribution if they explicitly use the uniform distribution; 2) otherwise, reweight their scores according to the similarity between the ID-class-prior distribution and the softmax outputs of the pre-trained model. Extensive experiments show that both strategies can improve the OOD detection performance when the ID model is pre-trained with imbalanced data, reflecting the importance of ID-class prior in OOD detection.

📄 PDF Abstract BibTeX

Code (1)

tmlr-group/class_prior 공식 구현 pytorch

Tasks

Out-of-Distribution DetectionOut of Distribution (OOD) Detection

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks

2018-07-10 · NeurIPS 2018 12 · Kimin Lee, Kibok Lee, Honglak Lee, Jinwoo Shin

Detecting test samples drawn sufficiently far away from the training distribution statistically or adversarially is a fundamental requirement for deploying a good classifier in many real-world machine learning applicatio…

class-incremental learningClass Incremental LearningIncremental LearningOut-of-Distribution Detection

A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks

2016-10-07 · Dan Hendrycks, Kevin Gimpel

We consider the two related problems of detecting if an example is misclassified or out-of-distribution. We present a simple baseline that utilizes probabilities from softmax distributions. Correctly classified examples …

Anomaly DetectionAutomatic Speech RecognitionAutomatic Speech Recognition (ASR)Out-of-Distribution Detection+1

Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detection

2019-09-25 · Nilesh A. Ahuja, Ibrahima Ndiour, Trushant Kalyanpur, Omesh Tickoo

We present a principled approach for detecting out-of-distribution (OOD) and adversarial samples in deep neural networks. Our approach consists in modeling the outputs of the various layers (deep features) with parametri…

Adversarial Attack

TASTE: Task-Aware Out-of-Distribution Detection via Stein Operators

2026-02-07 · Michał Kozyra, Gesine Reinert arxiv

Out-of-distribution detection methods are often either data-centric, detecting deviations from the training input distribution irrespective of their effect on a trained model, or model-centric, relying on classifier outp…

Out-of-Distribution Detection

Sequential changepoint detection in classification data under label shift

2020-09-18 · Ciaran Evans, Max G'Sell

Classifier predictions often rely on the assumption that new observations come from the same distribution as training data. When the underlying distribution changes, so does the optimal classification rule, and performan…

ClassificationGeneral Classification