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

基于多头注意力的神经机器翻译中对齐问题的研究

On The Alignment Problem In Multi-Head Attention-Based Neural Machine Translation

RWTH Aachen University(亚琛工业大学)

Tamer Alkhouli, Gabriel Bretschner, Hermann Ney

摘要:

本文研究了基于Transformer结构的多头注意力模型中的对齐问题。我们证明,对准提取Transformer模型可以通过增加一个额外的对准头的多头源到目标的注意力组件。这用于计算更清晰的注意力权重。我们描述了如何使用对准头来实现有竞争力的性能。为了研究添加对齐头的效果,我们模拟了一个字典引导的翻译任务,其中用户希望使用预定义的字典条目来指导翻译。使用所提出的方法,我们实现了$3.8$ % BLEU的改善时,使用的字典相比,在基线情况下的$2.4$ % BLEU。我们还提出了对齐修剪,以加快解码基于语义的神经机器翻译(ANMT),这加快了翻译的一个因素的$1.8$没有损失的翻译性能。我们在共享的WMT 2016英语$\to$罗马尼亚语新闻任务和BOLT中文$\to$英语论坛任务上进行实验。

英文摘要:

This work investigates the alignment problem in state-of-the-art multi-head attention models based on the transformer architecture. We demonstrate that alignment extraction in transformer models can be improved by augmenting an additional alignment head to the multi-head source-to-target attention component. This is used to compute sharper attention weights. We describe how to use the alignment head to achieve competitive performance. To study the effect of adding the alignment head, we simulate a dictionary-guided translation task, where the user wants to guide translation using pre-defined dictionary entries. Using the proposed approach, we achieve up to $3.8$ % BLEU improvement when using the dictionary, in comparison to $2.4$ % BLEU in the baseline case. We also propose alignment pruning to speed up decoding in alignment-based neural machine translation (ANMT), which speeds up translation by a factor of $1.8$ without loss in translation performance. We carry out experiments on the shared WMT 2016 English$\to$Romanian news task and the BOLT Chinese$\to$English discussion forum task.

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

↑