Improved Anomaly Detection by Using the Attention-Based Isolation Forest

Lev V. Utkin, Andrey Y. Ageev, Andrei V. Konstantinov
10/5/2022
cs.LGstat.ML
transformer-attention

Official code: AndreyAgeev/Attention-based-isolation-forest (3 stars, Python, last commit 2022-10-05).

Abstract

A new modification of Isolation Forest called Attention-Based Isolation Forest (ABIForest) for solving the anomaly detection problem is proposed. It incorporates the attention mechanism in the form of the Nadaraya-Watson regression into the Isolation Forest for improving solution of the anomaly detection problem.

Show full abstract

The main idea underlying the modification is to assign attention weights to each path of trees with learnable parameters depending on instances and trees themselves. The Huber's contamination model is proposed to be used for defining the attention weights and their parameters. As a result, the attention weights are linearly depend on the learnable attention parameters which are trained by solving the standard linear or quadratic optimization problem. ABIForest can be viewed as the first modification of Isolation Forest, which incorporates the attention mechanism in a simple way without applying gradient-based algorithms. Numerical experiments with synthetic and real datasets illustrate outperforming results of ABIForest. The code of proposed algorithms is available.

View on arXivView PDF

Code Implementations(1)

Code for conducting experiments on article "Improved Anomaly Detection by Using the Attention-Based Isolation Forest"

31PythonOct 5, 20224 years ago

Similar Papers

Cite this paper

@article{utkin2022improved,
  title  = {Improved Anomaly Detection by Using the Attention-Based Isolation Forest},
  author = {Lev V. Utkin and Andrey Y. Ageev and Andrei V. Konstantinov},
  year   = {2022},
  eprint = {2210.02558},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.02558}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.02558.svg)](https://codeofpaper.com/paper/2210.02558)

Discussion