[Paper Review] Understanding the Effect of Bias in Deep Anomaly Detection
This paper investigates the impact of biased labeled anomaly data on deep anomaly detection models, proposing a formal framework to quantify relative scoring bias. It establishes finite-sample estimation rates for this bias and empirically demonstrates that additional labeled anomalies can both improve and degrade performance depending on distributional misalignment, revealing significant performance variance across anomaly types.
Anomaly detection presents a unique challenge in machine learning, due to the scarcity of labeled anomaly data. Recent work attempts to mitigate such problems by augmenting training of deep anomaly detection models with additional labeled anomaly samples. However, the labeled data often does not align with the target distribution and introduces harmful bias to the trained model. In this paper, we aim to understand the effect of a biased anomaly set on anomaly detection. Concretely, we view anomaly detection as a supervised learning task where the objective is to optimize the recall at a given false positive rate. We formally study the relative scoring bias of an anomaly detector, defined as the difference in performance with respect to a baseline anomaly detector. We establish the first finite sample rates for estimating the relative scoring bias for deep anomaly detection, and empirically validate our theoretical results on both synthetic and real-world datasets. We also provide an extensive empirical study on how a biased training anomaly set affects the anomaly score function and therefore the detection performance on different anomaly classes. Our study demonstrates scenarios in which the biased anomaly set can be useful or problematic, and provides a solid benchmark for future research.
Motivation & Objective
- To systematically understand how biased labeled anomaly data affects deep anomaly detection models.
- To formalize the concept of relative scoring bias in anomaly detection, defined as performance difference relative to a baseline detector.
- To derive finite-sample estimation rates for relative scoring bias in deep anomaly detection.
- To empirically evaluate the impact of biased training data on anomaly score functions and detection performance across diverse models and datasets.
- To provide a benchmark for future research on the risks and benefits of using labeled anomalies in training.
Proposed method
- Formalizing anomaly detection as a supervised learning task to optimize recall at a fixed false positive rate.
- Defining relative scoring bias as the performance difference between a trained detector and a reference baseline detector.
- Deriving finite-sample bounds for estimating relative scoring bias using statistical learning theory.
- Conducting extensive empirical validation on synthetic data and three real-world datasets: Fashion-MNIST, StatLog (Landsat Satellite), and Cellular Spectrum Misuse.
- Using weighted mixture training configurations to simulate varying degrees of distributional shift in labeled anomaly data.
- Evaluating six deep anomaly detection models under different training regimes to measure performance variance across anomaly classes.
Experimental results
Research questions
- RQ1How does the use of labeled anomalies that do not align with the target distribution affect the performance of deep anomaly detection models?
- RQ2What is the finite-sample rate for estimating relative scoring bias in deep anomaly detection?
- RQ3In what scenarios do additional labeled anomalies improve or degrade detection performance?
- RQ4How does the anomaly score function change when trained on biased anomaly data compared to purely normal data?
- RQ5What are the performance trade-offs across different anomaly classes when using biased labeled data?
Key findings
- The use of labeled anomalies that do not match the target distribution introduces significant relative scoring bias, leading to performance variance across different anomaly types.
- Finite-sample rates for estimating relative scoring bias were established, providing theoretical grounding for assessing bias in deep anomaly detection.
- On the Fashion-MNIST dataset, models trained with 90% sneaker anomalies showed a 1.00 TPR for sneakers but only 0.11 TPR for dresses, indicating severe performance degradation on out-of-distribution anomalies.
- In the Cellular Spectrum Misuse dataset, models trained with biased anomaly data achieved a 0.99 TPR for some classes but dropped to 0.10 TPR for others, highlighting inconsistent performance.
- The study found that labeled anomalies can be beneficial when they align with the target distribution but are harmful when they do not, with performance gains or losses varying by anomaly class.
- Empirical results show that models trained with biased data can achieve high TPR on in-distribution anomalies (e.g., 0.99 for boots) but suffer from poor recall on others (e.g., 0.06 for trousers), demonstrating the risk of distributional misalignment.
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.