Research map / Adversarial robustness and security / Certified and empirical robustness
Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks
Jonathan Rusert, Padmini Srinivasan
University of Iowa
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply Sample Shielding (word sampling, k=100, p=0.3) | BERT/CNN/LSTM classifiers · IMDB, Yelp, AG News under TextFooler etc. | accuracy under attack: e.g. BERT IMDB TextFooler 1 -> 78.1 (sentence) | Improved |
| apply Sample Shielding | classifiers · original (unattacked) texts | accuracy: within 7% of original accuracy; BERT IMDB 91.3 -> 91.5 | No clear effect |
| use word sampling instead of sentence sampling (ablation) | CNN · IMDB, TextFooler | accuracy under attack: 55.3 -> 69.8 | Improved |
| use sentence sampling instead of word sampling (ablation) | BERT · IMDB, TextFooler | accuracy under attack: 74.4 -> 78.1 | Improved |
| use word sampling instead of sentence sampling on short texts (ablation) | CNN · AG News, TextFooler | accuracy under attack: 13.2 -> 77.3 | Improved |
| use shifting sampling instead of random sampling (ablation) | Sample Shielding · main experiments | accuracy: 10-20 points lower | Hurt |
| replace majority voting with NN summarizer trained on original texts (ablation) | Sample Shielding · IMDB, Yelp | accuracy under attack: e.g. Yelp CNN TextFooler 64.9 -> 63.2 | No clear effect |
| replace majority voting with NN-BB summarizer trained on original and attacked texts (ablation) | Sample Shielding · Yelp CNN, TextFooler | accuracy under attack: 64.9 -> 72.2 | Improved |
| attacker knows and uses Sample Shielding in local classifier | Sample Shielding · IMDB, TextFooler (BERT) | attack success rate: 99 -> 6 | Improved |
| increase p (fraction sampled) (ablation) | Sample Shielding word sampling, LSTM · IMDB | accuracy: drops noticeably from p=0.6; optimal 0.2-0.4 | Hurt |
| increase k (number of samples) (ablation) | Sample Shielding, LSTM · IMDB | accuracy: clear increases after 30, level off around 90 | Improved |
| Sample Shielding vs RanMask and FreeLB++ in weaker threat model | BERT · AG News, IMDB | accuracy under attack: AG News TextFooler 48 vs RanMask 38, FreeLB++ 52; IMDB 18 vs 22, 45 | Mixed |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 0 of 1 on most shared results.
- FreeLB++ — FreeLB: Enhanced Adversarial Training for Natural Language Understanding (ICLR 2020) · better on 0 of 2 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in attack evaluation and defense critique
Do attack and defense findings hold beyond one modality, small models and simplified theory?
- Theory covers only one- or two-layer and linear models. · 5 papers state it
- Evaluation uses one dataset, one model family or few architectures. · 5 papers state it
- Strong attacks and defenses are costly to run. · 5 papers state it
Closest papers by meaning
- Iron Sharpens Iron: Defending Against Attacks in Machine-Generated Text Detection with Adversarial Training (ACL 2025 · similarity 0.87)
- SHIELD: Defending Textual Neural Networks against Multiple Black-Box Adversarial Attacks with Stochastic Multi-Expert Patcher (ACL 2022 · similarity 0.87)
- Detection of Adversarial Examples in Text Classification: Benchmark and Baseline via Robust Density Estimation (ACL 2022 · similarity 0.87)
- Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitution (EMNLP 2021 · similarity 0.87)
- OSTAR: Optimized Statistical Text-classifier with Adversarial Resistance (NeurIPS 2025 · similarity 0.86)
- Improved Generation of Adversarial Examples Against Safety-aligned LLMs (NeurIPS 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.