[Paper Review] SPADE: Semi-supervised Anomaly Detection under Distribution Mismatch
SPADE proposes a semi-supervised anomaly detection framework robust to distribution mismatch between labeled and unlabeled data by using an ensemble of one-class classifiers for pseudo-labeling and a partial matching method to automatically set hyperparameters without validation data. It achieves state-of-the-art performance, improving AUC by up to 10.6% on tabular data and 3.6% on image data under challenging real-world distribution shifts.
Semi-supervised anomaly detection is a common problem, as often the datasets containing anomalies are partially labeled. We propose a canonical framework: Semi-supervised Pseudo-labeler Anomaly Detection with Ensembling (SPADE) that isn't limited by the assumption that labeled and unlabeled data come from the same distribution. Indeed, the assumption is often violated in many applications - for example, the labeled data may contain only anomalies unlike unlabeled data, or unlabeled data may contain different types of anomalies, or labeled data may contain only 'easy-to-label' samples. SPADE utilizes an ensemble of one class classifiers as the pseudo-labeler to improve the robustness of pseudo-labeling with distribution mismatch. Partial matching is proposed to automatically select the critical hyper-parameters for pseudo-labeling without validation data, which is crucial with limited labeled data. SPADE shows state-of-the-art semi-supervised anomaly detection performance across a wide range of scenarios with distribution mismatch in both tabular and image domains. In some common real-world settings such as model facing new types of unlabeled anomalies, SPADE outperforms the state-of-the-art alternatives by 5% AUC in average.
Motivation & Objective
- Address the common real-world challenge where labeled and unlabeled data in anomaly detection come from different distributions, violating standard semi-supervised learning assumptions.
- Develop a method that maintains high performance when labeled data contain only anomalies, only easy samples, or different anomaly types than unlabeled data.
- Eliminate the need for validation data in hyperparameter tuning by introducing a data-efficient, automatic method for setting pseudo-labeling thresholds.
- Improve robustness and generalization of semi-supervised anomaly detection under distribution shift through ensemble-based pseudo-labeling and self-supervised learning.
Proposed method
- Use an ensemble of one-class classifiers (OCCs) as a pseudo-labeler to improve robustness in pseudo-labeling under distribution mismatch.
- Apply partial matching to automatically determine optimal pseudo-labeling thresholds without requiring labeled validation data, crucial in low-data regimes.
- Combine supervised loss on labeled data with pseudo-labeling loss on unlabeled data using a learnable weighting hyperparameter α.
- Integrate self-supervised representation learning (e.g., contrastive learning) to enhance feature quality and model generalization.
- Use unanimous voting across the ensemble of OCCs to generate reliable pseudo-labels, reducing noise from individual models.
- Train the final anomaly detector using both labeled data and pseudo-labeled unlabeled data, with adaptive loss weighting to balance distribution shifts.
Experimental results
Research questions
- RQ1Can a semi-supervised anomaly detection framework maintain high performance when labeled and unlabeled data are drawn from different distributions?
- RQ2How can hyperparameters for pseudo-labeling be selected automatically without access to validation data?
- RQ3To what extent does ensemble-based pseudo-labeling improve robustness under distribution shift compared to single-model approaches?
- RQ4How does the inclusion of self-supervised representation learning affect performance in low-labeled-data settings?
- RQ5What is the impact of different voting strategies (e.g., unanimous vs. majority) on pseudo-label quality and final anomaly detection performance?
Key findings
- SPADE achieves state-of-the-art performance across diverse real-world scenarios with distribution mismatch, including new anomaly types, evolving data distributions, and biased labeling.
- On tabular datasets with new anomaly types, SPADE improves AUC by up to 10.6% compared to the best baseline.
- On image datasets under similar distribution shifts, SPADE achieves a 3.6% AUC improvement over state-of-the-art methods.
- The partial matching method accurately identifies optimal pseudo-labeling thresholds without validation data, reducing reliance on manual hyperparameter tuning.
- Abllation studies show that each component—ensemble, partial matching, self-supervised learning, and unanimous voting—contributes significantly to performance, with self-supervised learning adding 0.018 AUC and unanimous voting improving results by 0.024 AUC over majority voting.
- The framework is robust to the hyperparameter α, with performance stable across different values, and significantly worse when α=0 (no pseudo-labeling), confirming the value of unlabeled data.
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.