Lune

ICSE2021Top-tier venue

Testing Machine Translation via Referential Transparency

Pinjia He, Clara Meister, Zhendong Su

Abstract

Machine translation software has seen rapid progress in recent years due to the advancement of deep Neural Networks. People routinely use machine translation software in their daily lives for tasks such as ordering food in a foreign restaurant, receiving medical diagnosis and treatment from foreign doctors, and reading international political news online. However, due to the complexity and intractability of the underlying Neural Networks, modern machine translation software is still far from robust and can produce poor or incorrect translations; this can lead to misunderstanding, financial loss, threats to personal safety and health, and political conflicts. To address this problem, we introduce referentially transparent inputs (RTIs), a simple, widely applicable methodology for validating machine translation software. A referentially transparent input is a piece of text that should have similar translations when used in different contexts. Our practical implementation, Purity, detects when this property is broken by a translation. To evaluate RTI, we use Purity to test Google Translate and Bing Microsoft Translator with 200 unlabeled sentences, which detected 123 and 142 erroneous translations with high precision (79.3% and 78.3%). The translation errors are diverse, including examples of under-translation, over-translation, word/phrase mistranslation, incorrect modification, and unclear logic.

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.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CCTEST: Testing and Repairing Code Completion Systems cites Automatic testing and improvement of machine translation
  • CCTEST: Testing and Repairing Code Completion Systems cites Machine translation testing via pathological invariance
  • CCTEST: Testing and Repairing Code Completion Systems cites Structure-invariant testing for machine translation
  • 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 Machine translation testing via pathological invariance
  • BiasAsker: Measuring the Bias in Conversational AI System cites Hidden Voice Commands
  • 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 Automatic testing and improvement of machine translation
  • MTTM: Metamorphic Testing for Textual Content Moderation Software cites Machine translation testing via pathological invariance
  • MTTM: Metamorphic Testing for Textual Content Moderation Software cites Structure-invariant testing for machine translation
  • MTTM: Metamorphic Testing for Textual Content Moderation Software cites Hidden Voice Commands
  • MTTM: Metamorphic Testing for Textual Content Moderation Software cites Improving Machine Translation Systems via Isotopic Replacement
  • Machine translation testing via pathological invariance cites TextBugger: Generating Adversarial Text Against Real-world Applications
  • Machine translation testing via pathological invariance cites Automatic testing and improvement of machine translation
  • Machine translation testing via pathological invariance cites Structure-invariant testing for machine translation
  • Machine translation testing via pathological invariance cites Hidden Voice Commands
  • Automated testing of image captioning systems cites Automatic testing and improvement of machine translation
  • Automated testing of image captioning systems cites Structure-invariant testing for machine translation
  • Structure-invariant testing for machine translation cites TextBugger: Generating Adversarial Text Against Real-world Applications
  • Structure-invariant testing for machine translation cites Hidden Voice Commands
  • Improving Machine Translation Systems via Isotopic Replacement cites Automatic testing and improvement of machine translation
  • Improving Machine Translation Systems via Isotopic Replacement cites Machine translation testing via pathological invariance
  • Improving Machine Translation Systems via Isotopic Replacement cites Structure-invariant testing for machine translation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. BiasAsker: Measuring the Bias in Conversational AI SystemYuxuan Wan, Wenxuan Wang, Pinjia He, Jiazhen Gu et al.FSE 2023 · 50 citations
  2. CCTEST: Testing and Repairing Code Completion SystemsZongjie Li, Chaozheng Wang, Zhibo Liu, Haoxuan Wang et al.ICSE 2023 · 49 citations
  3. Improving Machine Translation Systems via Isotopic ReplacementZeyu Sun, Jie M. Zhang, Yingfei Xiong, Mark Harman et al.ICSE 2022 · 42 citations
  4. Automated testing of image captioning systemsBoxi Yu, Zhiqing Zhong, Xinran Qin, Jiayi Yao et al.ISSTA 2022 · 24 citations
  5. MTTM: Metamorphic Testing for Textual Content Moderation SoftwareWenxuan Wang, Jen-tse Huang, Weibin Wu, Jianping Zhang et al.ICSE 2023 · 23 citations

Builds on5

  1. TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li et al.NDSS 2019 · 876 citations
  2. Hidden Voice CommandsNicholas Carlini, Pratyush Mishra, Tavish Vaidya, Yuankai Zhang et al.USENIX Security 2016 · 672 citations
  3. Automatic testing and improvement of machine translationZeyu Sun, Jie M. Zhang, Mark Harman, Mike Papadakis et al.ICSE 2020 · 111 citations
  4. Structure-invariant testing for machine translationPinjia He, Clara Meister, Zhendong SuICSE 2020 · 84 citations
  5. Machine translation testing via pathological invarianceShashij Gupta, Pinjia He, Clara Meister, Zhendong SuFSE 2020 · 42 citations

Related papers

  1. Automated Testing for Machine Translation via Constituency InvariancePin Ji, Yang Feng, Jia Liu, Zhihong Zhao et al.ASE 2021 · 14 citations
  2. Evaluating Terminology Translation in Machine Translation Systems via Metamorphic TestingYihui Xu, Yanhui Li, Jun Wang, Xiaofang ZhangASE 2024 · 2 citations
  3. 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
  4. Extrinsic Evaluation of Machine Translation MetricsNikita Moghe, Tom Sherborne, Mark Steedman, Alexandra BirchACL 2023 · 12 citations
  5. Did Translation Models Get More Robust Without Anyone Even Noticing?Ben Peters, André F. T. MartinsACL 2025 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines