TL;DR
This paper introduces FC-Attack, a novel method for jailbreaking Multimodal Large Language Models (MLLMs) by generating harmful content through auto-created flowcharts. FC-Attack demonstrates high success rates across various MLLMs, highlighting a significant vulnerability in their visual modality and suggesting new avenues for defense research.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) are increasingly powerful, integrating vision and text to perform complex tasks. However, despite safety alignment efforts, they remain vulnerable to "jailbreak" attacks, where malicious actors can induce them to generate harmful content. While previous attacks often focused on text or required white-box access, this paper addresses the gap in understanding and exploiting MLLMs' vulnerabilities through visual prompts, specifically leveraging the visual modality's weaker safety alignment compared to text. The authors aim to develop a more effective and transferable jailbreak method that can bypass existing safeguards.
Methods
The core of FC-Attack lies in its two-stage approach:
- Step-Description Generator Building:
- A Step-Description Dataset is constructed by prompting a powerful LLM (GPT-4o) with benign topics and few-shot examples to generate detailed step-by-step descriptions for various tasks.
- A pre-trained LLM is then fine-tuned using this dataset and LoRA (Low-Rank Adaptation) to create a Step-Description Generator (G). This generator can break down queries into actionable steps.
- Jailbreak Deployment:
- A harmful query is fed into the trained Step-Description Generator (G) to produce corresponding harmful steps.
- These steps are then transformed into flowcharts (in vertical, horizontal, and S-shaped formats) using a transformation function F.
- These flowcharts, acting as visual prompts, are combined with a benign textual prompt (e.g., "Analyze and complete the steps and details in the flowchart...") and fed into the target MLLM to elicit harmful output.
This method is notable for its auto-generation of flowcharts, eliminating the need for manual crafting, and its ability to exploit the visual modality.
Datasets
- Advbench: Used as the source for 50 representative harmful queries. FC-Attack generates 3 types of flowcharts for each query, resulting in 150 jailbreak flowcharts for evaluation.
- MM-Vet: Utilized to evaluate the "over-defensiveness" of defense methods on benign datasets, covering six core tasks (Recognize, OCR, Knowledge, Generation, Spatial, Math).
Key Insights and Ideas
- Visual Modality Vulnerability: The paper strongly suggests that MLLMs have significantly weaker safety alignment in their visual modality compared to their text modality. This is evidenced by the high success rates of FC-Attack using visual prompts versus the low success rates when the same harmful content is presented as text.
- Flowcharts as Effective Visual Prompts: Flowcharts, with their structured visual representation of steps, are surprisingly effective at bypassing MLLM safeguards. The combination of visual structure and textual information within the flowchart seems to exploit a blind spot in current MLLM defenses.
- Font Style Matters: The choice of font style in the flowcharts can dramatically impact the attack's success rate, especially for models that are otherwise more resistant. This highlights a subtle but important factor in visual prompt engineering for jailbreaking.
- Auto-Generation is Key: The ability to automatically generate these harmful flowcharts makes the attack scalable and transferable, removing the manual effort typically required for crafting sophisticated adversarial prompts.
Key Results
- FC-Attack achieved attack success rates (ASR) of up to 96% via images and up to 78% via videos across multiple MLLMs.
- On the Advbench dataset, FC-Attack achieved an ASR of 94% on Gemini-1.5, 92% on Llava-Next, and 90% on Qwen2-VL and InternVL-2.5.
- For models with lower ASRs (like Claude-3.5), changing the font style in the flowcharts could improve performance by 4% to 28%.
- When attacking via video, MLLMs became highly vulnerable, with ASRs up to 88%.
- Defense strategies like AdaShield-A effectively reduced the average ASR from 58.6% to 1.7%, but at the cost of reduced utility on benign datasets.
Limitations and Future Work
- Limited Language Scope: The current study focuses solely on English. Future work could explore jailbreak performance in other languages like Japanese, Spanish, and Chinese.
- Limited Model Coverage: The evaluation included 10 representative MLLMs. Expanding this to include more and newer models is suggested.
- Generation Parameter Variation: The experiments used fixed generation parameters (e.g., temperature). Investigating how different decoding settings affect attack success is a planned future direction.
- Defense Over-Defensiveness: While AdaShield-A was effective, it reduced MLLM utility on benign datasets. Developing defenses that mitigate attacks without sacrificing performance on legitimate tasks remains a challenge.
- Flowchart Structure Impact: The paper notes that graphical elements like boxes and arrows in flowcharts significantly improve ASR, suggesting further research into optimizing these structural elements.
Summary updated