Paper commentary
Interpreting Random Forests: Comparing Surrogate Models and Rule Extraction Methods
Choosing an RF surrogate depends on the outcome and the structure you need
- Problem Random forests predict well but their ensembles are hard to read. Prediction-oriented surrogates may use different variables than the forest, so no single method is known to be right.
- Method The authors compare 12 surrogate and rule extraction methods against a decision tree reference. They test them on 11 simulation settings and 67 benchmark datasets.
- Results SLIM had the lowest deviation from RF predictions on 23 of 28 regression datasets. inTrees had the best mean similarity rank across 39 classification datasets.

Figure 3 : Ranks of methods across simulation scenarios for each performance measure (facets), with lower ranks indicating better performance. Within each scenario, the median performance across 100 repetitions was calculated for each method, and methods were then ranked according to these medians. Boxplots summarize the resulting ranks across scenarios. Methods are displayed on the x-axis and colored by method type: oracle coaching using a linear model, oracle coaching using tree-based methods, representative trees, rule extraction methods, and the decision tree (DT) as a prediction model.
Original paper · CC BY 4.0 · Lea L. Mairhöfer, Jonathan B. Krause, Björn-Hergen Laabs, Silke Szymczak · Interpreting Random Forests: Comparing Surrogate Models and Rule Extraction Methods · Original paper figure · Extracted the figure area from page 23 of the original PDF.Why random forest explanations are hard to get
Random forests handle tabular data well because they capture nonlinear effects and interactions with few assumptions about the functional form. The same ensemble structure makes it hard to see how any single prediction arises.
Surrogate models approximate the forest's predictions with an interpretable model, while rule extraction methods build a smaller set of decision rules. Both give an interpretable global view, but they differ in structural assumptions and optimization targets. Some methods aim mainly at reproducing RF predictions, others preserve the variables or decision structures the forest uses, and others prioritize compactness.
A method that closely copies the forest's predictions may rely on different variables, which makes its explanation misleading.
For empirical data, this structure is generally unknown, so the choice is hard to make in advance. Haddouchi and Berrado (2024) gave a theoretical taxonomy rather than an empirical comparison. Aria et al. (2021) compared inTrees and NodeHarvest on six binary classification data sets.
This study compares 12 surrogate and rule extraction methods, with a decision tree fitted to the observed outcomes as a reference. The evaluation uses 11 simulation settings and 67 benchmark data sets for regression and classification.
Oracle coaching and representative trees take different things from the forest
Oracle coaching treats the forest as an oracle and trains an interpretable model on its predictions instead of the observed outcomes. Because the surrogate only has to match predictions, a close fit doesn't show that it relies on the same decision structure. Any model can serve as the oracle, so the approach stays model agnostic and doesn't need the forest's internal structure.
The study applies this principle to a linear model, OC-CART, GUIDE, SLIM, MOB and CTree. The linear model uses forward selection to reduce variables, but it captures only linear main effects unless interaction or nonlinear terms are added. OC-CART fits one CART tree to the forest predictions, and CART's impurity-based splits can favor variables with many possible split points.
Representative tree methods take a different route, drawing directly on the splits of the forest itself. MRT selects an existing tree from the forest, so its structure is one the forest already contains. ART constructs a new representative tree using distances to the forest rather than copying one of its trees. Because they use the forest's own splits, these methods aim at variable usage more directly than the oracle methods do.
Oracle methods, by contrast, learn only from predictions, so their similarity is established at the prediction level alone.
The original purposes also differ, because SLIM, MRT, ART and inTrees were built to represent existing prediction models or tree ensembles. CART, GUIDE, MOB and CTree were developed to model observed outcomes, and SIRUS, NH and RuleFit were proposed as prediction methods that serve here as surrogates fitted to forest predictions.
Rules copied from forest paths versus rules learned from predictions
inTrees starts from the paths of the trees in a fitted RF and treats each path as a candidate rule. Each rule is scored by its prediction error, its coverage and its length, where coverage is the proportion of training observations that satisfy it. Its rule errors and predictions are calculated using the observed outcomes rather than the forest predictions.
inTrees removes redundant conditions and then builds an ordered rule list by repeatedly picking low-error rules. Ties are broken in favor of rules with larger coverage and fewer conditions, and the remaining rules are re-evaluated on uncovered observations. At prediction time the first matching rule sets the output, and a default prediction applies when no selected rule matches.
Extracting rules from the RF doesn't guarantee that the resulting model reproduces its predictions.
SIRUS, NH and RuleFit take the opposite route: they grow their own trees or forests on the RF predictions instead of reading the original forest. SIRUS places numerical split points on empirical quantiles, so the same decision paths recur across its trees. It keeps rules whose frequency across trees exceeds a threshold and removes rules that are linear combinations of more frequent ones.
For regression, SIRUS estimates the rule weights by ridge regression with non-negative coefficients.
NH grows its own RF on the original variables and the RF predictions, and takes candidate rules from both internal and terminal nodes. Each node's prediction is the mean RF prediction among the training observations that satisfy all of its conditions. NH estimates node weights with a quadratic optimization that minimizes squared prediction error under nonnegative weights.
Because the selected nodes can overlap, NH doesn't form a single hierarchical partition, which allows flexible representations but can be hard to interpret.
RuleFit grows its own conditional inference trees on the RF predictions and represents each extracted rule as a binary indicator. A regression model is then fitted on these indicators together with linear terms for the original variables. The coefficients are estimated jointly with the LASSO, which shrinks some coefficients to zero. Because the rule indicators allow nonlinear relationships and interactions, RuleFit's final model is linear in its coefficients yet can still represent them.
Simulations and benchmark setup
The comparison pits 12 surrogate and rule extraction methods against a decision tree fitted to the observed outcomes. Eleven simulation settings with known effect and noise variables let the authors check which variables each method recovers. The correlated-variables setting has ten influential variables with an effect size of β = 2, plus noise variables.
The many small effects setting uses p = 100 binary variables, with 50 effect variables at β = 0.2.
The random forest uses ranger version 0.17.0 with 500 trees and mtry set to the square root of p. inTrees and RuleFit lack that hyperparameter, so the authors capped their rule conditions and linear terms instead.
Benchmark performance comes from 10-fold cross-validation, applying the same criteria as the simulation study. Explainability couldn't be assessed on benchmarks, since the true data-generating process is unknown. ART and RuleFit each produced regression results for 26 data sets, while SLIM had individual prediction failures on four.
Which methods track the forest's variables across tasks
GUIDE and LM give the closest predictions to the forest in the linear simulations, as expected because both represent linear effects directly. LM scores low on structural similarity, and GUIDE has no structural score at all. GUIDE's fitted models contain no splits, and the structural measure ignores variables in its linear node model. A method can therefore predict the forest well while using different variables, so high prediction similarity alone doesn't justify reading its decisions as the forest's decisions.
MRT reproduces the forest's variable usage best in the subgroup and exponential simulations. MRT also has the lowest prediction similarity in both of those settings, so it fits when structure matters more than predictions. In the nonlinear simulation, the structural distance is zero for ten methods, because they use the same variables as the forest.
On prediction similarity, SIRUS performs best for the subgroup structure, SLIM for nonlinear effects, and NH for exponential effects. ART is the most compact nonempty regression model, with three to four decisions, while SIRUS uses approximately 14 to 15.
In the XOR-problem simulation, RuleFit predicts best but shows low structural similarity, while ART gives the most balanced result. RuleFit and inTrees perform poorly in both multiclass settings, and five RuleFit repetitions are missing in digit recognition. OC-CART and the decision tree have the most favorable average ranks there, and OC-CART offers the more direct explanation because it fits the forest predictions.
Regression and classification benchmarks on 67 data sets
On 28 regression data sets, SLIM gave the lowest deviation from RF predictions on 23 of them. GUIDE also ranked among the three best on 12 of those 14 data sets, so a global linear model approximates many forests well. That pattern doesn't show that the data-generating mechanisms were linear. SLIM suits settings where local heterogeneity is expected, while LM gives one set of global coefficients that is easier to read.
Across 39 classification data sets, inTrees had the best mean similarity rank, ahead of CTree and OC-CART. CTree led among the 13 data sets with the fewest variables, while OC-CART led among the 13 largest. On Macro F1, inTrees achieved the best mean rank, so it's the preferred general choice for classification performance. RuleFit ranked second but was unavailable for two data sets, while CTree gave complete coverage and is the strongest alternative.
SIRUS was the strongest regression alternative on structure, and inTrees was the strongest classification alternative. Because MRT had comparatively low prediction similarity for regression, it suits cases where matching the forest's decision structure matters more.
The decision tree and OC-CART were the fastest methods across data set sizes and dimensions, since each needed only a single tree fit. ART and RuleFit were the slowest, with regression medians of approximately 1.0 minute. SLIM followed at 0.85 minutes. For classification, RuleFit and ART had medians of 0.41 and 0.31 minutes.
Limitations of the benchmark rankings
Several implementations support regression only, so GUIDE, LM, SIRUS, SLIM, NH, and MOB couldn't be compared on classification. Runtimes above 24 hours and numerical optimization errors left gaps in the results, which Table A.4 summarizes. Average ranks therefore compare different subsets of tasks, although the authors report method failures and emphasize broadly applicable methods.
The decision tree and OC-CART were fitted without pruning, which keeps complexity comparable across methods. That choice may have disadvantaged both methods, because pruning could balance prediction performance and complexity better. Restricting splits or rules didn't make complexity fully comparable, since compactness is measured within each model form.
The NH node-size constraint doesn't bound total decisions the way a leaf-size constraint does for a single binary tree.
The authors suggest that future work should test hyperparameter optimization under equal computational budgets. The inTrees code had to be adapted because its original implementation doesn't support forests fitted with ranger. inTrees and NH were both obtained from CRAN archives after their removal from CRAN.
Explainability couldn't be evaluated on the benchmark data sets because the true data-generating process is unknown. Without known effect and noise variables, the benchmark can't tell apart the two kinds of variables. Only the simulation settings checked explainability through known effect and noise variables.
Choosing a method for a given question
No method wins on every objective, so the outcome type and the goal of the analysis should drive the choice. SLIM also gave the lowest deviation from the RF on 23 of the 28 regression data sets. When LM performs comparably, its single set of global coefficients gives a more uniform interpretation than several local SLIM models. For structural similarity in regression, NH had the best average structural rank, and SIRUS is the other strong option.
For classification, inTrees achieved the best mean similarity rank across 39 data sets, followed by CTree and OC-CART. inTrees also had the best mean Macro F1 rank, while CTree gave the strongest alternative with complete coverage. MRT reproduced the RF variable usage best in classification, but it suits cases where agreement with the decision structure matters more than agreement with predictions.
ART produced the most consistently compact nonempty representations across both outcomes, so it suits settings where compactness is the priority.
Prediction similarity alone can mislead, because a method can match RF predictions while using different variables.
Runtime caps of 24 hours and method failures can remove a method from a comparison, so practitioners should check coverage first.
Paper info
- Authors
- Lea L. Mairhöfer, Jonathan B. Krause, Björn-Hergen Laabs, Silke Szymczak
- Venue
- arXiv · Preprint
- First published
- 2026-11-14
- Added
- 2026-11-17
- Updated
- 2026-11-14
- Version
- v1
- arXiv
- 2611.19471
- Category
- stat.ME · cs.LG · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Random forests (RFs) often achieve high prediction performance, but their ensemble structure can be difficult to interpret. Surrogate models and rule extraction methods offer interpretable approximations, yet guidance on selecting an appropriate method for a specific research question remains limited. We compared 12 methods for interpreting RFs, with a decision tree as a prediction-oriented reference, across 11 simulation settings and 67 benchmark datasets for regression and classification. Evaluation addressed prediction and structural similarity to the RF, model complexity, prediction performance, and runtime. Simulations additionally assessed explainability using known effect and noise variables. No method performed best across all objectives. For regression, SLIM provided the strongest general performance for prediction similarity or performance on test data, while a linear model offered a simpler global interpretation of linear effects when performance was comparable. For classification, inTrees achieved the strongest overall benchmark performance, with CTree and OC-CART providing useful alternatives. ART consistently produced the most compact representations. NH and SIRUS offered strong structural similarity for regression, while MRT most closely reproduced RF variable usage in the classification simulations, illustrating that prediction-oriented rankings do not necessarily identify the best structural explanation. Outcome-type restrictions, runtime limits, and method-specific failures reduced result availability for several approaches and should be considered alongside performance when selecting a method. Method selection should therefore be guided by the outcome type, anticipated data structure, and intended interpretability objective. Prediction similarity alone is insufficient for explaining an RF and should be considered jointly with structural similarity and model complexity.
Figures from the paper

