Revisiting Character-level Adversarial Attacks for Language Models
Not on the map. Why?
Abstract (arXiv)
Adversarial attacks in Natural Language Processing apply perturbations in the character or token levels. Token-level attacks, gaining prominence for their use of gradient-based methods, are susceptible to altering sentence semantics, leading to invalid adversarial examples. While character-level attacks easily maintain semantics, they have received less attention as they cannot easily adopt popular gradient-based methods, and are thought to be easy to defend. Challenging these beliefs, we introduce Charmer, an efficient query-based adversarial attack capable of achieving high attack success rate (ASR) while generating highly similar adversarial examples. Our method successfully targets both small (BERT) and large (Llama 2) models. Specifically, on BERT with SST-2, Charmer improves the ASR in 4.84% points and the USE similarity in 8% points with respect to the previous art. Our implementation is available in https://github.com/LIONS-EPFL/Charmer.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 46 of its 70 references that are in the map. First posted on arXiv 7 May 2024.
Builds on
46 of 70 references.
References · 46
- 2023GPT-4 Technical Reportcited by 18,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 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
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
34 more
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Deep contextualized word representationscited by 2,285
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2023Are aligned neural networks adversarially aligned?cited by 305
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2020Fast WordPiece Tokenizationcited by 85
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 83
- 2020Imitation Attacks and Defenses for Black-box Machine Translation Systemscited by 78
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2018Greedy Attack and Gumbel Attack: Generating Adversarial Examples for Discrete Datacited by 37
- 2018Discrete Adversarial Attacks and Submodular Optimization with Applications to Text Classificationcited by 34
- 2022Character-level White-Box Adversarial Attacks against Transformers via Attachable Subwords Substitutioncited by 28
- 2022Query-Efficient and Scalable Black-Box Adversarial Attacks on Discrete Sequential Data via Bayesian Optimizationcited by 22
- 2022TextGrad: Advancing Robustness Evaluation in NLP by Gradient-Driven Optimizationcited by 21
- 2023How do humans perceive adversarial text? A reality check on the validity and naturalness of word-based adversarial attackscited by 18
- 2023TransFool: An Adversarial Attack against Neural Machine Translation Modelscited by 12
- 2023Targeted Adversarial Attacks against Neural Machine Translationcited by 10
Built on by
Citing papers per year: 2024: 2; 2025: 2.
4 papers.
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 24
- 2025Towards the Worst-case Robustness of Large Language Modelscited by 7
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarkscited by 2
- 2024Adversarial Robustness through Dynamic Ensemble Learningcited by 0
- 2025Towards the Worst-case Robustness of Large Language Models31 Jan 2025
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks5 Jan 2025
- 2024Adversarial Robustness through Dynamic Ensemble Learning20 Dec 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024