Defense Against Adversarial Images using Web-Scale Nearest-Neighbor Search
Not on the map. Why?
Abstract (arXiv)
A plethora of recent work has shown that convolutional networks are not robust to adversarial images: images that are created by perturbing a sample from the data distribution as to maximize the loss on the perturbed example. In this work, we hypothesize that adversarial perturbations move the image away from the image manifold in the sense that there exists no physical process that could have produced the adversarial image. This hypothesis suggests that a successful defense mechanism against adversarial images should aim to project the images back onto the image manifold. We study such defense mechanisms, which approximate the projection onto the unknown image manifold by a nearest-neighbor search against a web-scale image database containing tens of billions of images. Empirical evaluations of this defense strategy on ImageNet suggest that it is very effective in attack settings in which the adversary does not have access to the image database. We also propose two novel attack methods to break nearest-neighbor defenses, and demonstrate conditions under which nearest-neighbor defense fails. We perform a series of ablation experiments, which suggest that there is a trade-off between robustness and accuracy in our defenses, that a large image database (with hundreds of millions of images) is crucial to get good performance, and that careful construction the image database is important to be robust against attacks tailored to circumvent our defenses.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Mar 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 2; 2023: 2; 2024: 4; 2025: 2.
19 papers.
Sort:
By area:
- 2024ARGS: Alignment as Reward-Guided Searchcited by 99
- 2024Process Reward Model with Q-Value Rankingscited by 78
- 2021Noise-robust Graph Learning by Estimating and Leveraging Pairwise Interactionscited by 20
- 2021Two Coupled Rejection Metrics Can Tell Adversarial Examples Apartcited by 14
- 2023DeDrift: Robust Similarity Search under Content Driftcited by 11
- 2021Adversarial Attack and Defense in Deep Rankingcited by 8
- 2024On the Learnability of Out-of-distribution Detectioncited by 8
- 2022Be Your Own Neighborhood: Detecting Adversarial Example by the Neighborhood Relations Built on Self-Supervised Learningcited by 5
- 2021Multiplicative Reweighting for Robust Neural Network Optimizationcited by 4
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forestcited by 4
- 2023Adversarial Medical Image with Hierarchical Feature Hidingcited by 3
- 2021The Effects of Image Distribution and Task on Adversarial Robustnesscited by 1
7 more
- 2021THAT: Two Head Adversarial Training for Improving Robustness at Scalecited by 1
- 2021Medical Aegis: Robust adversarial protectors for medical imagescited by 1
- 2022Individual health-disease phase diagrams for disease prevention based on machine learningcited by 1
- 2025A Few Large Shifts: Layer-Inconsistency Based Minimal Overhead Adversarial Example Detectioncited by 1
- 2021Deep Adversarially-Enhanced k-Nearest Neighborscited by 0
- 2024Adversarial Detection with a Dynamically Stable Systemcited by 0
- 2025KNN-Defense: Defense against 3D Adversarial Point Clouds using Nearest-Neighbor Searchcited by 0
- 2025KNN-Defense: Defense against 3D Adversarial Point Clouds using Nearest-Neighbor Search7 Jun 2025
- 2025A Few Large Shifts: Layer-Inconsistency Based Minimal Overhead Adversarial Example Detection19 May 2025
- 2024Adversarial Detection with a Dynamically Stable System11 Nov 2024
- 2024Process Reward Model with Q-Value Rankings15 Oct 2024
- 2024On the Learnability of Out-of-distribution Detection7 Apr 2024
- 2024ARGS: Alignment as Reward-Guided Search23 Jan 2024
- 2023Adversarial Medical Image with Hierarchical Feature Hiding4 Dec 2023
- 2023DeDrift: Robust Similarity Search under Content Drift5 Aug 2023
- 2022Be Your Own Neighborhood: Detecting Adversarial Example by the Neighborhood Relations Built on Self-Supervised Learning31 Aug 2022
- 2022Individual health-disease phase diagrams for disease prevention based on machine learning31 May 2022
- 2021Medical Aegis: Robust adversarial protectors for medical images22 Nov 2021
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forest16 Sep 2021
7 more
- 2021Deep Adversarially-Enhanced k-Nearest Neighbors15 Aug 2021
- 2021Noise-robust Graph Learning by Estimating and Leveraging Pairwise Interactions14 Jun 2021
- 2021Adversarial Attack and Defense in Deep Ranking7 Jun 2021
- 2021Two Coupled Rejection Metrics Can Tell Adversarial Examples Apart31 May 2021
- 2021THAT: Two Head Adversarial Training for Improving Robustness at Scale25 Mar 2021
- 2021Multiplicative Reweighting for Robust Neural Network Optimization24 Feb 2021
- 2021The Effects of Image Distribution and Task on Adversarial Robustness21 Feb 2021
- 2024ARGS: Alignment as Reward-Guided Searchcited by 99
- 2024ARGS: Alignment as Reward-Guided Search23 Jan 2024
- 2024Process Reward Model with Q-Value Rankingscited by 78
- 2024Process Reward Model with Q-Value Rankings15 Oct 2024
- 2021Noise-robust Graph Learning by Estimating and Leveraging Pairwise Interactionscited by 20
- 2021Two Coupled Rejection Metrics Can Tell Adversarial Examples Apartcited by 14
- 2023DeDrift: Robust Similarity Search under Content Driftcited by 11
- 2021Adversarial Attack and Defense in Deep Rankingcited by 8
- 2024On the Learnability of Out-of-distribution Detectioncited by 8
- 2022Be Your Own Neighborhood: Detecting Adversarial Example by the Neighborhood Relations Built on Self-Supervised Learningcited by 5
- 2021Multiplicative Reweighting for Robust Neural Network Optimizationcited by 4
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forestcited by 4
- 2023Adversarial Medical Image with Hierarchical Feature Hidingcited by 3
- 2021The Effects of Image Distribution and Task on Adversarial Robustnesscited by 1
- 2021THAT: Two Head Adversarial Training for Improving Robustness at Scalecited by 1
- 2021Medical Aegis: Robust adversarial protectors for medical imagescited by 1
12 most cited of 17 All 17 (JSON)
- 2025KNN-Defense: Defense against 3D Adversarial Point Clouds using Nearest-Neighbor Search7 Jun 2025
- 2025A Few Large Shifts: Layer-Inconsistency Based Minimal Overhead Adversarial Example Detection19 May 2025
- 2024Adversarial Detection with a Dynamically Stable System11 Nov 2024
- 2024On the Learnability of Out-of-distribution Detection7 Apr 2024
- 2023Adversarial Medical Image with Hierarchical Feature Hiding4 Dec 2023
- 2023DeDrift: Robust Similarity Search under Content Drift5 Aug 2023
- 2022Be Your Own Neighborhood: Detecting Adversarial Example by the Neighborhood Relations Built on Self-Supervised Learning31 Aug 2022
- 2022Individual health-disease phase diagrams for disease prevention based on machine learning31 May 2022
- 2021Medical Aegis: Robust adversarial protectors for medical images22 Nov 2021
- 2021Simple Post-Training Robustness Using Test Time Augmentations and Random Forest16 Sep 2021
- 2021Deep Adversarially-Enhanced k-Nearest Neighbors15 Aug 2021
- 2021Noise-robust Graph Learning by Estimating and Leveraging Pairwise Interactions14 Jun 2021
12 newest of 17 All 17 (JSON)