Abstract
This paper introduces novel, "tight" mixed-integer optimization (MIO) formulations for embedding decision trees and random forests into larger optimization problems. By mathematically reducing the number of fractional solutions the solver must navigate, the authors achieve solve times 3–4x faster than previous methods while providing significantly stronger dual bounds.
Introduction
In the field of prescriptive analytics, the goal is to move beyond simple prediction to optimal decision-making. For instance, a retailer might use a random forest to predict demand based on price and then seek the specific price point that maximizes total profit. To achieve this, trained machine learning models like decision trees must be translated into a Mixed-Integer Optimization (MIO) framework.
The Challenge of Tightness
The primary hurdle in this translation is "tightness." Most existing MIO formulations for trees are "loose," meaning their linear relaxations (where integer variables are allowed to take fractional values) contain many fractional extreme points. This forces solvers to explore an exponentially large "branch-and-bound" tree, leading to slow performance or failure on complex models. The authors aim for "ideal" formulations, where the continuous relaxation naturally leads to integer solutions, significantly streamlining the optimization process.
Proposed Methodologies
The authors propose three primary ways to tighten tree formulations:
- Projected Union of Polyhedra (
projected): This formulation is derived by taking a high-dimensional "ideal" representation of a tree and projecting it into a more manageable space. The authors prove this formulation is ideal for any single decision tree, regardless of the number of features. - Expanded Sets (
expset): This method exploits the ordered structure of feature thresholds. It allows the solver to "turn off" entire groups of leaves simultaneously when a split condition isn't met, proving ideal for tree ensembles with one-dimensional inputs. - Nested Split Cuts (
elbow): This approach adds specific constraints to handle "nested" branches (e.g., checking if $x \le 5$ and then $x \le 2$ on the same path). These cuts remove fractional points that frequently impede standard solvers.
Key Results and Insights
The discovery that a single tree can be represented ideally with only $2d + 2$ constraints (where $d$ is the number of features) represents a major efficiency gain. In practical evaluations using synthetic data and real-world benchmarks like the Concrete and Wine Quality datasets, the results were significant:
- Speedup: The
projectedformulation was consistently 3 to 4 times faster than the previous state-of-the-art (Mišić, 2020). - Constraint Efficiency: For a forest with 8 trees of depth 8, the
projectedmethod used only 88 constraints, compared to 4,546 for the standard approach and over 1.8 million for the theoretically tight but practically unusable multilinear approach. - Stronger Bounds: The new formulations provided significantly tighter dual bounds, which are critical for verifying the robustness and optimality of machine learning-driven decisions.
Conclusion
While the projected formulation is ideal for a single tree, finding a formulation that is ideal for a full forest remains an open challenge. Current methods rely on axis-aligned splits and cannot yet be applied to oblique trees. Future work may combine these tight constraints with logarithmic encoding to further boost performance on massive datasets.
Summary updated