Abstract
Real-world datasets often contain missing values, typically requiring expensive data cleaning or imputation before model training. This paper introduces a framework for certifiable robustness in Naive Bayes Classifiers (NBC), enabling practitioners to determine if a prediction is guaranteed to remain consistent regardless of how missing values are filled. The authors present an efficient polynomial-time algorithm for robustness verification and investigate the security implications of data poisoning. Their findings show that while single-point poisoning is computationally feasible, attacking multiple predictions simultaneously is NP-complete. Experimental results across ten real-world datasets demonstrate that the proposed verification method is highly efficient and that many predictions are naturally robust to missing data.
Introduction: The Challenge of Dirty Data
In practical applications, data is rarely "clean." It is frequently riddled with missing values, often represented as NULL. The conventional machine learning pipeline involves resource-intensive data cleaning—imputing these gaps using various heuristics—prior to training. However, different imputation methods can lead to different "possible worlds," potentially resulting in inconsistent model predictions.
This research explores whether we can bypass the cleaning process by identifying certifiably robust predictions. A test point is considered certifiably robust if the classifier returns the same prediction regardless of which "possible world" (imputed version of the dirty dataset) it was trained on. By proving a prediction is robust, practitioners can avoid unnecessary cleaning for that specific data segment.
Methodology
The study focuses on the Naive Bayes Classifier (NBC) due to its probabilistic nature and widespread use. The authors address two primary challenges:
1. The Decision Problem
To determine if a specific test point is certifiably robust, the authors developed an Iterative Algorithm with Indexing. Instead of an exhaustive search through the exponentially large space of possible imputations, they proved that it is sufficient to evaluate only the "extreme" possible worlds—those that provide the maximum and minimum support for a given label.
2. The Data Poisoning Problem
The paper also examines the security of these classifiers against adversarial data poisoning:
- Single Point Attacks: An optimal greedy algorithm (GS) was developed to iteratively identify and alter the cells that most significantly impact a prediction's stability.
- Multiple Point Attacks: The authors proved that poisoning multiple test points simultaneously is NP-complete (reducible from the Vertex Cover problem), indicating that it is computationally difficult for an attacker to disrupt a group of predictions with minimal changes.
Experimental Setup
The framework was evaluated using ten real-world datasets from Kaggle, spanning medical (Heart, Fetal-health), financial (Employee, Company-bankruptcy), and general scientific domains (WinequalityN, Mushroom). To simulate real-world conditions, missing values were introduced at rates ranging from 20% to 80%.
Key Results and Efficiency
The experiments yielded several significant findings regarding the feasibility of robustness verification:
- Computational Efficiency: The optimized "Iterate+Index" algorithm demonstrated remarkable speed, performing approximately 20x faster than basic iterative approaches. Crucially, the verification process has a time complexity of $O(md + nd)$, matching the complexity of training a standard NBC. This ensures that verifying robustness adds negligible overhead to the standard ML pipeline.
- Natural Robustness: Many real-world predictions were found to be naturally robust to missing data, suggesting that a significant portion of data cleaning can be safely bypassed.
- Attack Optimality: The Greedy Search (GS) algorithm proved to be optimal for single-point attacks, achieving the lowest poisoning rate compared to random or heuristic baselines.
Discussion and Future Work
The "Extreme Worlds" shortcut is a pivotal insight of this work, leveraging the feature independence of NBC to simplify an otherwise intractable problem. However, the current framework is tailored specifically to Naive Bayes and categorical features.
Future research directions include extending these certifiable robustness proofs to more complex models, such as Random Forests or Gradient Boosted Trees, and developing methods to handle continuous distributions and other forms of data "dirtiness" beyond missing values.
Summary updated