Naive Bayes Classifiers over Missing Data: Decision and Poisoning
Song Bian, Xiating Ouyang, Zhiwei Fan, Paraschos Koutris
TL;DR
The paper addresses certifiable robustness of Naive Bayes classifiers when training data contains missing values, formalizing the Decision Problem and the Data Poisoning Problem. It delivers a polynomial-time decision algorithm with time $O(md+nd)$ and shows that single-point poisoning is solvable in $O(nmd)$ while multi-point poisoning is NP-complete for datasets with at least three features; a practical heuristic is also proposed. Empirical evaluation on ten real-world Kaggle datasets demonstrates substantial speedups over baselines and confirms the method’s effectiveness and robustness to varying missingness. The work provides actionable guarantees that can reduce the need for costly data cleaning and informs security considerations for ML systems operating on dirty data.
Abstract
We study the certifiable robustness of ML classifiers on dirty datasets that could contain missing values. A test point is certifiably robust for an ML classifier if the classifier returns the same prediction for that test point, regardless of which cleaned version (among exponentially many) of the dirty dataset the classifier is trained on. In this paper, we show theoretically that for Naive Bayes Classifiers (NBC) over dirty datasets with missing values: (i) there exists an efficient polynomial time algorithm to decide whether multiple input test points are all certifiably robust over a dirty dataset; and (ii) the data poisoning attack, which aims to make all input test points certifiably non-robust by inserting missing cells to the clean dataset, is in polynomial time for single test points but NP-complete for multiple test points. Extensive experiments demonstrate that our algorithms are efficient and outperform existing baselines.
