On Out-of-distribution Detection with Energy-based Models

Sven Elflein, Bertrand Charpentier, Daniel Zügner, Stephan Günnemann
7/3/2021
cs.LG

Official code: selflein/EBM-OOD-Detection (20 stars, Python, PyTorch, last commit 2021-09-30).

Abstract

Several density estimation methods have shown to fail to detect out-of-distribution (OOD) samples by assigning higher likelihoods to anomalous data. Energy-based models (EBMs) are flexible, unnormalized density models which seem to be able to improve upon this failure mode.

Show full abstract

In this work, we provide an extensive study investigating OOD detection with EBMs trained with different approaches on tabular and image data and find that EBMs do not provide consistent advantages. We hypothesize that EBMs do not learn semantic features despite their discriminative structure similar to Normalizing Flows. To verify this hypotheses, we show that supervision and architectural restrictions improve the OOD detection of EBMs independent of the training approach.

View on arXivView PDF

Code Implementations(1)

PyTorch

Code for our paper "On Out-of-distribution detection with Energy-based Models" accepted to the ICML 2021 Workshop on Uncertainty & Robustness in Deep Learning.

201PythonDec 3, 20205 years ago
deep-learningmachine-learningpytorch

Similar Papers

Cite this paper

@article{elflein2021outofdistribution,
  title  = {On Out-of-distribution Detection with Energy-based Models},
  author = {Sven Elflein and Bertrand Charpentier and Daniel Zügner and Stephan Günnemann},
  year   = {2021},
  eprint = {2107.08785},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.08785}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.08785.svg)](https://codeofpaper.com/paper/2107.08785)

Discussion