arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.00751cs.CLcs.SE

基于语法树剪枝的机器翻译测试

Machine Translation Testing via Syntactic Tree Pruning

State Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Manning College of Information & Computer Sciences, University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校曼宁信息与计算机科学学院)

Quanjun Zhang, Juan Zhai, Chunrong Fang, Jiawei Liu, Weisong Sun, Haichuan Hu, Qingyu Wang

AI总结:

本文提出基于语法树剪枝(STP)的蜕变测试方法,通过保留核心语义的剪枝策略生成源句子对,有效发现Google Translate和Bing Microsoft Translator中的大量独特翻译错误,精度和召回率显著优于现有技术。

摘要:

机器翻译系统已广泛应用于我们的日常生活中,使生活更轻松便捷。然而,错误的翻译可能导致严重后果,例如经济损失。这要求提高机器翻译系统的准确性和可靠性。然而,由于底层神经模型的复杂性和不可处理性,测试机器翻译系统具有挑战性。为了应对这些挑战,我们提出了一种基于语法树剪枝(STP)的新型蜕变测试方法来验证机器翻译系统。我们的核心见解是,剪枝后的句子应与原始句子具有相似的关键语义。具体而言,STP(1)基于语法树表示级别的基本句子结构和依赖关系,提出了一种核心语义保留的剪枝策略;(2)基于蜕变关系生成源句子对;(3)通过词袋模型报告违反一致性属性的可疑问题。我们进一步在两个最先进的机器翻译系统(即Google Translate和Bing Microsoft Translator)上评估了STP,输入为1,200个源句子。结果表明,STP能准确地在Google Translate中发现5,073个独特的错误翻译,在Bing Microsoft Translator中发现5,100个独特的错误翻译(比最先进的技术多400%),精度分别为64.5%和65.4%。报告的错误翻译类型多样,其中超过90%无法被最先进的技术发现。有9,393个STP独有的错误翻译,比最先进的技术多711.9%。此外,STP在检测原始句子的翻译错误方面非常有效,召回率达到74.0%,平均比最先进的技术提高55.1%。

英文摘要:

Machine translation systems have been widely adopted in our daily life, making life easier and more convenient. Unfortunately, erroneous translations may result in severe consequences, such as financial losses. This requires to improve the accuracy and the reliability of machine translation systems. However, it is challenging to test machine translation systems because of the complexity and intractability of the underlying neural models. To tackle these challenges, we propose a novel metamorphic testing approach by syntactic tree pruning (STP) to validate machine translation systems. Our key insight is that a pruned sentence should have similar crucial semantics compared with the original sentence. Specifically, STP (1) proposes a core semantics-preserving pruning strategy by basic sentence structure and dependency relations on the level of syntactic tree representation; (2) generates source sentence pairs based on the metamorphic relation; (3) reports suspicious issues whose translations break the consistency property by a bag-of-words model. We further evaluate STP on two state-of-the-art machine translation systems (i.e., Google Translate and Bing Microsoft Translator) with 1,200 source sentences as inputs. The results show that STP can accurately find 5,073 unique erroneous translations in Google Translate and 5,100 unique erroneous translations in Bing Microsoft Translator (400% more than state-of-the-art techniques), with 64.5% and 65.4% precision, respectively. The reported erroneous translations vary in types and more than 90% of them cannot be found by state-of-the-art techniques. There are 9,393 erroneous translations unique to STP, which is 711.9% more than state-of-the-art techniques. Moreover, STP is quite effective to detect translation errors for the original sentences with a recall reaching 74.0%, improving state-of-the-art techniques by 55.1% on average.

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

↑