NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Treant: Training Evasion-Aware Decision Trees

Stefano Calzavara, Claudio Lucchese, Gabriele Tolomei, Seyum Assefa Abebe, Salvatore OrlandoarXiv 2019

TL;DR

TREANT is a novel decision tree learning algorithm designed to be inherently resilient against evasion attacks—malicious, small-scale perturbations of input data intended to flip a model's prediction. By integrating a formal threat model directly into the tree-building process through "robust splitting" and "attack invariance," TREANT produces models that maintain high accuracy even under sophisticated adversarial pressure, outperforming existing techniques by up to 20% in ROC AUC.

What Problem Does This Paper Address?

While deep learning dominates the headlines for image and speech recognition, decision tree ensembles (like Random Forests and GBDTs) remain the gold standard for tabular, non-perceptual data—the kind used for credit scoring, medical diagnosis, and spam detection. However, these models are notoriously fragile. A malicious actor can often "evade" a classifier by making tiny, calculated changes to their profile (e.g., slightly adjusting a reported income or debt level) to trigger a favorable outcome.

The challenge lies in the way decision trees are built. Traditional algorithms use a "greedy" approach, making the best local split at each node without considering how an attacker might exploit the final, fully-grown tree. Previous attempts to fix this, such as "adversarial boosting" (adding perturbed examples to training) or "robust trees" (heuristic-based splitting), often lack formal soundness or fail to account for how an attacker’s strategy might evolve as the tree grows deeper.

Methods

TREANT (Training Evasion-Aware Decision Trees) moves the defense from a post-processing step directly into the core optimization loop. It treats tree construction as a min-max problem: the algorithm tries to minimize a loss function while assuming the attacker will act to maximize it.

The algorithm introduces two primary technical innovations:

  1. Robust Splitting: Instead of a simple binary split, TREANT uses ternary partitioning. For any given feature and threshold, it identifies three groups of data points: those that always go left, those that always go right, and "unknown" instances that could be pushed either way by an attacker within their budget. TREANT then solves a constrained optimization problem to find the best leaf predictions, accounting for the worst-case moves of the attacker for these "unknown" points.
  2. Attack Invariance: This is the "secret sauce" that ensures the greedy construction is sound. As the tree grows, new branches might create new ways for an attacker to manipulate a data point. TREANT generates and propagates constraints down the tree. These constraints ensure that a split made at a higher level remains the "best" move for the attacker even after deeper nodes are added, preventing the attacker from finding a more damaging path later on.
Fig. 1. Overview of the TREANT construction and its key challenges.

Datasets

The authors evaluated TREANT on three publicly available datasets, each paired with a realistic, rule-based threat model:

  • Census Income: Predicting if a person earns >$50k/year. Attackers can lie about education, capital gains, or working hours.
  • Wine Quality: Classifying high-quality wines. Attackers can perturb chemical properties like alcohol level or residual sugar.
  • Default of Credit Cards: Predicting payment defaults. Attackers can manipulate repayment status or bill amounts.

Key Insights and Ideas

  • Greedy is Risky: Standard decision tree learning is "short-sighted." A split that looks great on clean data might be an open door for an adversary.
  • Soundness Matters: The authors demonstrate that without the "attack invariance" property, a model that seems robust during early training can become highly vulnerable once the tree is fully grown.
  • Beyond $L_p$ Norms: Unlike many adversarial ML papers that focus on simple geometric distances (like $L_\infty$ distance in images), TREANT uses a rule-based attacker model. This is much more applicable to real-world tabular data where some features are immutable and others have specific costs to change.
  • Ensembles of Weak are Not Strong: The paper reinforces the idea that simply bagging or boosting weak models doesn't guarantee robustness. You need models that are individually resilient.

Key Results

TREANT was compared against standard Random Forests (RF), Gradient Boosting (GBDT), and two state-of-the-art defenses: Adversarial Boosting (AB) and Robust Trees (RT).

  • Superior Robustness: TREANT consistently outperformed all competitors under attack. In the credit dataset, TREANT improved ROC AUC by nearly 20% compared to the best existing adversarial learning technique when facing a strong attacker.
  • Stability: While other methods saw their performance plummet as the attacker's budget increased, TREANT's performance remained remarkably stable.
  • Clean Accuracy Trade-off: TREANT maintains high accuracy on "clean" (unattacked) data, showing only a marginal drop compared to standard models, which is a small price to pay for significant security gains.

Limitations and Future Work

The authors identify a few areas for expansion:

  • Ensemble Awareness: Currently, TREANT builds trees independently (like a Random Forest). The authors want to adapt it for Gradient Boosting, where each new tree is built to compensate for the weaknesses (and vulnerabilities) of the existing ensemble.
  • Regression: The current framework is optimized for classification; extending it to regression tasks is a logical next step.
  • Hybrid Models: Exploring the trade-off between standard trees and TREANT trees within the same ensemble to find the "sweet spot" between maximum clean accuracy and maximum robustness.

Summary updated

BibTeX
@misc{calzavara2019treant,
  author = {Stefano Calzavara and Claudio Lucchese and Gabriele Tolomei and Seyum Assefa Abebe and Salvatore Orlando},
  title = {{Treant: Training Evasion-Aware Decision Trees}},
  year = {2019},
  eprint = {1907.01197},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.01197},
}

Loading related content...

Figure