A decision tree, a model that makes predictions by asking a short sequence of yes/no questions about the input, is easy to read and fast to run. It is also notoriously unstable. Delete a handful of training rows and the question at the top of the tree can change, which reorganizes everything below it. A random forest averages hundreds of trees, each built while seeing only a random handful of features at every question ("randomized node splitting"). That averaging fixes the instability, but the result is a large model nobody can read. This proposal asks whether the forest can serve as a teacher, in the sense of knowledge distillation (training a small "student" model to copy a large model's probability outputs rather than the raw labels), and pass its stability on to one ordinary hard-split tree. The tree would be kept readable and single-path at deployment.
The key ingredient is a detail that distillation for neural networks usually lacks. The forest's own randomization, in which each tree sees a bootstrap sample of the rows and a random subset of the features at each node, gives every training row a set of trees that never saw it. Those trees supply an out-of-bag posterior, which is an honest, held-out estimate of the probability of each label given the input, available at no extra cost. We claim that growing a single greedy tree on these out-of-bag posteriors, instead of on one-hot labels, removes most of the label-noise component of the split-selection score. That is the component that makes greedy trees flip. If this works, structural stability should match a dedicated stability algorithm, accuracy should rise rather than fall, and the forest's feature-subset size becomes a knob for distillation rather than only for forest accuracy.
Core Claim
Fitting a single tree to forest predictions is an old idea, so the novelty cannot be "distill a forest into a tree." What is new here is a specific mechanism with a testable prediction. Greedy split selection is unstable because near-tied split scores are perturbed by label noise. Out-of-bag forest posteriors remove that noise without the in-sample memorization that in-bag forest predictions carry. Distillation therefore acts as a stabilizer, and we will measure that effect directly with the stability metric of Average Sensitivity of Decision Tree Learning.
The reason comes from the law of total variance. Write $y$ for the one-hot label of a point $x$ and $q(x)=\mathbb{E}[y\mid x]$ for its true class-probability vector. Then
$$\mathrm{Var}(y) = \mathbb{E}\big[\mathrm{Var}(y\mid x)\big] + \mathrm{Var}\big(q(x)\big).$$
The impurity reduction of a candidate split is an average over the points in a node. Its sampling fluctuation therefore inherits both terms when computed on hard labels. If we instead use an estimate $\hat q(x)$ of $q(x)$, only the second term, plus the estimation error of $\hat q$, remains. The first term is the irreducible coin-flip noise of the labels, and it is exactly what makes two nearly equal splits trade places when rows are deleted.
This argument fails if $\hat q$ is computed in-bag. A deep forest nearly reproduces each training label at the training points, which reinjects the noise. The out-of-bag construction is what keeps $\hat q$ honest. The prediction is concrete: in-bag soft targets should give little stability gain, and out-of-bag targets should give most of it.
A second prediction concerns randomized node splitting itself. A forest built with a small feature-subset size $m$ spreads its predictive credit across correlated and redundant features. This is the feature-masking failure documented by Feature Selection for a Rich HPSG Grammar Using Decision Trees and the decorrelation argument analyzed by Hyperparameters and Tuning Strategies for Random Forest. We conjecture that the $m$ giving the best student differs from the $m$ giving the best forest. A forest that is smoother and less dominated by one feature may be a worse predictor yet a better teacher, because its posteriors vary more gently with the dominant feature.
Relation to Prior Work
Prior work at this intersection splits by direction, and none of it measures stability.
Neural Random Forest Imitation uses a forest as teacher but trains an opaque neural network student. It does so through "guided routing," which generates synthetic inputs that satisfy sampled root-to-leaf paths. We reuse guided routing as a method component, but our student is a tree.
Distilling a Neural Network Into a Soft Decision Tree distills a network into a tree with sigmoid routing. It shows that soft targets help: on Letter, 81.0% versus 78.0% for a standard tree. That tree routes every input partially down all paths at test time, and the paper never asks about structural stability. It motivates our proposal by showing that soft targets carry usable signal into tree students. We differ in keeping hard axis-aligned splits and in targeting stability.
Can a Single Tree Outperform an Entire Forest? trains one oblique tree with gradient descent and hard inference. It reports 83.97% versus 81.94% for a 300-tree forest on 16 regression datasets. That trees can match forests without distillation constrains our claims: we must show that distillation adds something a strong single-tree learner on raw labels does not. It is also untested on classification and uses no teacher.
Tree-Like Decision Distillation and Emb-GAM produce tree-flavored or additive interpretable students from deep teachers. Neither uses randomized splitting, and neither studies sensitivity to the training set.
The stability side is anchored by STABLEDT from Average Sensitivity of Decision Tree Learning. STABLEDT samples each split with probability proportional to $\exp(\lambda\cdot\text{score})$. On Breast Cancer under 10% data removal, it keeps the same structure 72% of the time, versus 10% for a greedy tree. STABLEDT buys stability by injecting randomness into the learner. We aim to buy it by removing noise from the targets. These are different levers and could be combined.
Research Program
The student is a standard CART-style tree with axis-aligned hard splits. Its impurity is computed on averaged probability vectors: the Gini index of the node's mean teacher posterior, or equivalently squared error to $\hat q$. Each leaf predicts the mean $\hat q$ of the points that reach it.
The teacher is a random forest whose out-of-bag posteriors label every training row. Each row gets the average prediction of the trees that did not see it, so we use enough trees that every row has a stable out-of-bag set. The teacher is used only at fit time and discarded afterward.
We study three refinements, each with its own ablation.
The first is a mixing weight between $\hat q$ and the one-hot label. Out-of-bag posteriors are themselves noisy when the out-of-bag set is small or the teacher is miscalibrated. A small weight on the true label should guard against the teacher-dependency ceiling flagged in Neural Random Forest Imitation.
The second is teacher-labeled synthetic points generated by guided routing. These are added only at deep nodes, where few real rows remain and score variance is largest. Without them, the variance argument has nothing to average over at the bottom of the tree.
The third is a teacher-calibrated variant of STABLEDT's exponential mechanism. We bootstrap the out-of-bag posteriors to estimate the standard error of each split score, then set $\lambda$ per node so that splits within one standard error of the best are chosen with comparable probability. This replaces a global hand-set temperature.
We will also analyze the claim directly. For each node of the greedy tree, we measure the gap between the best and second-best split score and the across-bootstrap variance of that gap, under hard and soft targets. The mechanism predicts that soft targets shrink the variance more than the gap. Instability should then concentrate at nodes where the gap-to-noise ratio falls below one.
Baselines
The naive reference is a greedy CART tree on hard labels, tuned for depth and minimum leaf size by cross-validation. The same tuning budget applies to every tree-shaped method. It anchors the 10% structural consistency figure that Average Sensitivity of Decision Tree Learning reports on Breast Cancer.
The strongest competitor on stability is STABLEDT from the same paper, which reports 72% structural consistency under 10% deletion on Breast Cancer. We rerun it on identical splits, sweeping its temperature over the same grid size we allow our mixing weight. Beating it means equal or higher structural consistency at equal or better test accuracy. Alternatively, it means a better point on the accuracy–sensitivity curve traced by sweeping each method's single knob.
The strongest single-tree competitor on accuracy is GET from Can a Single Tree Outperform an Entire Forest?. We run it in its axis-aligned and oblique forms on raw labels, and on our out-of-bag targets as a combination. The file reports only its regression average (83.97%). There is no reported result found on Lacuna for GET on classification, so all classification numbers will be our own reruns under matched compute.
The soft-tree distillation baseline is the method of Distilling a Neural Network Into a Soft Decision Tree, using its reported 80.60% on Connect4 and 81.0% on Letter as reference points. We retrain it with the forest as teacher and evaluate both its soft form and its thresholded hard form.
The teacher itself, a forest tuned with model-based search as in Hyperparameters and Tuning Strategies for Random Forest, is the accuracy ceiling rather than a competitor. That paper reports average gains over defaults of 0.014 misclassification error and 0.007 AUC on its 39 OpenML datasets, so the teacher must be tuned or the comparison is unfair.
Two ablations isolate the key ingredient. One replaces out-of-bag posteriors with in-bag forest predictions. The other replaces them with uniform label smoothing of matched entropy. Our method is credible only if it beats both on structural consistency.
Why not just…?
Why not just use STABLEDT? It works, but it stabilizes by randomizing the learner. Each refit is a draw from a distribution, and expected accuracy is guaranteed only to a $(1-\epsilon)^B$ fraction of the greedy optimum, where $B$ is depth. Target denoising should give stability while keeping the deterministic greedy argmax. On cod-rna, STABLEDT reportedly even beat greedy accuracy, a hint that much of its benefit is regularization that cleaner targets might supply more directly. Head-to-head curves on the Average Sensitivity paper's datasets will settle this. If STABLEDT dominates everywhere, our stabilizer claim fails, though the calibrated-temperature combination may still help.
Why not just smooth the labels uniformly, or raise the minimum leaf size? These are the most serious threats. Both reduce the influence of individual rows without any teacher. The matched-entropy label-smoothing ablation and a leaf-size sweep at equal accuracy are built in to test exactly this. The variance decomposition says uniform smoothing shrinks the label-noise term only by a constant factor and leaves its point-to-point variation intact. Out-of-bag posteriors remove it in an input-dependent way. If uniform smoothing matches us, the forest is unnecessary and we will report that.
Why not just train a single tree globally with GET on raw labels? GET's regression result shows that a single tree is not inherently weaker than a forest. Accuracy, however, is not stability, and GET's gradient training adds its own run-to-run variability, which nobody has measured with tree edit distance. We will measure GET's sensitivity on the same perturbations. We also test GET on out-of-bag targets, since our claim is about the targets, not the optimizer.
Proposed Experiments
The primary benchmark is the suite used by Average Sensitivity of Decision Tree Learning: Breast Cancer, Diabetes, cod-rna, covtype, higgs, ijcnn, sensorless and webspam. On these we report three metrics. The first is structural consistency under 10% random deletion over many repetitions. The second is mean tree edit distance between refits. The third is test accuracy.
Breadth comes from the 39 OpenML classification datasets of Hyperparameters and Tuning Strategies for Random Forest, plus Connect4 and Letter for comparison with soft-tree distillation. Every method gets the same data splits, the same cross-validated tuning budget, and the same depth cap.
Three checks decide the proposal. First, out-of-bag targets must beat both in-bag targets and matched label smoothing on structural consistency. Without this, the mechanism is wrong. Second, at matched accuracy, our tree's structural consistency on Breast Cancer must reach STABLEDT's reported 72% or exceed it. It must also do at least as well on a majority of the remaining datasets. Third, the per-node analysis must show instability concentrated where the gap-to-noise ratio is low, with soft targets raising that ratio.
A secondary experiment sweeps the teacher's feature-subset size. It tests whether the best student comes from a different $m$ than the best forest, which would make randomized node splitting a distillation design choice and not only an ensembling one. A final experiment tests guided-routing augmentation at deep nodes on the smallest datasets. We expect the largest effect there, since deep nodes have the fewest real rows.
References
- Average Sensitivity of Decision Tree Learning
- Feature Selection for a Rich HPSG Grammar Using Decision Trees
- Hyperparameters and tuning strategies for random forest
- Neural Random Forest Imitation
- Distilling a Neural Network Into a Soft Decision Tree
- Can a Single Tree Outperform an Entire Forest?
- Tree-Like Decision Distillation
- Emb-GAM: an Interpretable and Efficient Predictor using Pre-trained Language Models