Figure 1 : A flowchart showing the selection of methods for the comparison study.
Original paper · CC BY 4.0
Figure 2 : A flowchart showing the selection of data sets for the comparison study.
Original paper · CC BY 4.0
Figure 4 : Ranks of methods across benchmark data sets for each performance measure (facets), with lower ranks indicating better performance. Within each data set, the median performance across 10- fold CV was calculated for each method, and methods were then ranked according to these medians. Boxplots summarize the resulting ranks across data sets. Methods are displayed on the x-axis and colored by method type: oracle coaching using a linear model, oracle coaching using tree-based methods, representative trees, rule extraction methods, and the decision tree (DT) as a prediction model.
Original paper · CC BY 4.0Quote from the paper
Lea L. Mairhöfer, Jonathan B. Krause, Björn-Hergen Laabs, Silke Szymczak (2026). Interpreting Random Forests: Comparing Surrogate Models and Rule Extraction Methods. arXiv:2611.19471v1. https://arxiv.org/abs/2611.19471v1
BibTeX
@misc{mairhfer2026interpreting,
title = {{Interpreting Random Forests: Comparing Surrogate Models and Rule Extraction Methods}},
author = {Lea L. Mairhöfer and Jonathan B. Krause and Björn-Hergen Laabs and Silke Szymczak},
year = {2026},
eprint = {2611.19471},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.19471v1}
}