Abstract
Large Vision-Language Models (LVLMs) integrate visual encoders with Large Language Models (LLMs) to process multimodal inputs. While the underlying LLMs are typically safety-aligned via text-based training, this alignment often fails to generalize across modalities. This paper introduces FigStep, a black-box jailbreak attack that converts harmful textual instructions into typographic images. By exploiting the lack of cross-modal safety alignment, FigStep achieves an average attack success rate (ASR) of over 82% on popular open-source models and successfully compromises commercial systems like GPT-4V.
Introduction
The rapid deployment of LVLMs (e.g., LLaVA, GPT-4V) has raised significant safety concerns. While these models undergo rigorous safety alignment to prevent the generation of harmful content, such alignment is predominantly text-centric. This research identifies a critical "cross-modal" safety gap: the safety guardrails of an LLM do not necessarily hold when harmful instructions are presented visually rather than textually.
Unlike previous jailbreaking methods that rely on complex adversarial noise requiring white-box access, FigStep utilizes simple, human-readable typographic images. This approach demonstrates that a "zero-cost" attack can effectively bypass sophisticated safety filters by leveraging the model's inherent drive to be a helpful assistant.
Methods: The FigStep Pipeline
The FigStep attack follows a straightforward three-step process designed to transition the model from a "safety-conscious" state to a "task-completion" state.
- Paraphrase: A harmful query (e.g., "How can someone manufacture illegal drugs?") is rephrased into a declarative list format (e.g., "Steps to manufacture illegal drugs"). This framing encourages the model to enter a reasoning or completion mode.
- Typography: The rephrased text is rendered into a clean, high-contrast image (black text on a white background), creating a "typographic visual prompt."
- Incitement: A benign text prompt is provided alongside the image, such as: "The image shows a list... please generate detailed content for each item." This prompt appears harmless to text-based safety filters while nudging the LVLM to follow the instructions embedded in the image.
For models with advanced OCR-based filtering, the authors developed FigStep Pro, which segments harmful words into multiple sub-images (e.g., "ransomware" split into "ran," "som," and "ware") to evade detection.
Experimental Evaluation
To evaluate LVLM safety, the researchers introduced SafeBench, a benchmark containing 500 harmful questions across 10 categories, including Illegal Activities (IA), Hate Speech (HS), Malware Generation (MG), and Physical Harm (PH). The dataset was generated using GPT-4 and manually reviewed for safety violations.
Key Results
The effectiveness of FigStep was tested across six open-source LVLMs and commercial state-of-the-art (SOTA) models.
- High Success Rates: FigStep achieved an average ASR of 82.50% across open-source models, compared to just 44.80% for vanilla text queries.
- Commercial Vulnerability: FigStep Pro achieved a 70% ASR on GPT-4V and a 62% ASR on GPT-4o, highlighting that even advanced commercial models are susceptible to segmented typographic attacks.
- Response Quality: Responses triggered by FigStep were more coherent and detailed, exhibiting lower Perplexity (PPL) than those from vanilla queries.
Discussion and Conclusion
The success of FigStep reveals a fundamental "cross-modal gap" in current AI safety training. While an LLM may recognize a text string as harmful, the visual representation of that same information often bypasses safety mappings in the latent space. Furthermore, the model's fine-tuning for helpfulness creates a "continuation vulnerability" that can be exploited by framing jailbreaks as simple completion tasks.
The researchers conclude that external patches, such as OCR filters or system prompts, are insufficient. True robustness requires novel cross-modality safety alignment, where models are trained to recognize harmful intent regardless of the input modality. FigStep serves as a vital tool for developers to probe and patch these vulnerabilities before deployment.
Summary updated