Dropout Injection at Test Time for Post Hoc Uncertainty Quantification in Neural Networks

Emanuele Ledda, Giorgio Fumera, Fabio Roli
2/6/2023
cs.LGcs.AI

No official code found. Best implementation: EmanueleLedda97/Dropout_Injection (10 stars, GPL-3.0, last commit 2023-04-17).

Abstract

Among Bayesian methods, Monte-Carlo dropout provides principled tools for evaluating the epistemic uncertainty of neural networks. Its popularity recently led to seminal works that proposed activating the dropout layers only during inference for evaluating uncertainty. This approach, which we call dropout injection, provides clear benefits over its traditional counterpart (which we call embedded dropout) since it allows one to obtain a post hoc uncertainty measure for any existing network previously trained without dropout, avoiding an additional, time-consuming training process. Unfortunately, no previous work compared injected and embedded dropout; therefore, we provide the first thorough investigation, focusing on regression problems. The main contribution of our work is to provide guidelines on the effective use of injected dropout so that it can be a practical alternative to the current use of embedded dropout. In particular, we show that its effectiveness strongly relies on a suitable scaling of the corresponding uncertainty measure, and we discuss the trade-off between negative log-likelihood and calibration error as a function of the scale factor. Experimental results on UCI data sets and crowd counting benchmarks support our claim that dropout injection can effectively behave as a competitive post hoc uncertainty quantification technique.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Reproducibility of experiments on UCI datasets for Dropout Injection

100PythonNov 16, 20223 years agoGPL-3.0

Cite this paper

@article{ledda2023dropout,
  title  = {Dropout Injection at Test Time for Post Hoc Uncertainty Quantification in Neural Networks},
  author = {Emanuele Ledda and Giorgio Fumera and Fabio Roli},
  year   = {2023},
  eprint = {2302.02924},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.02924v1}
}

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

Discussion