Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitution

Zongyi Li, Jianhan Xu, Jiehang Zeng, Linyang Li, Xiaoqing Zheng +3 more
8/29/2021
cs.CL
benchmark-dataset

Official code: RockyLzy/TextDefender (31 stars, Python, MIT, last commit 2023-10-27).

Abstract

Recent studies have shown that deep neural networks are vulnerable to intentionally crafted adversarial examples, and various methods have been proposed to defend against adversarial word-substitution attacks for neural NLP models. However, there is a lack of systematic study on comparing different defense approaches under the same attacking setting.

Show full abstract

In this paper, we seek to fill the gap of systematic studies through comprehensive researches on understanding the behavior of neural text classifiers trained by various defense methods under representative adversarial attacks. In addition, we propose an effective method to further improve the robustness of neural text classifiers against such attacks and achieved the highest accuracy on both clean and adversarial examples on AGNEWS and IMDB datasets by a significant margin.

View on arXivView PDF

Code Implementations(1)

MIT

codes for "Searching for an Effective Defender:Benchmarking Defense against Adversarial Word Substitution"

313PythonSep 8, 20213 years agoMIT

Similar Papers

Cite this paper

@article{li2021searching,
  title  = {Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitution},
  author = {Zongyi Li and Jianhan Xu and Jiehang Zeng and Linyang Li and Xiaoqing Zheng and Qi Zhang and Kai-Wei Chang and Cho-Jui Hsieh},
  year   = {2021},
  eprint = {2108.12777},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.12777}
}

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

Discussion