Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks
Not on the map. Why?
Abstract (arXiv)
Deep learning (DL) is being used extensively for text classification. However, researchers have demonstrated the vulnerability of such classifiers to adversarial attacks. Attackers modify the text in a way which misleads the classifier while keeping the original meaning close to intact. State-of-the-art (SOTA) attack algorithms follow the general principle of making minimal changes to the text so as to not jeopardize semantics. Taking advantage of this we propose a novel and intuitive defense strategy called Sample Shielding. It is attacker and classifier agnostic, does not require any reconfiguration of the classifier or external resources and is simple to implement. Essentially, we sample subsets of the input text, classify them and summarize these into a final decision. We shield three popular DL text classifiers with Sample Shielding, test their resilience against four SOTA attackers across three datasets in a realistic threat setting. Even when given the advantage of knowing about our shielding strategy the adversary's attack success rate is <=10% with only one exception and often < 5%. Additionally, Sample Shielding maintains near original accuracy when applied to original texts. Crucially, we show that the `make minimal changes' approach of SOTA attackers leads to critical vulnerabilities that can be defended against with an intuitive sampling strategy.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 17 of its 22 references that are in the map. First posted on arXiv 3 May 2022.
Builds on
17 of 22 references.
References · 17
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
- 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 55
5 more
- 2021BERT-Defense: A Probabilistic Model Based on BERT to Combat Cognitively Inspired Orthographic Adversarial Attackscited by 17
- 2019White-to-Black: Efficient Distillation of Black-Box Adversarial Attackscited by 14
- 2020Defense of Word-level Adversarial Attacks via Random Substitution Encodingcited by 9
- 2018Shielding Google's language toxicity model against adversarial attackscited by 5
- 2021TREATED:Towards Universal Defense against Textual Adversarial Attackscited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 0; 2025: 1.
3 papers.