Abstract
Unsupervised Anomaly Detection (UAD) faces significant challenges due to the lack of labeled outliers and the inherent overlap between normal and abnormal data distributions. This paper proposes a novel "Scoring Network" that functions as a plug-and-play component for existing UAD models. By leveraging self-supervised signals to identify obvious samples, the network actively enlarges the score disparity between normal and abnormal data. This approach effectively addresses the "transition field" problem, where data is highly mixed, leading to superior performance across tabular, document, and image datasets.
Introduction: The Challenges of Unsupervised Anomaly Detection
Unsupervised Anomaly Detection is often described as a "needle in a haystack" problem. Traditional methods typically fit a model to the "normal" pattern and flag high-error samples as anomalies. However, this approach is hindered by three major hurdles:
- The Transition Field: Real-world datasets rarely exhibit perfect separation. Instead, normal and abnormal samples often overlap in a "gray area" or transition field, making them indistinguishable by simple thresholding.
- Metric Sensitivity: Fixed mathematical metrics like Euclidean distance are not universally applicable across diverse data distributions.
- Data Contamination: Unsupervised training sets often contain anomalies. Standard models may inadvertently learn to treat these contaminants as normal patterns, reducing detection accuracy.
Proposed Method: Score-Guided Networks
The core innovation of this work is the Scoring Network (S) and its associated Score-Guided Regularization ($L_{SE}$). Unlike passive models that merely filter suspected anomalies, this framework actively guides the representation learner to find a more discriminative hypothesis space.
Self-Supervised Signaling and Regularization
The model utilizes a standard metric (such as reconstruction error) as a proxy label to identify "obvious-normal" and "obvious-abnormal" samples during the training phase. The scoring network is then trained using a specific loss function that forces it to assign low scores to obvious normals and high scores (approaching a target value $a$) to suspected anomalies.
Architecture and Integration
This scoring network is designed to be integrated into existing architectures. The authors demonstrate this through the Score-Guided Autoencoder (SG-AE) and by applying the technique to other state-of-the-art models (DAGMM, RDA, RSRAE, and GOAD), collectively referred to as SG-Models.
By optimizing the scoring network and the representation learner simultaneously, the model learns features that specifically enhance the separation of tricky samples within the transition field.
Experimental Evaluation
The effectiveness of SG-Models was evaluated across a diverse range of data types:
- Tabular Data: Seven public datasets spanning healthcare, cybersecurity, and finance.
- Document Data: High-dimensional vector embeddings from the news and reuters datasets.
- Image Data: MNIST digit classification (treating '4' as normal).
- Synthetic Data: 1D and 2D datasets designed to visualize the handling of overlapping distributions.
Key Results and Insights
The inclusion of a scoring network consistently improved performance across all benchmarks:
- Superior Accuracy: SG-AE outperformed eight benchmark models on all seven tabular datasets. Notably, on the 'Attack' dataset, SG-AE achieved an AUC-ROC of 0.833, significantly higher than the best baseline of 0.770.
- Robustness to Contamination: SG-AE remained stable even when training data was intentionally polluted with anomalies, whereas standard Autoencoders experienced sharp performance declines.
- Visual Separation: t-SNE visualizations confirmed that SG-AE creates tighter, more distinct clusters for normal versus abnormal data compared to traditional SOTA methods.
Conclusion and Future Work
The Score-Guided Network provides a robust, adaptable solution for enlarging score disparity in unsupervised settings. While highly effective, the method introduces additional hyperparameters that require careful tuning. Future research may explore multi-objective optimization to balance loss functions more elegantly and extend the framework to complex spatial and sequential architectures like CNNs and Transformers.
Summary updated