TextDefense: Adversarial Text Detection based on Word Importance Entropy
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2018Neural Network Acceptability Judgmentscited by 952
- 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
18 more
- 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
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 265
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2020Text-to-Text Pre-Training for Data-to-Text Taskscited by 104
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
- 2019Natural Language Adversarial Defense through Synonym Encodingcited by 39
- 2019POPQORN: Quantifying Robustness of Recurrent Neural Networkscited by 36
- 2019Harnessing the Vulnerability of Latent Layers in Adversarially Trained Modelscited by 26
- 2020Adversarial Training and Provable Robustness: A Tale of Two Objectivescited by 12
- 2020Defense of Word-level Adversarial Attacks via Random Substitution Encodingcited by 9
- 2020Regularized Training and Tight Certification for Randomized Smoothed Classifier with Provable Robustnesscited by 6
Built on by
Citing papers per year: 2023: 3; 2024: 2; 2025: 2; 2026: 2.
9 papers.
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024Robust Neural Information Retrieval: An Adversarial and Out-of-distribution Perspectivecited by 15
- 2023Long-form analogies generated by chatGPT lack human-like psycholinguistic propertiescited by 8
- 2023Defense of Adversarial Ranking Attack in Text Retrieval: Benchmark and Baseline via Detectioncited by 3
- 2023Efficient Black-Box Adversarial Attacks on Neural Text Detectorscited by 3
- 2024TrustAI at SemEval-2024 Task 8: A Comprehensive Analysis of Multi-domain Machine Generated Text Detection Techniquescited by 3
- 2025M-DAIGT: A Shared Task on Multi-Domain Detection of AI-Generated Textcited by 2
- 2026AEyeDE: An Attention-Based Attribution Framework for AI-Generated Text Detectioncited by 0
- 2026Evaluation of Adversarial Robustness in Arabic Language Modelscited by 0
- 2026Evaluation of Adversarial Robustness in Arabic Language Models28 Jul 2026
- 2026AEyeDE: An Attention-Based Attribution Framework for AI-Generated Text Detection13 Apr 2026
- 2025M-DAIGT: A Shared Task on Multi-Domain Detection of AI-Generated Text14 Nov 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2024Robust Neural Information Retrieval: An Adversarial and Out-of-distribution Perspective9 Jul 2024
- 2024TrustAI at SemEval-2024 Task 8: A Comprehensive Analysis of Multi-domain Machine Generated Text Detection Techniques25 Mar 2024
- 2023Efficient Black-Box Adversarial Attacks on Neural Text Detectors3 Nov 2023
- 2023Defense of Adversarial Ranking Attack in Text Retrieval: Benchmark and Baseline via Detection31 Jul 2023
- 2023Long-form analogies generated by chatGPT lack human-like psycholinguistic properties7 Jun 2023