Hierarchical Shrinkage: improving the accuracy and interpretability of tree-based methods

Abhineet Agarwal, Yan Shuo Tan, Omer Ronen, Chandan Singh, Bin Yu
2/2/2022
44 citations
cs.LGcs.AIstat.AP

Official code: csinva/imodels (1,631 stars, Jupyter Notebook, MIT, last commit 2026-04-28). 1 more implementation below.

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).

Show full abstract

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)

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
csinva/imodelsOfficial1,631Jupyter NotebookMIT2026-04-28
Yu-Group/imodels-experimentsCommunity18Jupyter Notebook–2026-03-11
csinva/imodelsOfficial100%
MIT

Interpretable ML package 🔍 for concise, transparent, and accurate predictive modeling (sklearn-compatible).

1,631150Jupyter Notebook, PythonJul 4, 20197 months agoMIT
aiartificial-intelligencebayesian-rule-listdata-scienceexplainable-ai+13 more

Experiments with experimental rule-based models to go along with imodels.

186Jupyter Notebook, HTMLNov 15, 20218 months ago
aidata-sciencedecision-treesimodelsinterpretability+10 more

Similar Papers

Cite this paper

@article{agarwal2022hierarchical,
  title  = {Hierarchical Shrinkage: improving the accuracy and interpretability of tree-based methods},
  author = {Abhineet Agarwal and Yan Shuo Tan and Omer Ronen and Chandan Singh and Bin Yu},
  year   = {2022},
  eprint = {2202.00858},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.00858}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.00858.svg)](https://codeofpaper.com/paper/2202.00858)

Discussion