A Differentiable Language Model Adversarial Attack on Text Classifiers
Not on the map. Why?
Abstract (arXiv)
Robustness of huge Transformer-based models for natural language processing is an important issue due to their capabilities and wide adoption. One way to understand and improve robustness of these models is an exploration of an adversarial attack scenario: check if a small perturbation of an input can fool a model. Due to the discrete nature of textual data, gradient-based adversarial methods, widely used in computer vision, are not applicable per~se. The standard strategy to overcome this issue is to develop token-level transformations, which do not take the whole sentence into account. In this paper, we propose a new black-box sentence-level attack. Our method fine-tunes a pre-trained language model to generate adversarial examples. A proposed differentiable loss function depends on a substitute classifier score and an approximate edit distance computed via a deep learning model. We show that the proposed attack outperforms competitors on a diverse set of NLP problems for both computed metrics and human evaluation. Moreover, due to the usage of the fine-tuned language model, the generated adversarial examples are hard to detect, thus current models are not robust. Hence, it is difficult to defend from the proposed attack, which is not the case for other attacks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 48 of its 63 references that are in the map. First posted on arXiv 23 Jul 2021.
Builds on
48 of 63 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2013Intriguing properties of neural networkscited by 5,114
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
- 2016Adversarial Machine Learning at Scalecited by 934
- 2020Stanza: A Python Natural Language Processing Toolkit for Many Human Languagescited by 719
36 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
- 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 459
- 2018Adversarial Attacks on Neural Networks for Graph Datacited by 395
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 350
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2019Adversarial Attacks and Defenses in Images, Graphs and Text: A Reviewcited by 234
- 2018Adversarial Attack and Defense on Graph Data: A Surveycited by 166
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2018Generating Informative and Diverse Conversational Responses via Adversarial Information Maximizationcited by 114
- 2017Deep Text Classification Can be Fooledcited by 105
- 2019Robust Neural Machine Translation with Doubly Adversarial Inputscited by 105
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
- 2017Improved Variational Autoencoders for Text Modeling using Dilated Convolutionscited by 81
- 2018Interpretable Adversarial Perturbation in Input Embedding Space for Textcited by 67
- 2020It's Morphin' Time! Combating Linguistic Discrimination with Inflectional Perturbationscited by 64
- 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
- 2017Towards Crafting Text Adversarial Samplescited by 55
- 2017Art of singular vectors and universal adversarial perturbationscited by 49
- 2020Generating Fluent Adversarial Examples for Natural Languagescited by 49
- 2018Multimodal Named Entity Recognition for Short Social Media Postscited by 43
- 2018Greedy Attack and Gumbel Attack: Generating Adversarial Examples for Discrete Datacited by 37
- 2019Subspace Attack: Exploiting Promising Subspaces for Query-Efficient Black-box Attackscited by 35
- 2020Schema-Guided Dialogue State Tracking Task at DSTC8cited by 32
- 2018Adversarial Over-Sensitivity and Over-Stability Strategies for Dialogue Modelscited by 25
- 2020A Geometry-Inspired Attack for Generating Natural Language Adversarial Examplescited by 20
- 2020Generating Natural Language Adversarial Examples on a Large Scale with Generative Modelscited by 15
- 2019White-to-Black: Efficient Distillation of Black-Box Adversarial Attackscited by 14
- 2019Towards a Robust Deep Neural Network in Texts: A Surveycited by 7
- 2020Gradient-based adversarial attacks on categorical sequence models via traversing an embedded worldcited by 5
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 5; 2024: 1.
9 papers.
- 2023Improving the Accuracy-Robustness Trade-Off of Classifiers via Adaptive Smoothingcited by 18
- 2021Adversarial Bone Length Attack on Action Recognitioncited by 10
- 2023Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matricescited by 8
- 2023Evaluating Concurrent Robustness of Language Models Across Diverse Challenge Setscited by 6
- 2022Can Language Representation Models Think in Bets?cited by 3
- 2024SSCAE -- Semantic, Syntactic, and Context-aware natural language Adversarial Examples generatorcited by 3
- 2023Hiding Backdoors within Event Sequence Data via Poisoning Attackscited by 1
- 2022Usage of specific attention improves change point detectioncited by 0
- 2023Machine Translation Models Stand Strong in the Face of Adversarial Attackscited by 0
- 2024SSCAE -- Semantic, Syntactic, and Context-aware natural language Adversarial Examples generator18 Mar 2024
- 2023Evaluating Concurrent Robustness of Language Models Across Diverse Challenge Sets15 Nov 2023
- 2023Machine Translation Models Stand Strong in the Face of Adversarial Attacks10 Sep 2023
- 2023Uncertainty Estimation of Transformers' Predictions via Topological Analysis of the Attention Matrices22 Aug 2023
- 2023Hiding Backdoors within Event Sequence Data via Poisoning Attacks20 Aug 2023
- 2023Improving the Accuracy-Robustness Trade-Off of Classifiers via Adaptive Smoothing29 Jan 2023
- 2022Can Language Representation Models Think in Bets?14 Oct 2022
- 2022Usage of specific attention improves change point detection18 Apr 2022
- 2021Adversarial Bone Length Attack on Action Recognition13 Sep 2021