Introduction
Decision Trees (DTs) remain a cornerstone of interpretable machine learning. However, their optimization is notoriously difficult due to the discrete nature of feature selection and split points, which results in a non-convex and non-differentiable objective function. Traditionally, algorithms like CART and C4.5 rely on a greedy "top-down" approach, making locally optimal splits that often lead to suboptimal global structures. While "Optimal Decision Tree" solvers exist, they frequently struggle with continuous data or scale poorly.
GradTree addresses these challenges by enabling the joint optimization of all tree parameters via gradient descent. By utilizing a dense representation and the straight-through (ST) operator, GradTree produces highly accurate, hard, axis-aligned trees that generalize better than traditional greedy algorithms.
Methods: Differentiable Decision Trees
The core innovation of GradTree is the formulation of a decision tree as an arithmetic function compatible with backpropagation.
Dense DT Representation
Unlike sparse structures, GradTree employs a fixed-depth dense representation. It maintains continuous parameter matrices for feature selection (using an entmax transformation for sparsity) and thresholds. A key feature is the "threshold memory": the model stores a threshold for every feature at every node. This allows the optimizer to refine thresholds even as it explores different feature selections during training.
Optimization and Routing
To bridge the gap between differentiable training and discrete inference, GradTree uses the Straight-Through (ST) operator. During the forward pass, the model makes "hard" decisions (e.g., hardmax for feature selection). In the backward pass, it ignores these discrete steps, allowing gradients to flow directly to the underlying continuous parameters. Furthermore, a deterministic tree routing algorithm enables efficient parallel processing of data batches using matrix operations on GPUs.
Key Results and Insights
The researchers evaluated GradTree against several baselines, including CART and DL8.5, across 36 classification datasets.
Overcoming the "Greedy Trap"
A significant advantage of GradTree is its ability to "rethink" early splits. In greedy algorithms, a root split is fixed once chosen. GradTree, however, can shift the root split if it benefits the global accuracy of the entire tree structure.
Performance and Generalization
- Accuracy: GradTree outperformed baselines on binary classification, achieving the best performance on 13 of 22 datasets with a Mean Reciprocal Rank (MRR) of 0.758 (vs. CART's 0.556).
- Robustness: GradTree exhibited significantly less overfitting. The generalization gap (train vs. test performance) was only 0.051 for GradTree, compared to 0.183 for CART.
- Interpretability: By sticking to axis-aligned splits (one feature per node), GradTree preserves the human-readable "if-then" logic that makes DTs valuable, unlike "oblique" trees that use linear combinations of features.
Conclusion and Future Work
GradTree demonstrates that gradient descent can effectively optimize axis-aligned decision trees, offering a powerful alternative to greedy heuristics. While highly competitive, the dense representation currently faces scalability challenges in high-dimensional multi-class settings. Future work aims to implement parameter sharing and "learnable pruning" to further refine the model's efficiency and structure. Given its differentiable nature, GradTree is also a prime candidate for end-to-end trained ensembles.
Summary updated