Explaining k-Nearest Neighbors: Abductive and Counterfactual Explanations
Pablo Barcel\'o, Alexander Kozachinskiy, Miguel Romero Orth, Bernardo Subercaseaux, Jos\'e Verschae

TL;DR
This paper investigates the interpretability of k-Nearest Neighbors classifiers by analyzing abductive and counterfactual explanations from a feature perspective, providing complexity insights and practical solution methods.
Contribution
It offers a theoretical analysis of explanation complexity for k-NN classifiers and demonstrates practical computation approaches using Integer Quadratic Programming and SAT solving.
Findings
Complexity results vary between discrete and continuous features.
Counterfactual explanations can be computed using SAT and Integer Quadratic Programming.
Understanding feature influence enhances interpretability of k-NN models.
Abstract
Despite the wide use of -Nearest Neighbors as classification models, their explainability properties remain poorly understood from a theoretical perspective. While nearest neighbors classifiers offer interpretability from a ``data perspective'', in which the classification of an input vector is explained by identifying the vectors in the training set that determine the classification of , we argue that such explanations can be impractical in high-dimensional applications, where each vector has hundreds or thousands of features and it is not clear what their relative importance is. Hence, we focus on understanding nearest neighbor classifications through a ``feature perspective'', in which the goal is to identify how the values of the features in affect its classification. Concretely, we study abductive explanations such as…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Semantic Web and Ontologies · Bayesian Modeling and Causal Inference
MethodsSparse Evolutionary Training · Focus
