[Paper Review] Robustness Verification of Tree-based Models
This paper proposes a novel, scalable robustness verification method for tree-based models (decision trees, random forests, GBDTs) by reformulating the verification problem as a maximum clique search on a multi-partite graph with bounded boxicity. The approach enables polynomial-time verification for low-dimensional problems and a multi-level algorithm that provides tight lower bounds with any-time termination, achieving up to 3,000x speedup over MILP-based methods while maintaining high robustness verification accuracy on large models.
We study the robustness verification problem for tree-based models, including decision trees, random forests (RFs) and gradient boosted decision trees (GBDTs). Formal robustness verification of decision tree ensembles involves finding the exact minimal adversarial perturbation or a guaranteed lower bound of it. Existing approaches find the minimal adversarial perturbation by a mixed integer linear programming (MILP) problem, which takes exponential time so is impractical for large ensembles. Although this verification problem is NP-complete in general, we give a more precise complexity characterization. We show that there is a simple linear time algorithm for verifying a single tree, and for tree ensembles, the verification problem can be cast as a max-clique problem on a multi-partite graph with bounded boxicity. For low dimensional problems when boxicity can be viewed as constant, this reformulation leads to a polynomial time algorithm. For general problems, by exploiting the boxicity of the graph, we develop an efficient multi-level verification algorithm that can give tight lower bounds on the robustness of decision tree ensembles, while allowing iterative improvement and any-time termination. OnRF/GBDT models trained on 10 datasets, our algorithm is hundreds of times faster than the previous approach that requires solving MILPs, and is able to give tight robustness verification bounds on large GBDTs with hundreds of deep trees.
Motivation & Objective
- To address the scalability and efficiency limitations of existing MILP-based robustness verification for tree ensembles, which scales poorly due to NP-completeness.
- To develop a formal verification method that provides tight lower bounds on adversarial robustness for large-scale tree-based models, including deep GBDTs with hundreds of trees.
- To enable practical robustness verification in real-world applications by supporting any-time termination and iterative improvement.
- To provide a more precise complexity characterization of the robustness verification problem beyond NP-completeness.
Proposed method
- Reformulate the robustness verification problem for tree ensembles as a maximum clique problem on a K-partite graph, where K is the number of trees.
- Leverage the boxicity of the graph—equal to the input feature dimension—to design efficient algorithms, enabling polynomial-time verification for low-dimensional problems.
- Propose a multi-level verification algorithm that incrementally improves the lower bound by enumerating cliques across multiple levels, supporting any-time termination.
- Use a hierarchical clique enumeration strategy with parameters T (clique size per level) and L (number of levels) to balance tightness and efficiency.
- Apply a relaxation technique based on graph structure to avoid solving NP-hard clique problems exactly, while still maintaining strong lower bounds.
- Integrate dynamic programming in a variant of the algorithm to further improve bound quality, though not used in the main evaluation.
Experimental results
Research questions
- RQ1Can exact robustness verification for a single decision tree be performed in linear time?
- RQ2Is there a polynomial-time algorithm for verifying tree ensembles when the input dimension (and thus boxicity) is low?
- RQ3Can we design an efficient, scalable verification algorithm for large tree ensembles that provides tight lower bounds with practical runtime?
- RQ4How does the proposed method compare in bound quality and speed to MILP-based verification and LP relaxation on real-world datasets?
Key findings
- The proposed method achieves up to 3,000x speedup over the MILP baseline on large GBDT models, with the fastest method taking only 12.6 seconds per example on MNIST, compared to 10 minutes for MILP.
- On robustly trained GBDTs, the method achieves 78% verified robustness accuracy at ε=0.2 on MNIST, with a verification bound close to the MILP result (ratio of 0.96).
- For the HIGGS dataset, the method achieves a 2,511x speedup over MILP while maintaining a robustness lower bound ratio of 0.75 compared to the exact MILP result.
- The verification bound converges to the MILP result as the number of clique levels (L) increases, demonstrating convergence and tightness of the approximation.
- The method scales sublinearly with the number of trees, while the MILP method scales superlinearly, showing superior scalability on models with hundreds of trees.
- Pixel importance analysis on MNIST shows that the robust model has fewer sensitive pixels (darker in color), indicating improved robustness, with yellow pixels having a lower bound of 1.0, meaning no single-pixel perturbation can change the prediction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.