MOOD: Multi-level Out-of-distribution Detection

Ziqian Lin, Sreya Dutta Roy, Yixuan Li
4/30/2021
cs.CV

Official code: deeplearning-wisc/MOOD (38 stars, Python, last commit 2023-09-04).

Abstract

Out-of-distribution (OOD) detection is essential to prevent anomalous inputs from causing a model to fail during deployment. While improved OOD detection methods have emerged, they often rely on the final layer outputs and require a full feedforward pass for any given input.

Show full abstract

In this paper, we propose a novel framework, multi-level out-of-distribution detection MOOD, which exploits intermediate classifier outputs for dynamic and efficient OOD inference. We explore and establish a direct relationship between the OOD data complexity and optimal exit level, and show that easy OOD examples can be effectively detected early without propagating to deeper layers. At each exit, the OOD examples can be distinguished through our proposed adjusted energy score, which is both empirically and theoretically suitable for networks with multiple classifiers. We extensively evaluate MOOD across 10 OOD datasets spanning a wide range of complexities. Experiments demonstrate that MOOD achieves up to 71.05% computational reduction in inference, while maintaining competitive OOD detection performance.

View on arXivView PDF

Code Implementations(1)

Code for CVPR2021 paper: MOOD: Multi-level Out-of-distribution Detection

385Python, Jupyter NotebookMar 7, 20213 years ago

Similar Papers

Cite this paper

@article{lin2021mood,
  title  = {MOOD: Multi-level Out-of-distribution Detection},
  author = {Ziqian Lin and Sreya Dutta Roy and Yixuan Li},
  year   = {2021},
  eprint = {2104.14726},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.14726}
}

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

Discussion