Active Anomaly Detection via Ensembles: Insights, Algorithms, and Interpretability

Jana DoppaOpenReview 2022 · OpenReview

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:

  1. Query Selection: Selects unlabeled instances for human feedback. The paper proposes two strategies:
  2. Select-Top: A greedy approach that queries the highest-scoring instances.
  3. 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.
  4. Human Feedback: The analyst labels the selected instances as either anomaly or nominal.
  5. 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

Abstract

Anomaly detection (AD) task corresponds to identifying the true anomalies from a given set of data instances. AD algorithms score the data instances and produce a ranked list of candidate anomalies, which are then analyzed by a human to discover the true anomalies. However, this process can be laborious for the human analyst when the number of false-positives is very high. Therefore, in many real-world AD applications including computer security and fraud prevention, the anomaly detector must be configurable by the human analyst to minimize the effort on false positives. In this paper, we study the problem of active learning to automatically tune ensemble of anomaly detectors to maximize the number of true anomalies discovered. We make four main contributions towards this goal. First, we present an important insight that explains the practical successes of AD ensembles and how ensembles are naturally suited for active learning. Second, we present several algorithms for active learning with tree-based AD ensembles. These algorithms help us to improve the diversity of discovered anomalies, generate rule sets for improved interpretability of anomalous instances, and adapt to streaming data settings in a principled manner. Third, we present a novel algorithm called GLocalized Anomaly Detection (GLAD) for active learning with generic AD ensembles. GLAD allows end-users to retain the use of simple and understandable global anomaly detectors by automatically learning their local relevance to specific data instances using label feedback. Fourth, we present extensive experiments to evaluate our insights and algorithms. Our results show that in addition to discovering significantly more anomalies than state-of-the-art unsupervised baselines, our active learning algorithms under the streaming-data setup are competitive with the batch setup.
BibTeX
@misc{doppa2022active,
  author = {Jana Doppa},
  title = {{Active Anomaly Detection via Ensembles: Insights, Algorithms, and Interpretability}},
  year = {2022},
  eprint = {1901.08930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.08930},
  howpublished = {OpenReview},
}
Figure