[Paper Review] Self-supervise, Refine, Repeat: Improving Unsupervised Anomaly Detection
This paper proposes SRR (Self-supervise, Refine, Repeat), a data-centric framework for fully unsupervised anomaly detection that iteratively improves model robustness by refining training data using an ensemble of one-class classifiers (OCCs). By leveraging self-supervised representations and consensus-based data refinement, SRR achieves state-of-the-art performance, improving AUC by 6.3 and F1-score by 22.9 on CIFAR-10 and Thyroid datasets, respectively, even with high anomaly ratios.
Anomaly detection (AD), separating anomalies from normal data, has many applications across domains, from security to healthcare. While most previous works were shown to be effective for cases with fully or partially labeled data, that setting is in practice less common due to labeling being particularly tedious for this task. In this paper, we focus on fully unsupervised AD, in which the entire training dataset, containing both normal and anomalous samples, is unlabeled. To tackle this problem effectively, we propose to improve the robustness of one-class classification trained on self-supervised representations using a data refinement process. Our proposed data refinement approach is based on an ensemble of one-class classifiers (OCCs), each of which is trained on a disjoint subset of training data. Representations learned by self-supervised learning on the refined data are iteratively updated as the data refinement improves. We demonstrate our method on various unsupervised AD tasks with image and tabular data. With a 10% anomaly ratio on CIFAR-10 image data / 2.5% anomaly ratio on Thyroid tabular data, the proposed method outperforms the state-of-the-art one-class classifier by 6.3 AUC and 12.5 average precision / 22.9 F1-score.
Motivation & Objective
- To address the challenge of fully unsupervised anomaly detection where training data contain both normal and anomalous samples without labels.
- To improve the robustness of one-class classifiers (OCCs) trained on self-supervised representations in the absence of any labeled data.
- To develop a data refinement mechanism that iteratively excludes potentially anomalous samples based on consensus among multiple OCCs.
- To enable the framework to function without prior knowledge of the true anomaly ratio by integrating Otsu’s method for automatic threshold selection.
- To demonstrate state-of-the-art performance across diverse datasets, including image and tabular data, under realistic unsupervised settings.
Proposed method
- The framework employs an ensemble of OCCs, each trained on disjoint subsets of the unlabeled training data to detect potential anomalies.
- Samples are classified as normal only if all OCCs in the ensemble agree, enabling consensus-based data refinement to remove candidate anomalies.
- Self-supervised representations are learned from the refined data and iteratively updated through multiple refinement cycles.
- The final anomaly detection model is trained on the refined data using self-supervised contrastive learning to improve representation quality.
- For unknown anomaly ratios, Otsu’s method is used to automatically determine the threshold for selecting the hyperparameter γ based on normality score distributions.
- The framework is flexible and can be combined with any OCC and applied to raw data or learned representations.
Experimental results
Research questions
- RQ1Can iterative data refinement using ensemble OCCs improve the robustness of one-class classifiers in fully unsupervised anomaly detection?
- RQ2How does the performance of state-of-the-art OCCs degrade when trained on unlabeled data containing anomalous samples, and can this be mitigated?
- RQ3To what extent can self-supervised representations enhance anomaly detection when combined with iterative data refinement?
- RQ4Can Otsu’s method effectively replace ground-truth anomaly ratio knowledge in the SRR framework for automatic threshold selection?
- RQ5How does SRR perform across diverse datasets, including image and tabular data, under varying anomaly ratios?
Key findings
- On CIFAR-10 with a 10% anomaly ratio, SRR improves AUC by 6.3 points and average precision by 12.5 points over the state-of-the-art OCC.
- On the Thyroid dataset with a 2.5% anomaly ratio, SRR achieves a 22.9-point improvement in F1-score compared to the SOTA OCC.
- SRR maintains strong performance even with high anomaly ratios, demonstrating robustness where prior OCCs degrade significantly.
- When Otsu’s method is used for automatic threshold selection without true anomaly ratio, SRR still outperforms the SOTA OCC by 5.1 AUC points on CIFAR-10 and 11.7 F1 points on Thyroid.
- The integration of Otsu’s method results in only slight performance degradation compared to SRR with known anomaly ratios, confirming its effectiveness in real-world scenarios.
- Extensive ablation studies confirm that both the ensemble-based refinement and iterative self-supervision are critical for performance gains.
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.