Preserving Semantics in Textual Adversarial Attacks
Not on the map. Why?
Abstract (arXiv)
The growth of hateful online content, or hate speech, has been associated with a global increase in violent crimes against minorities [23]. Harmful online content can be produced easily, automatically and anonymously. Even though, some form of auto-detection is already achieved through text classifiers in NLP, they can be fooled by adversarial attacks. To strengthen existing systems and stay ahead of attackers, we need better adversarial attacks. In this paper, we show that up to 70% of adversarial examples generated by adversarial attacks should be discarded because they do not preserve semantics. We address this core weakness and propose a new, fully supervised sentence embedding technique called Semantics-Preserving-Encoder (SPE). Our method outperforms existing sentence encoders used in adversarial attacks by achieving 1.2x - 5.1x better real attack success rate. We release our code as a plugin that can be used in any existing adversarial attack to improve its quality and speed up its execution.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 30 of its 46 references that are in the map. First posted on arXiv 8 Nov 2022.
Builds on
30 of 46 references.
References · 30
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2013Intriguing properties of neural networkscited by 5,155
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2016Adversarial examples in the physical worldcited by 1,769
18 more
- 2016Adversarial Machine Learning at Scalecited by 936
- 2016Bag of Tricks for Efficient Text Classificationcited by 876
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2018Universal Sentence Encodercited by 489
- 2018Generating Natural Language Adversarial Examplescited by 424
- 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 417
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2015Skip-Thought Vectorscited by 322
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 229
- 2017Generating Natural Adversarial Examplescited by 183
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 163
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 85
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2021Model Extraction and Adversarial Transferability, Your BERT is Vulnerable!cited by 53
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 1; 2026: 1.
5 papers.
- 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Inferscited by 3
- 2023Sample Attackability in Natural Language Adversarial Attackscited by 2
- 2023Alquist 5.0: Dialogue Trees Meet Generative Models. A Novel Approach for Enhancing SocialBot Conversationscited by 1
- 2024Adversarial Attack for Explanation Robustness of Rationalization Modelscited by 1
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approachcited by 0
- 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Infers22 May 2026
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approach19 Dec 2025
- 2024Adversarial Attack for Explanation Robustness of Rationalization Models20 Aug 2024
- 2023Alquist 5.0: Dialogue Trees Meet Generative Models. A Novel Approach for Enhancing SocialBot Conversations24 Oct 2023
- 2023Sample Attackability in Natural Language Adversarial Attacks21 Jun 2023