Textual Manifold-based Defense Against Natural Language Adversarial Examples
Not on the map. Why?
Abstract (arXiv)
Recent studies on adversarial images have shown that they tend to leave the underlying low-dimensional data manifold, making them significantly more challenging for current models to make correct predictions. This so-called off-manifold conjecture has inspired a novel line of defenses against adversarial attacks on images. In this study, we find a similar phenomenon occurs in the contextualized embedding space induced by pretrained language models, in which adversarial texts tend to have their embeddings diverge from the manifold of natural ones. Based on this finding, we propose Textual Manifold-based Defense (TMD), a defense mechanism that projects text embeddings onto an approximated embedding manifold before classification. It reduces the complexity of potential adversarial examples, which ultimately enhances the robustness of the protected model. Through extensive experiments, our method consistently and significantly outperforms previous defenses under various attack settings without trading off clean accuracy. To the best of our knowledge, this is the first NLP defense that leverages the manifold structure against adversarial attacks. Our code is available at urlhttps://github.com/dangne/tmd.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 49 of its 66 references that are in the map. First posted on arXiv 5 Nov 2022.
Builds on
49 of 66 references.
References · 49
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2013Intriguing properties of neural networkscited by 5,155
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,054
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
- 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
- 2018Robustness May Be at Odds with Accuracycited by 880
- 2016InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Netscited by 860
- 2019Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?cited by 675
37 more
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2021Datasets: A Community Library for Natural Language Processingcited by 530
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2018Generating Natural Language Adversarial Examplescited by 424
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2021GAN Inversion: A Surveycited by 367
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2018Adversarially Robust Generalization Requires More Datacited by 318
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 286
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 269
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 264
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
- 2017Generating Natural Adversarial Examplescited by 183
- 2018Disentangling Adversarial Robustness and Generalizationcited by 172
- 2019Certified Robustness to Adversarial Word Substitutionscited by 168
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
- 2016Inverting The Generator Of A Generative Adversarial Networkcited by 140
- 2018Towards the first adversarially robust neural network model on MNISTcited by 104
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 88
- 2017DeLiGAN : Generative Adversarial Networks for Diverse and Limited Datacited by 77
- 2020Robustness Verification for Transformerscited by 76
- 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 73
- 2016A Boundary Tilting Persepective on the Phenomenon of Adversarial Examplescited by 70
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
- 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
- 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
- 2021How Should Pre-Trained Language Models Be Fine-Tuned Towards Adversarial Robustness?cited by 49
- 2021The Dimpled Manifold Model of Adversarial Examples in Machine Learningcited by 41
- 2020Emergence of Separable Manifolds in Deep Language Representationscited by 40
- 2020Better Robustness by More Coverage: Adversarial Training with Mixup Augmentation for Robust Fine-tuningcited by 39
- 2018Disconnected Manifold Learning for Generative Adversarial Networkscited by 27
- 2020Which *BERT? A Survey Organizing Contextualized Encoderscited by 26
- 2020Learning disconnected manifolds: a no GANs landcited by 25
- 2022Certified Robustness Against Natural Language Attacks by Causal Interventioncited by 24
Built on by
Citing papers per year: 2023: 5; 2024: 8; 2025: 5; 2026: 1.
19 papers.
Sort:
By area:
- 2023Certifying LLM Safety against Adversarial Promptingcited by 266
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation methodcited by 16
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2023Masked Language Model Based Textual Adversarial Example Detectioncited by 5
- 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigmcited by 5
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Modelscited by 4
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
7 more
- 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examplescited by 3
- 2024Explaining the role of Intrinsic Dimensionality in Adversarial Trainingcited by 2
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
- 2023Fooling the Textual Fooler via Randomizing Latent Representationscited by 1
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoisingcited by 1
- 2025Breaking the Adversarial Robustness-Performance Trade-off in Text Classification via Manifold Purificationcited by 0
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approachcited by 0
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Models9 Jan 2026
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approach19 Dec 2025
- 2025Breaking the Adversarial Robustness-Performance Trade-off in Text Classification via Manifold Purification11 Nov 2025
- 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigm8 Sep 2025
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal29 Jul 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising28 Jun 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Explaining the role of Intrinsic Dimensionality in Adversarial Training27 May 2024
- 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examples11 Apr 2024
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks27 Mar 2024
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Training8 Mar 2024
7 more
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustness27 Feb 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2023Fooling the Textual Fooler via Randomizing Latent Representations2 Oct 2023
- 2023Certifying LLM Safety against Adversarial Prompting6 Sep 2023
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May 2023
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation method21 Apr 2023
- 2023Masked Language Model Based Textual Adversarial Example Detection18 Apr 2023
- 2023Certifying LLM Safety against Adversarial Promptingcited by 266
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Modelscited by 4
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approachcited by 0
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Models9 Jan 2026
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approach19 Dec 2025
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Training8 Mar 2024
- 2023Certifying LLM Safety against Adversarial Prompting6 Sep 2023
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May 2023
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation methodcited by 16
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2023Masked Language Model Based Textual Adversarial Example Detectioncited by 5
- 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigmcited by 5
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
- 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examplescited by 3
- 2024Explaining the role of Intrinsic Dimensionality in Adversarial Trainingcited by 2
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
- 2023Fooling the Textual Fooler via Randomizing Latent Representationscited by 1
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoisingcited by 1
12 most cited of 13 All 13 (JSON)
- 2025Breaking the Adversarial Robustness-Performance Trade-off in Text Classification via Manifold Purification11 Nov 2025
- 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigm8 Sep 2025
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal29 Jul 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising28 Jun 2024
- 2024Explaining the role of Intrinsic Dimensionality in Adversarial Training27 May 2024
- 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examples11 Apr 2024
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks27 Mar 2024
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustness27 Feb 2024
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuning19 Feb 2024
- 2023Fooling the Textual Fooler via Randomizing Latent Representations2 Oct 2023
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation method21 Apr 2023
12 newest of 13 All 13 (JSON)