Identifying Adversarial Attacks on Text Classifiers
Not on the map. Why?
Abstract (arXiv)
The landscape of adversarial attacks against text classifiers continues to grow, with new attacks developed every year and many of them available in standard toolkits, such as TextAttack and OpenAttack. In response, there is a growing body of work on robust learning, which reduces vulnerability to these attacks, though sometimes at a high cost in compute time or accuracy. In this paper, we take an alternate approach -- we attempt to understand the attacker by analyzing adversarial text to determine which methods were used to create it. Our first contribution is an extensive dataset for attack detection and labeling: 1.5~million attack instances, generated by twelve adversarial attacks targeting three classifiers trained on six source datasets for sentiment analysis and abuse detection in English. As our second contribution, we use this dataset to develop and benchmark a number of classifiers for attack identification -- determining if a given text has been adversarially manipulated and by which attack. As a third contribution, we demonstrate the effectiveness of three classes of features for these tasks: text properties, capturing content and presentation of text; language model properties, determining which tokens are more or less probable throughout the input; and target model properties, representing how the text classifier is influenced by the attack, including internal node activations. Overall, this represents a first step towards forensics for adversarial attacks against text classifiers.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 42 of its 63 references that are in the map. First posted on arXiv 21 Jan 2022.
Builds on
42 of 63 references.
References · 42
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2021Dynabench: Rethinking Benchmarking in NLPcited by 447
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
30 more
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
- 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 227
- 2016Ex Machina: Personal Attacks Seen at Scalecited by 208
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2021Robustness Gym: Unifying the NLP Evaluation Landscapecited by 107
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 87
- 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2020Robustness Verification for Transformerscited by 76
- 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 72
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 68
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2019Learning to Discriminate Perturbations for Blocking Adversarial Attacks in Text Classificationcited by 55
- 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 55
- 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
- 2021Achieving Model Robustness through Discrete Adversarial Trainingcited by 23
- 2020Mind Your Inflections! Improving NLP for Non-Standard Englishes with Base-Inflection Encodingcited by 22
- 2019Source Generator Attribution via Inversioncited by 21
- 2020A Sweet Rabbit Hole by DARCY: Using Honeypots to Detect Universal Trigger's Adversarial Attackscited by 14
- 2020Politics of Adversarial Machine Learningcited by 12
- 2021Sample Efficient Detection and Classification of Adversarial Attacks via Self-Supervised Embeddingscited by 11
- 2016Learning Robust Representations of Textcited by 6
Built on by
Citing papers per year: 2022: 4.
4 papers.
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2022A Survey of Adversarial Defences and Robustness in NLPcited by 22
- 2022ADDMU: Detection of Far-Boundary Adversarial Examples with Data and Model Uncertainty Estimationcited by 2
- 2022Probabilistic Categorical Adversarial Attack & Adversarial Trainingcited by 0
- 2022Ignore Previous Prompt: Attack Techniques For Language Models17 Nov 2022
- 2022ADDMU: Detection of Far-Boundary Adversarial Examples with Data and Model Uncertainty Estimation22 Oct 2022
- 2022Probabilistic Categorical Adversarial Attack & Adversarial Training17 Oct 2022
- 2022A Survey of Adversarial Defences and Robustness in NLP12 Mar 2022