Gradients as a Measure of Uncertainty in Neural Networks

08/18/2020
by   Jinsol Lee, et al.
203

Despite tremendous success of modern neural networks, they are known to be overconfident even when the model encounters inputs with unfamiliar conditions. Detecting such inputs is vital to preventing models from making naive predictions that may jeopardize real-world applications of neural networks. In this paper, we address the challenging problem of devising a simple yet effective measure of uncertainty in deep neural networks. Specifically, we propose to utilize backpropagated gradients to quantify the uncertainty of trained models. Gradients depict the required amount of change for a model to properly represent given inputs, thus providing a valuable insight into how familiar and certain the model is regarding the inputs. We demonstrate the effectiveness of gradients as a measure of model uncertainty in applications of detecting unfamiliar inputs, including out-of-distribution and corrupted samples. We show that our gradient-based method outperforms state-of-the-art methods by up to 4.8 in corrupted input detection.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/16/2022

Gradient-Based Adversarial and Out-of-Distribution Detection

We propose to utilize gradients for detecting adversarial and out-of-dis...
research
04/06/2023

Probing the Purview of Neural Networks via Gradient Analysis

We analyze the data-dependent capacity of neural networks and assess ano...
research
06/16/2022

Open-Set Recognition with Gradient-Based Representations

Neural networks for image classification tasks assume that any given ima...
research
07/06/2021

Logit-based Uncertainty Measure in Classification

We introduce a new, reliable, and agnostic uncertainty measure for class...
research
05/20/2022

How Useful are Gradients for OOD Detection Really?

One critical challenge in deploying highly performant machine learning m...
research
09/08/2019

Fine Grained Dataflow Tracking with Proximal Gradients

Dataflow tracking with Dynamic Taint Analysis (DTA) is an important meth...

Please sign up or login with your details

Forgot password? Click here to reset