mlsanityData to 14 Oct 2026

Guided Perturbation Sensitivity (GPS): Detecting Adversarial Text via Embedding Stability and Word Importance

arXiv 2508.11667 ↗First posted 6 Aug 2025cs.LG cs.AI cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

Adversarial text attacks remain a persistent threat to transformer models, yet existing defenses are typically attack-specific or require costly model retraining, leaving a gap for attack-agnostic detection. We introduce Guided Perturbation Sensitivity (GPS), a detection framework that identifies adversarial examples by measuring how embedding representations change when important words are masked. GPS first ranks words using importance heuristics, then measures embedding sensitivity to masking top-k critical words, and processes the resulting patterns with a BiLSTM detector. Experiments show that adversarially perturbed words exhibit disproportionately high masking sensitivity compared to naturally important words. Across three datasets, three attack types, and two victim models, GPS achieves over 85% detection accuracy and demonstrates competitive performance compared to existing state-of-the-art methods, often at lower computational cost. Using Normalized Discounted Cumulative Gain (NDCG) to measure perturbation identification quality, we demonstrate that gradient-based ranking significantly outperforms attention, hybrid, and random selection approaches, with identification quality strongly correlating with detection performance for word-level attacks (ρ = 0.65). GPS generalizes to unseen datasets, attacks, and models without retraining, providing a practical solution for adversarial text detection.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 32 of its 48 references that are in the map. First posted on arXiv 6 Aug 2025.

Builds on

32 of 48 references.

References · 32

  1. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  3. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  4. 2016Layer Normalizationcited by 5,669
  5. 2013Intriguing properties of neural networkscited by 5,155
  6. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  7. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  8. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  9. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  10. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  11. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
  12. 2019Attention is not Explanationcited by 929
20 more
  1. 2020Quantifying Attention Flow in Transformerscited by 775
  2. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  3. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  4. 2018Generating Natural Language Adversarial Examplescited by 424
  5. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
  6. 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
  7. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  8. 2019Certified Robustness to Adversarial Word Substitutionscited by 168
  9. 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
  10. 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 103
  11. 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 73
  12. 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
  13. 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
  14. 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
  15. 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
  16. 2022Grad-SAM: Explaining Transformers via Gradient Self-Attention Mapscited by 42
  17. 2019Natural Language Adversarial Defense through Synonym Encodingcited by 40
  18. 2022"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attackscited by 24
  19. 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
  20. 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examplescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.