Machine translation testing via pathological invariance
Shashij Gupta, Pinjia He, Clara Meister, Zhendong Su
Abstract
Machine translation software has become heavily integrated into our daily lives due to the recent improvement in the performance of deep neural networks. However, machine translation software has been shown to regularly return erroneous translations, which can lead to harmful consequences such as economic loss and political conflicts. Additionally, due to the complexity of the underlying neural models, testing machine translation systems presents new challenges. To address this problem, we introduce a novel methodology called PatInv. The main intuition behind PatInv is that sentences with different meanings should not have the same translation. Under this general idea, we provide two realizations of PatInv that given an arbitrary sentence, generate syntactically similar but semantically different sentences by: (1) replacing one word in the sentence using a masked language model or (2) removing one word or phrase from the sentence based on its constituency structure. We then test whether the returned translations are the same for the original and modified sentences. We have applied PatInv to test Google Translate and Bing Microsoft Translator using 200 English sentences. Two language settings are considered: English→Hindi (En-Hi) and English→Chinese (En-Zh). The results show that Pat-Inv can accurately find 308 erroneous translations in Google Translate and 223 erroneous translations in Bing Microsoft Translator, most of which cannot be found by the state-of-the-art approaches.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- CCTEST: Testing and Repairing Code Completion Systems cites Testing Machine Translation via Referential Transparency
- CCTEST: Testing and Repairing Code Completion Systems cites Improving Machine Translation Systems via Isotopic Replacement
- BiasAsker: Measuring the Bias in Conversational AI System cites MTTM: Metamorphic Testing for Textual Content Moderation Software
- BiasAsker: Measuring the Bias in Conversational AI System cites Hidden Voice Commands
- BiasAsker: Measuring the Bias in Conversational AI System cites Testing Machine Translation via Referential Transparency
- MTTM: Metamorphic Testing for Textual Content Moderation Software cites TextBugger: Generating Adversarial Text Against Real-world Applications
- MTTM: Metamorphic Testing for Textual Content Moderation Software cites Hidden Voice Commands
- MTTM: Metamorphic Testing for Textual Content Moderation Software cites Testing Machine Translation via Referential Transparency
- MTTM: Metamorphic Testing for Textual Content Moderation Software cites Improving Machine Translation Systems via Isotopic Replacement
- Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks cites Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks
- Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks cites Hidden Voice Commands
- Testing Machine Translation via Referential Transparency cites TextBugger: Generating Adversarial Text Against Real-world Applications
- Testing Machine Translation via Referential Transparency cites Hidden Voice Commands
- Improving Machine Translation Systems via Isotopic Replacement cites Testing Machine Translation via Referential Transparency
- NIC: Detecting Adversarial Samples with Neural Network Invariant Checking cites Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks
- NIC: Detecting Adversarial Samples with Neural Network Invariant Checking cites Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks
Cited by top-tier papers14
- BiasAsker: Measuring the Bias in Conversational AI SystemYuxuan Wan, Wenxuan Wang, Pinjia He, Jiazhen Gu et al.FSE 2023 · 50 citations
- Testing Machine Translation via Referential TransparencyPinjia He, Clara Meister, Zhendong SuICSE 2021 · 50 citations
- CCTEST: Testing and Repairing Code Completion SystemsZongjie Li, Chaozheng Wang, Zhibo Liu, Haoxuan Wang et al.ICSE 2023 · 49 citations
- Improving Machine Translation Systems via Isotopic ReplacementZeyu Sun, Jie M. Zhang, Yingfei Xiong, Mark Harman et al.ICSE 2022 · 42 citations
- MTTM: Metamorphic Testing for Textual Content Moderation SoftwareWenxuan Wang, Jen-tse Huang, Weibin Wu, Jianping Zhang et al.ICSE 2023 · 23 citations
Builds on8
- Distillation as a Defense to Adversarial Perturbations Against Deep Neural NetworksNicolas Papernot, Patrick D. McDaniel, Xi Wu, Somesh Jha et al.S&P 2016 · 3,275 citations
- Feature Squeezing: Detecting Adversarial Examples in Deep Neural NetworksWeilin Xu, David Evans, Yanjun QiNDSS 2018 · 1,633 citations
- TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li et al.NDSS 2019 · 876 citations
- Hidden Voice CommandsNicholas Carlini, Pratyush Mishra, Tavish Vaidya, Yuankai Zhang et al.USENIX Security 2016 · 672 citations
- NIC: Detecting Adversarial Samples with Neural Network Invariant CheckingShiqing Ma, Yingqi Liu, Guanhong Tao, Wen-Chuan Lee et al.NDSS 2019 · 283 citations
Related papers
- Structure-invariant testing for machine translationPinjia He, Clara Meister, Zhendong SuICSE 2020 · 84 citations
- Automated Testing for Machine Translation via Constituency InvariancePin Ji, Yang Feng, Jia Liu, Zhihong Zhao et al.ASE 2021 · 14 citations
- Back Deduction Based Testing for Word Sense Disambiguation Ability of Machine Translation SystemsJun Wang, Yanhui Li, Xiang Huang, Lin Chen et al.ISSTA 2023 · 4 citations
- Using Neural Machine Translation for Generating Diverse Challenging Exercises for Language LearnerFrank Palma Gomez, Subhadarshi Panda, Michael Flor, Alla RozovskayaACL 2023 · 1 citation
- Automatic testing and improvement of machine translationZeyu Sun, Jie M. Zhang, Mark Harman, Mike Papadakis et al.ICSE 2020 · 111 citations
