Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitution
About
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. 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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text Classification | AGNews | Clean Accuracy94 | 118 | |
| Text Classification | IMDB (test) | CA93.2 | 79 | |
| Sentiment Analysis | SST-2 (test) | Clean Accuracy92.9 | 50 | |
| Sentiment Analysis | IMDB (test) | Clean Accuracy (%)93.2 | 37 | |
| Text Classification | IMDB | Clean Accuracy94.4 | 32 | |
| Natural Language Inference | QNLI (test) | -- | 27 | |
| Text Classification | IMDB (test) | Clean Accuracy95.3 | 15 | |
| Text Classification | AGNews (test) | Accuracy (Clean)95.4 | 15 | |
| Text Classification | QNLI (test) | Accuracy (Clean)92.8 | 14 | |
| Topic Classification | AG News (test) | Clean Accuracy94.9 | 8 |