SemAttack: Natural Textual Attacks via Different Semantic Spaces
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 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
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
16 more
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
- 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
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 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
- 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 227
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2021Deep Subjecthood: Higher-Order Grammatical Features in Multilingual BERTcited by 41
- 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37
Built on by
Citing papers per year: 2022: 1; 2023: 11; 2024: 13; 2025: 13; 2026: 4.
42 papers.
Sort:
By area:
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 150
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 74
- 2023Identifying and Mitigating Vulnerabilities in LLM-Integrated Applicationscited by 54
- 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
- 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Modelscited by 31
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHFcited by 29
- 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agendacited by 22
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2025Enhancing LLM Robustness to Perturbed Instructions: An Empirical Studycited by 17
- 2025DarkMind: Latent Chain-of-Thought Backdoor in Customized LLMscited by 15
- 2023TransFool: An Adversarial Attack against Neural Machine Translation Modelscited by 12
30 more
- 2024Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustnesscited by 11
- 2025Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findingscited by 10
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer trainingcited by 9
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
- 2022In and Out-of-Domain Text Adversarial Robustness via Label Smoothingcited by 5
- 2025Can an Individual Manipulate the Collective Decisions of Multi-Agents?cited by 5
- 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translationcited by 4
- 2025aiXamine: Simplified LLM Safety and Securitycited by 4
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examplescited by 3
- 2023Expanding Scope: Adapting English Adversarial Attacks to Chinesecited by 3
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Modelscited by 3
- 2024Investigating the Impact of Model Instability on Explanations and Uncertaintycited by 3
- 2024Brain-like Functional Organization within Large Language Modelscited by 3
- 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functionscited by 2
- 2025Text Adversarial Attacks with Dynamic Outputscited by 2
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal visioncited by 1
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoisingcited by 1
- 2024BinarySelect to Improve Accessibility of Black-Box Attack Researchcited by 1
- 2024Human-in-the-Loop Generation of Adversarial Texts: A Case Study on Tibetan Scriptcited by 1
- 2025Q-FAKER: Query-free Hard Black-box Attack via Controlled Generationcited by 1
- 2025Multi-task Adversarial Attacks against Black-box Model with Few-shot Queriescited by 1
- 2024Unveiling Vulnerability of Self-Attentioncited by 0
- 2025Extend Adversarial Policy Against Neural Machine Translation via Unknown Tokencited by 0
- 2025Search-based Selection of Metamorphic Relations for Optimized Robustness Testing of Large Language Modelscited by 0
- 2025RedHerring Attack: Testing the Reliability of Attack Detectioncited by 0
- 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithmscited by 0
- 2026Agentic Adversarial Rewriting Exposes Architectural Vulnerabilities in Black-Box NLP Pipelinescited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
- 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Textcited by 0
- 2026OASIS: Optimizing Attacker Sequences for Hard-Label Black-Box Text Attackscited by 0
- 2026OASIS: Optimizing Attacker Sequences for Hard-Label Black-Box Text Attacks30 Aug 2026
- 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Text25 Jun 2026
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoning24 Jun 2026
- 2026Agentic Adversarial Rewriting Exposes Architectural Vulnerabilities in Black-Box NLP Pipelines26 Apr 2026
- 2025Text Adversarial Attacks with Dynamic Outputs26 Sep 2025
- 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithms25 Sep 2025
- 2025RedHerring Attack: Testing the Reliability of Attack Detection25 Sep 2025
- 2025Can an Individual Manipulate the Collective Decisions of Multi-Agents?20 Sep 2025
- 2025Multi-task Adversarial Attacks against Black-box Model with Few-shot Queries10 Aug 2025
- 2025Search-based Selection of Metamorphic Relations for Optimized Robustness Testing of Large Language Models8 Jul 2025
- 2025Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findings30 May 2025
- 2025aiXamine: Simplified LLM Safety and Security21 Apr 2025
30 more
- 2025Q-FAKER: Query-free Hard Black-box Attack via Controlled Generation18 Apr 2025
- 2025Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study3 Apr 2025
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer training15 Feb 2025
- 2025DarkMind: Latent Chain-of-Thought Backdoor in Customized LLMs24 Jan 2025
- 2025Extend Adversarial Policy Against Neural Machine Translation via Unknown Token21 Jan 2025
- 2024Human-in-the-Loop Generation of Adversarial Texts: A Case Study on Tibetan Script17 Dec 2024
- 2024BinarySelect to Improve Accessibility of Black-Box Attack Research13 Dec 2024
- 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functions26 Oct 2024
- 2024Brain-like Functional Organization within Large Language Models25 Oct 2024
- 2024Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustness16 Jul 2024
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising28 Jun 2024
- 2024Graph Machine Learning in the Era of Large Language Models (LLMs)23 Apr 2024
- 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agenda15 Apr 2024
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal vision12 Apr 2024
- 2024Unveiling Vulnerability of Self-Attention26 Feb 2024
- 2024Investigating the Impact of Model Instability on Explanations and Uncertainty20 Feb 2024
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks30 Jan 2024
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan 2024
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualities11 Dec 2023
- 2023Identifying and Mitigating Vulnerabilities in LLM-Integrated Applications7 Nov 2023
- 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Models6 Nov 2023
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHF28 Sep 2023
- 2023Explainability for Large Language Models: A Survey2 Sep 2023
- 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translation29 Aug 2023
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Models9 Jun 2023
- 2023Expanding Scope: Adapting English Adversarial Attacks to Chinese8 Jun 2023
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examples6 May 2023
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classification3 Feb 2023
- 2023TransFool: An Adversarial Attack against Neural Machine Translation Models2 Feb 2023
- 2022In and Out-of-Domain Text Adversarial Robustness via Label Smoothing20 Dec 2022
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 150
- 2025aiXamine: Simplified LLM Safety and Securitycited by 4
- 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functionscited by 2
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoning24 Jun 2026
- 2025aiXamine: Simplified LLM Safety and Security21 Apr 2025
- 2024Attacks against Abstractive Text Summarization Models through Lead Bias and Influence Functions26 Oct 2024
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks30 Jan 2024
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHFcited by 29
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHF28 Sep 2023
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2023Identifying and Mitigating Vulnerabilities in LLM-Integrated Applicationscited by 54
- 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
- 2023Quantifying Uncertainty in Natural Language Explanations of Large Language Modelscited by 31
- 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agendacited by 22
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2025Enhancing LLM Robustness to Perturbed Instructions: An Empirical Studycited by 17
- 2023TransFool: An Adversarial Attack against Neural Machine Translation Modelscited by 12
- 2024Learning on Graphs with Large Language Models(LLMs): A Deep Dive into Model Robustnesscited by 11
- 2025Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findingscited by 10
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer trainingcited by 9
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
12 most cited of 33 All 33 (JSON)
- 2026OASIS: Optimizing Attacker Sequences for Hard-Label Black-Box Text Attacks30 Aug 2026
- 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Text25 Jun 2026
- 2025Text Adversarial Attacks with Dynamic Outputs26 Sep 2025
- 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithms25 Sep 2025
- 2025RedHerring Attack: Testing the Reliability of Attack Detection25 Sep 2025
- 2025Multi-task Adversarial Attacks against Black-box Model with Few-shot Queries10 Aug 2025
- 2025Search-based Selection of Metamorphic Relations for Optimized Robustness Testing of Large Language Models8 Jul 2025
- 2025Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findings30 May 2025
- 2025Q-FAKER: Query-free Hard Black-box Attack via Controlled Generation18 Apr 2025
- 2025Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study3 Apr 2025
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer training15 Feb 2025
- 2025Extend Adversarial Policy Against Neural Machine Translation via Unknown Token21 Jan 2025
12 newest of 33 All 33 (JSON)