[Paper Review] Clustering and Unsupervised Anomaly Detection with L2 Normalized Deep Auto-Encoder Representations
This paper proposes l² normalization of deep auto-encoder representations during training to improve clustering and unsupervised anomaly detection. By constraining representations to the unit sphere, clusters become more separable and compact in Euclidean space, enabling superior k-means clustering and anomaly detection performance—outperforming reconstruction error-based methods, especially on hard cases like digit 1.
Clustering is essential to many tasks in pattern recognition and computer vision. With the advent of deep learning, there is an increasing interest in learning deep unsupervised representations for clustering analysis. Many works on this domain rely on variants of auto-encoders and use the encoder outputs as representations/features for clustering. In this paper, we show that an l2 normalization constraint on these representations during auto-encoder training, makes the representations more separable and compact in the Euclidean space after training. This greatly improves the clustering accuracy when k-means clustering is employed on the representations. We also propose a clustering based unsupervised anomaly detection method using l2 normalized deep auto-encoder representations. We show the effect of l2 normalization on anomaly detection accuracy. We further show that the proposed anomaly detection method greatly improves accuracy compared to previously proposed deep methods such as reconstruction error based anomaly detection.
Motivation & Objective
- To improve unsupervised clustering and anomaly detection using deep auto-encoder representations.
- To investigate whether l² normalization of auto-encoder features during training enhances clustering and anomaly detection performance.
- To demonstrate that l² normalization leads to more separable and compact clusters in Euclidean space.
- To propose a clustering-based unsupervised anomaly detection method that outperforms reconstruction error-based approaches.
Proposed method
- Apply l² normalization to the encoder's output representations during auto-encoder training, constraining them to lie on the unit sphere.
- Use k-means clustering on the l² normalized representations for clustering and anomaly detection.
- Train auto-encoders on combined normal and anomalous data, making the method fully unsupervised.
- Use clustering assignments to define anomaly scores: samples with low cluster confidence or rare clusters are flagged as anomalies.
- Compare performance against reconstruction error-based anomaly detection and other deep auto-encoder methods.
- Evaluate using AUC on MNIST with 10% of one digit class as anomaly, averaged over 10 random partitions.
Experimental results
Research questions
- RQ1Does l² normalization of auto-encoder representations during training improve clustering accuracy compared to non-normalized or other normalization methods?
- RQ2Can l² normalized representations enable superior unsupervised anomaly detection compared to reconstruction error-based methods?
- RQ3Why does reconstruction error-based anomaly detection fail on certain digits like '1', and can clustering-based detection overcome this?
- RQ4How does l² normalization affect the geometric structure of learned representations in the embedding space?
- RQ5Does the proposed clustering-based anomaly detection method generalize across different digit classes and anomaly definitions?
Key findings
- l² normalization during training significantly improves clustering accuracy, with k-means on normalized representations outperforming methods with additional clustering losses.
- The proposed clustering-based anomaly detection method achieves a mean AUC of 0.9673 on digit 1, compared to 0.0782 for reconstruction error-based detection, demonstrating a 12x improvement.
- For 9 out of 10 digits, l² normalization during training improves anomaly detection AUC compared to no normalization, with the highest gain on digit 1.
- The method outperforms both AE and VAE-based reconstruction error methods, achieving AUCs of 0.9615–0.9790 across digits, compared to 0.135–0.921 in the baseline.
- The failure of reconstruction error on digit 1 (AUC 0.0782) is attributed to its simplicity, which allows auto-encoders to reconstruct it well even with limited examples.
- The method shows robustness to class imbalance and anomalous data during training, achieving high performance even when anomalies are mixed into the training set.
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.