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

非自回归机器翻译:它没有看起来那么快

Non-Autoregressive Machine Translation: It's Not as Fast as it Seems

University of Edinburgh(爱丁堡大学);Charles University(查理大学)

Jindřich Helcl, Barry Haddow, Alexandra Birch

摘要:

高效的机器翻译模型在商业上非常重要,因为它们可以提高推理速度,降低成本和碳排放。最近,人们对非自回归(NAR)模型产生了很大的兴趣,它承诺更快的翻译。在NAR模型研究的同时,也有一些成功的尝试来创建优化的自回归模型,作为WMT高效翻译共享任务的一部分。在本文中,我们指出的缺陷,目前在文献中的NAR模型的评估方法,我们提供了一个公平的比较国家的最先进的NAR模型和自回归提交的共享任务。我们提出了NAR模型的一致性评价的情况下,也为比较NAR模型与其他广泛使用的方法,以提高效率的重要性。我们运行实验与连接时间分类为基础的(CTC)NAR模型在C++实现,并比较它与AR模型使用挂钟时间。我们的研究结果表明,尽管NAR模型在GPU上更快,但在小批量的情况下,它们在更现实的使用条件下几乎总是更慢。我们呼吁在未来的工作中更现实和广泛的评估NAR模型。

英文摘要:

Efficient machine translation models are commercially important as they can increase inference speeds, and reduce costs and carbon emissions. Recently, there has been much interest in non-autoregressive (NAR) models, which promise faster translation. In parallel to the research on NAR models, there have been successful attempts to create optimized autoregressive models as part of the WMT shared task on efficient translation. In this paper, we point out flaws in the evaluation methodology present in the literature on NAR models and we provide a fair comparison between a state-of-the-art NAR model and the autoregressive submissions to the shared task. We make the case for consistent evaluation of NAR models, and also for the importance of comparing NAR models with other widely used methods for improving efficiency. We run experiments with a connectionist-temporal-classification-based (CTC) NAR model implemented in C++ and compare it with AR models using wall clock times. Our results show that, although NAR models are faster on GPUs, with small batch sizes, they are almost always slower under more realistic usage conditions. We call for more realistic and extensive evaluation of NAR models in future work.

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

↑