Optimal Mixed Integer Linear Optimization Trained Multivariate Classification Trees
Brandon Alston, Illya V. Hicks
TL;DR
This work tackles the NP-hard problem of learning optimal multivariate decision trees by formulating two cut-based MILO models that optimize a biobjective objective: maximize correctly classified datapoints and minimize branching complexity, over a tree of depth $h$. The models employ MIS-based path feasibility cuts and shattering inequalities to generate strong cutting planes without resorting to big-$M$ constants, with connectivity constraints added on-the-fly. Compared to existing flow-based MDT formulations and MILO baselines, the proposed CUT-H variant often achieves better solution times and out-of-sample accuracy on 14 UCI datasets, while enabling imbalanced trees. The work extends univariate MDT approaches to the multivariate setting and provides public code to support reproducibility.
Abstract
Multivariate decision trees are powerful machine learning tools for classification and regression that attract many researchers and industry professionals. An optimal binary tree has two types of vertices, (i) branching vertices which have exactly two children and where datapoints are assessed on a set of discrete features and (ii) leaf vertices at which datapoints are given a prediction, and can be obtained by solving a biobjective optimization problem that seeks to (i) maximize the number of correctly classified datapoints and (ii) minimize the number of branching vertices. Branching vertices are linear combinations of training features and therefore can be thought of as hyperplanes. In this paper, we propose two cut-based mixed integer linear optimization (MILO) formulations for designing optimal binary classification trees (leaf vertices assign discrete classes). Our models leverage on-the-fly identification of minimal infeasible subsystems (MISs) from which we derive cutting planes that hold the form of packing constraints. We show theoretical improvements on the strongest flow-based MILO formulation currently in the literature and conduct experiments on publicly available datasets to show our models' ability to scale, strength against traditional branch and bound approaches, and robustness in out-of-sample test performance. Our code and data are available on GitHub.
