Skip to main content
QUICK REVIEW

[Paper Review] Reconstruction Error-based Anomaly Detection with Few Outlying Examples

Fabrizio Angiulli, Fabio Fassetti|arXiv (Cornell University)|May 17, 2023
Anomaly Detection Techniques and ApplicationsComputer Science6 citations
TL;DR

This paper proposes AE–SAD, a novel semi-supervised anomaly detection method that enhances reconstruction error-based autoencoders by incorporating a small number of labeled anomalous examples through a modified loss function. The approach increases the contrast between normal and anomalous reconstruction errors, significantly improving detection performance on both known and unknown anomaly classes, even under data contamination or distribution shift.

ABSTRACT

Reconstruction error-based neural architectures constitute a classical deep learning approach to anomaly detection which has shown great performances. It consists in training an Autoencoder to reconstruct a set of examples deemed to represent the normality and then to point out as anomalies those data that show a sufficiently large reconstruction error. Unfortunately, these architectures often become able to well reconstruct also the anomalies in the data. This phenomenon is more evident when there are anomalies in the training set. In particular when these anomalies are labeled, a setting called semi-supervised, the best way to train Autoencoders is to ignore anomalies and minimize the reconstruction error on normal data. The goal of this work is to investigate approaches to allow reconstruction error-based architectures to instruct the model to put known anomalies outside of the domain description of the normal data. Specifically, our strategy exploits a limited number of anomalous examples to increase the contrast between the reconstruction error associated with normal examples and those associated with both known and unknown anomalies, thus enhancing anomaly detection performances. The experiments show that this new procedure achieves better performances than the standard Autoencoder approach and the main deep learning techniques for semi-supervised anomaly detection.

Motivation & Objective

  • To address the limitation of standard autoencoders that inadvertently reconstruct anomalies when trained on mixed normal and anomalous data.
  • To develop a method that leverages a small number of labeled anomalous examples to improve the generalization of reconstruction error-based anomaly detection.
  • To enhance the contrast between reconstruction errors of normal data and both known and unknown anomalies, improving detection robustness.
  • To evaluate the method on tabular and image datasets under challenging conditions, including data pollution and distribution shift.
  • To demonstrate that the proposed method outperforms state-of-the-art unsupervised and semi-supervised anomaly detection techniques.

Proposed method

  • Introduces a new loss function for autoencoders that explicitly penalizes low reconstruction error on known anomalous examples, encouraging poor reconstruction of anomalies.
  • Modifies the standard autoencoder training objective by adding a contrastive term that increases the gap between reconstruction errors of normal and anomalous samples.
  • Applies the AE–SAD algorithm to both tabular and image data, using standard feedforward or convolutional autoencoder architectures.
  • Employs a hyperparameter to control the trade-off between minimizing normal reconstruction error and maximizing anomaly reconstruction error.
  • Trains the model using only normal data and known anomalies, avoiding the use of unlabeled anomalies during training to maintain domain separation.
  • Uses AUC as the primary evaluation metric to assess detection performance across diverse anomaly scenarios.

Experimental results

Research questions

  • RQ1Can a small number of labeled anomalous examples significantly improve the performance of reconstruction error-based autoencoders in semi-supervised anomaly detection?
  • RQ2Does the proposed AE–SAD method outperform standard autoencoders and other state-of-the-art deep learning methods in detecting both known and unknown anomalies?
  • RQ3How robust is AE–SAD to data contamination, such as mislabeled anomalies in the training set?
  • RQ4Does AE–SAD generalize well when test anomalies belong to classes not seen during training?
  • RQ5How sensitive is AE–SAD to hyperparameter selection, and how many training epochs are required to achieve optimal performance?

Key findings

  • AE–SAD achieves state-of-the-art performance on both tabular and image datasets, outperforming standard autoencoders and leading deep learning methods in semi-supervised anomaly detection.
  • On the MNIST and E-MNIST datasets, AE–SAD achieves an AUC of .98 ± .00 in the one-vs-all setting and .99 ± .00 in the one-vs-many setting, consistently ranking first or second.
  • In the many-vs-many scenario, AE–SAD outperforms $A^{3}$ when test anomalies belong to classes not present in the training set, achieving .92 ± .01 AUC compared to $A^{3}$'s .88 ± .03.
  • AE–SAD maintains strong performance even with 15% pollution in the training set, demonstrating robustness to mislabeled normal data.
  • The method generalizes effectively to unknown anomaly classes, showing superior detection capability when test anomalies are from different distributions than training anomalies.
  • Sensitivity analysis confirms that AE–SAD is not highly sensitive to hyperparameter choice and converges within a small number of epochs.

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.