Generalized Optimal Classification Trees: A Mixed-Integer Programming Approach
Jiancheng Tu, Wenqi Fan, Zhibin Wu
TL;DR
This work presents Generalized Optimal Classification Trees, a Mixed-Integer Programming framework that directly optimizes nonlinear, imbalance-aware metrics (such as the $F_β$ score and MCC) for decision trees. It introduces Weighted Flow OCT (WFlowOCT) to reduce problem size via unique data instances and employs a tailored branch-and-cut strategy, instance reduction, and warm-starting to achieve scalability. By linearizing nonlinear metrics with binary expansions and McCormick envelopes, the approach unifies linear and nonlinear objectives and enables direct optimization of metrics beyond accuracy. Empirical results on 50 datasets show superior performance and significantly faster solution times compared with state-of-the-art OCT methods, especially for nonlinear objectives and imbalanced tasks. The framework advances interpretable learning by delivering globally optimal trees that optimize practically relevant metrics while maintaining tractable computation on real-world data.
Abstract
Global optimization of decision trees is a long-standing challenge in combinatorial optimization, yet such models play an important role in interpretable machine learning. Although the problem has been investigated for several decades, only recent advances in discrete optimization have enabled practical algorithms for solving optimal classification tree problems on real-world datasets. Mixed-integer programming (MIP) offers a high degree of modeling flexibility, and we therefore propose a MIP-based framework for learning optimal classification trees under nonlinear performance metrics, such as the F1-score, that explicitly addresses class imbalance. To improve scalability, we develop problem-specific acceleration techniques, including a tailored branch-and-cut algorithm, an instance-reduction scheme, and warm-start strategies. We evaluate the proposed approach on 50 benchmark datasets. The computational results show that the framework can efficiently optimize nonlinear metrics while achieving strong predictive performance and reduced solution times compared with existing methods.
