Skip to main content
QUICK REVIEW

[Paper Review] LinXGBoost: Extension of XGBoost to Generalized Local Linear Models

Laurent de Vito|arXiv (Cornell University)|Oct 10, 2017
Gaussian Processes and Bayesian InferenceComputer Science11 references5 citations
TL;DR

LinXGBoost extends XGBoost by replacing piecewise constant predictions with local linear models at tree leaves, enabling better regression of functions with discontinuities or varying smoothness. Experiments show it achieves comparable or better performance than XGBoost with far fewer trees—often under five—especially in low-dimensional settings.

ABSTRACT

XGBoost is often presented as the algorithm that wins every ML competition. Surprisingly, this is true even though predictions are piecewise constant. This might be justified in high dimensional input spaces, but when the number of features is low, a piecewise linear model is likely to perform better. XGBoost was extended into LinXGBoost that stores at each leaf a linear model. This extension, equivalent to piecewise regularized least-squares, is particularly attractive for regression of functions that exhibits jumps or discontinuities. Those functions are notoriously hard to regress. Our extension is compared to the vanilla XGBoost and Random Forest in experiments on both synthetic and real-world data sets.

Motivation & Objective

  • Address the limitation of XGBoost’s piecewise constant predictions in low-dimensional input spaces where piecewise linear models are more appropriate.
  • Improve regression performance for functions with jumps or discontinuities, which are difficult to model with standard XGBoost.
  • Enable better modeling of input-dependent smoothness by using local linear approximations instead of fixed-bandwidth or global models.
  • Demonstrate that fewer trees are needed in LinXGBoost compared to XGBoost to achieve similar or better predictive accuracy.
  • Provide a lightweight, interpretable implementation of the extended model for research and practical use in regression tasks.

Proposed method

  • Replace the constant leaf values in XGBoost with linear models (i.e., linear regression coefficients) at each leaf node.
  • Formulate the objective function as piecewise regularized least-squares, where each region (leaf) fits a local linear model.
  • Optimize the model using gradient boosting by computing gradients and Hessians for the local linear models at each leaf.
  • Apply L2 regularization on the linear model coefficients and on the number of leaves to prevent overfitting.
  • Grow trees greedily by minimizing the loss function, with splits determined by the reduction in the regularized objective.
  • Implement the algorithm from scratch in Python (not as a plugin to XGBoost) for clarity and extensibility, based on Chen (2014).

Experimental results

Research questions

  • RQ1Can replacing constant predictions with local linear models in XGBoost improve regression performance on functions with discontinuities or varying smoothness?
  • RQ2How does the number of trees required by LinXGBoost compare to XGBoost for achieving similar predictive accuracy?
  • RQ3Does LinXGBoost outperform XGBoost and Random Forest on synthetic and real-world datasets with low-dimensional inputs?
  • RQ4In what settings (e.g., one-dimensional vs. high-dimensional) does the local linear extension provide the most benefit?
  • RQ5Can LinXGBoost effectively model functions where smoothness varies across input space, such as terrain surfaces or signals with abrupt changes?

Key findings

  • LinXGBoost achieves comparable or better NMSE performance than XGBoost using significantly fewer trees—often fewer than five—on both synthetic and real-world datasets.
  • On the CCPP dataset, LinXGBoost achieved an NMSE of 0.03567 ± 0.00289, slightly worse than XGBoost (0.03371 ± 0.00233) but still competitive with Random Forest.
  • On the pumadyn-8nm dataset, LinXGBoost (0.03876 ± 0.00177) performed slightly worse than XGBoost (0.03737 ± 0.00145) but better than Random Forest.
  • In one-dimensional problems like the HeavySine function, LinXGBoost with a single tree produced visually and quantitatively superior results compared to XGBoost’s piecewise constant predictions.
  • The method effectively captures jumps and discontinuities in functions without requiring explicit modeling of jump locations, outperforming standard XGBoost in such scenarios.
  • Despite its computational cost, LinXGBoost provides a principled way to model non-stationary functions with varying length-scales, particularly beneficial in low-dimensional regression tasks.

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.