FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts

Yichen Gong, Delong Ran, Jinyuan Liu, Conglei Wang, Tianshuo Cong +3 more
11/9/2023
536 citations
cs.CRcs.AIcs.CL

No official code found. Best implementation: CryptoAILab/FigStep (218 stars, Python, MIT, last commit 2025-06-26).

Abstract

Large Vision-Language Models (LVLMs) signify a groundbreaking paradigm shift within the Artificial Intelligence (AI) community, extending beyond the capabilities of Large Language Models (LLMs) by assimilating additional modalities (e.g., images). Despite this advancement, the safety of LVLMs remains adequately underexplored, with a potential overreliance on the safety assurances purported by their underlying LLMs.

Show full abstract

In this paper, we propose FigStep, a straightforward yet effective black-box jailbreak algorithm against LVLMs. Instead of feeding textual harmful instructions directly, FigStep converts the prohibited content into images through typography to bypass the safety alignment. The experimental results indicate that FigStep can achieve an average attack success rate of 82.50% on six promising open-source LVLMs. Not merely to demonstrate the efficacy of FigStep, we conduct comprehensive ablation studies and analyze the distribution of the semantic embeddings to uncover that the reason behind the success of FigStep is the deficiency of safety alignment for visual embeddings. Moreover, we compare FigStep with five text-only jailbreaks and four image-based jailbreaks to demonstrate the superiority of FigStep, i.e., negligible attack costs and better attack performance. Above all, our work reveals that current LVLMs are vulnerable to jailbreak attacks, which highlights the necessity of novel cross-modality safety alignment techniques. Our code and datasets are available at https://github.com/ThuCCSLab/FigStep .

View on arXivView PDF

Code Implementations(1)

CryptoAILab/FigStepCommunity100%
MIT

[AAAI'25 (Oral)] Jailbreaking Large Vision-language Models via Typographic Visual Prompts

21814PythonNov 8, 20231 years agoMIT
gpt-4jailbreakllmmulti-modalsafety+2 more

Similar Papers

Cite this paper

@article{gong2023figstep,
  title  = {FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts},
  author = {Yichen Gong and Delong Ran and Jinyuan Liu and Conglei Wang and Tianshuo Cong and Anyu Wang and Sisi Duan and Xiaoyun Wang},
  year   = {2023},
  eprint = {2311.05608},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05608v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05608.svg)](https://codeofpaper.com/paper/2311.05608)

Discussion