Learning Decision Trees as Amortized Structure Inference
Mohammed Mahfoud, Ghait Boukachab, Michał Koziarski, Alex Hernandez-Garcia, Stefan Bauer, Yoshua Bengio, Nikolay Malkin
TL;DR
This paper addresses the challenge of learning predictive models for tabular data by reframing decision tree construction as a sequential structure-inference problem. It introduces DT-GFN, which uses a Generative Flow Network (GFlowNet) to amortize sampling from the Bayesian posterior over decision trees, enabling diverse, high-posterior trees to be generated as part of an interpretable ensemble. The method provides a principled prior over tree complexity, a TB-based training objective, and an MDP-based architecture that yields trees whose predictions can be combined in Bayesian ensembles with scalable performance. Empirically, DT-GFN outperforms state-of-the-art single-tree and some deep-learning baselines on standard tabular benchmarks, demonstrates robustness to distribution shifts and anomaly detection, and exhibits consistent scaling as ensemble size grows, while maintaining short, interpretable tree descriptions.
Abstract
Building predictive models for tabular data presents fundamental challenges, notably in scaling consistently, i.e., more resources translating to better performance, and generalizing systematically beyond the training data distribution. Designing decision tree models remains especially challenging given the intractably large search space, and most existing methods rely on greedy heuristics, while deep learning inductive biases expect a temporal or spatial structure not naturally present in tabular data. We propose a hybrid amortized structure inference approach to learn predictive decision tree ensembles given data, formulating decision tree construction as a sequential planning problem. We train a deep reinforcement learning (GFlowNet) policy to solve this problem, yielding a generative model that samples decision trees from the Bayesian posterior. We show that our approach, DT-GFN, outperforms state-of-the-art decision tree and deep learning methods on standard classification benchmarks derived from real-world data, robustness to distribution shifts, and anomaly detection, all while yielding interpretable models with shorter description lengths. Samples from the trained DT-GFN model can be ensembled to construct a random forest, and we further show that the performance of scales consistently in ensemble size, yielding ensembles of predictors that continue to generalize systematically.
