Decision Trees for Decision-Making under the Predict-then-Optimize Framework

Adam N. Elmachtoub, Jason Cheuk Nam Liang, Ryan McNellis

Introduction

In many real-world applications, machine learning (ML) serves as a precursor to complex optimization tasks. For instance, a navigation system first predicts travel times across a network (ML) and then calculates the shortest path (Optimization). Traditionally, these two steps are decoupled: the ML model is trained to minimize a standard prediction error metric, such as Mean Squared Error (MSE), without considering how those predictions will affect the final downstream decision.

This decoupled approach has a significant flaw. A minor prediction error on a critical route might lead to a drastically suboptimal decision, whereas a massive error on a route that would never be chosen is practically irrelevant. The ideal solution is to train the model using a "Smart Predict-then-Optimize" (SPO) loss, which measures the actual cost of a suboptimal decision. However, SPO loss is non-convex and discontinuous, making it notoriously difficult to optimize using standard ML techniques.

To bridge this gap, researchers have introduced SPO Trees (SPOTs), a novel framework for training decision trees that directly minimizes the suboptimality of downstream decisions.

Methodology: SPO Trees and Forests

The core challenge of using SPO loss in decision trees is determining the optimal prediction for a given leaf node. The authors solve this with a critical mathematical shortcut, presented as Theorem 1: for any leaf in a decision tree, the cost vector that minimizes the SPO loss is simply the average of the cost vectors of the training samples falling into that leaf.

An example of a SPOT for a shortest-path problem, illustrating how features map directly to optimal decisions at the leaves.

This insight transforms a complex, non-differentiable optimization problem into a computationally tractable averaging task. Leveraging this, the authors developed two distinct training strategies:

  1. Recursive Partitioning (Greedy): A fast, CART-like algorithm that evaluates potential splits based on the resulting SPO loss rather than traditional variance reduction.
  2. Mixed Integer Linear Programming (MILP): A rigorous approach that formulates the tree-building process as an MILP to find the globally optimal tree for a fixed depth.

Key Insights and Performance

The methodology was rigorously evaluated on both a synthetic shortest-path problem (to test non-linearity and noise) and a real-world Yahoo! Front Page dataset (to maximize article click-through rates under business constraints).

SPOTs demonstrated several major advantages over traditional standard trees:

  • Decision-Focused Splits: Standard trees like CART often waste capacity splitting on features that improve prediction accuracy but do not change the optimal decision. SPOTs ignore these distractions, focusing entirely on features that shift the decision boundary.
  • Interpretability through Simplicity: Because SPOTs are highly efficient with their splits, they achieve high-quality decisions at much lower depths. A shallower tree is significantly easier for human operators to audit and understand.
  • Exceptional Efficiency: In the shortest path experiments, a SPOT of depth 1 (a single split) correctly identified the decision boundary. In contrast, a standard CART model required a depth of 4 to achieve comparable performance.
Comparison of SPOT and CART models. SPOT (a) identifies the correct decision boundary with a single split, while CART (b, c) struggles to match this performance even at higher depths.

Beyond single trees, the authors also introduced SPO Forests (ensembles of SPOTs). Across various experimental settings, SPO Forests reduced decision error by an average of 20.5% compared to standard Random Forests. On the Yahoo! news dataset, even a greedy SPOT of depth 2 achieved better click probabilities than an unrestricted CART model.

Limitations and Future Directions

While SPOTs offer a powerful new paradigm, there are limitations. The MILP approach is computationally expensive and currently restricted to relatively shallow trees. The authors suggest using it primarily as a "solution improvement tool" by warm-starting it with the results of the greedy algorithm.

Furthermore, as training data becomes massive, the performance gap between SPO-based methods and traditional MSE-based methods naturally narrows—a perfectly accurate prediction (zero MSE) will eventually yield the optimal decision regardless of the loss function. Consequently, SPOTs are most valuable in data-constrained environments or scenarios where model interpretability is paramount. Future research may extend these decision-focused objectives to other model architectures, such as neural networks, while preserving the direct link between prediction and optimization.

Summary updated

BibTeX
@inproceedings{elmachtoub2020decision,
  author = {Adam N. Elmachtoub and Jason Cheuk Nam Liang and Ryan McNellis},
  title = {{Decision Trees for Decision-Making under the Predict-then-Optimize Framework}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=Zr71fNEBguQ},
}
Figure