Defending Against Adversarial Examples with K-Nearest Neighbor
Not on the map. Why?
Abstract (arXiv)
Robustness is an increasingly important property of machine learning models as they become more and more prevalent. We propose a defense against adversarial examples based on a k-nearest neighbor (kNN) on the intermediate activation of neural networks. Our scheme surpasses state-of-the-art defenses on MNIST and CIFAR-10 against l2-perturbation by a significant margin. With our models, the mean perturbation norm required to fool our MNIST model is 3.07 and 2.30 on CIFAR-10. Additionally, we propose a simple certifiable lower bound on the l2-norm of the adversarial perturbation using a more specific version of our scheme, a 1-NN on representations learned by a Lipschitz network. Our model provides a nontrivial average lower bound of the perturbation norm, comparable to other schemes on MNIST with similar clean accuracy.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 23 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 0; 2024: 2; 2025: 1.
5 papers.
- 2025AutoAdvExBench: Benchmarking autonomous exploitation of adversarial example defensescited by 14
- 2022Increasing Confidence in Adversarial Robustness Evaluationscited by 12
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forestcited by 4
- 2024DFT-Based Adversarial Attack Detection in MRI Brain Imaging: Enhancing Diagnostic Accuracy in Alzheimer's Case Studiescited by 1
- 2024Sequencing the Neurome: Towards Scalable Exact Parameter Reconstruction of Black-Box Neural Networkscited by 0
- 2025AutoAdvExBench: Benchmarking autonomous exploitation of adversarial example defenses3 Mar 2025
- 2024Sequencing the Neurome: Towards Scalable Exact Parameter Reconstruction of Black-Box Neural Networks27 Sep 2024
- 2024DFT-Based Adversarial Attack Detection in MRI Brain Imaging: Enhancing Diagnostic Accuracy in Alzheimer's Case Studies16 Aug 2024
- 2022Increasing Confidence in Adversarial Robustness Evaluations28 Jun 2022
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forest16 Sep 2021