Skip to main content
QUICK REVIEW

[论文解读] FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts

Yichen Gong, Delong Ran|arXiv (Cornell University)|Nov 9, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 9
一句话总结

FigStep 通过将被禁止的文本提示转换为带有良性刺激线索的排版图像,在黑盒环境下对开放源代码的 LVLMs 实现高攻击成功率,从而劫持 LVLMs。

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. 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 .

研究动机与目标

  • 评估在存在视觉组件时,文本层面的 LVLM 安全性是否足以应对挑战。
  • 提出 SafeBench 作为 LVLM 的安全基准测试。
  • 开发并评估一种黑盒越狱协议,将被禁止的文本转化为排版图像提示以绕过安全过滤器。
  • 分析为何视觉嵌入空间会削弱 LVLM 的文本安全对齐。
  • 提出防御方向和 FigStep 的增强变体,以探测并强化跨模态安全性。

提出的方法

  • 引入 SafeBench 作为对 LVLM 的500题安全基准测试。
  • 开发 FigStep,包含三个步骤:释义改写、排版字体、煽动性提示。
  • 将被禁止的文本提示转换为排版的图像提示,以利用仅视觉安全的薄弱点。
  • 使用一个良性煽动文本提示引导模型进入续写模式。
  • 将 FigStep 与文本仅越狱基线和图像基越狱基线进行比较,显示其更高的有效性与效率。
  • 提供变体(FigStepadv、Fig Stephide、FigSteppro)以应对 OCR 检测与跨模态防御。

实验结果

研究问题

  • RQ1在黑盒设置中,增加排版视觉提示是否能够将 LVLM 越狱的能力扩展到超越文本提示?
  • RQ2SafeBench 如何量化跨模态安全风险,覆盖多样化的 LVLM 架构?
  • RQ3视觉嵌入空间的哪些特征解释 FigStep 的有效性?
  • RQ4防御措施(OCR 检测、噪声、系统提示)是否能抵御 FigStep?还需要哪些改进?

主要发现

  • 与原生文本提示相比,FigStep 在六个开源 LVLM 上显著提升攻击成功率(ASR),平均 ASR 为 82.50%。
  • FigStep 在主题和模型上普遍优于文本仅越狱和部分基于图像的越狱,且生成回答的困惑度较低(FigStep 平均 PPL 7.73,原生为 19.26)。
  • 消融分析表明,将有害信息嵌入图像提示比文本泄漏更有效,且继续(煽动)提示有助于越狱性能。
  • 嵌入分析显示视觉嵌入在语义上对齐但与文本嵌入在安全对齐上并不安全,这解释了跨模态越狱的脆弱性。
  • FigStep 的变体(FigStepadv、FigStephide、FigSteppro)扩展了越狱覆盖范围并应对基于 OCR 的防御,凸显跨模态安全对齐的必要性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。