Layer Adaptive Deep Neural Networks for Out-of-distribution Detection

Haoliang Wang, Chen Zhao, Xujiang Zhao, Feng Chen
3/1/2022
cs.LGcs.AI

Official code: haoliangwang86/LA-OOD (3 stars, Python, last commit 2022-10-14).

Abstract

During the forward pass of Deep Neural Networks (DNNs), inputs gradually transformed from low-level features to high-level conceptual labels. While features at different layers could summarize the important factors of the inputs at varying levels, modern out-of-distribution (OOD) detection methods mostly focus on utilizing their ending layer features.

Show full abstract

In this paper, we proposed a novel layer-adaptive OOD detection framework (LA-OOD) for DNNs that can fully utilize the intermediate layers' outputs. Specifically, instead of training a unified OOD detector at a fixed ending layer, we train multiple One-Class SVM OOD detectors simultaneously at the intermediate layers to exploit the full spectrum characteristics encoded at varying depths of DNNs. We develop a simple yet effective layer-adaptive policy to identify the best layer for detecting each potential OOD example. LA-OOD can be applied to any existing DNNs and does not require access to OOD samples during the training. Using three DNNs of varying depth and architectures, our experiments demonstrate that LA-OOD is robust against OODs of varying complexity and can outperform state-of-the-art competitors by a large margin on some real-world datasets.

View on arXivView PDF

Code Implementations(1)

Layer Adaptive Out-of-distribution Detection for Deep Neural Networks

31PythonJun 12, 20214 years ago

Similar Papers

Cite this paper

@article{wang2022layer,
  title  = {Layer Adaptive Deep Neural Networks for Out-of-distribution Detection},
  author = {Haoliang Wang and Chen Zhao and Xujiang Zhao and Feng Chen},
  year   = {2022},
  eprint = {2203.00192},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.00192}
}

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

Discussion