Towards Variable-Length Textual Adversarial Attacks
Not on the map. Why?
Abstract (arXiv)
Adversarial attacks have shown the vulnerability of machine learning models, however, it is non-trivial to conduct textual adversarial attacks on natural language processing tasks due to the discreteness of data. Most previous approaches conduct attacks with the atomic textitreplacement operation, which usually leads to fixed-length adversarial examples and therefore limits the exploration on the decision space. In this paper, we propose variable-length textual adversarial attacks~(VL-Attack) and integrate three atomic operations, namely textitinsertion, textitdeletion and textitreplacement, into a unified framework, by introducing and manipulating a special textitblank token while attacking. In this way, our approach is able to more comprehensively find adversarial examples around the decision boundary and effectively conduct adversarial attacks. Specifically, our method drops the accuracy of IMDB classification by 96% with only editing 1.3% tokens while attacking a pre-trained BERT model. In addition, fine-tuning the victim model with generated adversarial samples can improve the robustness of the model without hurting the performance, especially for length-sensitive models. On the task of non-autoregressive machine translation, our method can achieve 33.18 BLEU score on IWSLT14 German-English translation, achieving an improvement of 1.47 over the baseline model.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 16 Apr 2021.
Builds on
27 of 36 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 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
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2016Adversarial examples in the physical worldcited by 1,762
- 2016Sequence-Level Knowledge Distillationcited by 761
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
15 more
- 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
- 2018Universal Sentence Encodercited by 485
- 2017Non-Autoregressive Neural Machine Translationcited by 457
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2017Generating Natural Adversarial Examplescited by 182
- 2017Deep Text Classification Can be Fooledcited by 105
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 83
- 2020Imitation Attacks and Defenses for Black-box Machine Translation Systemscited by 78
- 2018Non-Autoregressive Neural Machine Translation with Enhanced Decoder Inputcited by 39
- 2019Fine-Tuning by Curriculum Learning for Non-Autoregressive Neural Machine Translationcited by 39
- 2018Attacks Meet Interpretability: Attribute-steered Detection of Adversarial Samplescited by 38
- 2020Semi-Autoregressive Training Improves Mask-Predict Decodingcited by 33
Built on by
Citing papers per year: 2022: 2; 2023: 2; 2024: 0; 2025: 1.
5 papers.
- 2022A Survey of Adversarial Defences and Robustness in NLPcited by 22
- 2022AEON: A Method for Automatic Evaluation of NLP Test Casescited by 15
- 2023Less is More: Understanding Word-level Textual Adversarial Attack via n-gram Frequency Descendcited by 9
- 2023From Adversarial Arms Race to Model-centric Evaluation: Motivating a Unified Automatic Robustness Evaluation Frameworkcited by 3
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifoldscited by 1
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifolds23 Aug 2025
- 2023From Adversarial Arms Race to Model-centric Evaluation: Motivating a Unified Automatic Robustness Evaluation Framework29 May 2023
- 2023Less is More: Understanding Word-level Textual Adversarial Attack via n-gram Frequency Descend6 Feb 2023
- 2022AEON: A Method for Automatic Evaluation of NLP Test Cases13 May 2022
- 2022A Survey of Adversarial Defences and Robustness in NLP12 Mar 2022