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

机器翻译的结构不变测试

Structure-Invariant Testing for Machine Translation

ETH Zurich(苏黎世联邦理工学院)

Pinjia He, Clara Meister, Zhendong Su

摘要:

近年来,机器翻译软件越来越多地融入我们的日常生活。人们通常将机器翻译用于各种应用,例如向外国医生描述症状和阅读外语政治新闻。然而,支持现代机器翻译的神经机器翻译(NMT)模型的复杂性和棘手性使得这些系统的鲁棒性甚至难以评估,更不用说保证了。机器翻译系统可能返回劣质结果,导致误解、医疗误诊、人身安全威胁或政治冲突。尽管其明显的重要性,验证机器翻译系统的鲁棒性是非常困难的,因此,被大大低估了。为了应对这一挑战,我们引入了结构不变测试(SIT),一种新的变形测试方法来验证机器翻译软件。我们的主要观点是,“相似”的源语句的翻译结果通常应该表现出相似的句子结构。具体来说,SIT(1)通过用语义相似、句法等价的词替换给定句子中的一个词来生成相似的源句子;(2)通过句法分析树(通过选区或依存句法分析获得)来表示句子结构;(3)报告结构差异超过某个阈值的句子对。为了评估SIT,我们使用它来测试Google翻译和Bing Microsoft翻译,输入200个源句子,导致64个和70个错误问题,准确率分别为69.5%和70%。翻译错误是多种多样的,包括翻译不足,过度翻译,不正确的修改,单词/短语误译,和逻辑不清。

英文摘要:

In recent years, machine translation software has increasingly been integrated into our daily lives. People routinely use machine translation for various applications, such as describing symptoms to a foreign doctor and reading political news in a foreign language. However, the complexity and intractability of neural machine translation (NMT) models that power modern machine translation make the robustness of these systems difficult to even assess, much less guarantee. Machine translation systems can return inferior results that lead to misunderstanding, medical misdiagnoses, threats to personal safety, or political conflicts. Despite its apparent importance, validating the robustness of machine translation systems is very difficult and has, therefore, been much under-explored. To tackle this challenge, we introduce structure-invariant testing (SIT), a novel metamorphic testing approach for validating machine translation software. Our key insight is that the translation results of "similar" source sentences should typically exhibit similar sentence structures. Specifically, SIT (1) generates similar source sentences by substituting one word in a given sentence with semantically similar, syntactically equivalent words; (2) represents sentence structure by syntax parse trees (obtained via constituency or dependency parsing); (3) reports sentence pairs whose structures differ quantitatively by more than some threshold. To evaluate SIT, we use it to test Google Translate and Bing Microsoft Translator with 200 source sentences as input, which led to 64 and 70 buggy issues with 69.5\% and 70\% top-1 accuracy, respectively. The translation errors are diverse, including under-translation, over-translation, incorrect modification, word/phrase mistranslation, and unclear logic.

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

↑