paper-with-me

홈 › Papers

BERT is Robust! A Case Against Synonym-Based Adversarial Examples in Text Classification

2021-11-16 · ACL ARR November 2021 11 · Anonymous

In this work, we investigate the robustness of BERT using four word substitution-based attacks. We combine a human evaluation of individual word substitutions and a probabilistic analysis to show that between 96% and 99% of the analyzed attacks do not preserve semantics, indicating that their success is mainly based on feeding poor data to the model. To further confirm that, we introduce an efficient data augmentation procedure and show that many successful attacks can be prevented by including data similar to adversarial examples during training. Compared to traditional adversarial training, our data augmentation procedure requires 30x less computation time per epoch, while achieving better performance on two out of three datasets. We introduce an additional post-processing step that reduces the success rates of state-of-the-art attacks below 4%, 5%, and 8% on the three considered datasets. Finally, by looking at constraints for word substitutions that better preserve the semantics, we conclude that BERT is considerably more robust than previous research suggests.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Data Augmentationtext-classificationText Classification

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Weight Decay 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Arabic Synonym BERT-based Adversarial Examples for Text Classification

2024-02-05 · Norah Alshahrani, Saied Alshahrani, Esma Wali, Jeanna Matthews

Text classification systems have been proven vulnerable to adversarial text examples, modified versions of the original text examples that are often unnoticed by human eyes, yet can force text classification models to al…

Adversarial TextLanguage ModelingLanguage ModellingMasked Language Modeling+2

BERT is Robust! A Case Against Synonym-Based Adversarial Examples in Text Classification

2021-09-15 · Jens Hauser, Zhao Meng, Damián Pascual, Roger Wattenhofer

Deep Neural Networks have taken Natural Language Processing by storm. While this led to incredible improvements across many tasks, it also initiated a new research field, questioning the robustness of these neural networ…

Data Augmentationtext-classificationText Classification

Defense against Synonym Substitution-based Adversarial Attacks via Dirichlet Neighborhood Ensemble

2021-08-01 · ACL 2021 5 · Yi Zhou, Xiaoqing Zheng, Cho-Jui Hsieh, Kai-Wei Chang 외

Although deep neural networks have achieved prominent performance on many NLP tasks, they are vulnerable to adversarial examples. We propose Dirichlet Neighborhood Ensemble (DNE), a randomized method for training a robus…

Sentence

Fast Adversarial Training against Textual Adversarial Attacks

2024-01-23 · Yichen Yang, Xin Liu, Kun He

Many adversarial defense methods have been proposed to enhance the adversarial robustness of natural language processing models. However, most of them introduce additional pre-set linguistic knowledge and assume that the…

Adversarial DefenseAdversarial Robustness

BAE: BERT-based Adversarial Examples for Text Classification

2020-04-04 · EMNLP 2020 11 · Siddhant Garg, Goutham Ramakrishnan

Modern text classification models are susceptible to adversarial examples, perturbed versions of the original text indiscernible by humans which get misclassified by the model. Recent works in NLP use rule-based synonym …

Adversarial AttackAdversarial TextClassificationGeneral Classification+3