Improved Information Gain Estimates for Decision Tree Induction

Sebastian Nowozin

TL;DR

Standard decision tree algorithms rely on biased mathematical estimators to decide how to split data. By replacing "naive" entropy formulas with more sophisticated ones—specifically the Grassberger estimator for classification and 1-nearest neighbor estimators for regression—we can build more accurate trees with almost no extra implementation effort.

What Problem Does This Paper Address?

When building a decision tree, the algorithm must choose the best "split" at every node. To do this, it typically calculates Information Gain, which is the difference in entropy (uncertainty) before and after the split.

The underlying challenge is that we rarely know the true probability distribution of the data; we only have a finite sample. Most standard implementations use a "plug-in" or "naive" estimator: they count occurrences, calculate empirical frequencies, and plug them directly into the standard entropy formula.

Comparison of Information Gain Estimators

The authors point out a major flaw in this approach: the naive estimator is inherently biased. It systematically underestimates entropy, especially when dealing with small sample sizes or a large number of possible classes. This bias misleads the algorithm into making sub-optimal splits, ultimately resulting in less accurate models. While "bias corrections" like the Miller correction exist, the authors demonstrate that they often fail to actually change which split the algorithm chooses, rendering them ineffective for tree induction.

Methods

The paper proposes "drop-in" replacements for entropy estimation in standard tree induction algorithms, tailored for both classification and regression tasks.

  1. For Multiclass Classification: Instead of the naive estimator, the authors advocate for the Grassberger entropy estimate. This formula utilizes the digamma function to provide a much more accurate estimate of entropy for small sample sizes. Unlike simpler additive corrections, the Grassberger estimate fundamentally changes the relative ranking of potential splits, leading to better structural choices during tree growth.
  2. For Multivariate Regression: Most regression trees assume the data follows a Normal (Gaussian) distribution to calculate "differential entropy." The authors argue this is often a "misspecification," as real-world data is rarely perfectly Gaussian. They propose using a non-parametric 1-Nearest Neighbor (1NN) estimator (specifically, the Kozachenko-Leonenko estimator). This method estimates entropy based on the distance between data points, making no rigid assumptions about the shape of the underlying distribution.

Datasets

The authors conducted an extensive evaluation across a wide variety of tasks to validate their estimators:

  • Classification: 30 datasets, including classic UCI benchmarks (Iris, Letter, Pendigits), text classification (Reuters, News20, RCV1), and web data (Cora, Citeseer). These datasets ranged from 3 to 105 distinct classes.
  • Regression: 18 univariate and multivariate datasets from UCI, StatLib, and AMSTAT (e.g., Boston Housing, Abalone, Parkinson’s), plus a custom Kinect-based dataset (Kinect2la).

Key Insights and Ideas

  • The "Many Classes" Trap: The benefit of better estimation is most pronounced when the number of classes ($K$) is large. When $K$ is high, empirical class frequencies become highly unreliable, causing the naive estimator to fail spectacularly.
  • Structural Change is Required: The authors highlight that for an estimator to actually improve a decision tree, it must change the ranking of candidate splits. The Grassberger estimator successfully does this. In contrast, the commonly known Miller correction merely adds a constant to all candidates, leaving the final tree structure identical to the naive approach.
  • Density vs. Point Accuracy: In regression, using a non-parametric estimator significantly improves the "log-likelihood" (how well the model describes the data's true distribution) even if it doesn't always drastically change the "RMSE" (the average error of the point prediction).

Key Results

Classification Accuracy Results
  • Classification: The Grassberger estimator outperformed the naive version on 18 out of 30 datasets (with 4 ties). A Wilcoxon signed-rank test confirmed this improvement is statistically significant ($p = 0.0267$). The performance gains were most dramatic on datasets with many classes, such as sector (105 classes) and tdt2 (96 classes).
  • Regression: The 1NN non-parametric estimator achieved the best holdout log-likelihood in 10 out of 18 cases. It proved much more robust than the standard "Normal approximation" used in most software packages.
  • Efficiency: For classification, the computational cost of the Grassberger estimator is virtually identical to the naive method. For regression, using k-d trees to find nearest neighbors makes the 1NN estimator roughly 6-10 times slower than the Normal approximation, but it remains highly tractable (the entire 18-dataset suite ran in under 24 hours on a standard PC).

Limitations and Future Work

  • RMSE vs. Log-Likelihood: In regression tasks, while the 1NN estimator captured the conditional density $p(y|x)$ more accurately, it did not always lead to a statistically significant improvement in Root Mean Squared Error (RMSE). This suggests that if a practitioner's sole goal is minimizing squared error, the standard method might suffice. However, if capturing the probability distribution and uncertainty is important, the 1NN method is vastly superior.
  • Scope: This paper specifically targets trees that use Information Gain as their splitting criterion. It does not explore whether similar improvements can be found for trees using Gini Impurity or other metrics, though the underlying logic of biased estimation likely applies there as well.

Summary updated

BibTeX
@inproceedings{nowozin2012improved,
  author = {Sebastian Nowozin},
  title = {{Improved Information Gain Estimates for Decision Tree Induction}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
}
Figure