Nowadays, the interpretation of why a machine learning (ML) model makes certain inferences is as crucial as the accuracy of such inferences. Some ML models like the decision tree possess inherent interpretability that can be directly comprehended by humans. Others like artificial neural networks (ANN), however, rely on external methods to uncover the deduction mechanism. SHapley Additive exPlanations (SHAP) is one of such external methods, which requires a background dataset when interpreting ANNs. Generally, a background dataset consists of instances randomly sampled from the training dataset. However, the sampling size and its effect on SHAP remain to be unexplored. In our empirical study on the MIMIC-III dataset, we show that the two core explanations - SHAP values and variable rankings fluctuate when using different background datasets acquired from random sampling, indicating that users cannot unquestioningly trust the one-shot interpretation from SHAP. Luckily, such fluctuation decreases with the increase of the background dataset size. Also, we notice an U-shape in the stability assessment of SHAP variable rankings, demonstrating that SHAP is more reliable in ranking the most and least important variables compared to moderately important ones. Overall, our results suggest that users should take into account how background data affects SHAP results, with improved SHAP stability as the background sample size increases.
翻译:现今,解释为何机器学习(ML)模型做出某些推论的解释方式和推论准确率一样重要。像决策树这样的ML模型具有直接被人理解的内在可解释性。然而,其他的模型,如人工神经网络(ANN)则依赖外部方法来揭示推导机制。SHapley Additive exPlanations(SHAP)就是这样一种需要背景数据集的外部方法来解释ANNs。一般情况下,背景数据集包含从训练数据集中随机抽取的实例。然而,抽样大小及其对SHap的影响仍未被研究。在我们对MIMIC-III数据集的实证研究中,我们展示了两种核心解释--SHAP值和变量排名--在使用从随机抽样获得的不同的背景数据集时会波动,这表明用户不能毫无保留地相信SHAP的一次性解释。幸运的是,此类波动随着背景数据集大小的增加而减少。此外,我们注意到SHAP变量排名稳定性评估中的U形演变,表明与适度重要变量相比,SHAP在排列最重要和最不重要的变量时更可靠。总体上,我们的结果表明,用户应该考虑背景数据如何影响SHAP的结果,随着背景样本大小的增加,SHAP的稳定性得到了改善。