[Paper Review] SLA$^2$P: Self-supervised Anomaly Detection with Adversarial Perturbation
SLA²P proposes a self-supervised anomaly detection framework that uses random feature projections to create pseudo-classes and trains a classifier on these to learn normal data patterns. By applying adversarial perturbations to the transformed features and measuring predictive uncertainty, it identifies anomalies through reduced confidence scores, achieving state-of-the-art performance across image, text, and tabular datasets with robustness to extreme anomaly ratios.
Anomaly detection is a fundamental yet challenging problem in machine learning due to the lack of label information. In this work, we propose a novel and powerful framework, dubbed as SLA$^2$P, for unsupervised anomaly detection. After extracting representative embeddings from raw data, we apply random projections to the features and regard features transformed by different projections as belonging to distinct pseudo classes. We then train a classifier network on these transformed features to perform self-supervised learning. Next we add adversarial perturbation to the transformed features to decrease their softmax scores of the predicted labels and design anomaly scores based on the predictive uncertainties of the classifier on these perturbed features. Our motivation is that because of the relatively small number and the decentralized modes of anomalies, 1) the pseudo label classifier's training concentrates more on learning the semantic information of normal data rather than anomalous data; 2) the transformed features of the normal data are more robust to the perturbations than those of the anomalies. Consequently, the perturbed transformed features of anomalies fail to be classified well and accordingly have lower anomaly scores than those of the normal samples. Extensive experiments on image, text and inherently tabular benchmark datasets back up our findings and indicate that SLA$^2$P achieves state-of-the-art results on unsupervised anomaly detection tasks consistently.
Motivation & Objective
- To address the challenge of unsupervised anomaly detection where labeled data is unavailable and anomalies are rare and diverse.
- To improve detection performance by leveraging self-supervised learning through feature-level transformation into pseudo-classes.
- To exploit predictive uncertainty from adversarially perturbed features as a sensitive anomaly score mechanism.
- To achieve robust performance under varying anomaly ratios, especially in low- or high-outlier scenarios.
- To bridge the gap between image-level and feature-level self-supervised methods via theoretical analysis of random projections.
Proposed method
- Random projections are applied to deep embeddings to generate multiple transformed feature views, treated as distinct pseudo-classes for self-supervised learning.
- A deep neural network classifier is trained on the projected features using early stopping to prevent overfitting, focusing learning on normal data patterns.
- Adversarial perturbations are added to the transformed features to reduce the softmax confidence of predicted labels, amplifying uncertainty differences.
- Anomaly scores are computed based on the drop in predictive confidence after perturbation, with lower scores indicating higher anomaly likelihood.
- The method is applied end-to-end to image, text, and tabular data without task-specific adaptation.
- Theoretical analysis shows that random projections preserve feature similarity, justifying their use in creating meaningful pseudo-classes.
Experimental results
Research questions
- RQ1Can feature-level transformation via random projections create effective pseudo-supervision for self-supervised anomaly detection?
- RQ2Does adversarial perturbation enhance the discriminative power of predictive uncertainty for identifying anomalies?
- RQ3Can the proposed method generalize across diverse data modalities such as images, text, and tabular data?
- RQ4How does SLA²P perform under extreme anomaly ratios, particularly very low or very high outlier proportions?
- RQ5What is the theoretical justification for using random projections in this self-supervised anomaly detection framework?
Key findings
- SLA²P achieves state-of-the-art performance on 7 benchmark datasets across image, text, and tabular domains, outperforming prior methods by a significant margin.
- On the MVTec-AD dataset, SLA²P achieves an average AUROC of 95.81%, surpassing the previous SOTA method by 1.25 percentage points.
- On the 20 Newsgroups text dataset with p=0.5, SLA²P achieves an AUROC of 78.13%, exceeding the next best method by 7.0 percentage points.
- The method maintains strong performance under extreme anomaly ratios, with AUROC above 90% on MVTec-AD even at 1% anomaly ratio and above 85% at 50% anomaly ratio.
- Ablation studies confirm that both random projections and adversarial perturbations are essential components, with ablation on either reducing performance by over 5% on average.
- Theoretical analysis confirms that random projections preserve feature similarity, supporting the validity of the pseudo-class learning objective.
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.