Gradient-Based Adversarial and Out-of-Distribution Detection

06/16/2022
by   Jinsol Lee, et al.
20

We propose to utilize gradients for detecting adversarial and out-of-distribution samples. We introduce confounding labels – labels that differ from normal labels seen during training – in gradient generation to probe the effective expressivity of neural networks. Gradients depict the amount of change required for a model to properly represent given inputs, providing insight into the representational power of the model established by network architectural properties as well as training data. By introducing a label of different design, we remove the dependency on ground truth labels for gradient generation during inference. We show that our gradient-based approach allows for capturing the anomaly in inputs based on the effective expressivity of the models with no hyperparameter tuning or additional processing, and outperforms state-of-the-art methods for adversarial and out-of-distribution detection.

READ FULL TEXT
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
08/18/2020

Gradients as a Measure of Uncertainty in Neural Networks

Despite tremendous success of modern neural networks, they are known to ...
research
06/16/2022

Open-Set Recognition with Gradient-Based Representations

Neural networks for image classification tasks assume that any given ima...
research
07/18/2020

Backpropagated Gradient Representations for Anomaly Detection

Learning representations that clearly distinguish between normal and abn...
research
05/20/2022

How Useful are Gradients for OOD Detection Really?

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

On gradient regularizers for MMD GANs

We propose a principled method for gradient-based regularization of the ...
research
12/08/2020

Concept Drift and Covariate Shift Detection Ensemble with Lagged Labels

In model serving, having one fixed model during the entire often life-lo...

Please sign up or login with your details

Forgot password? Click here to reset