[Paper Review] Normality-Calibrated Autoencoder for Unsupervised Anomaly Detection on Data Contamination
This paper proposes Normality-Calibrated Autoencoder (NCAE), a fully unsupervised anomaly detection method that improves robustness to data contamination by adversarially generating high-confidence normal samples from a low-entropy latent space and using them to identify contaminated samples. NCAE outperforms state-of-the-art unsupervised methods and achieves performance comparable to semi-supervised approaches on MNIST and Fashion-MNIST datasets even under high contamination ratios (up to 20%).
In this paper, we propose Normality-Calibrated Autoencoder (NCAE), which can boost anomaly detection performance on the contaminated datasets without any prior information or explicit abnormal samples in the training phase. The NCAE adversarially generates high confident normal samples from a latent space having low entropy and leverages them to predict abnormal samples in a training dataset. NCAE is trained to minimise reconstruction errors in uncontaminated samples and maximise reconstruction errors in contaminated samples. The experimental results demonstrate that our method outperforms shallow, hybrid, and deep methods for unsupervised anomaly detection and achieves comparable performance compared with semi-supervised methods using labelled anomaly samples in the training phase. The source code is publicly available on `https://github.com/andreYoo/NCAE_UAD.git'.
Motivation & Objective
- Address the challenge of degraded anomaly detection performance when training data is contaminated with unknown abnormal samples.
- Develop a fully unsupervised method that does not require prior knowledge or explicit abnormal samples during training.
- Improve model robustness to contamination by identifying and maximizing reconstruction error on contaminated samples.
- Enable competitive performance against semi-supervised methods without using labeled anomalies during training.
- Overcome the overconfidence issue of autoencoders in reconstructing unseen or contaminated samples by calibrating normality in the latent space.
Proposed method
- Train an autoencoder to minimize reconstruction error on normal samples and maximize it on contaminated samples using a normality-calibrated reconstruction (NCR) loss.
- Use a Generative Adversarial Network (GAN) framework to transform the latent feature distribution into a more knowledge-rich, low-entropy distribution centered on normal data.
- Generate high-confidence normal samples by sampling noise from the center of the learned latent distribution (low entropy region).
- Compare input samples with the generated high-confidence normal samples via contrastive learning to estimate contamination scores.
- Iteratively identify contaminated samples based on reconstruction error and retrain the autoencoder to increase error on those samples.
- Leverage the entropy of latent features to detect contamination, as contaminated samples can form low-entropy clusters under high contamination ratios.
Experimental results
Research questions
- RQ1Can a fully unsupervised anomaly detection model maintain high performance when training data is contaminated with unknown abnormal samples?
- RQ2Can adversarial generation of high-confidence normal samples from a low-entropy latent space improve robustness to data contamination?
- RQ3Does the proposed method outperform existing unsupervised anomaly detection techniques under varying contamination ratios?
- RQ4Can the model achieve performance competitive with semi-supervised methods that use explicit anomaly annotations during training?
- RQ5How does the entropy of latent features behave under high contamination, and can it be leveraged to detect contaminated samples?
Key findings
- NCAE achieves the highest AUC on MNIST at 97.2% under 1% contamination and 92.6% at 10% contamination, outperforming all unsupervised baselines.
- On Fashion-MNIST, NCAE achieves 91.5% AUC at 10% contamination and 88.97% at 20% contamination, surpassing all listed unsupervised methods.
- Even without labeled anomalies, NCAE performs comparably to semi-supervised methods like SSAD and Deep SAD, which use explicit abnormal samples during training.
- Performance degrades slightly on uncontaminated data (ρ=0.0) due to the model's inherent assumption of contamination, but remains strong across all contamination levels.
- The method effectively detects contaminated samples even when they form low-entropy clusters, countering the failure mode of traditional entropy-based methods.
- The NCAE framework demonstrates robustness across multiple datasets and contamination levels, validating its generalization capability in real-world scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.