mlsanityData to 7 Oct 2026

A Differentiable Language Model Adversarial Attack on Text Classifiers

arXiv 2107.11275 ↗First posted 23 Jul 2021cs.CL cs.LGcited by 9

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  5. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  6. 2013Intriguing properties of neural networkscited by 5,114
  7. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
  8. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
  9. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  10. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
  11. 2016Adversarial Machine Learning at Scalecited by 934
  12. 2020Stanza: A Python Natural Language Processing Toolkit for Many Human Languagescited by 719
36 more
  1. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
  2. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  3. 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 459
  4. 2018Adversarial Attacks on Neural Networks for Graph Datacited by 395
  5. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
  6. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  7. 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 350
  8. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
  9. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  10. 2019Adversarial Attacks and Defenses in Images, Graphs and Text: A Reviewcited by 234
  11. 2018Adversarial Attack and Defense on Graph Data: A Surveycited by 166
  12. 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
  13. 2018Generating Informative and Diverse Conversational Responses via Adversarial Information Maximizationcited by 114
  14. 2017Deep Text Classification Can be Fooledcited by 105
  15. 2019Robust Neural Machine Translation with Doubly Adversarial Inputscited by 105
  16. 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
  17. 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
  18. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
  19. 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
  20. 2017Improved Variational Autoencoders for Text Modeling using Dilated Convolutionscited by 81
  21. 2018Interpretable Adversarial Perturbation in Input Embedding Space for Textcited by 67
  22. 2020It's Morphin' Time! Combating Linguistic Discrimination with Inflectional Perturbationscited by 64
  23. 2020Robust Encodings: A Framework for Combating Adversarial Typoscited by 58
  24. 2017Towards Crafting Text Adversarial Samplescited by 55
  25. 2017Art of singular vectors and universal adversarial perturbationscited by 49
  26. 2020Generating Fluent Adversarial Examples for Natural Languagescited by 49
  27. 2018Multimodal Named Entity Recognition for Short Social Media Postscited by 43
  28. 2018Greedy Attack and Gumbel Attack: Generating Adversarial Examples for Discrete Datacited by 37
  29. 2019Subspace Attack: Exploiting Promising Subspaces for Query-Efficient Black-box Attackscited by 35
  30. 2020Schema-Guided Dialogue State Tracking Task at DSTC8cited by 32
  31. 2018Adversarial Over-Sensitivity and Over-Stability Strategies for Dialogue Modelscited by 25
  32. 2020A Geometry-Inspired Attack for Generating Natural Language Adversarial Examplescited by 20
  33. 2020Generating Natural Language Adversarial Examples on a Large Scale with Generative Modelscited by 15
  34. 2019White-to-Black: Efficient Distillation of Black-Box Adversarial Attackscited by 14
  35. 2019Towards a Robust Deep Neural Network in Texts: A Surveycited by 7
  36. 2020Gradient-based adversarial attacks on categorical sequence models via traversing an embedded worldcited by 5

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 2; 2023: 5; 2024: 1.

9 papers.