Explaining anomalies in groups with characterizing subspace rules

Meghanath Macha, Leman Akoglu

TL;DR

This paper introduces X-PACS, a novel method for explaining anomalies in high-dimensional datasets by identifying "packs" of anomalies within specific feature subspaces. X-PACS aims to provide concise, interpretable, and discriminative descriptions of anomaly groups, offering a significant improvement over explaining individual anomalies.

What Problem Does This Paper Address?

Anomaly detection is a well-studied problem, but understanding why something is anomalous is often a significant challenge. When anomalies are detected, especially by "black-box" models or complex ensemble methods, practitioners need to interpret these findings for sense-making, troubleshooting, and decision-making. This paper addresses the gap in anomaly description, specifically focusing on explaining anomalies that occur in groups or patterns, rather than just individual outliers. The authors highlight scenarios where anomaly detection algorithms provide labels but no interpretable explanations, or where anomalies arise from external mechanisms. The core problem is to characterize these anomalous groups by identifying the specific feature subspaces and rules that make them stand out from normal data.

Methods

X-PACS is built upon three main steps:

  1. Subspace Clustering: The algorithm first employs a bottom-up, Apriori-like subspace clustering approach (similar to CLIQUE) to identify clusters of anomalies within various feature subspaces. A key innovation here is the use of both mass (number of anomalies) and purity (low number of normal points) criteria to find relevant clusters.
  2. Refinement into Hyper-ellipsoids (Packs): The hyper-rectangles identified in the subspace clustering step are then refined into axis-aligned hyper-ellipsoids, termed "packs." This refinement allows for more flexible anomaly shapes and is achieved by solving a convex quadratic discrimination problem. The goal is to enclose as many anomalous points as possible while minimizing the inclusion of normal points.
  3. Summarization (Pack Selection): The final step involves selecting a minimal set of packs that collectively provide the most succinct description of the anomalies. This is achieved using a Minimum Description Length (MDL) principle, formulated as a non-monotone submodular function maximization problem. An algorithm called RANDOM-GREEDY is used to find a subset of packs that minimizes the encoding length, effectively balancing coverage, compactness, and purity.

Datasets

The paper evaluates X-PACS on several real-world datasets:

  • ImagesI, ImagesII, ImagesIII: Datasets derived from face images, with anomalies created by introducing variations like sunglasses, different t-shirt colors, or beards.
  • DigitI, DigitII: Datasets based on time-series data of hand-drawn digits, where anomalies are defined as drawings of specific digits (e.g., '7' vs. '0', or '2'/'3' vs. '8').
  • BrCancer: A breast cancer dataset containing malign (anomalous) and benign (normal) instances.
  • Arrythmia, Wine, Yeast: Standard UCI datasets used for evaluation.

The paper does not introduce new benchmark datasets but uses existing ones to demonstrate the effectiveness of X-PACS.

Key Insights and Ideas

  • Anomalies often form groups: The paper's central premise is that anomalies are not always scattered but frequently exhibit patterns, forming groups with shared characteristics. Explaining these groups is more efficient and insightful than explaining individual anomalies.
  • Subspace analysis is crucial: Anomalies often "hide" in specific low-dimensional subspaces of high-dimensional data. X-PACS leverages this by searching for anomalous patterns within these subspaces.
  • Interpretability through "packs": The concept of "packs" (hyper-ellipsoids) provides a human-interpretable way to describe anomaly groups. The characterizing subspace and the feature rules (intervals) define these packs.
  • MDL for succinctness: Using the Minimum Description Length principle to select the optimal set of packs ensures that the explanations are as concise and informative as possible, avoiding redundancy and information overload.
  • Trade-off between explanation and detection: While X-PACS's primary goal is explanation, the identified packs can also serve as effective signatures for anomaly detection, demonstrating a dual utility.

Key Results

  • Effectiveness of Explanations: Case studies on image and digit datasets show X-PACS successfully identifying simple (low-dimensional) and pure (discriminative) characteristics of anomalies, often matching human intuition.
  • Interpretability: X-PACS consistently achieves better interpretability measures (fewer groups, shorter rules, lower impurity, narrower intervals) compared to rule learners like Decision Trees and Ripper, as shown in Table 5 and Figure 5.
  • Detection Performance: X-PACS demonstrates competitive anomaly detection performance, often outperforming baselines like DT, KDE, and NN, and achieving high AUPRC scores across various datasets (Table 5, Table 8).
  • Scalability: The algorithm exhibits near-linear scalability with respect to data size, dimensionality, and number of anomalies, though it has exponential complexity with respect to the maximum pack dimensionality (Figure 6).
  • Ablation Study: The refinement step from hyper-rectangles to hyper-ellipsoids (packs) is shown to be beneficial, allowing X-PACS to cover more anomalous points while avoiding normal points, leading to better % savings (Table 7).

Limitations and Future Work

  • Exponential Complexity: The paper acknowledges the exponential complexity of X-PACS with respect to the largest characterizing subspace size (dmax). This limits its direct applicability to datasets where anomalies might form very high-dimensional patterns.
  • Supervised Nature: X-PACS is a supervised method, meaning it requires labeled anomalies. It can only detect future instances of anomaly types that have been seen in the training data.
  • Future Work: The authors suggest that while X-PACS identifies descriptive patterns, these can also be used for detection. They also mention that other subgroup discovery techniques could be adapted for the subspace clustering step. The paper's focus is on explaining known anomalies, and future work could explore extending this to unsupervised anomaly description.

Summary updated

BibTeX
@inproceedings{macha2018explaining,
  author = {Meghanath Macha and Leman Akoglu},
  title = {{Explaining anomalies in groups with characterizing subspace rules}},
  booktitle = {Data Min. Knowl. Discov},
  year = {2018},
  url = {https://openreview.net/forum?id=55BkyKb_ZNv},
}
Figure