Abstract
Recent research has highlighted the vulnerability of ensemble stumps and trees to small input perturbations, making robustness verification and defense critical. However, previous work has focused almost exclusively on the $\ell_\infty$ norm, where features are perturbed independently. This paper investigates robustness with respect to general $\ell_p$ norms ($p < \infty$), where perturbations across different features are correlated. We prove that complete verification for ensemble stumps is NP-complete for $p \in (0, \infty)$, while polynomial-time algorithms exist for $p=0$ or $\infty$. We develop an efficient dynamic programming (DP) algorithm for sound verification of ensemble stumps and generalize multi-level verification to $\ell_p$ norms for ensemble trees. Finally, we introduce the first certified defense method for training $\ell_p$-robust tree ensembles and demonstrate its effectiveness on real-world datasets.
Introduction
Tree-based models, such as Random Forests and Gradient Boosted Decision Trees (GBDTs), are staples of machine learning due to their efficiency and interpretability. Despite their success, they remain susceptible to adversarial examples. Most existing literature on tree robustness assumes an $\ell_\infty$ threat model, which is computationally convenient because decision trees split on single features. However, in many practical scenarios, attackers are constrained by a total budget across all features, better represented by $\ell_1$ or $\ell_2$ norms. This paper bridges this gap by providing a comprehensive study of $\ell_p$ robustness, including complexity analysis, efficient verification, and a novel certified defense.
Complexity Analysis: The Knapsack Connection
A key contribution of this work is the theoretical characterization of the verification problem. The authors prove that while $\ell_\infty$ and $\ell_0$ verification for ensemble stumps can be solved in polynomial time, the general $\ell_p$ case ($0 < p < \infty$) is NP-complete. This complexity arises from the shared perturbation budget, which makes the problem mathematically equivalent to a 0-1 Knapsack problem.
Verification and Defense Algorithms
To overcome the NP-completeness of ensemble stump verification, the authors propose a Dynamic Programming (DP) algorithm. By discretizing the perturbation budget, this approach provides a sound lower bound on robustness, effectively serving as a pseudo-polynomial solver for the underlying Knapsack problem.
For ensemble trees, the challenge lies in the fact that $\ell_p$ balls do not share the simple "boxicity" properties of $\ell_\infty$ boxes. The authors extend the "multi-level" verification framework by introducing a new procedure to check the intersection between a tree's decision boundary (a box) and an $\ell_p$ ball.
Beyond verification, the paper introduces a certified defense training method. This approach minimizes a certified robust loss by optimizing leaf weights during the boosting process using coordinate descent and bisection methods, ensuring the model remains provably robust against $\ell_p$ perturbations.
Empirical Results
The researchers evaluated their methods on standard benchmarks, including tabular data (Breast-cancer, Diabetes) and image classification (Fashion-MNIST, MNIST). The DP-based verification for stumps proved to be highly efficient, achieving speeds 40–120x faster than complete Mixed-Integer Linear Programming (MILP) solvers while maintaining nearly identical tightness in verified error rates.
Models trained with the proposed certified defense showed significant improvements. For example, on the MNIST 2 vs. 6 task, the $\ell_1$ verified error dropped from approximately 92% for standard models to just 8% for models trained with the new defense.
Conclusion
This work provides a rigorous foundation for understanding and improving the $\ell_p$ robustness of tree-based ensembles. By identifying the connection to the Knapsack problem and developing efficient DP-based verification and certified training methods, the authors offer practical tools for building more secure machine learning systems. Future research may explore further refinements to these bounds to minimize the impact on clean accuracy while maintaining high robustness.
Summary updated