Neural Machine Translation (NMT) has achieved remarkable success, yet it remains notoriously brittle. Minor perturbations in input text—such as swapping a word for a synonym—can lead to disproportionately large errors in output. This paper proposes Adversarial Stability Training (AST), a novel framework designed to enhance NMT robustness by enforcing consistency in internal representations and output predictions under input noise.
The Robustness Challenge in NMT
Current NMT models often exhibit a "butterfly effect," where small changes in the source sentence propagate through the attention mechanism to cause significant translation failures. This lack of robustness is particularly problematic in real-world scenarios, such as speech-to-translation pipelines where Automatic Speech Recognition (ASR) errors can derail the entire system. The authors identify that models are overly sensitive to lexical and feature-level noise, failing to map semantically similar inputs to similar hidden states.
Adversarial Stability Training (AST)
The proposed AST method targets the encoder and decoder components to foster invariance to small perturbations.
- Adversarial Learning for the Encoder: A discriminator is introduced to distinguish between the hidden representations of a clean input ($H_x$) and its perturbed version ($H_{x'}$). The encoder is trained to "fool" this discriminator, effectively learning to produce invariant representations for semantically equivalent inputs.
- Consistency Loss for the Decoder: The decoder is trained to generate the same target translation regardless of whether it receives the original or the noisy representation. This is achieved by jointly maximizing the likelihood of the target sentence given both inputs.
Perturbations are introduced at two levels during training:
- Lexical Level: Randomly replacing words with synonyms based on embedding similarity.
- Feature Level: Injecting Gaussian noise directly into the word embeddings.
Experimental Evaluation
The effectiveness of AST was evaluated across three major translation tasks:
- Chinese-English (LDC): 1.25M sentence pairs, tested on NIST datasets.
- English-German (WMT 14): 4.5M sentence pairs.
- English-French (IWSLT): 0.22M sentence pairs from TED talks, representing informal and spoken language.
Results and Key Insights
AST demonstrated significant performance gains over strong baselines. On Chinese-English tasks, the method improved BLEU scores by up to +3.34 points. The system outperformed the then-state-of-the-art RNN-based GNMT and performed comparably to 15-layer CNN-based models. Notably, the model remained robust under synthetic attacks (word swaps, deletions), whereas standard models saw performance plummet.
Key Insights: * Stability as Regularization: Training for robustness improves performance even on clean data, suggesting that forcing semantic invariance helps the model generalize better. * Attention Sensitivity: The global context provided by attention mechanisms explains why local perturbations can cause global translation failures. * Representation Invariance: Treating robustness as a representation problem—ensuring "I am happy" and "I am glad" produce similar "thought vectors"—is key to stabilizing the decoder.
Conclusion
Adversarial Stability Training provides a principled way to build NMT models that are both high-performing and robust. While the initial work focused on RNN architectures and incurred additional computational costs, the core principle of representation invariance remains a vital direction for future research in robust natural language processing.
Summary updated