Skip to content

Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep LearningDeep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learning

arXiv· arXiv:1803.04765· Nicolas Papernot, Patrick McDaniel·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The paper proposes the Deep k-Nearest Neighbors (DkNN) hybrid classifier, which combines the k-nearest neighbors algorithm with the representations learned at each layer of a deep neural network to provide confidence estimates and interpretable grounds for predictions. A test input is compared in distance with training samples in each layer's representation space, and the labels of the neighbors are used to estimate the degree to which the prediction lacks support in the training data; the authors state that this estimate can identify inputs outside the training distribution, including adversarial examples, thereby guarding against inputs beyond the model's scope of understanding. The neighbor samples also constitute human-readable explanations. After evaluating on multiple datasets, the authors state that the confidence estimates can accurately identify inputs outside the model, and that the explanations given by the nearest neighbors are intuitive and help in understanding the model's failures.

Read originalarxiv.org