Introduction
Bootstrap aggregating, commonly known as bagging, is a highly effective ensemble learning protocol. Thanks to its majority voting mechanism, bagging is widely believed to enhance model robustness. However, while recent works have proven the sample-wise robustness of bagging against data poisoning, measuring its true resilience across an entire dataset remains a challenge.
This paper introduces the first "collective" robustness certificate for bagging ensembles, providing a tighter, more realistic measure of how many predictions an attacker can simultaneously alter. Furthermore, the authors propose Hash Bagging, a simple yet powerful modification to the subsampling process that significantly boosts robustness against global poisoning attacks without sacrificing model accuracy.
The Challenge of Measuring Robustness
Data poisoning is a critical threat where an attacker injects, deletes, or modifies training samples to corrupt a model's performance. Ensemble methods like bagging are inherently robust because a single poisoned point only affects a fraction of the sub-models. But exactly how robust are they?
Most existing research focuses on sample-wise robustness, asking: "Can an attacker flip the prediction for this specific test image?" However, data poisoning is a global attack; a poisoned training set influences every prediction the model makes. Current methods estimate "collective robustness" (the number of safe predictions across an entire test set) by simply summing up individual sample-wise certificates. This approach is overly pessimistic and significantly underestimates the true resilience of the ensemble. This paper bridges that gap with a formal collective certification framework.
Proposed Solutions: Collective Certification and Hash Bagging
The authors contribute two main technical innovations to address the shortcomings of sample-wise evaluation:
1. Collective Certification via BILP
The authors formulate the problem of finding the maximum number of simultaneously changed predictions as a Binary Integer Linear Programming (BILP) problem. To make this computationally feasible for large test sets, they introduce a decomposition strategy that splits the test set into smaller chunks. This allows the certificate to be computed in linear time relative to the test set size, proving that considering predictions collectively reveals much higher robustness than analyzing them one by one. An attacker might have enough "budget" to flip any individual prediction, but they cannot flip all of them simultaneously because the sub-models required to flip one prediction often differ from those needed for another.
2. Hash Bagging
In vanilla bagging, training samples are randomly assigned to sub-models. This means a single poisoned point could potentially end up in many sub-trainsets purely by chance. To counter this, the authors introduce Hash Bagging, which replaces random subsampling with hash-based deterministic subsampling.
By using a hash function to assign samples, the authors can strictly bound the "influence scope" of any single training point to a small, fixed number of sub-models. By making the subsampling process deterministic, the "luck of the draw" is removed, allowing for a mathematical guarantee on the maximum damage a poisoned sample can inflict.
Experimental Validation and Key Results
The researchers evaluated their methods across diverse tasks and architectures, including classic machine learning datasets (Bank and Electricity using Bayes and SVM classifiers) and computer vision tasks (Fashion-MNIST and CIFAR-10 using the Network in Network architecture).
The results highlight several key advantages of the proposed methods:
- Superior Robustness: On the Bank and Electricity datasets, the collective robustness of vanilla bagging drops to zero when the poison budget reaches 15% of the number of sub-models. In contrast, Hash Bagging maintains non-trivial robustness even at a 25% budget.
- Tighter Bounds: The collective certification consistently yielded $5\% \sim 30\%$ fewer "breakable" predictions compared to estimates derived from sample-wise certificates.
- Accuracy Stability ("Robustness for Free"): Hash Bagging is a plug-and-play method that doesn't require changing the underlying model architecture or training algorithm. Crucially, it maintains nearly identical ensemble accuracy to vanilla bagging while providing much stronger security guarantees.
Limitations and Future Work
While a significant step forward, the approach has limitations. Although the decomposition strategy helps, solving the BILP problem remains NP-hard, making the certification process time-consuming for very large-scale tasks or complex models. Additionally, the current certificate is "architecture-agnostic," meaning it doesn't account for the specific properties of the sub-classifiers (like their Lipschitz constants).
Future work will likely focus on finding more efficient ways to compute lower bounds for collective robustness without solving full BILP problems, and incorporating model-specific properties to achieve even tighter robustness bounds.
Summary updated