Automatic Testing and Improvement of Machine Translation

Zeyu Sun, Jie M. Zhang, Mark Harman, Mike Papadakis, Lu Zhang
10/7/2019
145 citations
cs.SE
transformer-attention

Official code: zysszy/TransRepair (10 stars, last commit 2019-08-24).

Abstract

This paper presents TransRepair, a fully automatic approach for testing and repairing the consistency of machine translation systems. TransRepair combines mutation with metamorphic testing to detect inconsistency bugs (without access to human oracles).

Show full abstract

It then adopts probability-reference or cross-reference to post-process the translations, in a grey-box or black-box manner, to repair the inconsistencies. Our evaluation on two state-of-the-art translators, Google Translate and Transformer, indicates that TransRepair has a high precision (99%) on generating input pairs with consistent translations. With these tests, using automatic consistency metrics and manual assessment, we find that Google Translate and Transformer have approximately 36% and 40% inconsistency bugs. Black-box repair fixes 28% and 19% bugs on average for Google Translate and Transformer. Grey-box repair fixes 30% bugs on average for Transformer. Manual inspection indicates that the translations repaired by our approach improve consistency in 87% of cases (degrading it in 2%), and that our repairs have better translation acceptability in 27% of the cases (worse in 8%).

View on arXivView PDF

Code Implementations(1)

zysszy/TransRepairOfficial100%

Automatic Testing and Improvement of Machine Translation (ICSE'20)

102Aug 21, 20197 years ago

Similar Papers

Cite this paper

@article{sun2019automatic,
  title  = {Automatic Testing and Improvement of Machine Translation},
  author = {Zeyu Sun and Jie M. Zhang and Mark Harman and Mike Papadakis and Lu Zhang},
  year   = {2019},
  eprint = {1910.02688},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.02688}
}

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/1910.02688.svg)](https://codeofpaper.com/paper/1910.02688)

Discussion