Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learning
Nicolas Papernot, Patrick McDaniel

TL;DR
This paper introduces Deep k-Nearest Neighbors (DkNN), a hybrid approach combining deep learning representations with k-nearest neighbors to improve robustness, interpretability, and confidence estimation in neural network predictions.
Contribution
The paper proposes DkNN, a novel hybrid classifier that enhances deep learning models with neighbor-based confidence and interpretability measures, addressing robustness and explanation issues.
Findings
DkNN provides accurate confidence estimates for out-of-distribution inputs.
Nearest neighbors offer intuitive explanations of model predictions.
DkNN improves detection of adversarial and malicious inputs.
Abstract
Deep neural networks (DNNs) enable innovative applications of machine learning like image recognition, machine translation, or malware detection. However, deep learning is often criticized for its lack of robustness in adversarial settings (e.g., vulnerability to adversarial inputs) and general inability to rationalize its predictions. In this work, we exploit the structure of deep learning to enable new learning-based inference and decision strategies that achieve desirable properties such as robustness and interpretability. We take a first step in this direction and introduce the Deep k-Nearest Neighbors (DkNN). This hybrid classifier combines the k-nearest neighbors algorithm with representations of the data learned by each layer of the DNN: a test input is compared to its neighboring training points according to the distance that separates them in the representations. We show the…
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 · Domain Adaptation and Few-Shot Learning · Anomaly Detection Techniques and Applications
