READ: Aggregating Reconstruction Error into Out-of-distribution Detection

06/15/2022
by   Wenyu Jiang, et al.
0

Detecting out-of-distribution (OOD) samples is crucial to the safe deployment of a classifier in the real world. However, deep neural networks are known to be overconfident for abnormal data. Existing works directly design score function by mining the inconsistency from classifier for in-distribution (ID) and OOD. In this paper, we further complement this inconsistency with reconstruction error, based on the assumption that an autoencoder trained on ID data can not reconstruct OOD as well as ID. We propose a novel method, READ (Reconstruction Error Aggregated Detector), to unify inconsistencies from classifier and autoencoder. Specifically, the reconstruction error of raw pixels is transformed to latent space of classifier. We show that the transformed reconstruction error bridges the semantic gap and inherits detection performance from the original. Moreover, we propose an adjustment strategy to alleviate the overconfidence problem of autoencoder according to a fine-grained characterization of OOD data. Under two scenarios of pre-training and retraining, we respectively present two variants of our method, namely READ-MD (Mahalanobis Distance) only based on pre-trained classifier and READ-ED (Euclidean Distance) which retrains the classifier. Our methods do not require access to test time OOD data for fine-tuning hyperparameters. Finally, we demonstrate the effectiveness of the proposed methods through extensive comparisons with state-of-the-art OOD detection algorithms. On a CIFAR-10 pre-trained WideResNet, our method reduces the average FPR@95TPR by up to 9.8 compared with previous state-of-the-art.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/04/2022

Rethinking Reconstruction Autoencoder-Based Out-of-Distribution Detection

In some scenarios, classifier requires detecting out-of-distribution sam...
research
03/06/2023

Masked Images Are Counterfactual Samples for Robust Fine-tuning

Deep learning models are challenged by the distribution shift between th...
research
10/25/2022

Connective Reconstruction-based Novelty Detection

Detection of out-of-distribution samples is one of the critical tasks fo...
research
12/24/2022

Out-of-Distribution Detection with Reconstruction Error and Typicality-based Penalty

The task of out-of-distribution (OOD) detection is vital to realize safe...
research
12/22/2021

GAN Based Boundary Aware Classifier for Detecting Out-of-distribution Samples

This paper focuses on the problem of detecting out-of-distribution (ood)...
research
02/27/2023

Reconstruction-based Out-of-Distribution Detection for Short-Range FMCW Radar

Out-of-distribution (OOD) detection recently has drawn attention due to ...
research
12/28/2019

Detecting Out-of-Distribution Examples with In-distribution Examples and Gram Matrices

When presented with Out-of-Distribution (OOD) examples, deep neural netw...

Please sign up or login with your details

Forgot password? Click here to reset