TL;DR
UltraBreak is a novel optimization-based jailbreak attack for Vision-Language Models (VLMs) that uses a single adversarial image to bypass safety filters across diverse prompts and unseen models. By combining image-space constraints with a smoothed, semantic-based loss function, it overcomes the overfitting issues of prior attacks, achieving unprecedented cross-model transferability and cross-target universality.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) like GPT-4V or LLaVA expand the capabilities of standard LLMs by adding vision encoders. However, this introduces a massive new attack surface: continuous, high-dimensional images.
Adversaries can craft "jailbreak" images that, when paired with a malicious text prompt, trick the VLM into outputting harmful content. The problem with current gradient-based image jailbreaks is that they transfer poorly. If an attacker optimizes an image to jailbreak a specific open-source surrogate model (like Qwen), it usually fails against a different black-box target (like LLaVA or Gemini). This happens because standard optimization techniques rely on strict cross-entropy loss, which forces the optimizer to memorize exact token sequences. This creates a "spiky" loss landscape, causing the adversarial image to overfit to the fragile, pixel-level quirks of the surrogate model rather than learning universal vulnerabilities.
Methods
To build an attack that is both universal (works across many different malicious prompts) and transferable (works across different VLM architectures), the authors developed UltraBreak, which relies on key innovations in both the input space and the loss objective.
- Input Space Constraints: Instead of allowing the optimizer to tweak arbitrary pixels freely, UltraBreak applies random transformations (scaling, rotation, translation) and a Total Variation (TV) loss during training. This forces the adversarial noise to form robust, macroscopic patterns rather than fragile static.
- Semantic Adversarial Targets: UltraBreak abandons the rigid token-level cross-entropy loss. Instead, it projects the model's output logits and the target text into a shared embedding space and minimizes the cosine distance between them. This rewards the model for generating semantically similar outputs (e.g., "Sure, I can help") rather than demanding exact token matches.
- Attention Weighting: To prevent the semantic loss from drifting toward irrelevant but easily optimized words, the authors introduce an attention mechanism that dynamically weights future target tokens based on semantic similarity, keeping the optimization on track.
Datasets
- Training (Surrogate Optimization): A tiny 50-query subset of SafeBench (SafeBench-Tiny) was used to train the single adversarial image.
- Evaluation (Black-Box Testing):
- SafeBench: 315 held-out queries across various harmful topics.
- AdvBench: 500 harmful textual instructions.
- MM-SafetyBench: 1680 harmful targets covering 13 scenarios.
Key Insights and Ideas
- Smooth landscapes equal better transferability: The shift from cross-entropy to semantic loss dramatically smooths the optimization landscape. By removing sharp local minima, the attack avoids getting trapped in surrogate-specific quirks, allowing it to generalize to unseen models.
- Visual constraints breed OCR-like exploits: By forcing the adversarial image to survive random transformations, the optimizer naturally discovers text-like visual patterns. Because most VLMs are heavily trained on Optical Character Recognition (OCR) tasks, these robust patterns act as universal, model-agnostic triggers.
- Surrogate size dictates threat level: The attack's success rate on a black-box victim model is highly dependent on the size of the surrogate model used to generate the image. Larger surrogates yield significantly more transferable attacks against larger victims.
Key Results
UltraBreak demonstrates a remarkable ability to generalize its attacks to unseen black-box models, vastly outperforming prior methods.
- Massive Black-Box Success: Using a Qwen2-VL-7B surrogate, UltraBreak achieved a 71.05% average Attack Success Rate (ASR) on SafeBench and 52.19% on AdvBench across a suite of black-box open-source models (including LLaVA, Kimi, and GLM).
- Crushing the Baselines: UltraBreak vastly outperformed existing optimization attacks. On SafeBench, competing methods like VAJM and UMK achieved only 41.46% and 20.00% black-box ASR, respectively.
- Proprietary Model Vulnerability: The single adversarial image proved effective even against commercial APIs, hitting a 32.26% average ASR against a combined subset on proprietary models like GPT-4.1-nano, Gemini-2.5-flash-lite, and Claude-3-haiku.
Limitations and Future Work
The authors note that UltraBreak struggles to transfer to the absolute largest frontier models (like GPT-5 or Claude-3.5-Sonnet) when the attack is crafted on a relatively small (e.g., 7B parameter) surrogate model. The sheer scale gap between the surrogate and the victim degrades transferability.
Future work will focus on scaling up the surrogate models to match the capacity of frontier models, systematically investigating how massive parameter counts impact adversarial transferability, and exploring defenses against these smoothed, semantic-based attacks.
Summary updated