[Paper Review] Certified Robustness of Nearest Neighbors against Data Poisoning Attacks
This paper demonstrates that k-Nearest Neighbors (kNN) and Radius Nearest Neighbors (rNN) inherently provide certified robustness against data poisoning attacks due to their built-in majority vote mechanisms. Empirical results on MNIST and CIFAR10 show that this intrinsic robustness outperforms state-of-the-art certified defenses.
Data poisoning attacks aim to corrupt a machine learning model via modifying, adding, and/or removing some carefully selected training examples, such that the corrupted model predicts any or attacker-chosen incorrect labels for testing examples. The key idea of state-of-the-art certified defenses against data poisoning attacks is to create a \emph{majority vote} mechanism to predict the label of a testing example. Moreover, each voter is a base classifier trained on a subset of the training dataset. Nearest neighbor algorithms such as k nearest neighbors (kNN) and radius nearest neighbors (rNN) have intrinsic majority vote mechanisms. In this work, we show that the intrinsic majority vote mechanisms in kNN and rNN already provide certified robustness guarantees against general data poisoning attacks. Moreover, our empirical evaluation results on MNIST and CIFAR10 show that the intrinsic certified robustness guarantees of kNN and rNN outperform those provided by state-of-the-art certified defenses.
Motivation & Objective
- To investigate whether nearest neighbor algorithms inherently provide certified robustness against data poisoning attacks.
- To evaluate the robustness guarantees of kNN and rNN in comparison to existing certified defense methods.
- To determine if the intrinsic majority vote mechanism in nearest neighbor models can serve as a strong defense without additional training or architecture changes.
- To empirically validate the certified robustness of kNN and rNN under various data poisoning attack scenarios.
Proposed method
- Leveraging the intrinsic majority vote mechanism in kNN and rNN, where the predicted label is determined by the most frequent label among the nearest neighbors.
- Formalizing the certified robustness of kNN and rNN by analyzing how many training examples must be poisoned to change the prediction of a test example.
- Defining a certified robustness threshold as the minimum number of training examples that must be poisoned to alter the model's prediction for a given test input.
- Using this threshold to quantify the robustness guarantee, ensuring that predictions remain correct as long as the number of poisoned examples is below the threshold.
- Applying the method to standard benchmarks MNIST and CIFAR10 to evaluate robustness under realistic poisoning scenarios.
- Comparing the certified robustness bounds of kNN and rNN against those of state-of-the-art certified defenses under identical attack settings.
Experimental results
Research questions
- RQ1Can kNN and rNN provide certified robustness against data poisoning attacks due to their inherent majority vote mechanism?
- RQ2How does the certified robustness of kNN and rNN compare to that of state-of-the-art certified defenses on standard datasets?
- RQ3What is the minimum number of poisoned training examples required to change the prediction of a test example in kNN and rNN?
- RQ4Does the intrinsic robustness of nearest neighbor models remain strong under diverse data poisoning attack patterns?
Key findings
- The intrinsic majority vote mechanism in kNN and rNN provides certified robustness guarantees against data poisoning attacks without requiring additional training or model modifications.
- On MNIST and CIFAR10, the certified robustness of kNN and rNN exceeds that of state-of-the-art certified defenses under comparable settings.
- The certified robustness threshold for kNN and rNN is higher than that of existing defenses, indicating greater resilience to poisoning.
- The robustness guarantees are derived directly from the model's architecture and training data, making them inherently reliable and verifiable.
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.