Entropic Out-of-Distribution Detection

David Macêdo, Tsang Ing Ren, Cleber Zanchettin, Adriano L. I. Oliveira, Teresa Ludermir
8/15/2019
cs.LGcs.CVstat.ML

Official code: dlmacedo/entropic-out-of-distribution-detection (79 stars, Python, Apache-2.0, PyTorch, last commit 2022-09-22).

Abstract

Out-of-distribution (OOD) detection approaches usually present special requirements (e.g., hyperparameter validation, collection of outlier data) and produce side effects (e.g., classification accuracy drop, slower energy-inefficient inferences). We argue that these issues are a consequence of the SoftMax loss anisotropy and disagreement with the maximum entropy principle.

Show full abstract

Thus, we propose the IsoMax loss and the entropic score. The seamless drop-in replacement of the SoftMax loss by IsoMax loss requires neither additional data collection nor hyperparameter validation. The trained models do not exhibit classification accuracy drop and produce fast energy-efficient inferences. Moreover, our experiments show that training neural networks with IsoMax loss significantly improves their OOD detection performance. The IsoMax loss exhibits state-of-the-art performance under the mentioned conditions (fast energy-efficient inference, no classification accuracy drop, no collection of outlier data, and no hyperparameter validation), which we call the seamless OOD detection task. In future work, current OOD detection methods may replace the SoftMax loss with the IsoMax loss to improve their performance on the commonly studied non-seamless OOD detection problem.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A project to add scalable state-of-the-art out-of-distribution detection (open set recognition) support by changing two lines of code! Perform efficient inferences (i.e., do not increase inference time) and detection without classification accuracy drop, hyperparameter tuning, or collecting additional data.

7910Python, ShellAug 16, 20194 years agoApache-2.0
ai-safetyanomaly-detectiondeep-learningmachine-learningnovelty-detection+11 more

Similar Papers

Cite this paper

@article{macdo2019entropic,
  title  = {Entropic Out-of-Distribution Detection},
  author = {David Macêdo and Tsang Ing Ren and Cleber Zanchettin and Adriano L. I. Oliveira and Teresa Ludermir},
  year   = {2019},
  eprint = {1908.05569},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.05569}
}

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/1908.05569.svg)](https://codeofpaper.com/paper/1908.05569)

Discussion