arrow
Return

A Differentiable Language Model Adversarial Attack on Text Classifiers

delete2022-01-01
delete9
delete
OA
AI
I
Ivan Fursov
A
Alexey Zaytsev *
P
Pavel Burnyshev
E
Ekaterina Dmitrieva
N
Nikita Klyuchnikov
A
Andrey Kravchenko
E
Ekaterina Artemova
E
Evgenia Komleva
E
Evgeny Burnaev
DOI:10.1109/ACCESS.2022.3148413delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Transformer models play a crucial role in state of the art solutions to problems arising in the field of natural language processing (NLP). They have billions of parameters and are typically considered as black boxes. Robustness of huge Transformer-based models for NLP is an important question due to their 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 invisible to a human eye 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. The semantic meaning and grammatical correctness of the sentence are often lost in such approaches 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 others. Our attack demonstrates the highest decrease of classification accuracy on all datasets(on AG news: 0.95 without attack, 0.89 under SamplingFool attack, 0.82 under DILMA attack).
Keywords:
Computational modeling
Training
Natural language processing
Motion pictures
Deep learning
Task analysis
Perturbation methods
Deep learning
natural language processing
adversarial attack
generative model

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

S
skolkovo institute of science & technology
Scholars:
3.3K
Papers: 2.3K
Citations: 1
U
university of oxford
Scholars:
9.7W
Papers: 8.6W
Citations: 137
researcher View more organizations