Task-agnostic Out-of-Distribution Detection Using Kernel Density
Estimation
- URL: http://arxiv.org/abs/2006.10712v4
- Date: Tue, 30 Mar 2021 21:55:47 GMT
- Title: Task-agnostic Out-of-Distribution Detection Using Kernel Density
Estimation
- Authors: Ertunc Erdil, Krishna Chaitanya, Neerav Karani, Ender Konukoglu
- Abstract summary: We propose a task-agnostic method to perform out-of-distribution (OOD) detection in deep neural networks (DNNs)
We estimate the probability density functions (pdfs) of intermediate features of a pre-trained DNN by performing kernel density estimation (KDE) on the training dataset.
At test time, we evaluate the pdfs on a test sample and produce a confidence score that indicates the sample is OOD.
- Score: 10.238403787504756
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: In the recent years, researchers proposed a number of successful methods to
perform out-of-distribution (OOD) detection in deep neural networks (DNNs). So
far the scope of the highly accurate methods has been limited to image level
classification tasks. However, attempts for generally applicable methods beyond
classification did not attain similar performance. In this paper, we address
this limitation by proposing a simple yet effective task-agnostic OOD detection
method. We estimate the probability density functions (pdfs) of intermediate
features of a pre-trained DNN by performing kernel density estimation (KDE) on
the training dataset. As direct application of KDE to feature maps is hindered
by their high dimensionality, we use a set of lower-dimensional marginalized
KDE models instead of a single high-dimensional one. At test time, we evaluate
the pdfs on a test sample and produce a confidence score that indicates the
sample is OOD. The use of KDE eliminates the need for making simplifying
assumptions about the underlying feature pdfs and makes the proposed method
task-agnostic. We perform extensive experiments on classification tasks using
benchmark datasets for OOD detection. Additionally, we perform experiments on
medical image segmentation tasks using brain MRI datasets. The results
demonstrate that the proposed method consistently achieves high OOD detection
performance in both classification and segmentation tasks and improves
state-of-the-art in almost all cases. Code is available at
\url{https://github.com/eerdil/task_agnostic_ood}
Related papers
- Margin-bounded Confidence Scores for Out-of-Distribution Detection [2.373572816573706]
We propose a novel method called Margin bounded Confidence Scores (MaCS) to address the nontrivial OOD detection problem.
MaCS enlarges the disparity between ID and OOD scores, which in turn makes the decision boundary more compact.
Experiments on various benchmark datasets for image classification tasks demonstrate the effectiveness of the proposed method.
arXiv Detail & Related papers (2024-09-22T05:40:25Z) - A noisy elephant in the room: Is your out-of-distribution detector robust to label noise? [49.88894124047644]
We take a closer look at 20 state-of-the-art OOD detection methods.
We show that poor separation between incorrectly classified ID samples vs. OOD samples is an overlooked yet important limitation of existing methods.
arXiv Detail & Related papers (2024-04-02T09:40:22Z) - EAT: Towards Long-Tailed Out-of-Distribution Detection [55.380390767978554]
This paper addresses the challenging task of long-tailed OOD detection.
The main difficulty lies in distinguishing OOD data from samples belonging to the tail classes.
We propose two simple ideas: (1) Expanding the in-distribution class space by introducing multiple abstention classes, and (2) Augmenting the context-limited tail classes by overlaying images onto the context-rich OOD data.
arXiv Detail & Related papers (2023-12-14T13:47:13Z) - Nearest Neighbor Guidance for Out-of-Distribution Detection [18.851275688720108]
We propose Nearest Neighbor Guidance (NNGuide) for detecting out-of-distribution (OOD) samples.
NNGuide reduces the overconfidence of OOD samples while preserving the fine-grained capability of the classifier-based score.
Our results demonstrate that NNGuide provides a significant performance improvement on the base detection scores.
arXiv Detail & Related papers (2023-09-26T12:40:35Z) - Beyond AUROC & co. for evaluating out-of-distribution detection
performance [50.88341818412508]
Given their relevance for safe(r) AI, it is important to examine whether the basis for comparing OOD detection methods is consistent with practical needs.
We propose a new metric - Area Under the Threshold Curve (AUTC), which explicitly penalizes poor separation between ID and OOD samples.
arXiv Detail & Related papers (2023-06-26T12:51:32Z) - Augmenting Softmax Information for Selective Classification with
Out-of-Distribution Data [7.221206118679026]
We show that existing post-hoc methods perform quite differently compared to when evaluated only on OOD detection.
We propose a novel method for SCOD, Softmax Information Retaining Combination (SIRC), that augments softmax-based confidence scores with feature-agnostic information.
Experiments on a wide variety of ImageNet-scale datasets and convolutional neural network architectures show that SIRC is able to consistently match or outperform the baseline for SCOD.
arXiv Detail & Related papers (2022-07-15T14:39:57Z) - Meta-learning for Out-of-Distribution Detection via Density Estimation
in Latent Space [40.58524521473793]
We propose a simple yet effective meta-learning method to detect OoD with small in-distribution data in a target task.
A neural network shared among all tasks is used to flexibly map instances in the original space to the latent space.
In experiments using six datasets, we demonstrate that the proposed method achieves better performance than existing meta-learning and OoD detection methods.
arXiv Detail & Related papers (2022-06-20T02:44:42Z) - On the Practicality of Deterministic Epistemic Uncertainty [106.06571981780591]
deterministic uncertainty methods (DUMs) achieve strong performance on detecting out-of-distribution data.
It remains unclear whether DUMs are well calibrated and can seamlessly scale to real-world applications.
arXiv Detail & Related papers (2021-07-01T17:59:07Z) - DAAIN: Detection of Anomalous and Adversarial Input using Normalizing
Flows [52.31831255787147]
We introduce a novel technique, DAAIN, to detect out-of-distribution (OOD) inputs and adversarial attacks (AA)
Our approach monitors the inner workings of a neural network and learns a density estimator of the activation distribution.
Our model can be trained on a single GPU making it compute efficient and deployable without requiring specialized accelerators.
arXiv Detail & Related papers (2021-05-30T22:07:13Z) - Entropy Maximization and Meta Classification for Out-Of-Distribution
Detection in Semantic Segmentation [7.305019142196585]
"Out-of-distribution" (OoD) samples are crucial for many applications such as automated driving.
A natural baseline approach to OoD detection is to threshold on the pixel-wise softmax entropy.
We present a two-step procedure that significantly improves that approach.
arXiv Detail & Related papers (2020-12-09T11:01:06Z) - NADS: Neural Architecture Distribution Search for Uncertainty Awareness [79.18710225716791]
Machine learning (ML) systems often encounter Out-of-Distribution (OoD) errors when dealing with testing data coming from a distribution different from training data.
Existing OoD detection approaches are prone to errors and even sometimes assign higher likelihoods to OoD samples.
We propose Neural Architecture Distribution Search (NADS) to identify common building blocks among all uncertainty-aware architectures.
arXiv Detail & Related papers (2020-06-11T17:39:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.