arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.11255cs.CL
收藏

基于模板的约束神经机器翻译方法

A Template-based Method for Constrained Neural Machine Translation

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院);International Innovation Center of Tsinghua University, Shanghai(清华大学上海国际创新中心);Quan Cheng Laboratory(之江实验室);Zhongguancun Laboratory(中关村实验室);Tencent AI Lab(腾讯人工智能实验室)

Shuo Wang, Peng Li, Zhixing Tan, Zhaopeng Tu, Maosong Sun, Yang Liu

摘要:

期望机器翻译系统在许多实际场景中应对各种类型的约束。虽然神经机器翻译(NMT)在无约束的情况下取得了很好的性能,但在NMT模型的翻译过程中施加预先指定的约束是不平凡的。虽然已经提出了许多方法来解决这个问题,但大多数现有方法不能同时满足以下三个要求:(1)高翻译质量,(2)高匹配准确率,(3)低延迟。在这项工作中,我们提出了一种基于模板的方法,可以产生高翻译质量和匹配精度的结果,我们的方法的推理速度与无约束NMT模型相当。我们的基本思想是通过一个模板重新安排约束和非约束令牌的生成。我们的方法不需要在模型架构和解码算法的任何变化。实验结果表明,基于模板的方法可以优于几个代表性的基线在词汇和结构约束的翻译任务。

英文摘要:

Machine translation systems are expected to cope with various types of constraints in many practical scenarios. While neural machine translation (NMT) has achieved strong performance in unconstrained cases, it is non-trivial to impose pre-specified constraints into the translation process of NMT models. Although many approaches have been proposed to address this issue, most existing methods can not satisfy the following three desiderata at the same time: (1) high translation quality, (2) high match accuracy, and (3) low latency. In this work, we propose a template-based method that can yield results with high translation quality and match accuracy and the inference speed of our method is comparable with unconstrained NMT models. Our basic idea is to rearrange the generation of constrained and unconstrained tokens through a template. Our method does not require any changes in the model architecture and the decoding algorithm. Experimental results show that the proposed template-based approach can outperform several representative baselines in both lexically and structurally constrained translation tasks.

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

↑