Attention Meets Perturbations: Robust and Interpretable Attention with Adversarial Training

Shunsuke Kitada, Hitoshi Iyatomi
9/25/2020
cs.CLcs.AIcs.LG
transformer-attention

Official code: shunk031/attention-meets-perturbation (7 stars, Python, MIT, PyTorch, last commit 2021-08-13).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

📝 Official Implementation of "Attention Meets Perturbation: Robust and Interpretable Attention with Adversarial Training"

71Python, JsonnetSep 27, 20205 years agoMIT
adversarial-trainingallennlpattention-mechanismbinary-classificationieee+6 more

Similar Papers

Cite this paper

@article{kitada2020attention,
  title  = {Attention Meets Perturbations: Robust and Interpretable Attention with Adversarial Training},
  author = {Shunsuke Kitada and Hitoshi Iyatomi},
  year   = {2020},
  eprint = {2009.12064},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.12064}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.12064.svg)](https://codeofpaper.com/paper/2009.12064)

Discussion