Word Closure-Based Metamorphic Testing for Machine Translation

被引:0
|
作者
Xie, Xiaoyuan [1 ]
Jin, Shuo [1 ]
Chen, Songqiang [2 ]
Cheung, Shing-chi [2 ]
机构
[1] Wuhan Univ, Sch Comp Sci, Wuhan, Peoples R China
[2] Hong Kong Univ Sci & Technol, Dept Comp Sci & Engn, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
Machine translation; metamorphic testing; word closure; deep learning testing;
D O I
10.1145/3675396
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the wide application of machine translation, the testing of Machine Translation Systems (MTSs) has attracted much attention. Recent works apply Metamorphic Testing (MT) to address the oracle problem in MTS testing. Existing MT methods for MTS generally follow the workflow of input transformation and output relation comparison, which generates a follow-up input sentence by mutating the source input and compares the source and follow-up output translations to detect translation errors, respectively. These methods use various input transformations to generate the test case pairs and have successfully triggered numerous translation errors. However, they have limitations in performing fine-grained and rigorous output relation comparison and thus may report many false alarms and miss many true errors. In this article, we propose a word closure-based output comparison method to address the limitations of the existing MTS MT methods. We first propose word closure as a new comparison unit, where each closure includes a group of correlated input and output words in the test case pair. Word closures suggest the linkages between the appropriate fragment in the source output translation and its counterpart in the follow-up output for comparison. Next, we compare the semantics on the level of word closure to identify the translation errors. In this way, we perform a fine-grained and rigorous semantic comparison for the outputs and thus realize more effective violation identification. We evaluate our method with the test cases generated by five existing input transformations and the translation outputs from three popular MTSs. Results show that our method significantly outperforms the existing works in violation identification by improving the precision and recall and achieving an average increase of 29.9% in F1 score. It also helps to increase the F1 score of translation error localization by 35.9%.
引用
收藏
页数:46
相关论文
共 50 条
  • [41] Ontology-based metamorphic testing for chatbots
    Bozic, Josip
    SOFTWARE QUALITY JOURNAL, 2022, 30 (01) : 227 - 251
  • [42] Ontology-based metamorphic testing for chatbots
    Josip Božić
    Software Quality Journal, 2022, 30 : 227 - 251
  • [43] MT4UML: Metamorphic Testing for Unsupervised Machine Learning
    Rehman, Faqeer Ur
    Izurieta, Clemente
    2022 9TH SWISS CONFERENCE ON DATA SCIENCE (SDS), 2022, : 26 - 32
  • [44] Agile Metamorphic Model-based Testing
    Lindvall, Mikael
    Ganesan, Dharmalingam
    Bjorgvinsson, Sigurthor
    Jonsson, Kristjan
    Logason, Haukur Steinn
    Dietrich, Frederik
    Wiegand, Robert E.
    2016 IEEE/ACM 1ST INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET), 2016, : 26 - 32
  • [45] Automated Testing for Machine Translation via Constituency Invariance
    Ji, Pin
    Feng, Yang
    Liu, Jia
    Zhao, Zhihong
    Xu, Baowen
    2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, : 468 - 479
  • [46] Learning Word Alignment Models for Kazakh-English Machine Translation
    Kartbayev, Amandyk
    INTEGRATED UNCERTAINTY IN KNOWLEDGE MODELLING AND DECISION MAKING, IUKM 2015, 2015, 9376 : 326 - 335
  • [47] A New Method for Word Alignment of Tibetan-Chinese Machine Translation
    Wan, Fucheng
    He, Xiangzhen
    Yu, Hongzhi
    ADVANCES IN TEXTILE ENGINEERING AND MATERIALS IV, 2014, 1048 : 521 - 525
  • [48] Color the Word: Leveraging Web Images for Machine Translation of Untranslatable Words
    van de Sande, Yana
    Larson, Martha
    MULTIMEDIA MODELING (MMM 2022), PT I, 2022, 13141 : 131 - 138
  • [49] Testing Graph Searching Based Path Planning Algorithms by Metamorphic Testing
    Zhang, Jiantao
    Zheng, Zheng
    Yin, Beibei
    Qiu, Kun
    Liu, Yang
    2019 IEEE 24TH PACIFIC RIM INTERNATIONAL SYMPOSIUM ON DEPENDABLE COMPUTING (PRDC 2019), 2019, : 158 - 167
  • [50] TESTING A SOFTWARE-BASED PID CONTROLLER USING METAMORPHIC TESTING
    Chen, T. Y.
    Kuo, F. -C
    Tam, W. K.
    Merkel, R.
    PECCS 2011: PROCEEDINGS OF THE 1ST INTERNATIONAL CONFERENCE ON PERVASIVE AND EMBEDDED COMPUTING AND COMMUNICATION SYSTEMS, 2011, : 387 - 396