Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Shrinkage: improving the accuracy and interpretability of tree-based methods

Abhineet Agarwal, Yan Shuo Tan|arXiv (Cornell University)|Feb 2, 2022
Explainable Artificial Intelligence (XAI)Computer Science6 citations
TL;DR

This paper introduces Hierarchical Shrinkage (HS), a post-hoc regularization method that improves the accuracy and interpretability of tree-based models by shrinking node predictions toward ancestral means using a single regularization parameter. HS enhances predictive performance in regression and classification, stabilizes SHAP values, and smooths decision boundaries without altering tree structure, outperforming baseline models across diverse datasets while remaining computationally efficient.

ABSTRACT

Tree-based models such as decision trees and random forests (RF) are a cornerstone of modern machine-learning practice. To mitigate overfitting, trees are typically regularized by a variety of techniques that modify their structure (e.g. pruning). We introduce Hierarchical Shrinkage (HS), a post-hoc algorithm that does not modify the tree structure, and instead regularizes the tree by shrinking the prediction over each node towards the sample means of its ancestors. The amount of shrinkage is controlled by a single regularization parameter and the number of data points in each ancestor. Since HS is a post-hoc method, it is extremely fast, compatible with any tree growing algorithm, and can be used synergistically with other regularization techniques. Extensive experiments over a wide variety of real-world datasets show that HS substantially increases the predictive performance of decision trees, even when used in conjunction with other regularization techniques. Moreover, we find that applying HS to each tree in an RF often improves accuracy, as well as its interpretability by simplifying and stabilizing its decision boundaries and SHAP values. We further explain the success of HS in improving prediction performance by showing its equivalence to ridge regression on a (supervised) basis constructed of decision stumps associated with the internal nodes of a tree. All code and models are released in a full-fledged package available on Github (github.com/csinva/imodels)

Motivation & Objective

  • To address the overfitting and instability of tree-based models, especially in low-sample regions, by introducing a novel regularization method that does not modify tree structure.
  • To improve the interpretability of random forests by stabilizing decision boundaries and SHAP values through hierarchical shrinkage of predictions.
  • To provide a fast, agnostic, and compatible regularization technique applicable to any tree-growing algorithm, including CART, C4.5, and optimal trees.
  • To demonstrate that hierarchical shrinkage reduces generalization error by approximating ridge regression on a basis of decision stumps derived from tree nodes.
  • To show that HS enhances model robustness and interpretability even when predictive performance gains are modest, particularly in high-dimensional or noisy settings.

Proposed method

  • HS replaces each leaf’s prediction with a weighted average of the leaf’s mean and the means of all its ancestors, where weights depend on sample size and a regularization parameter λ.
  • The shrinkage intensity is controlled by a single regularization parameter λ, tuned via generalized cross-validation to balance bias and variance.
  • The method is applied post-hoc, meaning it operates on already-trained trees without modifying their structure, enabling compatibility with any tree algorithm.
  • HS is mathematically equivalent to ridge regression on a supervised basis formed by decision stumps at each internal node, linking it to established regularization theory.
  • The algorithm is implemented in an sklearn-compatible package within the imodels library, enabling seamless integration into existing ML pipelines.
  • The approach is applied to individual trees in random forests, improving both accuracy and interpretability through stabilized feature importance and SHAP values.

Experimental results

Research questions

  • RQ1Can post-hoc shrinkage of node predictions toward ancestral means improve the generalization performance of decision trees and random forests?
  • RQ2Does hierarchical shrinkage stabilize SHAP values and decision boundaries, enhancing model interpretability?
  • RQ3How does HS compare to traditional regularization techniques like pruning or early stopping in terms of predictive accuracy and robustness?
  • RQ4To what extent does HS improve model performance under covariate shift or data perturbations?
  • RQ5Can HS be applied universally across different tree-growing algorithms without structural modification?

Key findings

  • HS consistently improves predictive performance across a wide range of real-world datasets, with significant gains in regression and classification tasks, even when combined with other regularization techniques.
  • Applying HS to each tree in a random forest improves both accuracy and stability of SHAP values, reducing variance across 100 random train-test splits on the breast-cancer dataset.
  • HS leads to more clustered SHAP values per feature, indicating reduced heterogeneity and more consistent feature contributions, which simplifies interpretation.
  • The method produces smoother and more stable decision boundaries, especially in high-dimensional settings, enhancing model robustness to data perturbations.
  • HS is computationally efficient and compatible with any tree-based model, including those grown via greedy, dynamic programming, or optimization-based methods.
  • Even on datasets where predictive performance gains are small (e.g., Heart, Diabetes, Ionosphere), HS significantly improves SHAP value stability, indicating enhanced interpretability.

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.