arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.02657cs.CL
收藏

基于任务信息的文本分类中注意力推理的可信度改进

Improving the Faithfulness of Attention-based Explanations with Task-specific Information for Text Classification

University of Sheffield(谢菲尔德大学)

George Chrysostomou, Nikolaos Aletras

摘要:

自然语言处理中的神经网络架构通常使用注意力机制来产生输入令牌表示的概率分布。注意力已被经验证明可以提高各种任务的性能,而其权重已被广泛用作模型预测的解释。最近的研究(Jain和Wallace,2019; Serrano和Smith,2019; Wiegreffe和Pinter,2019)表明,它通常不能被认为是编码器和任务之间的忠实解释(Jacovi和Goldberg,2020)。在本文中,我们试图提高基于注意力的文本分类解释的可信度。我们通过提出一个新的任务缩放(TaSc)机制,学习特定于任务的非上下文信息来缩放原始的注意力权重。对解释忠实性的评估测试表明,TaSc的三个变体在两个注意力机制、五个编码器和五个文本分类数据集上提高了基于注意力的解释,而不牺牲预测性能。最后,我们证明,TaSc一贯提供更忠实的注意力为基础的解释相比,三个广泛使用的可解释性技术。

英文摘要:

Neural network architectures in natural language processing often use attention mechanisms to produce probability distributions over input token representations. Attention has empirically been demonstrated to improve performance in various tasks, while its weights have been extensively used as explanations for model predictions. Recent studies (Jain and Wallace, 2019; Serrano and Smith, 2019; Wiegreffe and Pinter, 2019) have showed that it cannot generally be considered as a faithful explanation (Jacovi and Goldberg, 2020) across encoders and tasks. In this paper, we seek to improve the faithfulness of attention-based explanations for text classification. We achieve this by proposing a new family of Task-Scaling (TaSc) mechanisms that learn task-specific non-contextualised information to scale the original attention weights. Evaluation tests for explanation faithfulness, show that the three proposed variants of TaSc improve attention-based explanations across two attention mechanisms, five encoders and five text classification datasets without sacrificing predictive performance. Finally, we demonstrate that TaSc consistently provides more faithful attention-based explanations compared to three widely-used interpretability techniques.

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

↑