Robust Decision Tree

Machine Learning
Introduced by
Various (Chen & Nan 2019; robust statistics community)
Year
2000s–2019
Type
Supervised classification / regression tree
Family
Machine learning

What does it do?

A robust decision tree is a tree model whose splits are chosen to remain effective when the input features are adversarially perturbed.

This page describes the formulation in the 2019 ICML paper 'Robust Decision Trees Against Adversarial Examples'. That method selects each split to minimise the worst-case loss under perturbations of the input features, rather than the loss on the observed values alone.

The intuition behind the method

A standard decision tree picks each split by the value that best separates the training data as recorded. If a feature value can be shifted by an adversary, a split that looks best on the recorded values may fail once those values move across the threshold. The robust version asks which split performs best when every input is allowed to move in the most harmful direction within a stated perturbation model. Finding that split is a max-min problem, so the method searches for the split whose worst case is least bad.

History

The robustness of tree models to adversarial examples was studied in the 2019 ICML paper 'Robust Decision Trees Against Adversarial Examples'. Adversarial-example research had mainly addressed linear models and neural networks; that paper showed that tree-based models are also vulnerable and developed a robust tree-building procedure.

When to use it

Use a robust decision tree when the input features at prediction time may be perturbed or manipulated, for example where an adversary can alter transaction attributes in fraud screening (an illustrative case, not a result from the cited work), and you still need a tree-structured model. Choose it when you can state the threat as a perturbation of the input features, because the robustness obtained is only as good as that model. Do not use it when the data are clean and no perturbation threat exists; the worst-case split search adds cost without a clear benefit. If your main concern is mislabelled training targets rather than input perturbation, this formulation does not address that problem directly, and you should look at methods designed for label noise. Its split search is also more computationally demanding than standard CART, so consider it only when the robustness gain is worth that cost.

Limitations and considerations

  • Exact worst-case split search is exponential in its naive form, so the practical method uses an approximation of the inner minimisation; the chosen split is therefore approximate.
  • The robustness obtained applies only to the perturbation model used in training. The reported gains are empirical; they are not certified bounds.
  • Robustness to adversarial perturbation of input features is not the same as robustness to label noise or to outliers in general.
  • Implementations of this formulation may vary, so confirm which robust objective the code you use actually optimises.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Each split is chosen against a worst-case input perturbation, which targets the failure mode that the standard greedy criterion does not account for.
  • The model keeps the threshold-based structure of a decision tree, so its splits remain readable as conditions on individual features.
  • The cited work applies the robust split search to both classic information-gain trees and gradient-boosted trees such as XGBoost.
  • In experiments on real-world datasets reported in the cited work, the proposed algorithms can substantially improve the robustness of tree models to adversarial examples.

Applications

  • Tabular classification where an adversary can modify input features at prediction time, for example in fraud screening (an illustrative example, not a result from the cited work).
  • Settings where input features may be perturbed within a bounded, specifiable model.

How it works

How it works

1

At each node, the split is scored by its worst-case loss: for each candidate feature and threshold, the procedure considers the worst perturbation of the input features and keeps the split with the best worst case. Searching all perturbations exactly is intractable for trees, so the inner minimisation is approximated in the cited formulation. The approximation is what makes the criterion usable in practice.

2

The tree is grown recursively, applying the robust split search at each node. In typical implementations, standard tree controls such as maximum depth or minimum leaf size also determine when growth stops; check your software. The cited work applies the same split search to information-gain trees and to gradient-boosted trees such as XGBoost.

3

Pruning is not part of the robust split search described here. Whether a tree is pruned depends on the implementation you use, so check the software documentation before assuming that pruning is applied.

4

A new observation is routed down the tree by following the learned split conditions until it reaches a leaf, whose majority class (classification) or mean/median target value (regression) is returned as the prediction.

Common pitfalls

  • Assuming that a tree described as robust is robust to every kind of corruption; a tree trained against one perturbation model can remain vulnerable to others.
  • Judging robustness by clean test accuracy alone. Robustness has to be evaluated on perturbed inputs drawn from the threat model you intend to defend against.
  • Treating the approximate split search as exact; the quality of the chosen splits depends on how well the inner minimisation is approximated in your implementation.
  • Comparing against a standard tree trained with different depth or leaf-size settings, which can make the robustness difference look larger or smaller than it is.

Frequently asked questions

How does a robust decision tree differ from a standard decision tree?

A standard tree chooses each split by its impurity on the observed training values. The robust formulation described here chooses each split by its worst-case loss when the input features are perturbed within a stated model, which is a max-min objective.

Is a robust decision tree better than simply removing outliers first?

They address different problems. Outlier removal deals with unusual training points that can be identified. The robust formulation described here addresses perturbations of input features at the point of use, including perturbations an adversary could construct, so cleaning the training data does not remove that threat.

Can I use a robust decision tree as a base learner in a random forest?

The cited work covers single information-gain trees and boosted trees such as XGBoost. Random forests are not covered by that work, so verify the combination empirically before relying on it.

Which software packages implement robust decision trees?

No widely adopted package for this formulation is established here. Look for the code released with the cited paper or a maintained implementation, and confirm which robust objective it optimises before use.

When should I prefer a robust random forest over a robust single tree?

The choice depends on whether you need one readable set of rules or better predictive performance. A single tree gives an explicit rule set for reporting; an ensemble of trees is harder to read. Direct comparisons between these two options are not part of the cited work, so test both on your data.

Related methods

Sources

  1. Chen, H., & Nan, F. (2019). Robust Decision Trees Against Adversarial Examples. Proceedings of the 36th International Conference on Machine Learning (ICML), PMLR 97, 1006–1015.

    Open publication reference
  2. Hubert, M., & Debruyne, M. (2010). Minimum covariance determinant. Wiley Interdisciplinary Reviews: Computational Statistics, 2(1), 36–43. (background on robust estimation applied to tree splitting criteria)

    Open DOI reference