Learning Small Decision Trees for Data of Low Rank-Width

Konrad K. Dabrowski, Eduard Eiben, Sebastian Ordyniak, Giacomo Paesani, Stefan Szeider

Abstract

Finding the minimum-size decision tree that perfectly classifies a dataset is a fundamental problem in interpretable machine learning, known to be NP-hard. This paper presents a novel algorithm that achieves fixed-parameter tractability (FPT) by leveraging the structural complexity of the data, specifically the rank-width of its incidence graph. By employing dynamic programming over graph decompositions and utilizing succinct representations of partial decision trees, the authors demonstrate that the optimal tree can be found efficiently for datasets with low rank-width.

Introduction

Decision trees are cornerstone models in "Explainable AI" due to their inherent transparency. Adhering to Occam’s Razor, smaller trees are preferred as they are more interpretable and less prone to overfitting. However, the optimization problem—finding the smallest decision tree consistent with a given training set—is NP-complete. Standard heuristic approaches like CART or C4.5 prioritize local gains and do not guarantee global optimality.

This research shifts the focus from general-case hardness to parameterized complexity. By identifying structural parameters that make the problem tractable, the authors provide a pathway to finding globally optimal trees for specific classes of data.

Problem Formulation and Methodology

The core of the proposed approach lies in representing the dataset as an incidence graph. In this bipartite graph, one set of vertices represents individual examples ($E$), and the other represents features ($f$). An edge exists between an example and a feature if that feature is active (e.g., value 1) for that example.

Relationship between data table, decision tree, and incidence graph.

The algorithm utilizes the concept of rank-width, a measure of how easily a graph can be decomposed into a tree-like structure. The methodology involves:

  • Graph Decomposition: Constructing an NLC-expression tree for the incidence graph.
  • Dynamic Programming (DP): Processing the decomposition tree bottom-up.
  • Succinct Representations: To manage the exponential state space, the authors introduce "DT templates" and "DT skeletons." These abstractions group equivalent partial solutions, allowing the algorithm to prune the search space effectively.
  • Reductions: Novel contraction operations are used to simplify partial trees by identifying and removing redundant nodes that do not impact classification logic.

Key Theoretical Insights

A significant contribution of this work is the identification of rank-width as a robust parameter. Unlike previous metrics, rank-width is "renamable-invariant"—it remains unchanged if the values of a feature are flipped (0 to 1 and vice versa), mirroring the invariance of the optimal decision tree size under such transformations.

Furthermore, the paper introduces the use of placeholders for "novel" features. By treating unprocessed features as identical until they are integrated into the DP state, the authors bound the number of states required, a critical step in proving fixed-parameter tractability.

Results

The primary result is a formal proof that finding the smallest decision tree is Fixed-Parameter Tractable (FPT) when parameterized by the rank-width ($k$) of the incidence graph.

Main Theorem: Given a dataset with $n$ examples and $m$ features, if the incidence graph has rank-width $k$, the smallest decision tree can be found in time $f(k) \cdot \text{poly}(n, m)$.

While the constant factors $f(k)$ are theoretically large, the linear/polynomial scaling with respect to the dataset size marks a significant theoretical advancement over brute-force search. The paper also establishes a hierarchy of graph properties, showing that rank-width is a more general and powerful parameter than alternatives like treewidth for this specific problem.

Limitations and Future Directions

The current framework is restricted to Boolean features. Extending these results to categorical or continuous data is a primary area for future work. Additionally, while this paper focuses on tree size (total nodes), many applications prioritize tree depth. Adapting the DP approach to optimize for depth is another promising research path. Finally, practical implementation will require significant engineering to handle the large constants associated with FPT algorithms, potentially through hybrid approaches with modern heuristic solvers.

Conclusion

By bridging graph theory and machine learning optimization, this work provides a rigorous theoretical foundation for learning optimal decision trees. The use of rank-width offers a sophisticated lens through which the inherent complexity of data can be understood and exploited to achieve interpretability without sacrificing optimality.

Summary updated

BibTeX
@inproceedings{dabrowski2024learning,
  author = {Konrad K. Dabrowski and Eduard Eiben and Sebastian Ordyniak and Giacomo Paesani and Stefan Szeider},
  title = {{Learning Small Decision Trees for Data of Low Rank-Width}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i9.28916},
}
Figure