Abstract
Random Forests (RF) are powerful non-parametric tools, but they fundamentally struggle with extrapolation because their predictions are mathematically bounded by the range of the training data. This paper introduces Regression-Enhanced Random Forests (RERFs), a hybrid approach that combines penalized parametric regression (Lasso) with RFs to capture global trends and local non-linearities simultaneously, significantly improving performance in out-of-domain prediction tasks.
The Problem: The "Convex Hull" Limitation
While Random Forests are a "gold standard" for many machine learning tasks, they have two major Achilles' heels:
- Extrapolation Failure: Because an RF prediction is essentially a weighted average of observed training responses, it can never predict a value smaller than the minimum or larger than the maximum of its training set. If a target variable hits an all-time high or low, a standard RF will always undershoot.
- Ignoring Prior Knowledge: RFs are fully non-parametric. If a researcher knows that a relationship is roughly linear or follows a specific physical law, a standard RF has no way to "hard-code" that insight, often requiring massive amounts of data to learn what a simple regression could capture instantly.
The authors aim to bridge the gap between the interpretability/extrapolation of parametric models and the flexible "black-box" power of non-parametric forests.
Methods: The RERF Framework
The authors propose a two-stage algorithm called Regression-Enhanced Random Forests (RERF):
- The Global Model (Lasso): First, a Lasso regression is fit to the data to capture the "global trend"—linear relationships and main effects. Lasso is chosen for its automatic variable selection, keeping the model parsimonious.
- The Residual Model (RF): The algorithm then calculates the residuals (the errors) from the Lasso model. A Random Forest is trained specifically to predict these residuals, tasked with learning only the complex, non-linear interactions that the linear model missed.
- The Hybrid Prediction: The final prediction is the sum of the Lasso prediction and the RF residual prediction: $$\hat{Y}(X_0) = X_0\hat{\beta}_{\lambda} + T_{m,s}(X_0)$$
By adjusting the Lasso penalty ($\lambda$), the algorithm can decide how much "work" the linear model should do versus the forest. If $\lambda$ is very large, the model effectively reverts to a standard Random Forest.
Key Results and Validation
The authors validated RERF using simulated data (testing linear extrapolation), concrete strength datasets (testing non-linear interactions), and Iowa corn yield forecasting (testing temporal trends).
Extrapolation Superiority
In simulated extrapolation scenarios, RERFs far outperformed standard RFs. As shown in the figure above, while the RF error spikes dramatically as the predictor $Z$ moves outside the training range ($Z > 0.8$), the RERF error remains flat and low. By modeling the residuals, the RF is no longer bound by the original response range; the Lasso component provides the "slope" that allows the prediction to head into uncharted territory.
Performance Benchmarks
Across multiple scenarios—including interpolation (I) and extrapolation (E)—RERFs consistently exhibited lower Root Mean Square Error (RMSE) than both standalone Lasso and standard RFs.
In real-world applications like corn yield forecasting, standard RFs were outperformed by simple multivariate linear regression due to the strong upward temporal trend in yields. RERFs corrected this, providing the best predictive performance by accounting for both the long-term technological trend (linear) and complex weather interactions (forest).
Conclusion
RERFs represent a significant step forward in making non-parametric models more robust for real-world forecasting. By treating residuals as unstructured information that a forest is uniquely qualified to organize, the framework breaks the "convex hull" limitation of traditional ensemble methods. Future work will focus on reducing the computational intensity of the 3D grid search required for tuning and extending the hybrid approach to classification tasks.
Summary updated