Gradient-based Jailbreak Images for Multimodal Fusion Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Rando, Javier, Korevaar, Hannah, Brinkman, Erik, Evtimov, Ivan, Tramèr, Florian
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929554851889152
author Rando, Javier
Korevaar, Hannah
Brinkman, Erik
Evtimov, Ivan
Tramèr, Florian
author_facet Rando, Javier
Korevaar, Hannah
Brinkman, Erik
Evtimov, Ivan
Tramèr, Florian
contents Augmenting language models with image inputs may enable more effective jailbreak attacks through continuous optimization, unlike text inputs that require discrete optimization. However, new multimodal fusion models tokenize all input modalities using non-differentiable functions, which hinders straightforward attacks. In this work, we introduce the notion of a tokenizer shortcut that approximates tokenization with a continuous function and enables continuous optimization. We use tokenizer shortcuts to create the first end-to-end gradient image attacks against multimodal fusion models. We evaluate our attacks on Chameleon models and obtain jailbreak images that elicit harmful information for 72.5% of prompts. Jailbreak images outperform text jailbreaks optimized with the same objective and require 3x lower compute budget to optimize 50x more input tokens. Finally, we find that representation engineering defenses, like Circuit Breakers, trained only on text attacks can effectively transfer to adversarial image inputs.
format Preprint
id arxiv_https___arxiv_org_abs_2410_03489
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Gradient-based Jailbreak Images for Multimodal Fusion Models
Rando, Javier
Korevaar, Hannah
Brinkman, Erik
Evtimov, Ivan
Tramèr, Florian
Cryptography and Security
Artificial Intelligence
Augmenting language models with image inputs may enable more effective jailbreak attacks through continuous optimization, unlike text inputs that require discrete optimization. However, new multimodal fusion models tokenize all input modalities using non-differentiable functions, which hinders straightforward attacks. In this work, we introduce the notion of a tokenizer shortcut that approximates tokenization with a continuous function and enables continuous optimization. We use tokenizer shortcuts to create the first end-to-end gradient image attacks against multimodal fusion models. We evaluate our attacks on Chameleon models and obtain jailbreak images that elicit harmful information for 72.5% of prompts. Jailbreak images outperform text jailbreaks optimized with the same objective and require 3x lower compute budget to optimize 50x more input tokens. Finally, we find that representation engineering defenses, like Circuit Breakers, trained only on text attacks can effectively transfer to adversarial image inputs.
title Gradient-based Jailbreak Images for Multimodal Fusion Models
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2410.03489