让深度神经网络用少量训练样本解释预测结果
Obtaining Example-Based Explanations from Deep Neural Networks
- 用DNN提取嵌入,再用KNN分类器生成可解释的样本权重
- 只需少数训练样本就能解释预测,且不降低原模型准确率
- 不同层的嵌入对解释效果影响大,选层很关键
当前可解释机器学习多聚焦于特征归因,即为各特征赋值使其和等于预测结果。另一种方式是样本归因,为训练样本赋予权重,使其与标签的内积等于预测值。该方法在特征难以解释时尤为有用。现有技术仅适用于k近邻和随机森林等少数模型。本文提出EBE-DNN方法,利用深度神经网络生成嵌入,再由k近邻分类器进行预测,从而直接获得样本归因。实证研究表明,EBE-DNN可产生高度集中的样本归因——仅需少量训练样本即可解释预测,且性能与原始DNN相当。另一重要发现是:嵌入所用网络层的选择对最终准确率有显著影响。
原文摘要 · Abstract (English)
Most techniques for explainable machine learning focus on feature attribution, i.e., values are assigned to the features such that their sum equals the prediction. Example attribution is another form of explanation that assigns weights to the training examples, such that their scalar product with the labels equals the prediction. The latter may provide valuable complementary information to feature attribution, in particular in cases where the features are not easily interpretable. Current example-based explanation techniques have targeted a few model types only, such as k-nearest neighbors and random forests. In this work, a technique for obtaining example-based explanations from deep neural networks (EBE-DNN) is proposed. The basic idea is to use the deep neural network to obtain an embedding, which is employed by a k-nearest neighbor classifier to form a prediction; the example attribution can hence straightforwardly be derived from the latter. Results from an empirical investigation show that EBE-DNN can provide highly concentrated example attributions, i.e., the predictions can be explained with few training examples, without reducing accuracy compared to the original deep neural network. Another important finding from the empirical investigation is that the choice of layer to use for the embeddings may have a large impact on the resulting accuracy.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。