ExIFFI and EIF+: Interpretability and Enhanced Generalizability to Extend the Extended Isolation Forest

Alessio Arcudi, Davide Frizzo, Chiara Masiero, Gian Antonio SustoarXiv 2023 · OpenReview

Abstract

Anomaly Detection involves identifying unusual behaviors within complex datasets and systems. While Machine Learning algorithms and Decision Support Systems (DSSs) offer effective solutions for this task, simply pinpointing anomalies may prove insufficient in real-world applications. Users require insights into the rationale behind these predictions to facilitate root cause analysis and foster trust in the model. However, the unsupervised nature of AD presents a challenge in developing interpretable tools. This paper addresses this challenge by introducing ExIFFI, a novel interpretability approach specifically designed to explain the predictions made by Extended Isolation Forest. ExIFFI leverages feature importance to provide explanations at both global and local levels. This work also introduces EIF+, an enhanced variant of Extended Isolation Forest, conceived to improve its generalization capabilities through a different splitting hyperplanes design strategy. A comprehensive comparative analysis is conducted, employing both synthetic and real-world datasets to evaluate various unsupervised AD approaches. The analysis demonstrates the effectiveness of ExIFFI in providing explanations for AD predictions. Furthermore, the paper explores the utility of ExIFFI as a feature selection technique in unsupervised settings. Finally, this work contributes to the research community by providing open-source code, facilitating further investigation and reproducibility.

Introduction

In industrial and financial sectors, Anomaly Detection (AD) serves as a critical early warning system. Whether detecting mechanical failures or fraudulent transactions, models must be accurate, efficient, and, increasingly, interpretable. While the Isolation Forest (IF) has been a staple for unsupervised AD, its reliance on axis-aligned splits introduces biases. The Extended Isolation Forest (EIF) addressed this by using oblique hyperplanes, but at the cost of interpretability. Explaining why a specific combination of features triggered an anomaly remains a significant hurdle for trust and root-cause analysis.

This paper introduces two advancements: EIF+, which improves generalization by refining the hyperplane selection process, and ExIFFI (Extended Isolation Forest Feature Importance), a method to extract human-readable explanations directly from the model's geometric structure.

Methods

EIF+: Enhancing Generalization

Standard EIF models sample the intercept of splitting hyperplanes uniformly across the data range. However, this can lead to "empty branches" and poor generalization when the model is trained on clean data but must detect novel anomalies. EIF+ addresses this by sampling intercepts from a Normal Distribution centered on the data mean. This strategy forces the model to "wrap" more tightly around the normal data distribution, increasing sensitivity to outliers that fall outside the core density.

EIF+ utilizes Gaussian intercept sampling to create more adaptive boundaries around the data core.

ExIFFI: Model-Specific Interpretability

ExIFFI provides the first model-specific approach for explaining EIF predictions without the computational overhead of post-hoc tools like SHAP.

  1. Geometric Projection: When a hyperplane splits the data, ExIFFI analyzes the normal vector of that hyperplane. By projecting this vector onto individual feature axes, the model quantifies the contribution of each feature to that specific split.
  2. Imbalance Scoring: Importance is weighted by the "imbalance" of the split. Features that successfully isolate a small group of outliers from a large group of normal points early in the tree are assigned higher importance.
ExIFFI calculates importance by projecting normal vectors onto feature axes during the splitting process.

Evaluation Metric: AUC_FS

To validate these explanations, the authors utilize Feature Selection as a proxy task. The Area Under the Curve of Feature Selection (AUC_FS) measures the performance gap when removing features identified as "important" versus "unimportant." A high AUC_FS indicates that the model's interpretation of feature importance aligns with the actual drivers of anomaly detection.

Results and Discussion

The proposed methods were evaluated on 5 synthetic and 11 real-world datasets (e.g., Annthyroid, Cardio, Shuttle).

  • Detection Performance: EIF+ consistently outperformed standard EIF, particularly in "Scenario II" where models are trained on purely normal data. This confirms that Gaussian intercept sampling improves the model's ability to generalize to unseen anomalies.
  • Interpretability: ExIFFI outperformed other unsupervised interpretation methods in 8 out of 11 real-world datasets. Notably, in datasets with semantic feature meanings like Diabetes and Moodify, the explanations were found to be highly intuitive.
  • Efficiency: Unlike deep-learning-based autoencoders, EIF+ and ExIFFI scale linearly with dataset size, making them suitable for real-time industrial applications.
  • Correlation: A strong linear relationship (often > 0.9) was observed between the Anomaly Score and the Local Importance Score, validating that ExIFFI accurately identifies the features driving the model's decisions.

Conclusion

ExIFFI and EIF+ represent significant steps toward making advanced anomaly detection both more robust and more transparent. By leveraging the inherent geometry of the Extended Isolation Forest, ExIFFI provides fast, accurate explanations that facilitate human-in-the-loop decision-making. Future work will focus on human validation studies with domain experts and extending these principles to other tree-based architectures, such as those utilizing hyperspherical splits.

Summary updated

BibTeX
@misc{arcudi2023exiffi,
  author = {Alessio Arcudi and Davide Frizzo and Chiara Masiero and Gian Antonio Susto},
  title = {{ExIFFI and EIF+: Interpretability and Enhanced Generalizability to Extend the Extended Isolation Forest}},
  year = {2023},
  eprint = {2310.05468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05468},
}
Figure