Exploiting Autoencoder's Weakness to Generate Pseudo Anomalies
Marcella Astrid, Muhammad Zaigham Zaheer, Djamila Aouada, Seung-Ik Lee
TL;DR
The paper tackles anomaly detection with autoencoders by addressing the AE weakness of reconstructing anomalies well. It introduces a cooperative two-network system, where a noise generator G learns adaptive noise to produce pseudo anomalies X^P = X^N + ΔX (ΔX = G(X^N)) that push the AE boundary, while the autoencoder F learns to reconstruct normal data but poorly reconstruct pseudo anomalies. Empirical results across Ped2, Avenue, ShanghaiTech, CIFAR-10, and KDDCUP99 show improved discriminability and competitive performance with state-of-the-art methods, without relying on strong inductive biases. The approach is demonstrated to be generic across video, image, and network intrusion tasks, with favorable test-time efficiency and robust hyperparameter behavior.
Abstract
Due to the rare occurrence of anomalous events, a typical approach to anomaly detection is to train an autoencoder (AE) with normal data only so that it learns the patterns or representations of the normal training data. At test time, the trained AE is expected to well reconstruct normal but to poorly reconstruct anomalous data. However, contrary to the expectation, anomalous data is often well reconstructed as well. In order to further separate the reconstruction quality between normal and anomalous data, we propose creating pseudo anomalies from learned adaptive noise by exploiting the aforementioned weakness of AE, i.e., reconstructing anomalies too well. The generated noise is added to the normal data to create pseudo anomalies. Extensive experiments on Ped2, Avenue, ShanghaiTech, CIFAR-10, and KDDCUP datasets demonstrate the effectiveness and generic applicability of our approach in improving the discriminative capability of AEs for anomaly detection.
