Skip to main content
QUICK REVIEW

[Paper Review] Deep Anomaly Detection with Deviation Networks

Guansong Pang, Chunhua Shen|arXiv (Cornell University)|Nov 19, 2019
Anomaly Detection Techniques and ApplicationsComputer Science27 references5 citations
TL;DR

This paper proposes DevNet, a deep anomaly detection framework that directly learns anomaly scores through end-to-end differentiable training using a few labeled anomalies and a prior probability. By optimizing anomaly scores directly instead of learning representations first, DevNet achieves significantly better data efficiency and performance—outperforming state-of-the-art methods in AUC-ROC and AUC-PR across multiple benchmarks, including a 30% improvement in AUC-PR over competing models.

ABSTRACT

Although deep learning has been applied to successfully address many data mining problems, relatively limited work has been done on deep learning for anomaly detection. Existing deep anomaly detection methods, which focus on learning new feature representations to enable downstream anomaly detection methods, perform indirect optimization of anomaly scores, leading to data-inefficient learning and suboptimal anomaly scoring. Also, they are typically designed as unsupervised learning due to the lack of large-scale labeled anomaly data. As a result, they are difficult to leverage prior knowledge (e.g., a few labeled anomalies) when such information is available as in many real-world anomaly detection applications. This paper introduces a novel anomaly detection framework and its instantiation to address these problems. Instead of representation learning, our method fulfills an end-to-end learning of anomaly scores by a neural deviation learning, in which we leverage a few (e.g., multiple to dozens) labeled anomalies and a prior probability to enforce statistically significant deviations of the anomaly scores of anomalies from that of normal data objects in the upper tail. Extensive results show that our method can be trained substantially more data-efficiently and achieves significantly better anomaly scoring than state-of-the-art competing methods.

Motivation & Objective

  • To address the limitations of two-step deep anomaly detection methods that indirectly optimize anomaly scores via representation learning.
  • To enable end-to-end, differentiable learning of anomaly scores using only a small number of labeled anomalies and a prior probability.
  • To improve data efficiency and anomaly scoring quality by directly optimizing the final anomaly score objective.
  • To overcome the shortcomings of unsupervised methods that often misclassify noise or irrelevant data as anomalies due to lack of prior knowledge.
  • To develop a scalable and efficient deep learning framework that performs well even with high anomaly contamination and limited labeled data.

Proposed method

  • DevNet uses a neural network to directly predict anomaly scores from input data, bypassing intermediate representation learning.
  • It introduces a deviation loss that enforces statistically significant deviations of anomaly scores from normal data in the upper tail, using a prior probability over the anomaly score distribution.
  • The model is trained end-to-end with a small labeled set of anomalies and a large unlabeled set containing normal and anomalous data.
  • The deviation loss is designed to be computationally efficient and differentiable, enabling backpropagation through the entire network.
  • The framework supports various deep architectures, including multilayer perceptrons, and can be extended to convolutional or recurrent networks for image and sequence data.
  • It leverages random sampling of negative examples from anomaly-contaminated unlabeled data to improve robustness in low-data regimes.

Experimental results

Research questions

  • RQ1Can end-to-end learning of anomaly scores outperform two-step representation learning in deep anomaly detection?
  • RQ2How does the use of a few labeled anomalies and a prior probability improve data efficiency and scoring performance?
  • RQ3Does direct optimization of anomaly scores lead to better generalization and robustness compared to indirect optimization via representations?
  • RQ4How does DevNet perform under high anomaly contamination in the unlabeled data?
  • RQ5Can the proposed method scale efficiently with increasing data size and dimensionality?

Key findings

  • DevNet achieves a 6% average improvement in AUC-ROC and a 30% improvement in AUC-PR over the best competing method, Linear, demonstrating superior data efficiency and scoring quality.
  • Compared to DSVDD, Rep (a variant using the deviation loss) improves AUC-PR by 16% while maintaining similar AUC-ROC, showing the advantage of the deviation loss in capturing diverse anomalous behaviors.
  • DevNet runs 10 to 20 times faster than REPEN and FSNet on large datasets due to its computationally efficient loss function, despite similar linear time complexity.
  • Even with high anomaly contamination (up to 50%), DevNet maintains strong performance, significantly outperforming state-of-the-art unsupervised detectors.
  • Deeper networks (e.g., 3HL) do not consistently improve performance when only a few labeled anomalies are available, indicating that model depth must be matched to data availability.
  • The method generalizes well across diverse datasets, including image (CelebA, Backdoor), text (URL, Campaign, News20), and tabular (Thyroid) data, with consistent gains in both AUC-ROC and AUC-PR.

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.