Extend Adversarial Policy Against Neural Machine Translation via Unknown Token
Wei Zou, Shujian Huang, Jiajun Chen
TL;DR
Neural machine translation is brittle to textual perturbations that disrupt tokenization; existing adversaries tied to a fixed tokenization fail to cover perturbations at multiple granularities. The authors introduce the DexChar policy, which leverages the 'UNK' token to enable dexterous character-level perturbations within a reinforcement-learning adversarial framework, and they add noisy data augmentation to the self-supervised discriminator to better enforce semantic constraints. Empirical results on en-de and en-zh with diverse embedding setups show that DexChar yields high degradation scores $MD$ with high semantic alignment $PA$ and improves perturbation efficiency, outperforming baseline adversaries in challenging scenarios. The work enables more robust analysis and targeted fine-tuning of NMT systems under diverse perturbations, contributing practical insights for defense and evaluation of NMT robustness.
Abstract
Generating adversarial examples contributes to mainstream neural machine translation~(NMT) robustness. However, popular adversarial policies are apt for fixed tokenization, hindering its efficacy for common character perturbations involving versatile tokenization. Based on existing adversarial generation via reinforcement learning~(RL), we propose the `DexChar policy' that introduces character perturbations for the existing mainstream adversarial policy based on token substitution. Furthermore, we improve the self-supervised matching that provides feedback in RL to cater to the semantic constraints required during training adversaries. Experiments show that our method is compatible with the scenario where baseline adversaries fail, and can generate high-efficiency adversarial examples for analysis and optimization of the system.
