Gradient-based Jailbreak Images for Multimodal Fusion Models
Javier Rando, Hannah Korevaar, Erik Brinkman, Ivan Evtimov, Florian Tramèr
TL;DR
This work introduces tokenizer shortcuts to make image inputs differentiable in multimodal fusion models, enabling end-to-end gradient-based jailbreaks. On Chameleon models, the authors achieve a 72.5% jailbreak rate across prompts and demonstrate that image-based attacks can be more compute-efficient than text-only attacks, with roughly threefold savings and broader token coverage. The study compares against text-based baselines and assesses robustness under white-box defenses, finding that representation engineering defenses trained on text can transfer to image inputs, while transfer across different models remains challenging. Overall, the paper highlights both the vulnerability of current multimodal fusion systems to gradient-based image attacks and the mixed effectiveness of defenses, outlining clear directions for future work on transferability and defense generalization.
Abstract
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.
