On the Robustness of Deep K-Nearest Neighbors
Not on the map. Why?
Abstract (arXiv)
Despite a large amount of attention on adversarial examples, very few works have demonstrated an effective defense against this threat. We examine Deep k-Nearest Neighbor (DkNN), a proposed defense that combines k-Nearest Neighbor (kNN) and deep learning to improve the model's robustness to adversarial examples. It is challenging to evaluate the robustness of this scheme due to a lack of efficient algorithm for attacking kNN classifiers with large k and high-dimensional data. We propose a heuristic attack that allows us to use gradient descent to find adversarial examples for kNN classifiers, and then apply it to attack the DkNN defense as well. Results suggest that our attack is moderately stronger than any naive attack on kNN and significantly outperforms other attacks on DkNN.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Mar 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 1; 2024: 1; 2025: 3.
10 papers.
- 2024Towards flexible perception with visual memorycited by 8
- 2021Consistent Non-Parametric Methods for Maximizing Robustnesscited by 7
- 2023A Simple Framework to Enhance the Adversarial Robustness of Deep Learning-based Intrusion Detection Systemcited by 6
- 2021ASK: Adversarial Soft k-Nearest Neighbor Attack and Defensecited by 4
- 2022Adversarial Attack and Defense for Non-Parametric Two-Sample Testscited by 2
- 2022p-DkNN: Out-of-Distribution Detection Through Statistical Testing of Deep Representationscited by 2
- 2025Pulling Back the Curtain: Unsupervised Adversarial Detection via Contrastive Auxiliary Networkscited by 2
- 2022Improved Search of Relevant Points for Nearest-Neighbor Classificationcited by 1
- 2025On the Efficiency of Training Robust Decision Treescited by 0
- 2025Separating Knowledge and Perception with Procedural Datacited by 0
- 2025Separating Knowledge and Perception with Procedural Data12 Aug 2025
- 2025On the Efficiency of Training Robust Decision Trees14 Jul 2025
- 2025Pulling Back the Curtain: Unsupervised Adversarial Detection via Contrastive Auxiliary Networks13 Feb 2025
- 2024Towards flexible perception with visual memory15 Aug 2024
- 2023A Simple Framework to Enhance the Adversarial Robustness of Deep Learning-based Intrusion Detection System6 Dec 2023
- 2022p-DkNN: Out-of-Distribution Detection Through Statistical Testing of Deep Representations25 Jul 2022
- 2022Improved Search of Relevant Points for Nearest-Neighbor Classification7 Mar 2022
- 2022Adversarial Attack and Defense for Non-Parametric Two-Sample Tests7 Feb 2022
- 2021ASK: Adversarial Soft k-Nearest Neighbor Attack and Defense27 Jun 2021
- 2021Consistent Non-Parametric Methods for Maximizing Robustness18 Feb 2021