arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.07374cs.CLcs.AI
收藏

学习何时集中或转移注意力:神经机器翻译的自适应注意温度

Learning When to Concentrate or Divert Attention: Self-Adaptive Attention Temperature for Neural Machine Translation

Peking University(北京大学)

Junyang Lin, Xu Sun, Xuancheng Ren, Muyu Li, Qi Su

摘要:

大多数神经机器翻译(NMT)模型都是基于序列到序列(Seq 2Seq)模型,其编码器-解码器框架配备有注意力机制。然而,传统的注意力机制利用相同的矩阵同等地对待每个时间步长处的解码,这是有问题的,因为对于不同类型的词(例如,内容词和功能词)的注意力的柔和度应该不同。因此,我们提出了一个新的模型,称为自适应控制温度(SACT)的机制,以控制注意力的柔软度的注意力温度。在汉英翻译和英越翻译上的实验结果表明,该模型的性能优于基准模型,分析和案例研究表明,该模型能够关注源端语境中最相关的元素,生成高质量的译文。

英文摘要:

Most of the Neural Machine Translation (NMT) models are based on the sequence-to-sequence (Seq2Seq) model with an encoder-decoder framework equipped with the attention mechanism. However, the conventional attention mechanism treats the decoding at each time step equally with the same matrix, which is problematic since the softness of the attention for different types of words (e.g. content words and function words) should differ. Therefore, we propose a new model with a mechanism called Self-Adaptive Control of Temperature (SACT) to control the softness of attention by means of an attention temperature. Experimental results on the Chinese-English translation and English-Vietnamese translation demonstrate that our model outperforms the baseline models, and the analysis and the case study show that our model can attend to the most relevant elements in the source-side contexts and generate the translation of high quality.

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

↑