Sparse Learning with CART

Jason M. Klusowski

Presented at NeurIPS 2020, this paper provides a rigorous theoretical foundation for why Classification and Regression Trees (CART) perform exceptionally well in high-dimensional settings. While practitioners have long used CART as a foundational building block for powerful ensemble methods like Random Forests, this work pins down the mathematical mechanisms behind CART's ability to ignore noise and isolate the variables that truly matter.

Overview

The core contribution of this paper is proving that the CART algorithm naturally adapts to "sparse" data—scenarios where only a small subset of input variables actually influences the output. By linking the tree-splitting process to Pearson correlation, the author demonstrates that CART achieves optimal prediction rates dependent on the number of relevant features rather than the total number of dimensions. This effectively allows CART to circumvent the notorious "curse of dimensionality."

The Curse of Dimensionality and Sparsity

In machine learning, the curse of dimensionality is a persistent challenge. Most non-parametric methods, such as k-Nearest Neighbors (k-NN), struggle as the number of input features ($d$) grows because data points become increasingly isolated in high-dimensional space.

However, real-world models are frequently sparse: a dataset might contain 1,000 variables, but only 5 drive the target outcome. While decision trees are empirically known to handle this sparsity well, the theoretical community has lacked "oracle-type" guarantees for their out-of-sample predictions. The recursive, data-dependent nature of tree growth makes them notoriously difficult to analyze mathematically. This paper addresses a fundamental question: Can we mathematically prove that CART identifies this latent low-dimensional structure?

Methodological Insights

The author bridges the gap between practice and theory by analyzing two standard components of the CART algorithm:

  1. Greedy Growing: The recursive splitting of nodes to minimize the sum of squared errors.
  2. Cost-Complexity Pruning: The technique of trimming the tree to prevent overfitting by penalizing the number of terminal nodes.

The primary technical innovation is a shift in perspective: the author shows that the standard CART splitting criterion is mathematically equivalent to maximizing the Pearson correlation between a "decision stump" (a single-split tree) and the response data.

Using comparison inequalities, the paper proves that if any monotone function can fit the data well, a simple decision stump will also capture a significant portion of that signal. This allows the author to bound the training error based on the amount of correlation the tree extracts at each depth level.

Datasets and Validation

The theory is validated using a mix of synthetic and real-world data:

  • Synthetic Sparse Additive Models: Data generated where the target $Y$ depends on only a small subset ($d_0$) of variables (e.g., $Y = \sum \pm X_j^2$). This isolates how CART's error remains stable as purely "noise" variables are added.
  • Boston Housing Dataset: A classic benchmark demonstrating that even when dozens of noisy variables are appended to real-world data, CART’s performance remains robust compared to non-adaptive methods like k-NN.

Key Findings and Results

  • The Correlation Link: Realizing that impurity reduction is fundamentally a search for the highest Pearson correlation allows the application of optimization and probability tools to bound how fast training error drops as the tree deepens.
  • End-Cut Preference: The paper theoretically explains a known phenomenon: when a variable lacks signal, CART tends to split near the extreme edges of the data range. This "end-cut" behavior is a feature, not a bug—it is the algorithm's mechanism for "parking" noise variables to minimize their impact.
  • Sparsity Adaptation: Crucially, CART’s convergence rate is governed by $d_0$ (relevant variables), not $d$ (total variables), proving that CART performs automatic feature selection under the hood.
  • Optimal Tradeoffs and Convergence: The paper proves that if tree depth scales logarithmically with sample size ($K \approx \log(n)$), cost-complexity pruning achieves an optimal tradeoff between model fit and complexity. For sparse additive models, the derived convergence rate is approximately $( (d/n) \log(n/d) )^{1/d_0}$. The presence of $d_0$ in the exponent confirms the "curse" is limited only to important variables.
Test error comparison between k-NN and CART as dimensions increase

Empirically, as the total dimensions $d$ increase while keeping relevant variables $d_0$ fixed, k-NN’s error skyrockets due to the curse of dimensionality. In stark contrast, CART’s error remains almost flat, perfectly illustrating its robustness to noise.

Limitations and Future Work

  • Input Distribution: Strongest results currently assume input variables ($X$) are uniformly distributed. While marginal transformations are suggested, a universal proof for any distribution is a natural next step.
  • Ensemble Theory: Modern applications heavily rely on ensembles (Random Forests, XGBoost). While the author suggests these results can extend to ensembles via convexity arguments, a dedicated analysis of Random Forests using these Pearson correlation bounds remains open.
  • Instability: CART is notoriously unstable; small data changes can yield entirely different tree structures. While this paper successfully bounds the error, it does not resolve the underlying structural instability of the trees.

Summary updated

BibTeX
@inproceedings{klusowski2020sparse,
  author = {Jason M. Klusowski},
  title = {{Sparse Learning with CART}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure