[Paper Review] Robust Subspace Recovery Layer for Unsupervised Anomaly Detection
This paper proposes a novel Robust Subspace Recovery Autoencoder (RSRAE) for unsupervised anomaly detection, integrating a robust subspace recovery (RSR) layer within an autoencoder to extract linear structures from latent representations while filtering outliers. The method achieves state-of-the-art precision and recall on image and document datasets by minimizing reconstruction and RSR errors through alternating optimization.
We propose a neural network for unsupervised anomaly detection with a novel robust subspace recovery layer (RSR layer). This layer seeks to extract the underlying subspace from a latent representation of the given data and removes outliers that lie away from this subspace. It is used within an autoencoder. The encoder maps the data into a latent space, from which the RSR layer extracts the subspace. The decoder then smoothly maps back the underlying subspace to a "manifold" close to the original inliers. Inliers and outliers are distinguished according to the distances between the original and mapped positions (small for inliers and large for outliers). Extensive numerical experiments with both image and document datasets demonstrate state-of-the-art precision and recall.
Motivation & Objective
- To address unsupervised anomaly detection in datasets with high outlier ratios where traditional methods fail.
- To develop a deep learning framework that robustly recovers underlying linear structures in data despite significant contamination by outliers.
- To improve upon existing autoencoder-based anomaly detection by integrating a differentiable RSR layer for better subspace estimation.
- To enable effective detection of anomalies by distinguishing inliers (close to original positions) from outliers (far from original positions) via reconstruction error.
- To demonstrate superior performance on diverse datasets, including images and text, under realistic outlier conditions.
Proposed method
- The model uses an autoencoder with an encoder to map input data into a latent space.
- A novel differentiable RSR layer is inserted after the encoder to extract a low-dimensional subspace robust to outliers.
- The decoder reconstructs the data from the subspace, aiming to map inliers close to their original positions and outliers far away.
- The total loss combines reconstruction error and RSR error, optimized via alternating minimization of autoencoder and RSR parameters.
- The RSR layer uses a robust optimization framework to recover the underlying linear structure even when a large fraction of points are outliers.
- Hyperparameters λ₁ and λ₂ control the trade-off between reconstruction and RSR loss, with ablation showing stable performance around λ₁=λ₂=0.1.
Experimental results
Research questions
- RQ1Can a differentiable RSR layer improve unsupervised anomaly detection in high-outlier-ratio scenarios?
- RQ2How does the integration of RSR within an autoencoder architecture enhance subspace recovery and outlier detection compared to standard autoencoders?
- RQ3What is the impact of hyperparameters λ₁ and λ₂ on model performance across diverse datasets?
- RQ4Does the proposed RSRAE outperform existing state-of-the-art methods in terms of AUC and AP scores on image and document datasets?
- RQ5How does the alternating optimization scheme affect convergence and robustness in the presence of noisy or corrupted data?
Key findings
- RSRAE achieves state-of-the-art AUC and AP scores on Caltech 101, Fashion MNIST, Tiny ImageNet, Reuters-21578, and 20 Newsgroups datasets.
- The method outperforms AE, AE-1, DSEBMs, DAGMM, and GT on all tested datasets, especially in high-outlier-ratio settings.
- RSRAE+ (with hyperparameter tuning) performs comparably to RSRAE, but RSRAE’s alternating minimization is more stable and independent of λ₁ and λ₂.
- The AUC and AP scores of RSRAE are robust to hyperparameter choices, with optimal performance observed at λ₁=λ₂=0.1 for the 20 Newsgroups dataset.
- Runtime analysis shows RSRAE is competitive with other deep learning-based methods, with faster inference than DSEBMs, DAGMM, and GT.
- Performance degrades significantly on Tiny ImageNet without deep features, indicating the importance of high-level representations for robust detection.
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.