Targeted Adversarial Attacks against Neural Machine Translation

Sahar Sadrizadeh, AmirHossein Dabiri Aghdam, Ljiljana Dolamic, Pascal Frossard
3/2/2023
cs.CLcs.CRcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Neural Machine Translation (NMT) systems are used in various applications. However, it has been shown that they are vulnerable to very small perturbations of their inputs, known as adversarial attacks. In this paper, we propose a new targeted adversarial attack against NMT models. In particular, our goal is to insert a predefined target keyword into the translation of the adversarial sentence while maintaining similarity between the original sentence and the perturbed one in the source domain. To this aim, we propose an optimization problem, including an adversarial loss term and a similarity term. We use gradient projection in the embedding space to craft an adversarial sentence. Experimental results show that our attack outperforms Seq2Sick, the other targeted adversarial attack against NMT models, in terms of success rate and decrease in translation quality. Our attack succeeds in inserting a keyword into the translation for more than 75% of sentences while similarity with the original sentence stays preserved.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sadrizadeh2023targeted,
  title  = {Targeted Adversarial Attacks against Neural Machine Translation},
  author = {Sahar Sadrizadeh and AmirHossein Dabiri Aghdam and Ljiljana Dolamic and Pascal Frossard},
  year   = {2023},
  eprint = {2303.01068},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.01068v1}
}

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/2303.01068.svg)](https://codeofpaper.com/paper/2303.01068)

Discussion