mlsanityData to 14 Oct 2026

Textual Manifold-based Defense Against Natural Language Adversarial Examples

arXiv 2211.02878 ↗First posted 5 Nov 2022cs.CL cs.CR cs.LGcited by 19

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  4. 2013Intriguing properties of neural networkscited by 5,155
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  7. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,054
  8. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
  9. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
  10. 2018Robustness May Be at Odds with Accuracycited by 880
  11. 2016InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Netscited by 860
  12. 2019Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?cited by 675
37 more
  1. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  2. 2021Datasets: A Community Library for Natural Language Processingcited by 530
  3. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  4. 2018Generating Natural Language Adversarial Examplescited by 424
  5. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
  6. 2021GAN Inversion: A Surveycited by 367
  7. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  8. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
  9. 2018Adversarially Robust Generalization Requires More Datacited by 318
  10. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  11. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 286
  12. 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
  13. 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 269
  14. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 264
  15. 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
  16. 2017Generating Natural Adversarial Examplescited by 183
  17. 2018Disentangling Adversarial Robustness and Generalizationcited by 172
  18. 2019Certified Robustness to Adversarial Word Substitutionscited by 168
  19. 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
  20. 2016Inverting The Generator Of A Generative Adversarial Networkcited by 140
  21. 2018Towards the first adversarially robust neural network model on MNISTcited by 104
  22. 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 88
  23. 2017DeLiGAN : Generative Adversarial Networks for Diverse and Limited Datacited by 77
  24. 2020Robustness Verification for Transformerscited by 76
  25. 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 73
  26. 2016A Boundary Tilting Persepective on the Phenomenon of Adversarial Examplescited by 70
  27. 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
  28. 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
  29. 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
  30. 2021How Should Pre-Trained Language Models Be Fine-Tuned Towards Adversarial Robustness?cited by 49
  31. 2021The Dimpled Manifold Model of Adversarial Examples in Machine Learningcited by 41
  32. 2020Emergence of Separable Manifolds in Deep Language Representationscited by 40
  33. 2020Better Robustness by More Coverage: Adversarial Training with Mixup Augmentation for Robust Fine-tuningcited by 39
  34. 2018Disconnected Manifold Learning for Generative Adversarial Networkscited by 27
  35. 2020Which *BERT? A Survey Organizing Contextualized Encoderscited by 26
  36. 2020Learning disconnected manifolds: a no GANs landcited by 25
  37. 2022Certified Robustness Against Natural Language Attacks by Causal Interventioncited by 24

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 5; 2024: 8; 2025: 5; 2026: 1.

19 papers.

Sort:

By area:

  1. 2023Certifying LLM Safety against Adversarial Promptingcited by 266
  2. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
  3. 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
  4. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
  5. 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation methodcited by 16
  6. 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
  7. 2023Masked Language Model Based Textual Adversarial Example Detectioncited by 5
  8. 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigmcited by 5
  9. 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4
  10. 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
  11. 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Modelscited by 4
  12. 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
7 more
  1. 2024Persistent Classification: A New Approach to Stability of Data and Adversarial Examplescited by 3
  2. 2024Explaining the role of Intrinsic Dimensionality in Adversarial Trainingcited by 2
  3. 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
  4. 2023Fooling the Textual Fooler via Randomizing Latent Representationscited by 1
  5. 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoisingcited by 1
  6. 2025Breaking the Adversarial Robustness-Performance Trade-off in Text Classification via Manifold Purificationcited by 0
  7. 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approachcited by 0