arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.12064cs.CLcs.AIcs.LG
收藏

注意力遇到干扰:对抗性训练的鲁棒性和可解释性注意力

Attention Meets Perturbations: Robust and Interpretable Attention with Adversarial Training

Hosei University(法政大学)

Shunsuke Kitada, Hitoshi Iyatomi

摘要:

尽管注意力机制已被应用于各种深度学习模型,并已被证明可以提高预测性能,但据报道,注意力机制容易受到机制扰动的影响。为了克服机制中对扰动的脆弱性,我们受到对抗训练(AT)的启发,这是一种强大的正则化技术,用于增强模型的鲁棒性。在本文中,我们提出了一个通用的自然语言处理任务的训练技术,包括注意力AT(Attention AT)和更可解释的注意力AT(Attention iAT)。所提出的技术提高了预测性能和模型的可解释性,利用与AT的机制。特别是,注意力iAT通过引入对抗扰动来增强这些优势,这增强了句子注意力的差异。使用10个开放数据集的评估实验显示,注意力机制的AT,特别是Attention iAT,表现出(1)在十个任务中的九个任务中表现最好,(2)更多的可解释注意力(即,所得到的注意力与基于梯度的单词重要性更强地相关)。此外,所提出的技术是(3)少得多的依赖于在AT的扰动大小。我们的代码可在https://github.com/shunk031/attention-meets-perturbation上获得

英文摘要:

Although attention mechanisms have been applied to a variety of deep learning models and have been shown to improve the prediction performance, it has been reported to be vulnerable to perturbations to the mechanism. To overcome the vulnerability to perturbations in the mechanism, we are inspired by adversarial training (AT), which is a powerful regularization technique for enhancing the robustness of the models. In this paper, we propose a general training technique for natural language processing tasks, including AT for attention (Attention AT) and more interpretable AT for attention (Attention iAT). The proposed techniques improved the prediction performance and the model interpretability by exploiting the mechanisms with AT. In particular, Attention iAT boosts those advantages by introducing adversarial perturbation, which enhances the difference in the attention of the sentences. Evaluation experiments with ten open datasets revealed that AT for attention mechanisms, especially Attention iAT, demonstrated (1) the best performance in nine out of ten tasks and (2) more interpretable attention (i.e., the resulting attention correlated more strongly with gradient-based word importance) for all tasks. Additionally, the proposed techniques are (3) much less dependent on perturbation size in AT. Our code is available at https://github.com/shunk031/attention-meets-perturbation

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

↑