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

具有监督自注意的源相关Transformer

Source Dependency-Aware Transformer with Supervised Self-Attention

Nankai University(南开大学);Harbin Institute of Technology(哈尔滨工业大学);Microsoft Research Asia(微软亚洲研究院)

Chengyi Wang, Shuangzhi Wu, Shujie Liu

摘要:

最近,Transformer在许多机器翻译任务上实现了最先进的性能。然而,在编码器中没有明确考虑语法知识的情况下,违反语法结构的不正确的上下文信息可能被集成到源隐藏状态中,从而导致错误的翻译。在本文中,我们提出了一种新的方法,将源依赖到Transformer。具体来说,我们采用源依赖树,并定义了两个矩阵来表示依赖关系。在此基础上,对多头自注意模块中的两个头进行有监督的训练,并在训练目标函数中引入两个额外的交叉熵损失。在此训练目标下,模型被训练成直接学习源依赖关系。在推理过程中不需要预解析的输入,我们的模型可以使用依赖感知的上下文信息生成更好的翻译。在汉英、英日和英德双向翻译任务上的实验表明,该方法能显著提高Transformer的基线。

英文摘要:

Recently, Transformer has achieved the state-of-the-art performance on many machine translation tasks. However, without syntax knowledge explicitly considered in the encoder, incorrect context information that violates the syntax structure may be integrated into source hidden states, leading to erroneous translations. In this paper, we propose a novel method to incorporate source dependencies into the Transformer. Specifically, we adopt the source dependency tree and define two matrices to represent the dependency relations. Based on the matrices, two heads in the multi-head self-attention module are trained in a supervised manner and two extra cross entropy losses are introduced into the training objective function. Under this training objective, the model is trained to learn the source dependency relations directly. Without requiring pre-parsed input during inference, our model can generate better translations with the dependency-aware context information. Experiments on bi-directional Chinese-to-English, English-to-Japanese and English-to-German translation tasks show that our proposed method can significantly improve the Transformer baseline.

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

↑