Learning a Decision Tree Algorithm with Transformers

Yufan Zhuang, Liyuan Liu, Chandan Singh, Jingbo Shang, Jianfeng Gao
2/6/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: EvanZhuang/MetaTree (114 stars, MIT, last commit 2024-09-13).

Abstract

Decision trees are renowned for their ability to achieve high predictive performance while remaining interpretable, especially on tabular data. Traditionally, they are constructed through recursive algorithms, where they partition the data at every node in a tree. However, identifying a good partition is challenging, as decision trees optimized for local segments may not yield global generalization. To address this, we introduce MetaTree, a transformer-based model trained via meta-learning to directly produce strong decision trees. Specifically, we fit both greedy decision trees and globally optimized decision trees on a large number of datasets, and train MetaTree to produce only the trees that achieve strong generalization performance. This training enables MetaTree to emulate these algorithms and intelligently adapt its strategy according to the context, thereby achieving superior generalization performance.

View on arXivView PDF

Code Implementations(1)

EvanZhuang/MetaTreeCommunity100%
MIT

Official implementation of MetaTree: Learning a Decision Tree Algorithm with Transformers

1145PythonFeb 5, 20242 years agoMIT

Similar Papers

Cite this paper

@article{zhuang2024learning,
  title  = {Learning a Decision Tree Algorithm with Transformers},
  author = {Yufan Zhuang and Liyuan Liu and Chandan Singh and Jingbo Shang and Jianfeng Gao},
  year   = {2024},
  eprint = {2402.03774},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.03774v2}
}

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

Discussion