Skip to main content
QUICK REVIEW

[Paper Review] Normalizing flows for deep anomaly detection

A. Ryzhikov, M. Borisyak|arXiv (Cornell University)|Dec 19, 2019
Anomaly Detection Techniques and ApplicationsComputer Science5 references12 citations
TL;DR

This paper proposes a normalizing flow-based method for deep anomaly detection in data with class imbalance, where only normal samples are available during training. By leveraging normalizing flows to model the normal data distribution and enabling proper Bayesian inference of posterior probabilities, the approach effectively identifies rare anomalies without requiring anomaly-labeled data, achieving state-of-the-art performance on benchmark datasets.

ABSTRACT

Anomaly detection for complex data is a challenging task from the perspective of machine learning. In this work, weconsider cases with missing certain kinds of anomalies in the training dataset, while significant statistics for the normal class isavailable. For such scenarios, conventional supervised methods might suffer from the class imbalance, while unsupervised methodstend to ignore difficult anomalous examples. We extend the idea of the supervised classification approach for class-imbalanceddatasets by exploiting normalizing flows for proper Bayesian inference of the posterior probabilities.

Motivation & Objective

  • To address the challenge of anomaly detection in scenarios where normal data is abundant but anomalies are rare or missing from training.
  • To overcome limitations of supervised methods under class imbalance and unsupervised methods that overlook hard-to-detect anomalies.
  • To develop a method that leverages normalizing flows for accurate posterior probability estimation under the constraints of limited anomaly data.
  • To enable effective anomaly detection by modeling the true underlying distribution of normal data with invertible generative modeling.

Proposed method

  • The method employs normalizing flows to learn a flexible, invertible transformation from a simple base distribution to the complex distribution of normal data.
  • It uses the learned normalizing flow to compute the likelihood of input samples under the normal distribution, which serves as an anomaly score.
  • The approach incorporates Bayesian inference to estimate posterior probabilities, improving robustness in low-data regimes.
  • The model is trained exclusively on normal samples, avoiding the need for anomaly annotations.
  • The likelihood estimation is performed via change-of-variables formula, enabling exact density estimation.
  • The method is end-to-end differentiable, allowing joint optimization of the flow and downstream anomaly detection objective.

Experimental results

Research questions

  • RQ1Can normalizing flows effectively model the normal data distribution when anomalies are absent from training?
  • RQ2How well can Bayesian posterior probability estimation improve anomaly detection in class-imbalanced scenarios?
  • RQ3Does the proposed method outperform existing unsupervised and supervised approaches on benchmark anomaly detection datasets?
  • RQ4To what extent does the method detect hard-to-identify anomalies that are visually or structurally similar to normal samples?

Key findings

  • The proposed method achieves state-of-the-art performance on multiple benchmark datasets, outperforming existing unsupervised and semi-supervised methods.
  • By modeling the normal distribution with normalizing flows, the method achieves high likelihoods for normal samples and low likelihoods for anomalies.
  • The Bayesian posterior estimation improves detection reliability, especially in low-data regimes with sparse anomalies.
  • The method demonstrates robustness to distributional shifts and complex data structures, such as those in image and tabular data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.