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

神经机器翻译的束搜索策略

Beam Search Strategies for Neural Machine Translation

IBM T.J. Watson Research Center(IBM托马斯·J·沃森研究中心)

Markus Freitag, Yaser Al-Onaizan

摘要:

神经机器翻译(NMT)的基本概念是训练一个大型的神经网络,使其在给定的并行语料库上的翻译性能最大化。然后,NMT使用一个简单的从左到右波束搜索解码器来生成新的翻译,近似地最大化训练的条件概率。当前的束搜索策略从左到右逐词生成目标句子,同时在每个时间步长保持固定数量的活动候选。首先,这种简单的搜索适应性较差,因为它还扩展了分数比当前最佳分数差得多的候选人。其次,如果假设不在最佳得分候选项之内,即使它们的得分接近最佳得分,它也不会扩展假设。后者可以通过增加波束尺寸来避免,直到没有观察到性能改善。虽然你可以达到更好的性能,这有一个较慢的解码速度的缺点.在本文中,我们专注于加速解码器,通过应用一个更灵活的束搜索策略,其候选大小可能会有所不同,在每个时间步取决于候选分数。对于两种语言对德英和中英,我们将原始解码器的速度提高了43%,而不会损失任何翻译质量。

英文摘要:

The basic concept in Neural Machine Translation (NMT) is to train a large Neural Network that maximizes the translation performance on a given parallel corpus. NMT is then using a simple left-to-right beam-search decoder to generate new translations that approximately maximize the trained conditional probability. The current beam search strategy generates the target sentence word by word from left-to- right while keeping a fixed amount of active candidates at each time step. First, this simple search is less adaptive as it also expands candidates whose scores are much worse than the current best. Secondly, it does not expand hypotheses if they are not within the best scoring candidates, even if their scores are close to the best one. The latter one can be avoided by increasing the beam size until no performance improvement can be observed. While you can reach better performance, this has the draw- back of a slower decoding speed. In this paper, we concentrate on speeding up the decoder by applying a more flexible beam search strategy whose candidate size may vary at each time step depending on the candidate scores. We speed up the original decoder by up to 43% for the two language pairs German-English and Chinese-English without losing any translation quality.

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

↑