pseudo-Bayesian Neural Networks for detecting Out of Distribution Inputs

02/02/2021
by   Gagandeep Singh, et al.
0

Conventional Bayesian Neural Networks (BNNs) are known to be capable of providing multiple outputs for a single input, the variations in which can be utilised to detect Out of Distribution (OOD) inputs. BNNs are difficult to train due to their sensitivity towards the choice of priors. To alleviate this issue, we propose pseudo-BNNs where instead of learning distributions over weights, we use point estimates and perturb weights at the time of inference. We modify the cost function of conventional BNNs and use it to learn parameters for the purpose of injecting right amount of random perturbations to each of the weights of a neural network with point estimate. In order to effectively segregate OOD inputs from In Distribution (ID) inputs using multiple outputs, we further propose two measures, derived from the index of dispersion and entropy of probability distributions, and combine them with the proposed pseudo-BNNs. Overall, this combination results in a principled technique to detect OOD samples at the time of inference. We evaluate our technique on a wide variety of neural network architectures and image classification datasets. We observe that our method achieves state of the art results and beats the related previous work on various metrics such as FPR at 95 and Detection Error by just using 2 to 5 samples of weights per input.

READ FULL TEXT
research
06/15/2018

Bayesian Convolutional Neural Networks

We propose a Bayesian convolutional neural network built upon Bayes by B...
research
10/03/2021

Kalman Bayesian Neural Networks for Closed-form Online Learning

Compared to point estimates calculated by standard neural networks, Baye...
research
09/25/2019

Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detection

We present a principled approach for detecting out-of-distribution (OOD)...
research
07/07/2023

Learning Theory of Distribution Regression with Neural Networks

In this paper, we aim at establishing an approximation theory and a lear...
research
01/07/2021

Bridging In- and Out-of-distribution Samples for Their Better Discriminability

This paper proposes a method for OOD detection. Questioning the premise ...
research
03/02/2006

The Basic Kak Neural Network with Complex Inputs

The Kak family of neural networks is able to learn patterns quickly, and...
research
09/09/2023

HAct: Out-of-Distribution Detection with Neural Net Activation Histograms

We propose a simple, efficient, and accurate method for detecting out-of...

Please sign up or login with your details

Forgot password? Click here to reset