论文

Ra-NEM:以插入/删除曲线下面积为目标优化特征归因忠实性

For Those Who Believe in Faithfulness: Optimizing the Area Under Insertion and Deletion Curves for Ranking Relative Feature Importance

精选理由

做模型解释的可以看看这篇:Ra-NEM 直接把忠实性指标变成损失函数来优化,比一般归因方法指标更好、推理也快,代码开源了。

论文从插入/删除曲线下面积这一忠实性度量出发,推导出一个可优化的目标函数,并建立了插入曲线与 top-k 特征选择之间的联系。作者通过随机化损失来高效近似其梯度,并将该损失与 neural explanation mask 框架结合,得到 Ra-NEM 方法。Ra-NEM 可用于任意可微分模型且不影响模型性能,实验显示其归因在忠实性和其他 XAI 指标上优于对比算法,推理速度快,适合在线应用。代码已在 GitHub 开源。

原文 · arXiv cs.LG

For Those Who Believe in Faithfulness: Optimizing the Area Under Insertion and Deletion Curves for Ranking Relative Feature Importance

The adoption of machine learning for socially relevant tasks requires effective explainable artificial intelligence (XAI) methods to better understand the behavior of machine learning models. Attribution methods are a popular XAI approach in which input-output relationships are characterized by heat maps that reflect the relative importance of input features for a particular prediction. The quality of such maps is often assessed by measuring faithfulness based on the area under insertion and deletion curves, which measures changes in the model output as features are added and removed. In this study, we derive an objective function from this notion of faithfulness and a way to approximate its gradient. We establish the connection between insertion curves and top-$k$ feature selection, which leads to a loss function measuring the quality of attributions. Randomization of the loss allows us to efficiently approximate its gradient. To show the effectiveness of the general approach, we combine the loss function with the neural explanation mask framework. The resulting method, termed Ra-NEM, can be used with any differentiable model without affecting the model's performance. Experiments demonstrate that Ra-NEM provides accurate attributions robustly and efficiently. Compared to other algorithms, the attributions have not only higher faithfulness but also perform well in terms of other XAI metrics. The high inference speed of Ra-NEM makes the method suitable for online applications. The code is available online: https://github.com/baerminator/Ra_Nem