arrow
Return

Differential Testing of Machine Translators Based on Compositional Semantics

delete2023-12-01
delete1
delete
OA
AI
刘爽 cover
刘爽 (Shuang Liu)
S
Shujie Dou
J
Junjie Chen
Z
Zhirun Zhang
Y
Ye Lu *
DOI:10.1109/TSE.2023.3323969delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Powered by the advances of deep neural networks, machine translation software has achieved rapid progresses recently. Machine translators are widely adopted in people's daily lives, e.g., for information consumption, medical consumption and online shopping. However, machine translators are far from robust, and may produce wrong translations, which could potentially cause misunderstandings or even serious consequences. It is thus critical to detect errors in machine translators, and provide informative feedback for developers. In this work, we adopt the differential testing method to test machine translators. In particular, we use mature commercial translators as reference machine translation engines. Based on the principle of compositionality, which specifies that the meaning of a complex expression is determined by the meanings of its constituent expressions and the syntactic rules used to combine them, we design the oracle which conducts similarity comparison guided by syntactic structure and semantic encoding. In particular, we employ the constituency parsing to obtain the part-whole structure relation between a sentence and one of its component. Then we compute the semantic similarity of each sentence part with pre-trained language model and expert knowledge. We implement our approach into a tool named DCS, conduct experiments on three popular machine translators, i.e., Google translate, Baidu translate and Microsoft Bing translate, and compare DCS with two state-of-the-art approaches, i.e., CIT and CAT. The experiment results show that DCS achieves 8.6% and 35.4% higher precision, respectively. Moreover, the errors reported by DCS have the lowest redundancy in terms of the duplicated error locations in the source sentence. DCS can be used in complement with existing approaches and achieve higher detection precision. It also shows comparable efficiency with state-of-the-art approaches.
Keywords:
Semantics
Internet
Web and internet services
Urban areas
Testing
Syntactics
Handover
Software testing
software quality
machine translation

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.8K
Citations:
1.1W

Organization

T
tianjin university
Scholars:
8.0W
Papers: 5.7W
Citations: 88
R
Renmin University of China
Scholars:
8.1K
Papers: 7.7K
Citations: 1.1W
N
nankai university
Scholars:
4.7W
Papers: 3.2W
Citations: 74
researcher View more organizations