Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLP

Yangyi Chen, Hongcheng Gao, Ganqu Cui, Fanchao Qi, Longtao Huang +2 more
10/19/2022
146 citations
cs.CLcs.CRcs.LG

Official code: thunlp/Advbench (88 stars, Python, MIT, last commit 2023-02-19).

Abstract

Textual adversarial samples play important roles in multiple subfields of NLP research, including security, evaluation, explainability, and data augmentation. However, most work mixes all these roles, obscuring the problem definitions and research goals of the security role that aims to reveal the practical concerns of NLP models.

Show full abstract

In this paper, we rethink the research paradigm of textual adversarial samples in security scenarios. We discuss the deficiencies in previous work and propose our suggestions that the research on the Security-oriented adversarial NLP (SoadNLP) should: (1) evaluate their methods on security tasks to demonstrate the real-world concerns; (2) consider real-world attackers' goals, instead of developing impractical methods. To this end, we first collect, process, and release a security datasets collection Advbench. Then, we reformalize the task and adjust the emphasis on different goals in SoadNLP. Next, we propose a simple method based on heuristic rules that can easily fulfill the actual adversarial goals to simulate real-world attack methods. We conduct experiments on both the attack and the defense sides on Advbench. Experimental results show that our method has higher practical value, indicating that the research paradigm in SoadNLP may start from our new benchmark. All the code and data of Advbench can be obtained at \url{https://github.com/thunlp/Advbench}.

View on arXivView PDF

Code Implementations(1)

thunlp/AdvbenchOfficial100%
MIT

Code and data of the EMNLP 2022 paper "Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLP".

8810Python, ShellOct 12, 20223 years agoMIT
adversarial-examplesbenchmarknatural-language-processingsecurity

Similar Papers

Cite this paper

@article{chen2022should,
  title  = {Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLP},
  author = {Yangyi Chen and Hongcheng Gao and Ganqu Cui and Fanchao Qi and Longtao Huang and Zhiyuan Liu and Maosong Sun},
  year   = {2022},
  eprint = {2210.10683},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10683}
}

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

Discussion