TL;DR
This paper introduces a novel flow-based mixed-integer optimization (MIO) formulation to build provably optimal classification trees. By treating correctly classified data as "flow" through a network and using a tailored Benders' decomposition, the authors achieve up to a 51x speedup over existing MIO methods while significantly improving predictive accuracy.
What Problem Does This Paper Address?
Decision trees are a staple of interpretable machine learning, but finding the truly "optimal" tree is an NP-hard problem. For decades, we have relied on greedy heuristics like CART or ID3. While fast, these heuristics often produce suboptimal trees that are larger and less accurate than they could be.
Recently, researchers have turned to Mixed-Integer Optimization (MIO) to find global optima. However, existing MIO models often rely on "big-M" constraints—mathematical structures that result in "weak" linear relaxations. In solver terms, this means the computer has a hard time proving that a specific branch of the search space is bad, leading to slow convergence and massive memory consumption. The authors aim to bridge this gap by creating a "strong" formulation that leverages the full power of modern optimization solvers.
Methods
The core innovation is a flow-based formulation. The authors represent a decision tree as a directed acyclic graph. In this model, a correctly classified datapoint is viewed as a unit of "flow" traveling from a source (the root) to a sink (a leaf with a matching label). If a point is misclassified, its flow is zero.
To solve this efficiently, they use Benders’ Decomposition. This technique splits the problem into:
- A Master Problem: Decides the tree structure (which features to split on at which nodes).
- Subproblems: For a fixed tree, determines the maximum flow (correct classifications) for each datapoint.
The "secret sauce" is their tailored min-cut procedure. Instead of using a generic solver for the subproblems, they developed a custom algorithm based on depth-first search. This algorithm is guaranteed to generate "facet-defining cuts"—the strongest possible linear inequalities—which are added back to the master problem to prune the search space aggressively.
Datasets
The authors evaluated their approach on two main groups of benchmark datasets from the UCI repository:
- 12 Categorical Datasets: Including well-known sets like Monk’s problems, Tic-Tac-Toe, and Car Evaluation.
- 28 Mixed-Feature Datasets: Including Iris, Wine, and Diabetes. For these, continuous features were discretized into buckets (quantiles) to fit the binary branching model.
Key Insights and Ideas
- Strength over Size: While the new formulation has more variables than some previous models, its linear relaxation is mathematically "stronger." This allows solvers to discard huge portions of the search tree early, making it much faster in practice.
- The Power of Zero Flow: By modeling misclassified points as having zero flow, the formulation becomes more compact and avoids the numerical instabilities associated with "big-M" constraints.
- Fairness by Design: Because the model tracks the flow of every individual datapoint, it is easy to add side constraints. The authors demonstrate how to incorporate fairness metrics like Statistical Parity or Equalized Odds directly into the optimization.
- Imbalanced Data Handling: The model can be adjusted to maximize "Balanced Accuracy" or "Worst-Case Accuracy" by simply adding multiple sink nodes (one per class), ensuring the tree doesn't just ignore minority classes to boost overall accuracy.
Key Results
- Massive Speedups: On categorical datasets, the proposed method (BendersOCT) was 29 times faster for balanced trees and 51 times faster for imbalanced trees compared to state-of-the-art MIO methods like OCT.
- Better Accuracy: The method improved out-of-sample accuracy by up to 8% on categorical data and up to 36% in specific instances compared to previous MIO benchmarks.
- Robustness: On mixed-feature datasets, the new method avoided the numerical issues that caused standard OCT to report incorrect accuracy levels in over 50% of tested instances.
- Efficiency: The flow-based approach explored significantly fewer nodes in the branch-and-bound tree—sometimes 98% fewer than competing methods.
Limitations and Future Work
Despite the speedups, the problem remains NP-hard. For very large datasets (e.g., kr-vs-kp with >3,000 points) at high tree depths (depth 5), the solver still struggles to reach a 0% optimality gap within an hour.
Additionally, the current model requires continuous features to be discretized beforehand. While the authors found that coarse discretization (5-10 buckets) actually acts as a helpful form of regularization, a version that handles continuous splits natively without losing "strength" is a potential area for future research. The authors also suggest extending this framework to prescriptive trees (for decision-making) and robust optimization.
Summary updated