Partitioning Structure Learning for Segmented Linear Regression Trees

Xiangyu Zheng, Song Xi ChenNeurIPS 2019

Introduction

Standard regression trees, such as the widely used CART algorithm, partition feature spaces into discrete boxes and assign a single constant value to each. While this "locally constant" approach is simple and interpretable, it requires deeply nested trees to approximate even basic linear trends. This often leads to high variance and poor interpretability.

Conversely, Segmented Linear Regression (SLR) models fit distinct linear equations to different regions of the data. The primary challenge with SLR is finding the optimal boundaries—the "partitioning structure"—for these regions. Existing methods often require prior knowledge of which variables to split on or rely on computationally expensive optimizations that scale poorly. To bridge this gap, researchers have introduced Segmented Linear Regression Trees (SLRT), a data-driven, recursive tree algorithm that is computationally efficient and mathematically guaranteed to find the correct segments as sample sizes grow.

The SLRT Approach

The core innovation of SLRT lies in its splitting criterion, which determines where to "cut" the data to form new branches.

Decision tree structure generated by the SLRT algorithm.

The algorithm introduces several key methodological improvements:

  • Split Selection via Kendall’s $\tau$: At each node, the algorithm fits a temporary linear regression and analyzes the residuals. If the model misses a non-linear "bend" in the data, those errors remain correlated with the input features. SLRT uses Kendall’s $\tau$, a rank-based correlation measure, to find the split variable and level that best captures these remaining patterns. Using rank over magnitude makes the splitting rule robust to outliers.
  • Handling Correlated Features: Standard splitting rules struggle when input variables are highly correlated. SLRT utilizes a linear transformation (simultaneous diagonalization) to decorrelate features before calculating the split criterion, ensuring the model identifies true structural change points.
  • Minimal Cost-Complexity Pruning: Similar to CART, SLRT grows a large tree and prunes it back. However, the accuracy measure is redefined to account for the linear models at the leaves, ensuring a parsimonious final tree.
  • Leaf Modeling with LASSO: To prevent overfitting in high-dimensional settings, SLRT can apply LASSO regression at the terminal nodes, selecting only the most relevant features for each specific segment.
  • Weighted Random Forests (WRF): Extending SLRT into an ensemble, the authors propose WRF. Unlike standard Random Forests that average all trees equally, WRF weights each tree based on its predictive accuracy (inverse variance) on bootstrap samples, giving more influence to better-performing trees.

Performance and Key Results

The authors evaluated SLRT using both synthetic simulations (including scenarios with 12 distinct linear segments and smooth, non-linear "hilly" surfaces) and 9 standard benchmark datasets ranging from 74 to nearly 40,000 observations.

A 3D surface plot demonstrating SLRT's ability to fit piecewise linear segments to complex data.

The results highlight several major advantages of the SLRT framework:

  • Theoretical Consistency: The paper provides rigorous mathematical proofs demonstrating that the Kendall’s $\tau$ splitting rule consistently identifies the correct partition boundaries as the sample size approaches infinity.
  • Superior Predictive Power: In empirical tests across the 9 real-world datasets, the LASSO-enhanced version (SLRT-LASSO) achieved the best performance in 6 out of 9 cases when compared to established methods like CART, GUIDE, and MARS.
  • Ensemble Dominance: The Weighted Random Forest (WRF-SLRT) emerged as the top overall performer. It significantly outperformed standard Random Forests built with CART. For instance, on the Computer Hardware dataset, WRF-SLRT achieved a Root Mean Square Percentage Error (RMSPE) of 36.77, compared to 64.91 for a standard CART-based Random Forest.

Limitations and Future Directions

While highly effective, the current SLRT framework has a few limitations. The model currently relies on axis-aligned splits (perpendicular to the axes), though pre-transformations could theoretically allow for oblique splits. Additionally, handling correlated regressors introduces higher computational complexity ($O(M^2 N \log N)$ compared to the standard $O(M N \log N)$), which can be a hurdle for very large feature sets. Finally, while the model handles categorical variables in practice, extending the rigorous theoretical consistency proofs to mixed data types remains an area for future work.

Summary updated

BibTeX
@inproceedings{zheng2019partitioning,
  author = {Xiangyu Zheng and Song Xi Chen},
  title = {{Partitioning Structure Learning for Segmented Linear Regression Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure