Efficient Algorithms for Multidimensional Segmented Regression

Ilias Diakonikolas, Jerry Li, Anastasia VoloshinovarXiv 2020

Abstract

This paper introduces the first computationally efficient algorithm for multidimensional segmented regression with provable performance guarantees. By employing a novel "bottom-up" greedy merging strategy on a dyadic hierarchical partition, the authors achieve nearly linear runtime while matching the minimax optimal error rate, outperforming traditional heuristics like CART in various scenarios.

Introduction

Regression is a cornerstone of statistical modeling, aimed at identifying an underlying function $f(x)$ from noisy observations. A particularly powerful model is segmented regression, which assumes the function is piecewise linear. While this problem is well-solved in one dimension using dynamic programming, multidimensional settings introduce significant geometric complexity. Finding optimal rectangular segments typically requires exponential time relative to the number of data points ($\Omega(n^d)$). Consequently, practitioners often rely on heuristics like Classification and Regression Trees (CART), which lack formal guarantees for minimizing mean squared error (MSE). This work addresses this gap by focusing on settings where segments depend on a small subset of coordinates ($d'$), even within high-dimensional feature spaces.

Methodology

The authors propose MultidimGreedyMerging, an algorithm that departs from the standard "top-down" splitting approach of decision trees in favor of a "bottom-up" merging strategy.

The process begins with Grid Construction, where a fine dyadic hierarchical partition is created over the $d'$ important coordinates. This effectively treats small clusters of data points as individual "leaf" nodes.

Initial dyadic hierarchical partition of the feature space.

Following grid construction, the algorithm performs Local Fitting by applying standard least-squares linear models within each leaf. The core of the method is Iterative Merging: the algorithm evaluates groups of "sibling" rectangles using a regularized error measure that balances model fit against the number of points, incorporating a penalty based on noise variance ($\sigma^2$). In each step, siblings are merged unless they exhibit high error, which suggests the presence of a segment boundary. This continues until the desired number of segments $k$ is reached.

Final segmentation after the iterative greedy merging process.

Key Insights

A primary advantage of the bottom-up approach is its amenability to mathematical analysis, allowing the authors to bound the error at each step and provide the first formal MSE guarantees for this problem class. By restricting partitioning to a fixed number of dimensions $d'$, the authors bypass the NP-hardness typically associated with decision tree learning ($k^{\Omega(\log d)}$), resulting in a nearly linear runtime of $\tilde{O}(nd^2)$. This makes the algorithm highly suitable for large-scale spatio-temporal data.

Experimental Results

The researchers evaluated the algorithm using both synthetic and real-world data:

  • Synthetic Data: Testing on 10-dimensional features with piecewise constant functions in 2 dimensions showed that the merging algorithm consistently achieved lower MSE than CART.
  • Boston Housing Dataset: In predicting median home values, the piecewise linear version of the estimator outperformed CART across multiple settings, demonstrating its practical utility beyond theoretical bounds.

Conclusion

The MultidimGreedyMerging algorithm provides a robust, theoretically grounded alternative to heuristic-based regression trees. While it currently assumes known segment-defining coordinates and axis-aligned boundaries, it establishes a new benchmark for efficiency and accuracy in multidimensional segmented regression. Future research may explore automated coordinate identification and more flexible segment geometries.

Summary updated

BibTeX
@misc{diakonikolas2020efficient,
  author = {Ilias Diakonikolas and Jerry Li and Anastasia Voloshinov},
  title = {{Efficient Algorithms for Multidimensional Segmented Regression}},
  year = {2020},
  eprint = {2003.11086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11086},
}
Figure