Adversarial Training with Fast Gradient Projection Method against Synonym Substitution based Text Attacks

Xiaosen Wang, Yichen Yang, Yihe Deng, Kun He
8/9/2020
cs.CLcs.LG

Official code: JHL-HUST/FGPM (24 stars, Python, last commit 2020-12-11).

Abstract

Adversarial training is the most empirically successful approach in improving the robustness of deep neural networks for image classification.For text classification, however, existing synonym substitution based adversarial attacks are effective but not efficient to be incorporated into practical text adversarial training. Gradient-based attacks, which are very efficient for images, are hard to be implemented for synonym substitution based text attacks due to the lexical, grammatical and semantic constraints and the discrete text input space.

Show full abstract

Thereby, we propose a fast text adversarial attack method called Fast Gradient Projection Method (FGPM) based on synonym substitution, which is about 20 times faster than existing text attack methods and could achieve similar attack performance. We then incorporate FGPM with adversarial training and propose a text defense method called Adversarial Training with FGPM enhanced by Logit pairing (ATFL). Experiments show that ATFL could significantly improve the model robustness and block the transferability of adversarial examples.

View on arXivView PDF

Code Implementations(1)

JHL-HUST/FGPMOfficial100%

Adversarial Training with Fast Gradient Projection Method against Synonym Substitution based Text Attacks

249PythonDec 8, 20205 years ago

Similar Papers

Cite this paper

@article{wang2020adversarial,
  title  = {Adversarial Training with Fast Gradient Projection Method against Synonym Substitution based Text Attacks},
  author = {Xiaosen Wang and Yichen Yang and Yihe Deng and Kun He},
  year   = {2020},
  eprint = {2008.03709},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.03709}
}

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

Discussion