SAT-based Decision Tree Learning for Large Data Sets

André Schidler, Stefan Szeider

Abstract

Decision trees are valued for their interpretability, yet finding minimum-depth trees is an NP-hard problem. This creates a trade-off between scalable but suboptimal heuristics and exact methods that fail on large datasets. This paper introduces DT-SLIM, a hybrid algorithm that scales exact SAT-based optimization to large-scale learning. By iteratively applying a novel partition-based SAT encoding to local subtrees of a heuristically generated tree, DT-SLIM significantly reduces tree depth and improves generalization accuracy on massive real-world datasets.

Introduction

Decision trees are often considered the "gold standard" for interpretable AI. However, their effectiveness depends heavily on their complexity; low-depth trees are easier for humans to understand and less likely to overfit. Finding the absolute minimum-depth tree is computationally intensive, leading to two extremes in the field:

  1. Heuristics (e.g., C4.5, ITI): Fast and scalable but often produce unnecessarily deep, "messy" trees.
  2. Exact Methods (SAT/CSP solvers): Mathematically optimal but limited to tiny datasets (typically <1,000 samples).

DT-SLIM bridges this gap, bringing the power of exact SAT solvers to datasets with tens of thousands of samples by focusing on local refinement rather than global optimization.

Methodology

DT-SLIM (SAT-based Local Improvement) follows a "start fast, then refine" philosophy. The process begins with an initial decision tree generated by a standard heuristic tool like ITI. The algorithm then enters a local improvement loop:

  • Subtree Extraction: It identifies a subtree that is "too deep" and extracts it as a local instance.
  • Weighted Classification: A weighting framework ensures that improving a local subtree actually reduces the global depth of the entire tree, preventing improvements in one branch from negatively impacting others.
  • Partition-based SAT Encoding ($DT_{pb}$): Traditional SAT encodings model complete binary trees, leading to an exponential explosion of variables. DT-SLIM introduces a partition-based encoding that models how groups of samples are split at each level, allowing the solver to handle much deeper, unbalanced trees.
The local improvement process: a subtree is extracted from the initial tree $T$, optimized as instance $I'$ to produce $T''$, and then re-integrated to form the improved global tree $T^*$.

Experimental Results

The authors evaluated DT-SLIM on 37 real-world datasets from the UCI Machine Learning Repository, ranging from 11 to nearly 24,000 samples and up to 2,195 features.

Performance comparison between the ITI heuristic and DT-SLIM, showing significant reductions in tree depth ($d$) and improvements or stability in accuracy ($a$).

Key findings include:

  • Dramatic Depth Reduction: On the "australian" dataset, DT-SLIM reduced tree depth from 53 to 22. On the "objectivity" dataset, depth dropped from 36 to 10.
  • Accuracy Gains: Shallower trees proved to be better classifiers. For the "objectivity" dataset, reducing depth from 36 to 10 increased test accuracy from 55% to 78%, providing empirical evidence for Occam's Razor.
  • Efficiency: The $DT_{pb}$ encoding allowed the researchers to handle local instances of much higher depth than previously possible with exact methods.

Conclusion and Future Work

DT-SLIM demonstrates that hybridization is a powerful path forward for interpretable machine learning. By treating large trees as collections of local optimization problems, near-optimal results can be achieved on massive data.

Future research directions include moving toward Satisfiability Modulo Theories (SMT) encodings. This would allow the algorithm to reason about continuous-valued features directly within the solver, eliminating the potentially lossy preprocessing step of binarization currently required for SAT solvers.

Summary updated

BibTeX
@inproceedings{schidler2021sat,
  author = {André Schidler and Stefan Szeider},
  title = {{SAT-based Decision Tree Learning for Large Data Sets}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16509},
}
Figure