Detecting Textual Adversarial Examples through Randomized Substitution and Vote
Not on the map. Why?
Abstract (arXiv)
A line of work has shown that natural text processing models are vulnerable to adversarial examples. Correspondingly, various defense methods are proposed to mitigate the threat of textual adversarial examples, eg, adversarial training, input transformations, detection, etc. In this work, we treat the optimization process for synonym substitution based textual adversarial attacks as a specific sequence of word replacement, in which each word mutually influences other words. We identify that we could destroy such mutual interaction and eliminate the adversarial perturbation by randomly substituting a word with its synonyms. Based on this observation, we propose a novel textual adversarial example detection method, termed Randomized Substitution and Vote (RS&V), which votes the prediction label by accumulating the logits of k samples generated by randomly substituting the words in the input text with synonyms. The proposed RS&V is generally applicable to any existing neural networks without modification on the architecture or extra training, and it is orthogonal to prior work on making the classification network itself more robust. Empirical evaluations on three benchmark datasets demonstrate that our RS&V could detect the textual adversarial examples more successfully than the existing detection methods while maintaining the high classification accuracy on benign samples.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 33 of its 44 references that are in the map. First posted on arXiv 13 Sep 2021.
Builds on
33 of 44 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
21 more
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2021Enhancing the Transferability of Adversarial Attacks through Variance Tuningcited by 242
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 138
- 2017Deep Text Classification Can be Fooledcited by 105
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 87
- 2017SafetyNet: Detecting and Rejecting Adversarial Examples Robustlycited by 76
- 2020Robustness Verification for Transformerscited by 76
- 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
- 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
- 2020Generating Natural Language Attacks in a Hard Label Black Box Settingcited by 50
- 2019Natural Language Adversarial Defense through Synonym Encodingcited by 39
- 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37
- 2020Defense against Adversarial Attacks in NLP via Dirichlet Neighborhood Ensemblecited by 26
- 2020On the Transferability of Adversarial Attacksagainst Neural Text Classifiercited by 16
Built on by
Citing papers per year: 2022: 1; 2023: 4; 2024: 1; 2025: 1; 2026: 1.
8 papers.
- 2023Improving the Robustness of Transformer-based Large Language Models with Dynamic Attentioncited by 10
- 2023Masked Language Model Based Textual Adversarial Example Detectioncited by 5
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examplescited by 3
- 2022ADDMU: Detection of Far-Boundary Adversarial Examples with Data and Model Uncertainty Estimationcited by 2
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
- 2024Optimal and efficient text counterfactuals using Graph Neural Networkscited by 1
- 2023What Learned Representations and Influence Functions Can Tell Us About Adversarial Examplescited by 0
- 2026Rectifying Adversarial Examples Using Their Vulnerabilitiescited by 0
- 2026Rectifying Adversarial Examples Using Their Vulnerabilities1 Jan 2026
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal29 Jul 2025
- 2024Optimal and efficient text counterfactuals using Graph Neural Networks4 Aug 2024
- 2023Improving the Robustness of Transformer-based Large Language Models with Dynamic Attention29 Nov 2023
- 2023What Learned Representations and Influence Functions Can Tell Us About Adversarial Examples19 Sep 2023
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examples6 May 2023
- 2023Masked Language Model Based Textual Adversarial Example Detection18 Apr 2023
- 2022ADDMU: Detection of Far-Boundary Adversarial Examples with Data and Model Uncertainty Estimation22 Oct 2022