Skip to main content
QUICK REVIEW

[Paper Review] Discriminative-Generative Representation Learning for One-Class Anomaly Detection

Xuan Xia, Xizhou Pan|arXiv (Cornell University)|Jul 27, 2021
Anomaly Detection Techniques and ApplicationsComputer Science50 references5 citations
TL;DR

This paper proposes DGAD, a novel GAN-based one-class anomaly detection method that enhances generator representation learning by leveraging discriminator guidance for pretext tasks, avoiding pixel-level reconstruction. The method achieves performance close to discriminative methods while being significantly faster, improving SOTA GAN baselines by 6% on CIFAR-10 and 2% on MVTAD, with ablation studies revealing context-dependent effects of absolute position information on representation learning.

ABSTRACT

As a kind of generative self-supervised learning methods, generative adversarial nets have been widely studied in the field of anomaly detection. However, the representation learning ability of the generator is limited since it pays too much attention to pixel-level details, and generator is difficult to learn abstract semantic representations from label prediction pretext tasks as effective as discriminator. In order to improve the representation learning ability of generator, we propose a self-supervised learning framework combining generative methods and discriminative methods. The generator no longer learns representation by reconstruction error, but the guidance of discriminator, and could benefit from pretext tasks designed for discriminative methods. Our discriminative-generative representation learning method has performance close to discriminative methods and has a great advantage in speed. Our method used in one-class anomaly detection task significantly outperforms several state-of-the-arts on multiple benchmark data sets, increases the performance of the top-performing GAN-based baseline by 6% on CIFAR-10 and 2% on MVTAD.

Motivation & Objective

  • To address the limited representation learning capacity of GAN generators, which often overfit to pixel-level reconstruction and fail to learn abstract semantic features.
  • To combine generative and discriminative self-supervised learning by reusing the discriminator as a predictor to guide the generator in learning from pretext tasks.
  • To improve anomaly detection performance in one-class scenarios without relying on complex post-processing, while maintaining high inference speed.
  • To investigate the impact of absolute position information on representation learning in both generative and discriminative components under different geometric transformation pretext tasks.

Proposed method

  • The generator is guided by the discriminator to produce samples that match the labels of geometric transformation pretext tasks, replacing pixel-wise reconstruction as the primary learning signal.
  • The discriminator acts as a predictor for the pretext task (e.g., rotation or crop classification), enabling the generator to learn abstract semantic representations through classification signals.
  • Anomaly scores are computed using reconstruction loss on the generator’s output, maintaining simplicity and speed compared to discriminative methods requiring Dirichlet scores or normalization.
  • The framework uses symmetry padding and avoids coordinate convolution to prevent interference from absolute position information, which is shown to degrade generative representation learning.
  • The method is evaluated under two protocols: one using reconstruction loss only, and another using both reconstruction and Dirichlet score, with ablation on compactness loss and position encoding.
  • Speed comparisons are conducted to demonstrate the computational advantage of reconstruction-based scoring over discriminative post-processing.

Experimental results

Research questions

  • RQ1How can generative models like GANs be enhanced to learn more robust and abstract semantic representations for one-class anomaly detection?
  • RQ2What is the impact of absolute position information on the representation learning ability of generative and discriminative components in self-supervised geometric transformation tasks?
  • RQ3Can a hybrid discriminative-generative framework achieve performance comparable to pure discriminative methods while maintaining faster inference speed?
  • RQ4How does discriminator-guided representation learning compare to traditional pixel-level reconstruction in terms of anomaly detection AUC?

Key findings

  • DGAD improves the performance of the top-performing GAN-based baseline by 6% on CIFAR-10 and 2% on MVTAD, demonstrating strong gains in one-class anomaly detection.
  • The use of discriminator guidance for representation learning increases AUC by 5.4–7.5% compared to standard GANs using only reconstruction loss.
  • The absence of compactness loss reduces performance by 2–2.9%, confirming its importance in stabilizing representation learning.
  • Absolute position information degrades the generator’s ability to learn semantic representations in geometric transformation tasks, reducing performance by 1–2% when using zero-padding or coordconv.
  • In contrast, absolute position information improves the discriminator’s classification accuracy, but this benefit does not transfer to the generator, indicating task-dependent effects.
  • Reconstruction-based anomaly scoring (s_rec) is 3.6 to 8.5 times faster than Dirichlet-score-based methods (s_dir), with s_rec achieving comparable performance to s_dir while being significantly more efficient.

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.