mlsanityData to 7 Oct 2026

TextDefense: Adversarial Text Detection based on Word Importance Entropy

arXiv 2302.05892 ↗First posted 12 Feb 2023cs.CL cs.AI cs.CRcited by 9

Not on the map. Why?

Abstract (arXiv)

Currently, natural language processing (NLP) models are wildly used in various scenarios. However, NLP models, like all deep models, are vulnerable to adversarially generated text. Numerous works have been working on mitigating the vulnerability from adversarial attacks. Nevertheless, there is no comprehensive defense in existing works where each work targets a specific attack category or suffers from the limitation of computation overhead, irresistible to adaptive attack, etc. In this paper, we exhaustively investigate the adversarial attack algorithms in NLP, and our empirical studies have discovered that the attack algorithms mainly disrupt the importance distribution of words in a text. A well-trained model can distinguish subtle importance distribution differences between clean and adversarial texts. Based on this intuition, we propose TextDefense, a new adversarial example detection framework that utilizes the target model's capability to defend against adversarial attacks while requiring no prior knowledge. TextDefense differs from previous approaches, where it utilizes the target model for detection and thus is attack type agnostic. Our extensive experiments show that TextDefense can be applied to different architectures, datasets, and attack methods and outperforms existing methods. We also discover that the leading factor influencing the performance of TextDefense is the target model's generalizability. By analyzing the property of the target model and the property of the adversarial example, we provide our insights into the adversarial attacks in NLP and the principles of our defense method.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 30 of its 43 references that are in the map. First posted on arXiv 12 Feb 2023.

Builds on

30 of 43 references.

References · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  7. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  8. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  9. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  10. 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
  11. 2018Neural Network Acceptability Judgmentscited by 952
  12. 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
18 more
  1. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  2. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  3. 2018Generating Natural Language Adversarial Examplescited by 422
  4. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  5. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
  6. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  7. 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 265
  8. 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
  9. 2020Text-to-Text Pre-Training for Data-to-Text Taskscited by 104
  10. 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
  11. 2021Towards Improving Adversarial Training of NLP Modelscited by 79
  12. 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
  13. 2019Natural Language Adversarial Defense through Synonym Encodingcited by 39
  14. 2019POPQORN: Quantifying Robustness of Recurrent Neural Networkscited by 36
  15. 2019Harnessing the Vulnerability of Latent Layers in Adversarially Trained Modelscited by 26
  16. 2020Adversarial Training and Provable Robustness: A Tale of Two Objectivescited by 12
  17. 2020Defense of Word-level Adversarial Attacks via Random Substitution Encodingcited by 9
  18. 2020Regularized Training and Tight Certification for Randomized Smoothed Classifier with Provable Robustnesscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 2; 2025: 2; 2026: 2.

9 papers.