Abstract
Tree-based models, such as Gradient Boosting Decision Trees (GBDTs) and Random Forests, are widely used in tabular data tasks but pose unique challenges for adversarial robustness evaluation due to their non-differentiable nature. This paper introduces LT-Attack, a novel white-box method that transforms the continuous input space into a discrete "leaf tuple" space. By leveraging the internal structure of tree ensembles, LT-Attack achieves execution speeds up to 87,000 times faster than exact mathematical solvers while producing significantly smaller perturbations than existing black-box attacks.
Introduction
Adversarial attacks—small, intentional perturbations designed to trick models into misclassification—have been extensively studied for neural networks. Because neural networks are differentiable, finding adversarial examples is often a matter of following gradients. However, tree ensembles are non-continuous step functions with zero gradients almost everywhere. Finding the optimal (minimal) perturbation to flip a tree model's prediction is an NP-complete problem.
Current approaches generally fall into two categories:
- Exact Solutions (MILP): Mixed-Integer Linear Programming can find the mathematically optimal attack but is computationally prohibitive for large-scale ensembles.
- Black-Box Attacks: These treat the model as an opaque function and rely on thousands of queries. While faster than MILP, they often fail to find minimal perturbations because they do not exploit the model's internal structure.
Methodology: The Leaf Tuple Attack
The core innovation of this work is the Leaf Tuple Attack (LT-Attack). Instead of searching for an adversarial point $x$ in continuous space, the algorithm operates in a discrete space of leaf tuples. A leaf tuple is a vector where each element represents the specific leaf an input falls into for each tree in the ensemble.
The algorithm starts with an initial adversarial example and iteratively moves to a neighboring leaf tuple. A "neighbor" is defined as a tuple where only one tree's leaf index is changed (Hamming distance of 1). To further enhance efficiency, the authors introduce the concept of Bound Trees—the specific trees whose split thresholds define the current boundaries of the input's region. By focusing mutations only on these trees, the search space is drastically reduced. This structured search allows the algorithm to "jump" across decision boundaries that might trap continuous optimizers in local optima.
Experimental Results
The authors evaluated LT-Attack across 10 diverse datasets, including classic machine learning tasks (e.g., Breast-cancer, Covtype) and computer vision benchmarks (MNIST, Fashion-MNIST). The method was tested against both standard and robustly trained GBDTs and Random Forests.
As shown in the results table, LT-Attack demonstrates a remarkable balance of speed and effectiveness:
- Massive Speedup: On the HIGGS dataset, LT-Attack was over 87,000 times faster than the MILP solver. On MNIST, it achieved a speedup of approximately 1,500x.
- Superior Quality: Compared to state-of-the-art black-box attacks like SignOPT or HSJA, LT-Attack consistently found adversarial examples with 3x to 72x smaller distortions.
- Near-Optimality: While MILP provides the theoretical lower bound for perturbations, LT-Attack typically finds solutions within 1.1x to 2x of that limit in a fraction of the time.
Conclusion
LT-Attack bridges the gap between slow, exact solvers and fast but suboptimal black-box methods. By exploiting the hyper-rectangular partitioning inherent in tree ensembles, it provides a scalable and highly effective tool for evaluating the robustness of non-differentiable models. Future work may involve extending this framework to black-box settings via substitute models and using LT-Attack as a benchmark for developing more robust tree-based learning algorithms.
Summary updated