On Adversarial Examples for Character-Level Neural Machine Translation

Javid Ebrahimi, Daniel Lowd, Dejing Dou
6/23/2018
cs.CLcs.AI

Official code: jebivid/adversarial-nmt (10 stars, MIT, last commit 2018-06-23).

Abstract

Evaluating on adversarial examples has become a standard procedure to measure robustness of deep learning models. Due to the difficulty of creating white-box adversarial examples for discrete text input, most analyses of the robustness of NLP models have been done through black-box adversarial examples. We investigate adversarial examples for character-level neural machine translation (NMT), and contrast black-box adversaries with a novel white-box adversary, which employs differentiable string-edit operations to rank adversarial changes. We propose two novel types of attacks which aim to remove or change a word in a translation, rather than simply break the NMT. We demonstrate that white-box adversarial examples are significantly stronger than their black-box counterparts in different attack scenarios, which show more serious vulnerabilities than previously known. In addition, after performing adversarial training, which takes only 3 times longer than regular training, we can improve the model's robustness significantly.

View on arXivView PDF

Code Implementations(1)

MIT
101LuaJun 11, 20188 years agoMIT

Similar Papers

Cite this paper

@article{ebrahimi2018adversarial,
  title  = {On Adversarial Examples for Character-Level Neural Machine Translation},
  author = {Javid Ebrahimi and Daniel Lowd and Dejing Dou},
  year   = {2018},
  eprint = {1806.09030},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.09030}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1806.09030.svg)](https://codeofpaper.com/paper/1806.09030)

Discussion