SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Decision trees

A decision tree classifies or predicts by asking a sequence of questions about an example's features. Each question sends the example down one branch until a leaf gives the answer. Trees are fitted from labelled data by recursive splitting: ISLR calls the usual procedure top-down and greedy, choosing at each step the best split without looking ahead.1

Quinlan's 1986 paper describes ID3, which tests the attribute with the largest information gain, the drop in the class entropy of the data after splitting. On his fourteen-object weather table (nine objects in one class, five in the other) the class entropy is 0.940 bits, and splitting on outlook gives a gain of 0.246 bits, larger than temperature, humidity or windy, so outlook becomes the root.2 The same paper discusses noise, using a chi-square test to avoid splits that look informative only by chance, discusses unknown attribute values, and notes that the gain criterion favours attributes with many values.2 CART-style trees use the Gini index or entropy as the impurity measure, and a large tree is often pruned back by cost-complexity pruning chosen by cross-validation.1

ISLR lists the strengths: trees are easy to explain, can be shown graphically, and handle qualitative predictors without dummy variables. The weaknesses are lower predictive accuracy than other methods and instability, since a small change in the data can change the tree a great deal.1 A split on a numeric feature depends only on the order of the observed values, so monotone rescaling of a feature does not change the set of candidate partitions.

Single trees are now mainly building blocks. Bagging, random forests and gradient boosting combine many trees, and tree ensembles are a strong baseline for tabular data in benchmarks such as Grinsztajn et al.'s 45-dataset study.3 For security, trees give rules a reviewer can read, and tree ensembles can still be evaded by an adversary who can probe them.4

Source · Induction of Decision Trees (opens in a new tab) · J. R. Quinlan, Machine Learning 1, pp. 81-106, 1986

References

  1. An Introduction to Statistical Learning with Applications in R (first edition, seventh printing) (opens in a new tab) · James, Witten, Hastie and Tibshirani, Springer · January 1, 2013 ↩ ↩ ↩
  2. Induction of Decision Trees (opens in a new tab) · Machine Learning 1, pp. 81-106 · January 1, 1986 ↩ ↩
  3. Why do tree-based models still outperform deep learning on tabular data? (opens in a new tab) · arXiv 2207.08815 · July 18, 2022 ↩
  4. Evasion and Hardening of Tree Ensemble Classifiers (opens in a new tab) · arXiv 1509.07892 (Kantchelian, Tygar, Joseph) · May 27, 2016 ↩

Research articles

See what connects to it on the map of ideas →

See also