探索神经机器翻译系统对无意义输入的鲁棒性
Exploring the Robustness of NMT Systems to Nonsensical Inputs
Exploring the Robustness of NMT Systems to Nonsensical Inputs
@misc{chaturvedi2019exploring,
title = {Exploring the Robustness of NMT Systems to Nonsensical Inputs},
author = {Akshay Chaturvedi and Abijith KP and Utpal Garain},
year = {2019},
eprint = {1908.01165},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/1908.01165}
}
Chaturvedi, A., KP, A., & Garain, U. (2019). Exploring the Robustness of NMT Systems to Nonsensical Inputs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1908.01165
CHATURVEDI A, KP A, GARAIN U. Exploring the Robustness of NMT Systems to Nonsensical Inputs[EB/OL]. (2019-08-03)[2026-11-29]. https://arxiv.org/abs/1908.01165.
摘要
神经机器翻译(NMT)系统已被证明在源句发生微小变化时会产生不理想的翻译。本文研究了当源句发生多处变化时 NMT 系统的行为。特别是,我们提出以下问题:"当源句中的多个单词被替换时,NMT 系统是否仍能预测相同的翻译?"为此,我们提出了一种基于软注意力的技术来实现上述单词替换。实验在两个语言对(英德语 en-de 和英法语 en-fr)以及两种最先进的 NMT 系统(基于 BLSTM 的编码器 - 解码器带注意力机制和 Transformer)上进行。所提出的基于软注意力的技术在所有进行的实验中均取得了高成功率,并显著优于现有方法(如 HotFlip)。结果表明,最先进的 NMT 系统无法捕捉源语言的语义。所提出的基于软注意力的技术是一种针对 NMT 系统的基于不变性的对抗攻击。为了更好地评估此类攻击,我们提出了一种替代指标,并论证了其与成功率的比较优势。
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.