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

神经机器翻译的GRU-门控注意力模型

A GRU-Gated Attention Model for Neural Machine Translation

Xiamen University(厦门大学);Soochow University(苏州大学)

Biao Zhang, Deyi Xiong, Jinsong Su

摘要:

神经机器翻译(NMT)严重依赖于注意力网络来为每个目标词预测产生上下文向量。在实践中,我们发现不同目标词的上下文向量彼此非常相似,因此不足以区分地预测目标词。这可能是因为vanilla attention网络产生的上下文向量只是对解码器状态不变的源表示的加权和。在本文中,我们提出了一种新的GRU门控注意力模型(GAtt)的NMT,提高了歧视程度的上下文向量,使源表示是敏感的解码器产生的部分翻译。GAtt使用门控递归单元(GRU)来组合两种类型的信息:将双向编码器最初产生的源注释向量视为历史状态,而将对应的先前解码器状态视为GRU的输入。GRU组合的信息形成新的源注释向量。通过这种方式,我们可以获得对注意力敏感的源表示,然后将其馈送到注意力网络中以生成有区别的上下文向量。我们进一步提出了一个变体,将源注释向量视为当前输入,而先前的解码器状态作为历史。在NIST汉英翻译任务上的实验表明,这两种基于GATT的模型都比基于注意力的NMT有显著的改进。对注意力权重和上下文向量的进一步分析表明,GAtt在提高表征的区分能力和处理具有挑战性的过度翻译问题方面是有效的。

英文摘要:

Neural machine translation (NMT) heavily relies on an attention network to produce a context vector for each target word prediction. In practice, we find that context vectors for different target words are quite similar to one another and therefore are insufficient in discriminatively predicting target words. The reason for this might be that context vectors produced by the vanilla attention network are just a weighted sum of source representations that are invariant to decoder states. In this paper, we propose a novel GRU-gated attention model (GAtt) for NMT which enhances the degree of discrimination of context vectors by enabling source representations to be sensitive to the partial translation generated by the decoder. GAtt uses a gated recurrent unit (GRU) to combine two types of information: treating a source annotation vector originally produced by the bidirectional encoder as the history state while the corresponding previous decoder state as the input to the GRU. The GRU-combined information forms a new source annotation vector. In this way, we can obtain translation-sensitive source representations which are then feed into the attention network to generate discriminative context vectors. We further propose a variant that regards a source annotation vector as the current input while the previous decoder state as the history. Experiments on NIST Chinese-English translation tasks show that both GAtt-based models achieve significant improvements over the vanilla attentionbased NMT. Further analyses on attention weights and context vectors demonstrate the effectiveness of GAtt in improving the discrimination power of representations and handling the challenging issue of over-translation.

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

↑