Skip to main content
QUICK REVIEW

[Paper Review] ESAD: End-to-end Deep Semi-supervised Anomaly Detection

Chaoqin Huang, Fei Ye|arXiv (Cornell University)|Dec 9, 2020
Anomaly Detection Techniques and ApplicationsComputer Science59 references8 citations
TL;DR

ESAD proposes an end-to-end deep semi-supervised anomaly detection method that jointly optimizes mutual information and entropy in a novel encoder-decoder-encoder architecture, resolving the conflict between these objectives through dual encoders with consistent latent constraints. It achieves state-of-the-art performance across multiple benchmarks, including medical imaging and standard anomaly detection datasets, with superior robustness to label pollution and improved generalization with diverse anomaly classes.

ABSTRACT

This paper explores semi-supervised anomaly detection, a more practical setting for anomaly detection where a small additional set of labeled samples are provided. We propose a new KL-divergence based objective function for semi-supervised anomaly detection, and show that two factors: the mutual information between the data and latent representations, and the entropy of latent representations, constitute an integral objective function for anomaly detection. To resolve the contradiction in simultaneously optimizing the two factors, we propose a novel encoder-decoder-encoder structure, with the first encoder focusing on optimizing the mutual information and the second encoder focusing on optimizing the entropy. The two encoders are enforced to share similar encoding with a consistent constraint on their latent representations. Extensive experiments have revealed that the proposed method significantly outperforms several state-of-the-arts on multiple benchmark datasets, including medical diagnosis and several classic anomaly detection benchmarks.

Motivation & Objective

  • To address the challenge of optimizing conflicting objectives—mutual information and entropy—in semi-supervised anomaly detection.
  • To overcome the model collapse issue in existing two-stage training approaches like Deep SAD, where entropy minimization undermines mutual information.
  • To enable end-to-end training by integrating mutual information and entropy into a unified objective function.
  • To improve robustness against polluted unlabeled data and generalization across diverse anomaly classes.

Proposed method

  • Proposes a KL-divergence-based objective function that decomposes into mutual information between data and latent representations and entropy of the latent representations.
  • Introduces an encoder-decoder-encoder architecture with two distinct encoders: one focused on maximizing mutual information for normal data, the other on minimizing entropy for anomalous data.
  • Enforces consistent latent representations between the two encoders via a constraint to maintain alignment while allowing specialized optimization.
  • Uses a self-supervised reconstruction loss in the autoencoder branch to preserve data reconstruction fidelity.
  • Introduces an auxiliary loss term (λ₂) to stabilize training and prevent both encoders from collapsing into identical constant functions.
  • Employs a joint optimization framework that simultaneously maximizes mutual information and controls entropy in an end-to-end manner.

Experimental results

Research questions

  • RQ1Can mutual information and entropy be jointly optimized in a single end-to-end framework for semi-supervised anomaly detection?
  • RQ2How can the inherent contradiction between maximizing mutual information and minimizing entropy be resolved during training?
  • RQ3Does an encoder-decoder-encoder structure with dual specialized encoders improve performance over sequential or single-encoder approaches?
  • RQ4How robust is the proposed method to label pollution in the unlabeled training set?
  • RQ5Does increasing the diversity of labeled anomaly classes improve detection performance?

Key findings

  • ESAD achieves state-of-the-art performance on multiple benchmark datasets, including CIFAR-10, MNIST, and medical imaging datasets such as Camelyon16 and NIH chest X-rays.
  • On CIFAR-10, ESAD improves AUC from 81.9% to 86.7% when the number of labeled anomaly classes increases from 1 to 5, under 5% labeled data and 10% pollution.
  • In the presence of polluted unlabeled data (γₚ = 0.1), ESAD shows the least performance drop among all methods, demonstrating superior robustness.
  • The model achieves optimal performance when the auxiliary loss weight λ₂ is set to 1, and performance degrades if λ₂ is too large or zero, confirming its role in stabilizing training.
  • T-SNE visualization confirms that the two encoders learn distinct but consistent representations, validating the design’s ability to balance conflicting objectives.
  • Even when used in an incomplete unsupervised setting (without labeled anomalies), ESAD still performs competitively, though it is not designed for such a scenario.

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.