首页    期刊浏览 2024年12月01日 星期日
登录注册

文章基本信息

  • 标题:Measuring and Improving Faithfulness of Attention in Neural Machine Translation
  • 本地全文:下载
  • 作者:Pooya Moradi ; Nishant Kambhatla ; Anoop Sarkar
  • 期刊名称:Conference on European Chapter of the Association for Computational Linguistics (EACL)
  • 出版年度:2021
  • 卷号:2021
  • 页码:2791-2802
  • DOI:10.18653/v1/2021.eacl-main.243
  • 语种:English
  • 出版社:ACL Anthology
  • 摘要:While the attention heatmaps produced by neural machine translation (NMT) models seem insightful, there is little evidence that they reflect a model’s true internal reasoning. We provide a measure of faithfulness for NMT based on a variety of stress tests where attention weights which are crucial for prediction are perturbed and the model should alter its predictions if the learned weights are a faithful explanation of the predictions. We show that our proposed faithfulness measure for NMT models can be improved using a novel differentiable objective that rewards faithful behaviour by the model through probability divergence. Our experimental results on multiple language pairs show that our objective function is effective in increasing faithfulness and can lead to a useful analysis of NMT model behaviour and more trustworthy attention heatmaps. Our proposed objective improves faithfulness without reducing the translation quality and has a useful regularization effect on the NMT model and can even improve translation quality in some cases.
国家哲学社会科学文献中心版权所有