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

在神经翻译模型中添加可解释的注意力可以改善单词对齐

Adding Interpretable Attention to Neural Translation Models Improves Word Alignment

Lilt, Inc.(Lilt公司)

Thomas Zenkel, Joern Wuebker, John DeNero

摘要:

与更简单和更浅的模型相比,每层具有多个注意力头的多层模型提供了更好的翻译质量,但因此确定什么源上下文与每个目标词最相关更具挑战性。因此,从最先进的神经机器翻译模型的激活中获得高精度的单词对齐是一个开放的挑战。我们提出了一个简单的模型扩展的Transformer架构,利用其隐藏的表示,并仅限于参加编码器信息预测下一个字。它可以在没有单词对齐信息的双语数据上训练。我们进一步引入了一种新的对齐推理过程,该过程应用随机梯度下降来直接优化对给定目标词的注意激活。由此产生的对齐显着优于天真的方法来解释Transformer的注意力激活,并与吉萨++在两个公开的数据集。

英文摘要:

Multi-layer models with multiple attention heads per layer provide superior translation quality compared to simpler and shallower models, but determining what source context is most relevant to each target word is more challenging as a result. Therefore, deriving high-accuracy word alignments from the activations of a state-of-the-art neural machine translation model is an open challenge. We propose a simple model extension to the Transformer architecture that makes use of its hidden representations and is restricted to attend solely on encoder information to predict the next word. It can be trained on bilingual data without word-alignment information. We further introduce a novel alignment inference procedure which applies stochastic gradient descent to directly optimize the attention activations towards a given target word. The resulting alignments dramatically outperform the naive approach to interpreting Transformer attention activations, and are comparable to Giza++ on two publicly available data sets.

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

↑