mlsanityData to 7 Oct 2026

SemAttack: Natural Textual Attacks via Different Semantic Spaces

arXiv 2205.01287 ↗First posted 3 May 2022cs.CLcited by 42

Not on the map. Why?

Abstract (arXiv)

Recent studies show that pre-trained language models (LMs) are vulnerable to textual adversarial attacks. However, existing attack methods either suffer from low attack success rates or fail to search efficiently in the exponentially large perturbation space. We propose an efficient and effective framework SemAttack to generate natural adversarial text by constructing different semantic perturbation functions. In particular, SemAttack optimizes the generated perturbations constrained on generic semantic spaces, including typo space, knowledge space (e.g., WordNet), contextualized semantic space (e.g., the embedding space of BERT clusterings), or the combination of these spaces. Thus, the generated adversarial texts are more semantically close to the original inputs. Extensive experiments reveal that state-of-the-art (SOTA) large-scale LMs (e.g., DeBERTa-v2) and defense strategies (e.g., FreeLB) are still vulnerable to SemAttack. We further demonstrate that SemAttack is general and able to generate natural adversarial texts for different languages (e.g., English and Chinese) with high attack success rates. Human evaluations also confirm that our generated adversarial texts are natural and barely affect human performance. Our code is publicly available at https://github.com/AI-secure/SemAttack.

Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). Builds on 28 of its 37 references that are in the map. First posted on arXiv 3 May 2022.

Builds on

28 of 37 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  6. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  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. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  11. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  12. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
16 more
  1. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
  2. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
  3. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  4. 2018Generating Natural Language Adversarial Examplescited by 422
  5. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  6. 2017A Structured Self-attentive Sentence Embeddingcited by 318
  7. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  8. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
  9. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
  10. 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 227
  11. 2019Visualizing and Measuring the Geometry of BERTcited by 215
  12. 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
  13. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
  14. 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
  15. 2021Deep Subjecthood: Higher-Order Grammatical Features in Multilingual BERTcited by 41
  16. 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 11; 2024: 13; 2025: 13; 2026: 4.

42 papers.

Sort:

By area:

  1. 2023Explainability for Large Language Models: A Surveycited by 331
  2. 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 150
  3. 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 74
  4. 2023Identifying and Mitigating Vulnerabilities in LLM-Integrated Applicationscited by 54
  5. 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
  6. 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Modelscited by 31
  7. 2023The Trickle-down Impact of Reward (In-)consistency on RLHFcited by 29
  8. 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agendacited by 22
  9. 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
  10. 2025Enhancing LLM Robustness to Perturbed Instructions: An Empirical Studycited by 17
  11. 2025DarkMind: Latent Chain-of-Thought Backdoor in Customized LLMscited by 15
  12. 2023TransFool: An Adversarial Attack against Neural Machine Translation Modelscited by 12
30 more
  1. 2024Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustnesscited by 11
  2. 2025Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findingscited by 10
  3. 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer trainingcited by 9
  4. 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
  5. 2022In and Out-of-Domain Text Adversarial Robustness via Label Smoothingcited by 5
  6. 2025Can an Individual Manipulate the Collective Decisions of Multi-Agents?cited by 5
  7. 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translationcited by 4
  8. 2025aiXamine: Simplified LLM Safety and Securitycited by 4
  9. 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examplescited by 3
  10. 2023Expanding Scope: Adapting English Adversarial Attacks to Chinesecited by 3
  11. 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Modelscited by 3
  12. 2024Investigating the Impact of Model Instability on Explanations and Uncertaintycited by 3
  13. 2024Brain-like Functional Organization within Large Language Modelscited by 3
  14. 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functionscited by 2
  15. 2025Text Adversarial Attacks with Dynamic Outputscited by 2
  16. 2024VertAttack: Taking advantage of Text Classifiers' horizontal visioncited by 1
  17. 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoisingcited by 1
  18. 2024BinarySelect to Improve Accessibility of Black-Box Attack Researchcited by 1
  19. 2024Human-in-the-Loop Generation of Adversarial Texts: A Case Study on Tibetan Scriptcited by 1
  20. 2025Q-FAKER: Query-free Hard Black-box Attack via Controlled Generationcited by 1
  21. 2025Multi-task Adversarial Attacks against Black-box Model with Few-shot Queriescited by 1
  22. 2024Unveiling Vulnerability of Self-Attentioncited by 0
  23. 2025Extend Adversarial Policy Against Neural Machine Translation via Unknown Tokencited by 0
  24. 2025Search-based Selection of Metamorphic Relations for Optimized Robustness Testing of Large Language Modelscited by 0
  25. 2025RedHerring Attack: Testing the Reliability of Attack Detectioncited by 0
  26. 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithmscited by 0
  27. 2026Agentic Adversarial Rewriting Exposes Architectural Vulnerabilities in Black-Box NLP Pipelinescited by 0
  28. 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
  29. 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Textcited by 0
  30. 2026OASIS: Optimizing Attacker Sequences for Hard-Label Black-Box Text Attackscited by 0