A Uniform Framework for Anomaly Detection in Deep Neural Networks

Fangzhen Zhao, Chenyi Zhang, Naipeng Dong, Zefeng You, Zhenxin Wu
10/6/2021
cs.LGcs.AI

Official code: fangzhenzhao/AnomalyDetection-keras (3 stars, Jupyter Notebook, last commit 2021-08-28).

Abstract

Deep neural networks (DNN) can achieve high performance when applied to In-Distribution (ID) data which come from the same distribution as the training set. When presented with anomaly inputs not from the ID, the outputs of a DNN should be regarded as meaningless.

Show full abstract

However, modern DNN often predict anomaly inputs as an ID class with high confidence, which is dangerous and misleading. In this work, we consider three classes of anomaly inputs, (1) natural inputs from a different distribution than the DNN is trained for, known as Out-of-Distribution (OOD) samples, (2) crafted inputs generated from ID by attackers, often known as adversarial (AD) samples, and (3) noise (NS) samples generated from meaningless data. We propose a framework that aims to detect all these anomalies for a pre-trained DNN. Unlike some of the existing works, our method does not require preprocessing of input data, nor is it dependent to any known OOD set or adversarial attack algorithm. Through extensive experiments over a variety of DNN models for the detection of aforementioned anomalies, we show that in most cases our method outperforms state-of-the-art anomaly detection methods in identifying all three classes of anomalies.

View on arXivView PDF

Code Implementations(1)

31Jupyter Notebook, PythonAug 28, 20215 years ago

Similar Papers

Cite this paper

@article{zhao2021uniform,
  title  = {A Uniform Framework for Anomaly Detection in Deep Neural Networks},
  author = {Fangzhen Zhao and Chenyi Zhang and Naipeng Dong and Zefeng You and Zhenxin Wu},
  year   = {2021},
  eprint = {2110.03092},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.03092}
}

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

Discussion