Introduction
Neural Machine Translation (NMT) models have achieved remarkable success but remain significantly vulnerable to small perturbations in input text. Minor changes, such as typographical errors or synonym substitutions, can lead to catastrophic failures in translation quality. To mitigate this, researchers employ adversarial training, where models are exposed to perturbed examples during training to improve robustness.
Traditionally, adversarial examples were required to be "meaning-preserving," ensuring the perturbed source sentence retained the original's semantics. However, enforcing this constraint in discrete text is challenging and limits the diversity of training signals. While Round-Trip Translation (RTT)—translating from source to target and back to source—has been used to identify adversarial vulnerabilities, it suffers from ambiguity: it is often unclear whether the reconstruction error stems from the forward model (the target of the attack) or the backward model used for reconstruction.
The Doubly Round-Trip Translation (DRTT) Framework
To address the limitations of standard RTT, this work introduces Doubly Round-Trip Translation (DRTT). This framework aims to isolate "authentic" adversarial examples—those specifically caused by failures in the forward NMT model—and generate high-quality bilingual training pairs that do not strictly require meaning preservation.
1. The DRTT Criterion
The core innovation of DRTT is a two-way validation process to identify authentic adversarial examples. The method calculates two primary metrics:
- Source-side drop ($d_{src}$): The drop in reconstruction quality when translating from the perturbed Source to Target and back to Source.
- Target-side drop ($d_{tgt}$): The drop in reconstruction quality when translating from the original Target to Source and back to Target.
An adversarial example is considered "authentic" if it exhibits a high $d_{src}$ alongside a low $d_{tgt}$. This combination suggests that while the backward model is functioning correctly (as evidenced by low $d_{tgt}$), the forward model is failing to process the perturbed source (high $d_{src}$). This effectively filters out "fake" adversarial examples caused by a weak backward model.
2. Bilingual Adversarial Pair Generation
Unlike traditional methods that struggle to keep the source meaning identical, DRTT allows the meaning to shift. When a perturbation is introduced to the source sentence, the framework updates the target sentence to maintain a valid translation pair. This is achieved through:
- Phrasal Alignment: Identifying corresponding segments between the source and target sentences.
- Synchronized MLMs: A source-side Masked Language Model (MLM) suggests perturbations, while a translation-specific MLM (T-MLM) synchronously updates the corresponding target phrases. This ensures the resulting pair is a high-quality, though potentially semantically different, translation.
Experimental Evaluation
The researchers evaluated DRTT across several benchmarks, including Chinese-to-English (Zh$→$En), English-to-German (En$→$De), and English-to-French (En$→$Fr). Testing included both artificial noise (e.g., deletions, swaps, insertions) and natural noise from the MTNT dataset, which consists of social media text containing slang and typos.
Key Results
- Enhanced Robustness: On the Zh$→$En task, DRTT improved BLEU scores by up to 1.1 points on noisy datasets compared to standard RTT.
- Performance on Natural Noise: In the WMT’19 En$→$Fr robustness task, DRTT achieved a gain of +1.34 BLEU over the baseline, outperforming existing adversarial training methods.
- Preservation of Clean Translation Quality: A common drawback of adversarial training is the "robustness tax," where performance on clean text degrades. DRTT successfully maintained or improved performance on standard test sets (NIST and WMT) while boosting noise robustness.
Conclusion and Future Directions
DRTT provides a rigorous method for generating authentic adversarial examples by isolating forward-model failures. By moving beyond meaning-preserving constraints and utilizing synchronized MLMs for bilingual pair generation, the method creates more effective training data for robust NMT.
Future work may address the computational overhead of the dual round-trip process and the potential for "filtering loss," where valid adversarial examples are discarded due to localized weaknesses in the backward model. Additionally, the authors suggest exploring a self-improving loop where both forward and backward models are optimized simultaneously.
Summary updated