Skip to main content
QUICK REVIEW

[Paper Review] Optimization of Tree Ensembles

Velibor V. Mišić|arXiv (Cornell University)|May 30, 2017
Advanced Multi-Objective Optimization AlgorithmsComputer Science5 citations
TL;DR

This paper proposes a mixed-integer optimization (MIO) framework to solve the tree ensemble optimization problem, where controllable input variables are set to maximize predictions from random forests or boosted trees. The method uses a tight MIO formulation, Benders decomposition, and iterative split constraint generation to efficiently find near-optimal solutions, outperforming heuristics in drug design and pricing case studies with sub-1% optimality gaps.

ABSTRACT

Tree ensemble models such as random forests and boosted trees are among the most widely used and practically successful predictive models in applied machine learning and business analytics. Although such models have been used to make predictions based on exogenous, uncontrollable independent variables, they are increasingly being used to make predictions where the independent variables are controllable and are also decision variables. In this paper, we study the problem of tree ensemble optimization: given a tree ensemble that predicts some dependent variable using controllable independent variables, how should we set these variables so as to maximize the predicted value? We formulate the problem as a mixed-integer optimization problem. We theoretically examine the strength of our formulation, provide a hierarchy of approximate formulations with bounds on approximation quality and exploit the structure of the problem to develop two large-scale solution methods, one based on Benders decomposition and one based on iteratively generating tree split constraints. We test our methodology on real data sets, including two case studies in drug design and customized pricing, and show that our methodology can efficiently solve large-scale instances to near or full optimality, and outperforms solutions obtained by heuristic approaches. In our drug design case, we show how our approach can identify compounds that efficiently trade-off predicted performance and novelty with respect to existing, known compounds. In our customized pricing case, we show how our approach can efficiently determine optimal store-level prices under a random forest model that delivers excellent predictive accuracy.

Motivation & Objective

  • To address the challenge of optimizing tree ensemble models when input variables are controllable decision variables, not just exogenous predictors.
  • To develop a rigorous mathematical formulation that captures the piecewise-constant nature of tree predictions in a way amenable to optimization.
  • To design scalable solution methods—Benders decomposition and iterative split constraint generation—capable of handling large-scale tree ensembles.
  • To empirically validate the approach on real-world data, including drug design and customized pricing, demonstrating superior performance over heuristic alternatives.
  • To establish theoretical bounds on approximation quality through depth-based truncation of the MIO formulation.

Proposed method

  • Formulates tree ensemble optimization as a mixed-integer optimization (MIO) problem, modeling each tree’s decision path via binary variables and logical constraints.
  • Introduces a strong MIO formulation that tightly models the mapping of input variables to tree leaves, ensuring high solution quality.
  • Proposes a hierarchy of approximate formulations using depth-based truncation, with provable bounds on approximation error.
  • Develops a Benders decomposition-based algorithm to decompose the problem and solve large instances efficiently.
  • Designs an iterative split constraint generation method that dynamically adds constraints based on tree splits, improving convergence.
  • Employs proximity constraints to ensure solutions are sufficiently different from training data points, enhancing practical novelty.

Experimental results

Research questions

  • RQ1Can a mixed-integer optimization formulation effectively model the piecewise-constant prediction function of tree ensembles for decision optimization?
  • RQ2How does the proposed MIO formulation compare in strength and solution quality to alternative formulations?
  • RQ3To what extent can approximation hierarchies based on tree depth bound the optimality gap while reducing computational complexity?
  • RQ4Can decomposition and constraint generation methods scale to large tree ensembles in real-world applications?
  • RQ5How does the MIO-based optimization compare to heuristic methods in terms of objective value and solution diversity in practice?

Key findings

  • The proposed MIO formulation consistently achieves near-optimal solutions, with a maximum optimality gap of only 0.12% across tested instances.
  • In the drug design case study, the MIO approach found molecules with a maximum proximity of 0.01 to training data, achieving 93% of the best possible objective value.
  • For the customized pricing case study, the MIO-optimized prices achieved significantly higher out-of-sample R² (indicating better predictive accuracy) than hierarchical Bayesian models.
  • The MIO solutions were less extreme than heuristic-based prices, with fewer products set to the highest or lowest allowable price across the store chain.
  • The Benders decomposition and split constraint generation methods enabled efficient solution of large-scale instances, solving problems in seconds to minutes.
  • The MIO approach dominated heuristic solutions in both objective value and proximity to training data, with heuristic solutions achieving only 90–94% of the optimal objective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.