TL;DR
This paper introduces the first exact algorithm for constructing Optimal Hypersurface Decision Trees (HSDTs), moving beyond traditional axis-parallel splits to allow complex, polynomial decision boundaries. By combining a hardware-friendly vectorized solver with a novel geometric pruning strategy, the approach efficiently navigates massive search spaces to find highly accurate, compact, and interpretable trees.
What Problem Does This Paper Address?
Standard decision trees (like CART) split data using axis-parallel lines. While simple, this restriction means they struggle with complex, curved decision boundaries, often requiring massive, deep trees to approximate a smooth curve—destroying the model's interpretability.
Optimal Decision Tree (ODT) formulations attempt to find globally optimal trees rather than relying on greedy splits. However, existing ODT solvers scale poorly and are largely restricted to binary features or axis-parallel splits. Introducing more expressive splitting rules (like hyperplanes or hypersurfaces) compounds this issue, triggering a combinatorial explosion that makes exact optimization seemingly intractable.
Methods
The authors bridge this gap by building on the "Proper Decision Tree" (PDT) framework and introducing three key innovations:
- Hypersurface-to-Hyperplane Mapping: Using a geometric theorem, they map non-linear polynomial hypersurfaces of degree $M$ in $D$ dimensions into linear hyperplanes in a higher-dimensional space $G = \binom{D+M}{M}-1$. This unifies the rule-generation process.
- Vectorized Solver (
sodt_vec): Traditional ODT algorithms rely on data-dependent recursion, which performs poorly on modern hardware. The authors design a compile-time determined recursion process that enables full vectorization and parallel execution on GPUs. - Safe Geometric Pruning (Fatal-Pair Pruning): To tame the search space, they prove that if two hyperplanes mutually "straddle" each other and their convex hulls intersect in the lifted feature space, they can never coexist in a valid proper decision tree. They fuse this "fatal-pair" check directly into an incremental candidate generator, reducing the feasibility-checking cost per configuration from $O(K^2)$ to $O(K)$.
For massive or highly dimensional datasets where exact global optimization remains out of reach, they introduce two effective heuristics: Coreset Selection (hodtCoreset) and Selection with Hyperplanes (sodtWSH).
Datasets
The algorithm was evaluated using:
- Synthetic Datasets: Generated using degree-2 polynomials and random hyperplane decision trees to rigorously evaluate robustness against varying tree sizes, data dimensionality, sample sizes, and noise.
- Real-World Benchmarks: 30 classic classification datasets from the UCI Machine Learning Repository, including Haberman, Blood Transfusion, Sepsis, Algerian, Cryotherapy, Caesarian, Ecoli, and Glass.
Key Insights and Ideas
- Expressivity Saves Tree Size: Highly expressive hypersurface splits allow models to remain incredibly shallow (depth 2 or 3) while capturing complex boundaries that would require dozens of axis-parallel splits. This preserves true interpretability.
- Pruning Before Building: The "fatal-pair" predicate allows the algorithm to mathematically prove a combination of rules is invalid before ever attempting to construct a tree from them, dramatically lowering the empirical search space below the theoretical $O(N^{DK})$ upper bound.
- Optimal Trees Don't Inherently Overfit: A common machine learning myth is that globally optimizing a tree to exact optimality on noisy data guarantees overfitting. The authors demonstrate that under controlled model complexity, optimal hypersurface trees consistently maintain strong out-of-sample performance, even outperforming the ground truth on noisy training sets.
Key Results
- Massive Speedups: The vectorized GPU solver can explore over one million candidate trees in a matter of seconds.
- Accuracy Leaps: On synthetic datasets, the proposed HSDT model improved test accuracy by nearly 30 percentage points relative to optimal axis-parallel decision tree algorithms.
- Real-World Superiority: When tested across 30 UCI datasets (fixing $K$ between 2 and 6), Hyperplane Decision Trees (HDTs) consistently outperformed axis-parallel models, achieving higher training accuracy on 25 datasets and superior out-of-sample test accuracy on 21 datasets compared to the state-of-the-art ConTree algorithm.
Limitations and Future Work
Despite the massive acceleration from vectorization and pruning, the combinatorial complexity of HSDTs remains formidable. For exceptionally high-dimensional data or large tree sizes ($K$), exact global optimization is still computationally intractable, forcing a reliance on the proposed coreset heuristics.
Additionally, the current PyTorch implementation suffers from high memory overhead due to storing large intermediate tensors during batch processing. The authors note that a lower-level implementation (e.g., written directly in CUDA) would likely mitigate these memory bottlenecks. Finally, evaluating higher-degree hypersurfaces ($M > 1$) on large-scale real-world datasets remains an open avenue for future engineering.
Summary updated