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

神经机器翻译中基于动态波束分配的快速词法约束解码

Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation

Amazon Research(亚马逊研究院)

Matt Post, David Vilar

摘要:

神经机器翻译(NMT)的端到端特性消除了许多在旧范式中可用的手动引导翻译过程的方法。然而,最近的工作引入了一种新的能力:词汇约束或引导解码,这是对束搜索的修改,强制在输出中包含预先指定的单词和短语。然而,虽然理论上是合理的,但现有方法的计算复杂性要么是线性的(Hokamp和Liu,2017),要么是指数的(Anderson等人,2017年,在数量上受到限制。我们提出了一个算法的词法约束译码的复杂度为O(1)的限制的数量。我们展示了算法的显着能力,正确地放置这些约束,并使用它来探索模型和BLEU分数之间的不稳定的关系。我们的实现作为Sockeye的一部分提供。

英文摘要:

The end-to-end nature of neural machine translation (NMT) removes many ways of manually guiding the translation process that were available in older paradigms. Recent work, however, has introduced a new capability: lexically constrained or guided decoding, a modification to beam search that forces the inclusion of pre-specified words and phrases in the output. However, while theoretically sound, existing approaches have computational complexities that are either linear (Hokamp and Liu, 2017) or exponential (Anderson et al., 2017) in the number of constraints. We present a algorithm for lexically constrained decoding with a complexity of O(1) in the number of constraints. We demonstrate the algorithms remarkable ability to properly place these constraints, and use it to explore the shaky relationship between model and BLEU scores. Our implementation is available as part of Sockeye.

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

↑