Defense of Word-level Adversarial Attacks via Random Substitution Encoding

Zhaoyang Wang, Hongtao Wang
5/1/2020
cs.CLcs.LG

Official code: Raibows/RSE-Adversarial-Defense (6 stars, Python, last commit 2024-03-07).

Abstract

The adversarial attacks against deep neural networks on computer vision tasks have spawned many new technologies that help protect models from avoiding false predictions. Recently, word-level adversarial attacks on deep models of Natural Language Processing (NLP) tasks have also demonstrated strong power, e.g., fooling a sentiment classification neural network to make wrong decisions.

Show full abstract

Unfortunately, few previous literatures have discussed the defense of such word-level synonym substitution based attacks since they are hard to be perceived and detected. In this paper, we shed light on this problem and propose a novel defense framework called Random Substitution Encoding (RSE), which introduces a random substitution encoder into the training process of original neural networks. Extensive experiments on text classification tasks demonstrate the effectiveness of our framework on defense of word-level adversarial attacks, under various base and attack models.

View on arXivView PDF

Code Implementations(1)

An implementation for "Defense of Word-level Adversarial Attacks via Random Substitution Encoding"

61PythonMar 8, 20202 years ago

Similar Papers

Cite this paper

@article{wang2020defense,
  title  = {Defense of Word-level Adversarial Attacks via Random Substitution Encoding},
  author = {Zhaoyang Wang and Hongtao Wang},
  year   = {2020},
  eprint = {2005.00446},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00446}
}

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

Discussion