测试不可测试的神经机器翻译:一个工业案例
Testing Untestable Neural Machine Translation: An Industrial Case
摘要:
神经机器翻译(NMT)由于其相对于传统的统计机器翻译(SMT)的优势,近年来得到了广泛的应用。然而,由于自然语言的复杂性和设计神经网络的复杂性,NMT系统仍然经常产生翻译失败。虽然内部黑盒系统测试基于参考翻译(即,有效翻译的实例)已经成为NMT质量保证的常见实践,一种越来越重要的工业实践,称为体内测试,当真实用户使用部署的工业NMT系统时,暴露了不可见的翻译失败类型或实例。为了填补缺乏测试预言机的NMT系统的体内测试的空白,在本文中,我们提出了一种新的方法,自动识别翻译失败,而不需要参考翻译的翻译任务,我们的方法可以直接作为一个测试预言机的体内测试。我们的方法专注于可以系统地检查的自然语言翻译的属性,并使用来自测试输入的信息(即,要翻译的文本)和测试输出(即,NMT系统的翻译)。我们在真实世界数据集上进行的评估表明,我们的方法可以有效地将有针对性的属性违规检测为翻译失败。我们在微信(一个月活跃用户超过10亿的信使应用程序)的生产和开发环境中部署我们的方法的经验证明了我们的方法的高效率以及高行业影响力。
英文摘要:
Neural Machine Translation (NMT) has been widely adopted recently due to its advantages compared with the traditional Statistical Machine Translation (SMT). However, an NMT system still often produces translation failures due to the complexity of natural language and sophistication in designing neural networks. While in-house black-box system testing based on reference translations (i.e., examples of valid translations) has been a common practice for NMT quality assurance, an increasingly critical industrial practice, named in-vivo testing, exposes unseen types or instances of translation failures when real users are using a deployed industrial NMT system. To fill the gap of lacking test oracle for in-vivo testing of an NMT system, in this paper, we propose a new approach for automatically identifying translation failures, without requiring reference translations for a translation task; our approach can directly serve as a test oracle for in-vivo testing. Our approach focuses on properties of natural language translation that can be checked systematically and uses information from both the test inputs (i.e., the texts to be translated) and the test outputs (i.e., the translations under inspection) of the NMT system. Our evaluation conducted on real-world datasets shows that our approach can effectively detect targeted property violations as translation failures. Our experiences on deploying our approach in both production and development environments of WeChat (a messenger app with over one billion monthly active users) demonstrate high effectiveness of our approach along with high industry impact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。