A Powerful Random Forest Featuring Linear Extensions (RaFFLE)

Jakob Raymaekers, Peter J. Rousseeuw, Thomas Servotte, Tim Verdonck, Ruicong YaoarXiv 2025 · DOI

Abstract

RaFFLE (Random Forest Featuring Linear Extensions) is a novel ensemble regression method that addresses the limitations of standard Random Forests by replacing piecewise constant CART trees with piecewise linear PILOT trees. By incorporating local linear models and optimizing for ensemble diversity through adjusted regularization, RaFFLE achieves state-of-the-art performance. Across a benchmark of 136 regression datasets, RaFFLE consistently outperforms XGBoost and standard Random Forests, demonstrating particular efficiency on data with underlying linear structures while remaining robust to non-linearities.

Introduction

Traditional Random Forests (RF) utilize Classification and Regression Trees (CART) as their fundamental building blocks. A significant drawback of CART is its piecewise constant nature. These trees approximate functions using a series of discrete "steps," which is inherently inefficient for modeling smooth, linear relationships. To approximate even a simple straight line, a standard RF requires excessively deep trees with numerous splits, leading to increased computational costs and potential variance issues.

Standard CART trees use piecewise constant approximations.

RaFFLE aims to bridge the gap between the structural flexibility of decision trees and the local accuracy of linear models, creating a forest that is as expressive as a linear model yet as robust as a standard RF.

Methodology: The PILOT Tree

The innovation of RaFFLE lies in the integration of PILOT trees (Piecewise Linear Organic Trees) into the ensemble framework. Unlike CART, which only considers a constant fit at each node, PILOT evaluates a broader spectrum of models to find the best local fit.

Model Selection at the Node Level

At every split, PILOT considers five distinct model types: constant, univariate linear, piecewise constant, broken line, and piecewise linear. The selection is governed by the Bayesian Information Criterion (BIC), which naturally balances model complexity and fit, eliminating the need for post-hoc pruning.

PILOT evaluates five different model types at each node.

Adapting for Ensembles

To optimize PILOT for use within a Random Forest, several modifications were implemented:

  • Adjustable Regularization ($\alpha$): While individual PILOT trees are designed to avoid overfitting, Random Forests thrive on diverse, high-variance base learners. By introducing a tuning parameter $\alpha$ to the BIC formula, the authors "weaken" the regularization, allowing trees to overfit slightly to improve the overall ensemble performance.
  • Efficiency Gains: The "broken line" (BLIN) model was disabled in the forest implementation to speed up training without significant loss in predictive power.
  • Diversity via Sampling: Standard RF techniques, such as random feature selection at each node, are maintained to ensure tree diversity.

Empirical Results

RaFFLE was evaluated against 136 regression datasets from the UCI and PMLB repositories.

Benchmark Performance

RaFFLE achieved an average relative $R^2$ of 0.99, significantly outperforming standard Random Forests (0.92) and XGBoost (0.90). A "default" version, dRaFFLE, which uses fixed hyperparameters, also proved highly effective, scoring 0.96 and surpassing tuned versions of competing algorithms.

Efficiency on Linear Data

On simulated linear tasks, RaFFLE demonstrated "fast convergence," reaching 99% of optimal Ordinary Least Squares (OLS) accuracy with significantly less data than required by standard trees or gradient boosting methods.

Conclusion and Future Work

RaFFLE represents a significant advancement in ensemble learning, providing a robust "default" model for regression tasks. It effectively defaults to standard tree structures for non-linear data while exploiting linear shortcuts when available. Future research will focus on extending this piecewise linear logic to classification tasks and developing interpretability measures tailored to the ensemble's unique structure.

Summary updated

BibTeX
@misc{raymaekers2025powerful,
  author = {Jakob Raymaekers and Peter J. Rousseeuw and Thomas Servotte and Tim Verdonck and Ruicong Yao},
  title = {{A Powerful Random Forest Featuring Linear Extensions (RaFFLE)}},
  year = {2025},
  eprint = {2502.10185},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10185},
}
Figure