Fast linear model trees by PILOT

Jakob Raymaekers, Peter J. Rousseeuw, Tim Verdonck, Ruicong Yao · DOI

TL;DR

PILOT (PIecewise Linear Organic Tree) is a new regression tree algorithm that fits linear models in its leaves without the massive computational overhead or overfitting issues of previous methods. It matches the speed of the classic CART algorithm while providing better accuracy on linear data and maintaining the interpretability that makes decision trees so popular.

What Problem Does This Paper Address?

Standard decision trees (like CART or C4.5) are the workhorses of machine learning because they are fast and easy to visualize. However, they have a fundamental flaw: they are piecewise constant. To approximate a simple straight line, a standard tree has to create a "staircase" of many splits, which is inefficient and often inaccurate.

While "linear model trees"—trees that put linear regressions in the leaf nodes—have existed since the late 70s (e.g., M5, GUIDE), they haven't seen widespread adoption. Why?

  1. Computational Cost: Most existing versions are slow, often scaling poorly with the number of predictors ($p^2$ or $p^3$).
  2. Overfitting: They are prone to "exploding" predictions when encountering data slightly outside the training range (extrapolation issues).
  3. Lack of Theory: Many of these algorithms are heuristic-based and lack formal proofs of consistency.

Methods

The authors introduce PILOT, which stands for PIecewise Linear Organic Tree. The "organic" label refers to the fact that the tree is grown to the right size from the start using internal regularization, rather than being grown large and then "pruned" back.

Key technical innovations include:

  • Five-Model Selection: At every node, PILOT evaluates five different ways to fit the data: Constant (CON), Linear (LIN), Piecewise Constant (PCON), Broken Linear (BLIN - continuous), and Piecewise Linear (PLIN - discontinuous).
  • BIC Regularization: To choose between these five models without overfitting, PILOT uses the Bayesian Information Criterion (BIC). This penalizes more complex models (like PLIN) unless they provide a significant boost in accuracy.
  • $L^2$ Boosting Connection: If the algorithm chooses a series of LIN fits in the same node, it effectively performs $L^2$ boosting, which is known for its efficiency in high-dimensional spaces.
  • Dual Truncation: To solve the "exploding prediction" problem, PILOT applies two truncation rules. One limits the prediction range based on the training response, and the other prevents extreme extrapolations when test features fall outside the training feature range.

Datasets

The researchers evaluated PILOT against 20 diverse benchmark datasets ranging from 71 to over 21,000 cases, and 6 to over 4,000 predictors. Sources included:

  • UCI Repository: Abalone, Airfoil, Bike, Communities, Concrete, Diabetes, Electricity, Energy, Residential, Skills, Superconductor, Temperature, and Wine.
  • Kaggle: Graduate Admission, Bodyfat, Boston Housing, and Walmart.
  • StatLib: California Housing.
  • R-packages: Ozone (hdi) and Riboflavin (missMDA).

Key Insights and Ideas

  • Speed Parity with CART: One of the most impressive feats is that PILOT maintains a time complexity of $O(np)$ per level. By using rank-one updates for the Gram and moment matrices, it evaluates linear splits as quickly as CART evaluates constant ones.
  • The "Organic" Advantage: By using BIC to stop growth naturally, PILOT avoids the time-consuming cross-validation steps required for pruning in traditional trees.
  • Theoretical Grounding: Unlike many of its predecessors, PILOT comes with a proof of universal consistency. The authors demonstrate that as you get more data, the model is guaranteed to converge to the true underlying function.
  • Stability is Key: The paper highlights that linear model trees often fail in the real world not because they are "wrong," but because they are "unstable." The dual truncation method is a simple but vital "safety rail" for linear models.

Key Results

In head-to-head comparisons using Mean Squared Error (MSE) ratios:

  • Superiority: PILOT outperformed the classic FRIED algorithm in 16 out of 19 datasets and beat standard CART in 17 out of 20.
  • Robustness: On the "Residential" dataset, the older FRIED algorithm had a massive error due to extrapolation; PILOT’s truncation kept it stable and accurate.
  • High-Dimensional Performance: On the "Riboflavin" dataset (78 cases, 4088 predictors), PILOT significantly outperformed other tree methods, behaving more like a Lasso or Ridge regression, which is ideal for that data structure.
  • Overall: PILOT achieved the best average score across all 20 datasets with the lowest standard deviation, marking it as a highly reliable "all-rounder."

Limitations and Future Work

The authors noted that PILOT struggled on the Airfoil dataset. This specific data has a highly complex, non-linear structure where standard tree-based ensembles (like Random Forests) usually dominate. Because PILOT is a single tree, it can still be limited by the inherent "greediness" of the top-down split approach.

Future Directions: The most exciting next step mentioned is integrating PILOT trees as "base learners" in ensembles. Imagine a Random Forest or an XGBoost-style gradient booster where every individual tree is a PILOT tree. This could potentially combine the high-level accuracy of boosting with the local linear efficiency of PILOT.

Summary updated

BibTeX
@article{raymaekers2024fast,
  author = {Jakob Raymaekers and Peter J. Rousseeuw and Tim Verdonck and Ruicong Yao},
  title = {{Fast linear model trees by PILOT}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-024-06590-3},
}
Figure