ASK: Adversarial Soft k-Nearest Neighbor Attack and Defense
Ren Wang, Tianqi Chen, Philip Yao, Sijia Liu, Indika Rajapakse, Alfred, Hero

TL;DR
This paper introduces ASK, a novel loss function for kNN models that enhances attack strategies and defenses, leading to more effective adversarial attacks and improved robustness in classification tasks.
Contribution
The paper proposes the ASK loss for better attack and defense in kNN-based models, with superior attack efficiency and robustness improvements demonstrated on CIFAR-10 and ImageNet.
Findings
ASK-Attack improves attack success rate by ≥13% over previous methods.
ASK-Defense outperforms conventional adversarial training by ≥6.9%.
ASK loss provides a more accurate and interpretable approximation of kNN error probability.
Abstract
K-Nearest Neighbor (kNN)-based deep learning methods have been applied to many applications due to their simplicity and geometric interpretability. However, the robustness of kNN-based classification models has not been thoroughly explored and kNN attack strategies are underdeveloped. In this paper, we propose an Adversarial Soft kNN (ASK) loss to both design more effective kNN attack strategies and to develop better defenses against them. Our ASK loss approach has two advantages. First, ASK loss can better approximate the kNN's probability of classification error than objectives proposed in previous works. Second, the ASK loss is interpretable: it preserves the mutual information between the perturbed input and the in-class-reference data. We use the ASK loss to generate a novel attack method called the ASK-Attack (ASK-Atk), which shows superior attack efficiency and accuracy…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Anomaly Detection Techniques and Applications · Domain Adaptation and Few-Shot Learning
