PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
January 1, 2020551 citationsOpen Access

BERT-ATTACK: Adversarial Attack Against BERT Using BERT

LLLinyang LiRMRuotian MaQGQipeng Guo

Key Points

  • This research aims to develop an efficient method for generating adversarial samples in text using BERT.
  • Proposes BERT-Attack using pre-trained masked language models, specifically BERT.
  • Validates effectiveness by testing on fine-tuned models across various downstream tasks.
  • Compares performance against existing state-of-the-art adversarial attack strategies.
  • BERT-Attack outperforms current methods in success rate and perturbation percentage.
  • Generated adversarial samples maintain semantic fluency and consistency.
  • Low computational cost allows for large-scale sample generation.

Abstract

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 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-theart 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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Li et al. (2020) studied this question.

synapsesocial.com/papers/69dd6697c5e71f7918100f1dhttps://doi.org/10.18653/v1/2020.emnlp-main.500
Ask AI
Helpful
Bookmark
Share
View Full Paper