arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06078cs.LGcs.AI
收藏

解释k近邻:归纳和反事实解释

Explaining k-Nearest Neighbors: Abductive and Counterfactual Explanations

Pablo Barceló, Alexander Kozachinskiy, Miguel Romero Orth, Bernardo Subercaseaux, José Verschae

AI总结:

本文从特征视角研究k近邻分类的可解释性,提出归纳和反事实解释方法,并探讨其计算复杂性及实际应用。

摘要:

尽管k近邻被广泛用作分类模型,但从理论角度对其可解释性特性仍缺乏深入理解。虽然最近邻分类器从“数据视角”提供可解释性,即通过识别训练集中决定输入向量x̄分类的向量v̄1,…,v̄k来解释分类,但我们认为这种解释在高维应用中可能不切实际,因为每个向量有数百甚至数千个特征,不清楚它们的相对重要性。因此,我们关注通过“特征视角”理解最近邻分类,目标是识别x̄中特征值如何影响其分类。具体来说,我们研究了归纳解释,如“最小充分原因”,即对应于x̄中足够保证其分类的特征集,以及基于最小距离特征变化的反事实解释,即需要对x̄进行的特征变化才能改变其分类。我们展示了对反事实和归纳解释的正负复杂性结果的详细图景,区分了离散和连续特征空间,并考虑了距离函数选择的影响。最后,我们表明尽管有一些负复杂性结果,整数二次规划和SAT求解允许在实践中计算解释。

英文摘要:

Despite the wide use of $k$-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 $\bar{x}$ is explained by identifying the vectors $\bar{v}_1, \ldots, \bar{v}_k$ in the training set that determine the classification of $\bar{x}$, 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 $\bar{x}$ affect its classification. Concretely, we study abductive explanations such as ``minimum sufficient reasons'', which correspond to sets of features in $\bar{x}$ that are enough to guarantee its classification, and counterfactual explanations based on the minimum distance feature changes one would have to perform in $\bar{x}$ to change its classification. We present a detailed landscape of positive and negative complexity results for counterfactual and abductive explanations, distinguishing between discrete and continuous feature spaces, and considering the impact of the choice of distance function involved. Finally, we show that despite some negative complexity results, Integer Quadratic Programming and SAT solving allow for computing explanations in practice.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