Learning Optimal Decision Trees with MaxSAT and its Integration in AdaBoost

Hao Hu, Mohamed Siala, Emmanuel Hebrard, Marie-José Huguet

Introduction

Decision trees are widely used in machine learning due to their inherent interpretability. However, finding the optimal decision tree is a computationally hard problem. Traditional approaches rely on greedy heuristics like CART or C4.5, which are efficient but often produce sub-optimal structures. Recent research has explored using Boolean Satisfiability (SAT) solvers to find mathematically optimal trees. While promising, these SAT-based methods suffer from two primary issues: overfitting, due to the requirement of 100% training accuracy, and poor scalability, as the resulting logic formulas become prohibitively large for complex datasets.

This paper proposes a novel framework that transitions from standard SAT to Maximum Satisfiability (MaxSAT). By incorporating "soft" constraints, the model can optimize for accuracy while simultaneously controlling for tree size and depth, effectively addressing the limitations of previous exact methods.

Methodology: From SAT to MaxSAT

The core innovation lies in a Weighted Partial MaxSAT formulation. Unlike standard SAT, where all clauses must be satisfied, MaxSAT distinguishes between "hard" and "soft" clauses.

  • Hard Clauses: These define the fundamental structure of the binary tree, ensuring logical consistency.
  • Soft Clauses: Each training example's correct classification is represented as a soft clause. The solver aims to satisfy as many of these as possible, effectively maximizing training accuracy.

This formulation allows for flexible objectives, enabling users to optimize a linear combination of accuracy, tree size, and depth. Furthermore, the authors integrate this MaxSAT learner into the AdaBoost ensemble algorithm. By discretizing the continuous weights from AdaBoost and applying them to the soft clauses, the MaxSAT solver can prioritize "difficult" examples in successive boosting iterations.

Experimental Insights

A key insight of this work is that relaxing the requirement for perfect training accuracy actually improves tractability. Smaller, more generalized trees result in smaller logic formulas, allowing the solver to handle larger datasets than previous SAT-based approaches.

Figure 3: Testing accuracy trends showing the overfitting plateau as tree size increases.

As illustrated in the testing accuracy trends, forcing a tree to be overly complex to fit training data often leads to a performance plateau or decline on unseen data. The MaxSAT approach allows practitioners to find the optimal balance between complexity and generalization.

Results and Discussion

The authors evaluated their approach on 14 benchmark datasets from the CP4IM repository. The results demonstrate that the MaxSAT model, denoted as DT(max), achieves testing accuracies competitive with state-of-the-art heuristics and other exact methods like DL8.5.

Figure 4: Comprehensive comparison of testing and training accuracy across various datasets and tree depths.

Key findings include:

  • Optimality: The MaxSAT solver frequently found provably optimal trees within a 15-minute timeout.
  • Memory Stability: Unlike DL8.5, which often ran out of memory on deeper trees due to extensive caching, the MaxSAT model remained stable within a 16GB RAM limit.
  • Boosting Performance: Integrating MaxSAT into AdaBoost significantly enhanced training accuracy and generalized well, often matching or exceeding the performance of boosted CART models.

Conclusion and Future Work

While MaxSAT offers a robust path to optimal decision trees, it remains computationally more expensive than greedy heuristics. Future research directions include using heuristic guidance (e.g., information gain) to accelerate the solver's search and exploring the integration of exact learners into other ensemble frameworks like Random Forests.

Summary updated

BibTeX
@inproceedings{hu2020learning,
  author = {Hao Hu and Mohamed Siala and Emmanuel Hebrard and Marie-José Huguet},
  title = {{Learning Optimal Decision Trees with MaxSAT and its Integration in AdaBoost}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/163},
}
Figure