On the Importance of Gradients for Detecting Distributional Shifts in the Wild

10/01/2021
by   Rui Huang, et al.
0

Detecting out-of-distribution (OOD) data has become a critical component in ensuring the safe deployment of machine learning models in the real world. Existing OOD detection approaches primarily rely on the output or feature space for deriving OOD scores, while largely overlooking information from the gradient space. In this paper, we present GradNorm, a simple and effective approach for detecting OOD inputs by utilizing information extracted from the gradient space. GradNorm directly employs the vector norm of gradients, backpropagated from the KL divergence between the softmax output and a uniform probability distribution. Our key idea is that the magnitude of gradients is higher for in-distribution (ID) data than that for OOD data, making it informative for OOD detection. GradNorm demonstrates superior performance, reducing the average FPR95 by up to 10.89 method.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/19/2022

Mitigating Neural Network Overconfidence with Logit Normalization

Detecting out-of-distribution inputs is critical for safe deployment of ...
research
11/18/2021

On the Effectiveness of Sparsification for Detecting the Deep Unknowns

Detecting out-of-distribution (OOD) inputs is a central challenge for sa...
research
02/07/2022

Training OOD Detectors in their Natural Habitats

Out-of-distribution (OOD) detection is important for machine learning mo...
research
05/20/2022

How Useful are Gradients for OOD Detection Really?

One critical challenge in deploying highly performant machine learning m...
research
05/05/2021

MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Space

Detecting out-of-distribution (OOD) inputs is a central challenge for sa...
research
10/14/2022

Holistic Sentence Embeddings for Better Out-of-Distribution Detection

Detecting out-of-distribution (OOD) instances is significant for the saf...
research
12/05/2022

Block Selection Method for Using Feature Norm in Out-of-distribution Detection

Detecting out-of-distribution (OOD) inputs during the inference stage is...

Please sign up or login with your details

Forgot password? Click here to reset