BooleanOCT: Optimal Classification Trees based on multivariate Boolean Rules

Jiancheng Tu, Wenqi Fan, Zhibin WuarXiv 2024 · DOI

Introduction

In high-stakes domains such as healthcare, finance, and the judiciary, the interpretability of machine learning models is as critical as their predictive accuracy. While "black-box" models like Random Forests and Deep Neural Networks often achieve superior performance, their opaque decision-making processes can hinder trust and adoption. Conversely, traditional decision trees (e.g., CART) offer high interpretability but frequently suffer from an "accuracy gap" due to their greedy construction and univariate splitting constraints.

BooleanOCT is a novel optimization framework designed to bridge this gap. By leveraging Mixed-Integer Programming (MIP), it constructs "Optimal Classification Trees" that utilize multivariate Boolean rules. This approach allows nodes to consider multiple features simultaneously, resulting in shallower, more accurate, and highly interpretable models that, for the first time, consistently outperform ensemble methods on small-to-medium datasets.

Addressing the Limitations of Traditional Trees

The authors identify three primary weaknesses in existing decision tree methodologies:

  1. Suboptimality: Algorithms like CART build trees "greedily" by making the best local split at each node. This often fails to find the globally optimal tree structure.
  2. Univariate Constraints: Standard trees split on a single feature (e.g., "Is Age < 30?"). This leads to deep trees that may overfit or redundantly repeat logic across different branches—a phenomenon known as the "replicated subtree" problem.
  3. Metric Rigidity: Most optimal tree methods are hard-coded to minimize misclassification error, making them unsuitable for imbalanced datasets where F1-score or balanced accuracy are more appropriate metrics.

Methodology: The BooleanOCT Framework

BooleanOCT addresses these issues by formulating tree construction as a global optimization problem. The core innovation is the multivariate Boolean rule. Instead of a simple threshold on one variable, a BooleanOCT node evaluates a combination of binary features.

Example of a BooleanOCT tree with multivariate Boolean rules.

As shown in the figure above, a node might ask whether a sum of binary features meets a certain threshold (e.g., $f_3 + f_4 + f_5 \le 1$). This allows a single node to capture complex interactions that would require multiple levels in a univariate tree.

Optimization and Flexibility

BooleanOCT uses a solver (such as Gurobi) to optimize the entire tree structure simultaneously. The framework is remarkably flexible:

  • Diverse Objectives: It can optimize for standard accuracy, Balanced Accuracy, and even nonlinear metrics like the F1-score using Mixed-Integer Quadratically Constrained Programming (MIQCP).
  • Complexity Control: A hyperparameter ($\alpha$) enables a trade-off between accuracy and the number of features used, ensuring the model remains human-readable.
  • Pre-processing: Continuous features are transformed into binary features using supervised discretization (MDLP) before training.

Experimental Results

The researchers benchmarked BooleanOCT against 36 real-world datasets from the UCI repository, ranging from small-scale (e.g., Breast Cancer) to large-scale (e.g., COMPAS).

Performance Gains

BooleanOCT demonstrated a significant performance leap over state-of-the-art methods:

  • Outperforming Ensembles: On small-scale datasets, BooleanOCT achieved an average absolute accuracy improvement of 3.1% over Random Forests. On medium-scale datasets, it maintained a 1.5% lead.
  • Superiority over CART: Compared to traditional CART, BooleanOCT improved accuracy by 7.6% on small datasets and 3.5% on medium ones.
  • Handling Imbalance: In scenarios targeting F1-score and Balanced Accuracy, BooleanOCT consistently outperformed other modern optimal tree competitors like FlowOCT and StreeD.

Interpretability in Practice

A key advantage of BooleanOCT is its ability to produce concise rules for complex real-world logic. For instance, consider the requirements for professorial titles shown below.

Real-world criteria for professorial titles, which can be modeled as multivariate Boolean rules.

While a univariate tree would struggle to represent "meet at least two of these three achievements" without significant depth, BooleanOCT can represent this logic in a single node. This "depth efficiency" ensures that a BooleanOCT tree of depth 2 can often match the logic of a univariate tree of depth 4, making it much easier for humans to audit.

Conclusion and Future Work

BooleanOCT represents a significant step forward in interpretable machine learning. By combining global optimization with multivariate Boolean rules, it eliminates the "accuracy gap" for small-to-medium datasets without sacrificing transparency.

However, the computational complexity of Mixed-Integer Programming remains a challenge. Finding the mathematically optimal tree is NP-hard, and while BooleanOCT handles medium datasets efficiently, scaling to very large datasets with high depth requires further innovation. Future research will focus on more efficient optimization techniques, such as Benders decomposition or column generation, and extending the framework to support multi-way splits.

Summary updated

BibTeX
@misc{tu2024booleanoct,
  author = {Jiancheng Tu and Wenqi Fan and Zhibin Wu},
  title = {{BooleanOCT: Optimal Classification Trees based on multivariate Boolean Rules}},
  year = {2024},
  eprint = {2401.16133},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.16133},
}
Figure