PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Rails

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Mangaokar, Neal, Hooda, Ashish, Choi, Jihye, Chandrashekaran, Shreyas, Fawaz, Kassem, Jha, Somesh, Prakash, Atul
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929256491122688
author Mangaokar, Neal
Hooda, Ashish
Choi, Jihye
Chandrashekaran, Shreyas
Fawaz, Kassem
Jha, Somesh
Prakash, Atul
author_facet Mangaokar, Neal
Hooda, Ashish
Choi, Jihye
Chandrashekaran, Shreyas
Fawaz, Kassem
Jha, Somesh
Prakash, Atul
contents Large language models (LLMs) are typically aligned to be harmless to humans. Unfortunately, recent work has shown that such models are susceptible to automated jailbreak attacks that induce them to generate harmful content. More recent LLMs often incorporate an additional layer of defense, a Guard Model, which is a second LLM that is designed to check and moderate the output response of the primary LLM. Our key contribution is to show a novel attack strategy, PRP, that is successful against several open-source (e.g., Llama 2) and closed-source (e.g., GPT 3.5) implementations of Guard Models. PRP leverages a two step prefix-based attack that operates by (a) constructing a universal adversarial prefix for the Guard Model, and (b) propagating this prefix to the response. We find that this procedure is effective across multiple threat models, including ones in which the adversary has no access to the Guard Model at all. Our work suggests that further advances are required on defenses and Guard Models before they can be considered effective.
format Preprint
id arxiv_https___arxiv_org_abs_2402_15911
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Rails
Mangaokar, Neal
Hooda, Ashish
Choi, Jihye
Chandrashekaran, Shreyas
Fawaz, Kassem
Jha, Somesh
Prakash, Atul
Cryptography and Security
Computation and Language
Large language models (LLMs) are typically aligned to be harmless to humans. Unfortunately, recent work has shown that such models are susceptible to automated jailbreak attacks that induce them to generate harmful content. More recent LLMs often incorporate an additional layer of defense, a Guard Model, which is a second LLM that is designed to check and moderate the output response of the primary LLM. Our key contribution is to show a novel attack strategy, PRP, that is successful against several open-source (e.g., Llama 2) and closed-source (e.g., GPT 3.5) implementations of Guard Models. PRP leverages a two step prefix-based attack that operates by (a) constructing a universal adversarial prefix for the Guard Model, and (b) propagating this prefix to the response. We find that this procedure is effective across multiple threat models, including ones in which the adversary has no access to the Guard Model at all. Our work suggests that further advances are required on defenses and Guard Models before they can be considered effective.
title PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Rails
topic Cryptography and Security
Computation and Language
url https://arxiv.org/abs/2402.15911