Less is More: Understanding Word-level Textual Adversarial Attack via n-gram Frequency Descend
Not on the map. Why?
Abstract (arXiv)
Word-level textual adversarial attacks have demonstrated notable efficacy in misleading Natural Language Processing (NLP) models. Despite their success, the underlying reasons for their effectiveness and the fundamental characteristics of adversarial examples (AEs) remain obscure. This work aims to interpret word-level attacks by examining their n-gram frequency patterns. Our comprehensive experiments reveal that in approximately 90% of cases, word-level attacks lead to the generation of examples where the frequency of n-grams decreases, a tendency we term as the n-gram Frequency Descend (n-FD). This finding suggests a straightforward strategy to enhance model robustness: training models using examples with n-FD. To examine the feasibility of this strategy, we employed the n-gram frequency information, as an alternative to conventional loss gradients, to generate perturbed examples in adversarial training. The experiment results indicate that the frequency-based approach performs comparably with the gradient-based approach in improving model robustness. Our research offers a novel and more intuitive perspective for understanding word-level textual adversarial attacks and proposes a new direction to improve model robustness.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 39 of its 56 references that are in the map. First posted on arXiv 6 Feb 2023.
Builds on
39 of 56 references.
References · 39
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 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
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 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
27 more
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
- 2017Generating Natural Adversarial Examplescited by 182
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 138
- 2017Deep Text Classification Can be Fooledcited by 105
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
- 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 87
- 2020Robustness Verification for Transformerscited by 76
- 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 72
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 68
- 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
- 2019Learning to Discriminate Perturbations for Blocking Adversarial Attacks in Text Classificationcited by 55
- 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
- 2018FRAGE: Frequency-Agnostic Word Representationcited by 47
- 2020Better Robustness by More Coverage: Adversarial Training with Mixup Augmentation for Robust Fine-tuningcited by 39
- 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37
- 2020Searching for a Search Method: Benchmarking Search Algorithms for Generating NLP Adversarial Examplescited by 23
- 2022Phrase-level Textual Adversarial Attack with Label Preservationcited by 23
- 2019OpenHowNet: An Open Sememe-based Lexical Knowledge Basecited by 21
- 2021Multi-granularity Textual Adversarial Attack with Behavior Cloningcited by 21
- 2021Efficient Combinatorial Optimization for Word-level Adversarial Textual Attackcited by 17
- 2021Towards Variable-Length Textual Adversarial Attackscited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 6.
9 papers.
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasetscited by 17
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarkscited by 2
- 2025Open Your Eyes: Vision Enhances Message Passing Neural Networks in Link Predictioncited by 2
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
- 2024UPCS: Unbiased Persona Construction for Dialogue Generationcited by 1
- 2023Memory efficient location recommendation through proximity-aware representationcited by 0
- 2023Divide-and-Conquer Strategy for Large-Scale Dynamic Bayesian Network Structure Learningcited by 0
- 2025Trace Is In Sentences: Unbiased Lightweight ChatGPT-Generated Text Detectorcited by 0
- 2025Trace Is In Sentences: Unbiased Lightweight ChatGPT-Generated Text Detector23 Sep 2025
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal29 Jul 2025
- 2025Safe Delta: Consistently Preserving Safety when Fine-Tuning LLMs on Diverse Datasets17 May 2025
- 2025Open Your Eyes: Vision Enhances Message Passing Neural Networks in Link Prediction13 May 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks5 Jan 2025
- 2024UPCS: Unbiased Persona Construction for Dialogue Generation9 Sep 2024
- 2023Divide-and-Conquer Strategy for Large-Scale Dynamic Bayesian Network Structure Learning4 Dec 2023
- 2023Memory efficient location recommendation through proximity-aware representation10 Oct 2023