Robust Optimal Classification Trees against Adversarial Examples

Daniël Vos, Sicco VerwerAAAI 2022

Introduction

Decision trees are widely used due to their interpretability, yet they remain vulnerable to adversarial examples—small, intentional perturbations designed to cause misclassification. While robust training methods exist, they typically rely on greedy heuristics that optimize local splits. This paper introduces Robust Optimal Classification Trees (ROCT), a framework that leverages discrete optimization to achieve mathematically guaranteed optimal robustness.

Methodology: From Greedy to Global Optimization

Unlike traditional methods that make sequential local decisions, ROCT treats tree induction as a global optimization problem. The core innovation lies in collapsing the adversarial "min-max" game—where an attacker maximizes loss and the model minimizes it—into a single minimization step for 0-1 loss.

Mathematical formulation of decision nodes and path variables in ROCT.

The framework translates tree building into Mixed-Integer Linear Programming (MILP) or Maximum Satisfiability (MaxSAT). This allows the use of powerful solvers like Gurobi to find the exact tree structure that minimizes misclassifications under attack. The authors propose two thresholding strategies: a continuous approach for MILP and a binary encoding of feature values compatible with both MILP and MaxSAT.

Overcoming the XOR Limitation

A significant drawback of greedy algorithms (like GROOT or TREANT) is their inability to handle complex data distributions such as XOR patterns. Because greedy methods only look one split ahead, they often fail to recognize the utility of a split that doesn't immediately improve purity but is essential for the overall tree structure.

Comparison of robust training methods on an artificial XOR dataset. ROCT (c) successfully captures the global pattern that greedy methods (a, b) miss.

As shown in the figure above, ROCT optimizes the entire tree simultaneously, allowing it to correctly classify XOR-shaped data where heuristic-based models perform no better than random chance.

Theoretical Bounds and Performance

ROCT introduces a novel "Adversarial Accuracy Bound" using maximum bipartite matching. By identifying overlapping "perturbation boxes" of differently labeled samples, the authors can calculate a theoretical maximum performance for any model on a given dataset. This provides a hard ceiling to evaluate how well any algorithm is performing.

In evaluations across eight OpenML datasets, ROCT (specifically the MILP-warm variant) achieved state-of-the-art mean adversarial accuracy (0.735). Interestingly, the study found that while ROCT is superior, existing greedy heuristics like GROOT often perform within 5% of the optimal score, providing theoretical validation for their use on larger datasets where global optimization might be computationally prohibitive.

Conclusion

ROCT provides a rigorous foundation for training robust decision trees. By moving from local heuristics to global optimization, it not only achieves higher accuracy on complex patterns but also establishes a benchmark for evaluating the limits of robustness. Future work will focus on scaling these techniques to deeper trees and exploring their application in high-stakes domains like fraud and malware detection.

Summary updated

BibTeX
@inproceedings{vos2022robust,
  author = {Daniël Vos and Sicco Verwer},
  title = {{Robust Optimal Classification Trees against Adversarial Examples}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20829},
}
Figure