[Paper Review] Exploring the Robustness of NMT Systems to Nonsensical Inputs
This paper proposes a soft-attention-based adversarial attack to generate nonsensical source sentences with multiple word replacements while preserving the NMT system's translation output. The method significantly outperforms HotFlip and random baselines, demonstrating that state-of-the-art NMT models are vulnerable to semantic invariance under word-level perturbations, revealing their poor semantic understanding despite high BLEU scores.
Neural machine translation (NMT) systems have been shown to give undesirable translation when a small change is made in the source sentence. In this paper, we study the behaviour of NMT systems when multiple changes are made to the source sentence. In particular, we ask the following question "Is it possible for an NMT system to predict same translation even when multiple words in the source sentence have been replaced?". To this end, we propose a soft-attention based technique to make the aforementioned word replacements. The experiments are conducted on two language pairs: English-German (en-de) and English-French (en-fr) and two state-of-the-art NMT systems: BLSTM-based encoder-decoder with attention and Transformer. The proposed soft-attention based technique achieves high success rate and outperforms existing methods like HotFlip by a significant margin for all the conducted experiments. The results demonstrate that state-of-the-art NMT systems are unable to capture the semantics of the source language. The proposed soft-attention based technique is an invariance-based adversarial attack on NMT systems. To better evaluate such attacks, we propose an alternate metric and argue its benefits in comparison with success rate.
Motivation & Objective
- To investigate whether NMT systems can produce identical translations for semantically different source sentences after multiple word replacements.
- To develop a robust, soft-attention-based method for generating such adversarial examples with high success rates.
- To evaluate the effectiveness of invariance-based attacks beyond success rate, proposing a new BLEU-based metric for better assessment.
- To expose the lack of semantic robustness in state-of-the-art NMT models, particularly Transformers and BLSTM-attention models.
- To highlight the challenge of training robust NMT systems due to the absence of gold translations for adversarial examples.
Proposed method
- The method decomposes adversarial word replacement into two sub-problems: identifying replacement positions and selecting appropriate substitute words.
- It uses Min-Gradient (Min-Grad) to identify the most influential positions in the source sentence for word replacement.
- Soft-attention mechanism is employed to guide word substitution by leveraging attention weights, ensuring relevance to the target translation.
- The technique replaces subwords (due to subword tokenization) with semantically unrelated words while preserving the model’s output translation.
- The attack is applied to both BLSTM-attention and Transformer-based NMT systems on English-German and English-French pairs.
- An alternate BLEU-based metric is proposed to evaluate attack effectiveness, offering a more nuanced measure than success rate alone.
Experimental results
Research questions
- RQ1Can NMT systems produce the same translation for two source sentences that are semantically different due to multiple word replacements?
- RQ2How effective is a soft-attention-based method in generating such adversarial examples compared to existing methods like HotFlip?
- RQ3What types of words (e.g., stop words, named entities, thematic words) are most vulnerable to replacement without changing the translation?
- RQ4To what extent do state-of-the-art NMT models fail to capture semantic meaning under word-level perturbations?
- RQ5Can a BLEU-based metric provide a more reliable evaluation of invariance-based adversarial attacks than success rate?
Key findings
- The proposed Min-Grad+Soft-Att method achieves significantly higher success rates than HotFlip and random baselines across all experiments on both en-de and en-fr pairs.
- The method successfully generates adversarial examples where multiple words are replaced with semantically unrelated terms, yet the NMT system produces identical translations.
- Even highly thematic words and named entities are replaced without changing the output, indicating deep semantic invariance in NMT models.
- The study reveals that high BLEU scores do not correlate with semantic robustness, as models fail to detect nonsensical inputs.
- The proposed BLEU-based metric provides a more informative evaluation of attack effectiveness than success rate alone, especially in capturing translation quality under perturbations.
- The lack of gold-standard translations for adversarial examples poses a major challenge for developing robust training strategies, highlighting a key barrier for future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.