Attention and Self-Attention in Random Forests

Lev V. Utkin, Andrei V. Konstantinov
7/9/2022
cs.LGstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

New models of random forests jointly using the attention and self-attention mechanisms are proposed for solving the regression problem. The models can be regarded as extensions of the attention-based random forest whose idea stems from applying a combination of the Nadaraya-Watson kernel regression and the Huber's contamination model to random forests. The self-attention aims to capture dependencies of the tree predictions and to remove noise or anomalous predictions in the random forest. The self-attention module is trained jointly with the attention module for computing weights. It is shown that the training process of attention weights is reduced to solving a single quadratic or linear optimization problem. Three modifications of the general approach are proposed and compared. A specific multi-head self-attention for the random forest is also considered. Heads of the self-attention are obtained by changing its tuning parameters including the kernel parameters and the contamination parameter of models. Numerical experiments with various datasets illustrate the proposed models and show that the supplement of the self-attention improves the model performance for many datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{utkin2022attention,
  title  = {Attention and Self-Attention in Random Forests},
  author = {Lev V. Utkin and Andrei V. Konstantinov},
  year   = {2022},
  eprint = {2207.04293},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.04293v1}
}

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/2207.04293.svg)](https://codeofpaper.com/paper/2207.04293)

Discussion