Towards Robust Deep Learning using Entropic Losses

David Macêdo
8/6/2022
cs.LG

No official code found. Best implementation: dlmacedo/entropic-out-of-distribution-detection (79 stars, Apache-2.0, PyTorch, last commit 2022-09-22). 1 more below.

Abstract

Current deep learning solutions are well known for not informing whether they can reliably classify an example during inference. One of the most effective ways to build more reliable deep learning solutions is to improve their performance in the so-called out-of-distribution detection task, which essentially consists of "know that you do not know" or "know the unknown". In other words, out-of-distribution detection capable systems may reject performing a nonsense classification when submitted to instances of classes on which the neural network was not trained. This thesis tackles the defiant out-of-distribution detection task by proposing novel loss functions and detection scores. Uncertainty estimation is also a crucial auxiliary task in building more robust deep learning systems. Therefore, we also deal with this robustness-related task, which evaluates how realistic the probabilities presented by the deep neural network are. To demonstrate the effectiveness of our approach, in addition to a substantial set of experiments, which includes state-of-the-art results, we use arguments based on the principle of maximum entropy to establish the theoretical foundation of the proposed approaches. Unlike most current methods, our losses and scores are seamless and principled solutions that produce accurate predictions in addition to fast and efficient inference. Moreover, our approaches can be incorporated into current and future projects simply by replacing the loss used to train the deep neural network and computing a rapid score for detection.

View on arXivView PDF

Code Implementations(2)

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.

7910Shell, PythonAug 16, 20194 years agoApache-2.0
ai-safetyanomaly-detectiondeep-learningmachine-learningnovelty-detection+11 more
PyTorchApache-2.0

A project to improve out-of-distribution detection (open set recognition) and uncertainty estimation by changing a few lines of code in your project! Perform efficient inferences (i.e., do not increase inference time) without repetitive model training, hyperparameter tuning, or collecting additional data.

444Shell, PythonMay 10, 20224 years agoApache-2.0
ai-safetyanomaly-detectionclassificationdeep-learningmachine-learning+13 more

Similar Papers

Cite this paper

@article{macdo2022towards,
  title  = {Towards Robust Deep Learning using Entropic Losses},
  author = {David Macêdo},
  year   = {2022},
  eprint = {2208.03566},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.03566v1}
}

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

Discussion