Fast Adversarial Attacks on Language Models In One GPU Minute

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sadasivan, Vinu Sankar, Saha, Shoumik, Sriramanan, Gaurang, Kattakinda, Priyatham, Chegini, Atoosa, Feizi, Soheil
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913243768815616
author Sadasivan, Vinu Sankar
Saha, Shoumik
Sriramanan, Gaurang
Kattakinda, Priyatham
Chegini, Atoosa
Feizi, Soheil
author_facet Sadasivan, Vinu Sankar
Saha, Shoumik
Sriramanan, Gaurang
Kattakinda, Priyatham
Chegini, Atoosa
Feizi, Soheil
contents In this paper, we introduce a novel class of fast, beam search-based adversarial attack (BEAST) for Language Models (LMs). BEAST employs interpretable parameters, enabling attackers to balance between attack speed, success rate, and the readability of adversarial prompts. The computational efficiency of BEAST facilitates us to investigate its applications on LMs for jailbreaking, eliciting hallucinations, and privacy attacks. Our gradient-free targeted attack can jailbreak aligned LMs with high attack success rates within one minute. For instance, BEAST can jailbreak Vicuna-7B-v1.5 under one minute with a success rate of 89% when compared to a gradient-based baseline that takes over an hour to achieve 70% success rate using a single Nvidia RTX A6000 48GB GPU. Additionally, we discover a unique outcome wherein our untargeted attack induces hallucinations in LM chatbots. Through human evaluations, we find that our untargeted attack causes Vicuna-7B-v1.5 to produce ~15% more incorrect outputs when compared to LM outputs in the absence of our attack. We also learn that 22% of the time, BEAST causes Vicuna to generate outputs that are not relevant to the original prompt. Further, we use BEAST to generate adversarial prompts in a few seconds that can boost the performance of existing membership inference attacks for LMs. We believe that our fast attack, BEAST, has the potential to accelerate research in LM security and privacy. Our codebase is publicly available at https://github.com/vinusankars/BEAST.
format Preprint
id arxiv_https___arxiv_org_abs_2402_15570
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Fast Adversarial Attacks on Language Models In One GPU Minute
Sadasivan, Vinu Sankar
Saha, Shoumik
Sriramanan, Gaurang
Kattakinda, Priyatham
Chegini, Atoosa
Feizi, Soheil
Cryptography and Security
Artificial Intelligence
Computation and Language
In this paper, we introduce a novel class of fast, beam search-based adversarial attack (BEAST) for Language Models (LMs). BEAST employs interpretable parameters, enabling attackers to balance between attack speed, success rate, and the readability of adversarial prompts. The computational efficiency of BEAST facilitates us to investigate its applications on LMs for jailbreaking, eliciting hallucinations, and privacy attacks. Our gradient-free targeted attack can jailbreak aligned LMs with high attack success rates within one minute. For instance, BEAST can jailbreak Vicuna-7B-v1.5 under one minute with a success rate of 89% when compared to a gradient-based baseline that takes over an hour to achieve 70% success rate using a single Nvidia RTX A6000 48GB GPU. Additionally, we discover a unique outcome wherein our untargeted attack induces hallucinations in LM chatbots. Through human evaluations, we find that our untargeted attack causes Vicuna-7B-v1.5 to produce ~15% more incorrect outputs when compared to LM outputs in the absence of our attack. We also learn that 22% of the time, BEAST causes Vicuna to generate outputs that are not relevant to the original prompt. Further, we use BEAST to generate adversarial prompts in a few seconds that can boost the performance of existing membership inference attacks for LMs. We believe that our fast attack, BEAST, has the potential to accelerate research in LM security and privacy. Our codebase is publicly available at https://github.com/vinusankars/BEAST.
title Fast Adversarial Attacks on Language Models In One GPU Minute
topic Cryptography and Security
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2402.15570