SemMT: A Semantic-based Testing Approach for Machine Translation Systems

Jialun Cao, Meiziniu Li, Yeting Li, Ming Wen, Shing-Chi Cheung
12/3/2020
51 citations
cs.SEcs.CL

Official code: ArabelaTso/SemMT (4 stars, Jupyter Notebook, MIT, last commit 2021-09-16).

Abstract

Machine translation has wide applications in daily life. In mission-critical applications such as translating official documents, incorrect translation can have unpleasant or sometimes catastrophic consequences.

Show full abstract

This motivates recent research on testing methodologies for machine translation systems. Existing methodologies mostly rely on metamorphic relations designed at the textual level (e.g., Levenshtein distance) or syntactic level (e.g., the distance between grammar structures) to determine the correctness of translation results. However, these metamorphic relations do not consider whether the original and translated sentences have the same meaning (i.e., Semantic similarity). Therefore, in this paper, we propose SemMT, an automatic testing approach for machine translation systems based on semantic similarity checking. SemMT applies round-trip translation and measures the semantic similarity between the original and translated sentences. Our insight is that the semantics expressed by the logic and numeric constraint in sentences can be captured using regular expressions (or deterministic finite automata) where efficient equivalence/similarity checking algorithms are available. Leveraging the insight, we propose three semantic similarity metrics and implement them in SemMT. The experiment result reveals SemMT can achieve higher effectiveness compared with state-of-the-art works, achieving an increase of 21% and 23% on accuracy and F-Score, respectively. We also explore potential improvements that can be achieved when proper combinations of metrics are adopted. Finally, we discuss a solution to locate the suspicious trip in round-trip translation, which may shed lights on further exploration.

View on arXivView PDF

Code Implementations(1)

ArabelaTso/SemMTOfficial100%
MIT

SemMT, an automatic testing approach for machine translation systems based on semantic similarity checking

40Jupyter Notebook, PythonSep 10, 20215 years agoMIT

Similar Papers

Cite this paper

@article{cao2020semmt,
  title  = {SemMT: A Semantic-based Testing Approach for Machine Translation Systems},
  author = {Jialun Cao and Meiziniu Li and Yeting Li and Ming Wen and Shing-Chi Cheung},
  year   = {2020},
  eprint = {2012.01815},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.01815}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.01815.svg)](https://codeofpaper.com/paper/2012.01815)

Discussion