CLApr 21, 2020

BERT-ATTACK: Adversarial Attack Against BERT Using BERT

arXiv:2004.09984v31158 citationsHas Code
Originality Highly original
AI Analysis

This addresses the problem of adversarial vulnerability in text-based deep learning models for researchers and practitioners, representing a novel method for a known bottleneck.

The paper tackles the challenge of generating adversarial attacks for text data by proposing BERT-Attack, a method that uses pre-trained masked language models like BERT to create adversarial samples, achieving higher success rates and lower perturbation percentages than state-of-the-art strategies.

Adversarial attacks for discrete data (such as texts) have been proved significantly more challenging than continuous data (such as images) since it is difficult to generate adversarial samples with gradient-based methods. Current successful attack methods for texts usually adopt heuristic replacement strategies on the character or word level, which remains challenging to find the optimal solution in the massive space of possible combinations of replacements while preserving semantic consistency and language fluency. In this paper, we propose \textbf{BERT-Attack}, a high-quality and effective method to generate adversarial samples using pre-trained masked language models exemplified by BERT. We turn BERT against its fine-tuned models and other deep neural models in downstream tasks so that we can successfully mislead the target models to predict incorrectly. Our method outperforms state-of-the-art attack strategies in both success rate and perturb percentage, while the generated adversarial samples are fluent and semantically preserved. Also, the cost of calculation is low, thus possible for large-scale generations. The code is available at https://github.com/LinyangLee/BERT-Attack.

Code Implementations4 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes