Abstract
Gradient Boosted Decision Trees (GBDTs) are the workhorses of industry for tabular data, yet they lack the integrity authentication mechanisms commonly found in Deep Neural Networks. This paper presents a novel framework for embedding "fragile signatures" into tree-based models. By strategically perturbing a small subset of independent leaf nodes, the method allows model owners to detect tampering without requiring retraining or access to original training data. Experimental results across 20 datasets demonstrate that these signatures can be embedded with near-zero impact on model accuracy while remaining highly sensitive to malicious modifications.
Introduction
In the Machine Learning as a Service (MLaaS) ecosystem, models represent significant intellectual property. Once deployed, however, they are vulnerable to "integrity attacks"—malicious modifications such as backdoors or poisoning that alter model behavior. While extensive research exists for "watermarking" Deep Neural Networks (DNNs) to prove ownership or detect tampering, tree-based models like XGBoost, LightGBM, and CatBoost have been largely overlooked.
The challenge lies in the fundamental differences between DNNs and tree models. Tree models are non-differentiable, preventing the use of gradient descent to "hide" signatures. Furthermore, their rigid, iteration-by-iteration structure means that removing or changing even a single tree breaks the boosting dependency, making traditional retraining-based watermarking impractical.
The Proposed Authentication Framework
The researchers propose a two-stage, "data-free" authentication framework designed for a black-box setting. The process involves three key steps:
- Signature Key Locating (Random-DFS): The algorithm searches the structure of the trained trees to find "signature keys"—specific input patterns where the model is "undecided." These are points where the gap between the top predicted class and the runner-up is minimal. A heuristic Depth-First Search (DFS) identifies these points without requiring the original training data.
- Signature Key Selection: To ensure stability, the framework must select a set of independent signature keys. If multiple keys rely on the same leaf node, modifying one could inadvertently flip the prediction of another. A greedy algorithm is employed to select keys that reference unique terminal nodes.
- Node Prediction Manipulation: Once independent keys and their corresponding leaf nodes are identified, a tiny perturbation (e.g., $10^{-5}$) is applied to the prediction values in those specific leaves. This perturbation is just enough to flip the model's prediction for the secret "signature key" inputs while leaving the overall model logic untouched.
To verify the model, the owner queries the deployed API with these secret keys. If the model returns the "flipped" class, the signature is confirmed.
Experimental Evaluation
The framework was evaluated on 20 public classification datasets from the LIBSVM repository, spanning computer vision (MNIST, CIFAR10), tabular data (covtype, protein), and NLP (news20).
Key Results
- High Capacity: The algorithm successfully embedded over 20 independent signature keys on most datasets. This allows for over 1 million unique signature combinations ($2^{20}$), enabling distinct signatures for different customers.
- Minimal Accuracy Impact: The "cost" of the signature is negligible. Across all 20 datasets, the change in test accuracy ranged from 0% to a maximum of 0.08%.
- Attack Detection: The signature proved highly sensitive to malicious modifications. In experiments where an attacker attempted to "fix" the model by adding training iterations or removing trees, the signature was destroyed in 30% to 75% of cases after only a few modifications.
Discussion and Conclusion
A core insight of this work is the concept of "fragility as a feature." Unlike robust watermarks designed to survive theft, this fragile signature acts as a "tamper-evident seal." Because it modifies leaf values in a post-processing step, it requires zero retraining and is computationally trivial to implement.
While currently focused on multi-class classification, the principles are theoretically applicable to regression and bagging models. Future work will explore extending these signatures to survive "benign" transformations like model compression while maintaining their sensitivity to malicious integrity attacks.
Summary updated