paper-with-me

Papers

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 replacement strategies to generate adversarial examples. These strategies can lead to out-of-context and unnaturally complex token replacements, which are easily identifiable by humans. We present BAE, a black box attack for generating adversarial examples using contextual perturbations from a BERT masked language model. BAE replaces and inserts tokens in the original text by masking a portion of the text and leveraging the BERT-MLM to generate alternatives for the masked tokens. Through automatic and human evaluations, we show that BAE performs a stronger attack, in addition to generating adversarial examples with improved grammaticality and semantic coherence as compared to prior work.

📄 PDF Abstract BibTeX arXiv:2004.01970

Code (2)

QData/TextAttack 공식 구현 tf
QData/TextAttack/blob/master/textattack/attack_recipes/bae_garg_2019.py 공식 구현

Tasks

Adversarial AttackAdversarial TextClassificationGeneral ClassificationLanguage Modelingtext-classificationText Classification

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Adam 설명 없음
Multi-Head Attention 설명 없음
BERT BERT, or Bidirectional Encoder Representations from Transformers, improves upon standard Transformers by removing the…

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

Improved Text Classification via Contrastive Adversarial Training

2021-07-21 · Lin Pan, Chung-Wei Hang, Avirup Sil, Saloni Potdar

We propose a simple and general method to regularize the fine-tuning of Transformer-based encoders for text classification tasks. Specifically, during fine-tuning we generate adversarial examples by perturbing the word e…

ClassificationContrastive Learningintent-classificationIntent Classification+3

GAN-BERT: Generative Adversarial Learning for Robust Text Classification with a Bunch of Labeled Examples

2020-07-01 · ACL 2020 6 · Danilo Croce, Giuseppe Castellucci, Roberto Basili

Recent Transformer-based architectures, e.g., BERT, provide impressive results in many Natural Language Processing tasks. However, most of the adopted benchmarks are made of (sometimes hundreds of) thousands of examples.…

General ClassificationSentenceSentence Classificationtext-classification+1

Improving Health Mentioning Classification of Tweets using Contrastive Adversarial Training

2022-03-03 · Pervaiz Iqbal Khan, Shoaib Ahmed Siddiqui, Imran Razzak, Andreas Dengel 외

Health mentioning classification (HMC) classifies an input text as health mention or not. Figurative and non-health mention of disease words makes the classification task challenging. Learning the context of the input te…

OpenFact at CheckThat! 2024: Combining Multiple Attack Methods for Effective Adversarial Text Generation

2024-09-04 · Włodzimierz Lewoniewski, Piotr Stolarski, Milena Stróżyna, Elzbieta Lewańska 외

This paper presents the experiments and results for the CheckThat! Lab at CLEF 2024 Task 6: Robustness of Credibility Assessment with Adversarial Examples (InCrediblAE). The primary objective of this task was to generate…

Adversarial AttackAdversarial TextEnsemble LearningMisinformation+3