TL;DR
This paper introduces DT-GFN, a novel approach that frames decision tree learning as a sequential planning problem solved by deep reinforcement learning (GFlowNets). This method effectively learns to sample decision trees from their Bayesian posterior, outperforming existing methods on standard benchmarks, especially in robustness to distribution shifts and anomaly detection, while producing more interpretable models.
What Problem Does This Paper Address?
Tabular data, ubiquitous in fields like healthcare and finance, presents unique challenges for machine learning. Unlike data with inherent spatial or temporal structures (like images or text), tabular data lacks these inductive biases, making it difficult for deep learning models to generalize well beyond the training distribution. Traditional decision tree methods often rely on greedy heuristics that struggle with the vast search space of possible trees. This paper tackles the problem of building robust, scalable, and interpretable predictive models for tabular data by developing a method that can systematically learn decision tree structures that generalize beyond the training data.
Methods
The core innovation is framing decision tree construction as a sequential decision-making problem, akin to a Markov Decision Process (MDP). A deep reinforcement learning agent, specifically a GFlowNet policy, is trained to navigate this MDP. The GFlowNet learns to sequentially select splits (feature and threshold) to build a decision tree. This approach allows the model to amortize the search over the enormous space of possible decision trees and learn to sample from the Bayesian posterior distribution of trees. This means the model doesn't just find a good tree, but learns a generative process that can produce a diverse set of high-quality trees. The reward function is designed to reflect the joint conditional probability of the data given the tree structure.
Datasets
The authors evaluated their DT-GFN approach on several standard UCI datasets, including:
- Iris
- Wine
- Breast Cancer Diagnostic
- Raisin
- Pima Indians Diabetes dataset (for distribution shift experiments)
They also used datasets for out-of-distribution detection tasks, referencing benchmarks like those from Shenkar & Wolf (2022).
Key Insights and Ideas
- Decision Trees as Sequential Planning: Reframing decision tree construction as a sequential planning problem solvable by RL is a powerful paradigm shift, allowing for more systematic exploration of the tree space.
- GFlowNets for Amortized Structure Inference: GFlowNets prove effective in learning to sample complex structures like decision trees from a target distribution, overcoming the intractability of direct sampling.
- Improved Generalization Beyond Distribution Shifts: DT-GFN ensembles demonstrate superior robustness to distribution shifts and out-of-distribution detection compared to many state-of-the-art methods, highlighting the importance of learned structure inference.
- Interpretability and Description Length: The generated decision trees are not only accurate but also shorter and more interpretable, offering a significant advantage for understanding model behavior.
- Consistent Scaling: The performance of DT-GFN ensembles scales consistently with the number of trees and computational resources, suggesting a promising path for building more powerful models.
Key Results
- State-of-the-Art Performance: DT-GFN outperforms existing decision tree and deep learning methods on standard classification benchmarks. For instance, on the Iris dataset, DT-GFN achieves a test accuracy of 0.98±0.04 with a model size of 8.6±3.44 nodes, significantly outperforming other Bayesian DT sampling algorithms.
- Robustness to Distribution Shifts: In experiments with BMI and Age shifts on the Pima Indians Diabetes dataset, DT-GFN ensembles consistently achieved higher in-distribution and out-of-distribution accuracies compared to baselines like Random Forest, XGBoost, and MLP. For the BMI shift, DT-GFN achieved 0.94 (in-distribution) and 0.755 (out-of-distribution) accuracy.
- Interpretable Models: The generated trees have shorter description lengths (fewer nodes) compared to many baselines, indicating improved interpretability.
- Scalability: DT-GFN shows consistent scaling in ensemble size and training time, with performance improving as more resources are allocated.
Limitations and Future Work
- Computational Cost: While the approach offers significant advantages, training GFlowNets can still be computationally intensive, especially for very large datasets or complex structures. The paper notes that inference costs are negligible compared to training.
- Hyperparameter Tuning: Like most deep learning and RL methods, DT-GFN relies on careful hyperparameter tuning, as highlighted in the appendix.
- Future Directions: The authors suggest extending DT-GFN to online and streaming data scenarios, leveraging GFlowNets' capabilities in these areas. They also propose exploring its potential for knowledge-driven Bayesian model selection.
Summary updated