TL;DR
This paper introduces a human-in-the-loop active learning framework for anomaly detection using tree-based ensembles. It provides key insights into why these ensembles are effective for active learning and develops novel algorithms for both batch and streaming data, significantly improving anomaly discovery rates and offering better interpretability.
What Problem Does This Paper Address?
Anomaly detection (AD) aims to identify rare but significant instances (anomalies) within a larger dataset of normal instances. Traditional AD methods often produce a long list of potential anomalies, requiring human analysts to sift through many false positives, which is time-consuming and inefficient. This paper addresses the challenge of making AD more efficient and effective by enabling human analysts to guide the detection process through active learning. The goal is to minimize the human effort required to find true anomalies, especially in scenarios with a high number of false positives or when dealing with streaming data where the data distribution can change over time.
Methods
The core of this work is the HiLAD (Human-in-the-Loop Anomaly Detection) framework. It leverages tree-based anomaly detectors, specifically Isolation Forest (IFOR), due to their efficiency and suitability for ensemble construction. The framework operates in an iterative loop:
- Query Selection: Selects unlabeled instances for human feedback. The paper proposes two strategies:
- Select-Top: A greedy approach that queries the highest-scoring instances.
- Select-Diverse: A novel strategy that uses "compact descriptions" (derived from tree-based subspaces) to select instances from diverse anomaly classes, aiming to improve the discovery of different types of anomalies.
- Human Feedback: The analyst labels the selected instances as either anomaly or nominal.
- Weight Update: The anomaly detector's scoring function (a weighted combination of ensemble member scores) is updated based on the feedback. The paper provides theoretical justification for why a uniform prior on weights is beneficial and how this can be efficiently learned.
For streaming data, a HiLAD-Stream algorithm is introduced. This algorithm incorporates a drift detection mechanism using KL-divergence to identify changes in data distribution. When drift is detected, it adaptively replaces underperforming trees in the ensemble to maintain accuracy.
Datasets
The authors evaluated their methods on ten publicly available benchmark datasets:
- Abalone
- ANN-Thyroid-1v3
- Cardiotocography
- KDD-Cup-99
- Mammography
- Shuttle
- Yeast
- Covtype
- Electricity
- Weather
For the Electricity and Weather datasets, the anomaly classes were down-sampled to 5% of the total data.
Key Insights and Ideas
- Ensembles are Naturally Suited for Active Learning: The paper provides an insight into why tree-based ensembles, particularly Isolation Forest, excel in active learning. Their structure allows feedback on one instance to propagate effectively across many related instances, making the learning process more efficient.
- Uniform Prior for Weights is Key: Initializing the scoring function weights uniformly (w_unif) is shown to be a strong prior that significantly improves label efficiency and reduces variance in anomaly discovery. Anomalies tend to align with this uniform weight vector.
- Diversity Enhances Discovery: The proposed "Select-Diverse" strategy, using compact descriptions, can discover a more diverse set of anomalies without sacrificing the overall anomaly discovery rate compared to greedy selection.
- Drift Detection is Crucial for Streaming Data: A principled KL-divergence-based drift detection mechanism allows the streaming anomaly detector to adapt effectively to changing data distributions, maintaining competitive performance.
- Interpretability through Compact Descriptions: The "compact description" formalism not only aids in selecting diverse anomalies but also provides a way to describe groups of anomalies, enhancing interpretability for human analysts.
Key Results
- Significant Anomaly Discovery Improvement: HiLAD-Batch consistently discovered significantly more anomalies (up to 250% more) compared to state-of-the-art unsupervised baselines across various datasets.
- Efficiency of Prior Initialization: Using the uniform weight prior (w_unif) led to fewer queries needed to find initial anomalies and lower variance in accuracy.
- Competitive Streaming Performance: The HiLAD-Stream algorithm, even with concept drift, performed competitively with the best batch-based configuration (HiLAD-Batch).
- Diversity without Performance Loss: The Select-Diverse strategy achieved better diversity in discovered anomalies with comparable discovery rates to greedy methods.
- Robust Drift Detection: The KL-divergence based drift detection was robust and effective in adapting the streaming model.
Limitations and Future Work
- Tabular Data Assumption: The proposed methods are primarily designed for tabular data. While the authors suggest it can be applied to latent spaces of deep learning models for raw data, direct application to text or images is not explored.
- Real-World Deployment: The authors acknowledge that immediate future work includes deploying these algorithms in real-world systems to measure their accuracy and usability, particularly focusing on the qualitative assessment of interpretability and explanations.
- Interpretability and Explainability: Developing algorithms specifically for interpretability and explainability of anomaly detection systems is highlighted as a crucial future research direction.
Summary updated