Skip to main content
QUICK REVIEW

[Paper Review] MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Models

Xin Liu, Yichen Zhu|arXiv (Cornell University)|Nov 29, 2023
Digital Media Forensic DetectionComputer Science7 citations
TL;DR

This paper introduces MM-SafetyBench, a benchmark for evaluating the safety of multimodal large language models (MLLMs) against image-based prompt attacks. By generating query-relevant images using Stable Diffusion and typography, the authors demonstrate that MLLMs are highly vulnerable to evasion of safety alignment, even when fine-tuned for safety; a simple prompting strategy significantly reduces attack success rates, highlighting critical security gaps in open-source MLLMs.

ABSTRACT

The security concerns surrounding Large Language Models (LLMs) have been extensively explored, yet the safety of Multimodal Large Language Models (MLLMs) remains understudied. In this paper, we observe that Multimodal Large Language Models (MLLMs) can be easily compromised by query-relevant images, as if the text query itself were malicious. To address this, we introduce MM-SafetyBench, a comprehensive framework designed for conducting safety-critical evaluations of MLLMs against such image-based manipulations. We have compiled a dataset comprising 13 scenarios, resulting in a total of 5,040 text-image pairs. Our analysis across 12 state-of-the-art models reveals that MLLMs are susceptible to breaches instigated by our approach, even when the equipped LLMs have been safety-aligned. In response, we propose a straightforward yet effective prompting strategy to enhance the resilience of MLLMs against these types of attacks. Our work underscores the need for a concerted effort to strengthen and enhance the safety measures of open-source MLLMs against potential malicious exploits. The resource is available at https://github.com/isXinLiu/MM-SafetyBench

Motivation & Objective

  • To investigate the vulnerability of multimodal LLMs to image-based prompt attacks that bypass safety alignment.
  • To identify how query-relevant images can manipulate MLLMs into generating harmful content despite safety fine-tuning.
  • To develop a comprehensive benchmark for systematic safety evaluation of MLLMs across diverse harmful content scenarios.
  • To propose and validate a prompting-based defense strategy that improves MLLM resilience against such attacks.
  • To underscore the urgent need for stronger safety mechanisms in open-source MLLMs to prevent malicious exploitation.

Proposed method

  • Constructed a benchmark with 5,040 text-image pairs across 13 safety-critical scenarios, including illegal activities, hate speech, and physical harm.
  • Generated attack images using Stable Diffusion and typographic rendering based on keywords extracted from malicious queries.
  • Employed GPT-4 to extract and validate keywords from user queries to ensure semantic relevance to harmful content.
  • Designed a two-stage image generation pipeline: one using text-to-image diffusion models, the other using visual typography to encode sensitive terms.
  • Implemented a safety prompting strategy that instructs the model to refuse responses to malicious queries, improving robustness.
  • Conducted automated safety evaluation using LLM-based classifiers to assess refusal behavior and attack success rates.

Experimental results

Research questions

  • RQ1To what extent can query-relevant images bypass the safety alignment of state-of-the-art MLLMs?
  • RQ2How effective are image-based prompt attacks in eliciting harmful responses across diverse safety-critical scenarios?
  • RQ3Can a simple prompting strategy significantly reduce the success rate of such image-based attacks?
  • RQ4How does the attack success rate vary across different MLLMs, even when they are safety-aligned?
  • RQ5What are the most effective image generation techniques for crafting adversarial prompts that exploit MLLM safety weaknesses?

Key findings

  • MLLMs exhibit high vulnerability to image-based prompt attacks, with attack success rates increasing significantly when query-relevant images are used compared to query-irrelevant images.
  • Even safety-aligned MLLMs, such as LLaVA-1.5, are susceptible to these attacks, demonstrating that current alignment methods are insufficient against visual prompt injection.
  • The combination of Stable Diffusion-generated images and typographic representations achieved high attack success rates across all 13 scenarios in the benchmark.
  • The proposed safety prompting strategy reduced attack success rates substantially, indicating that simple prompt engineering can enhance model resilience.
  • A significant proportion of MLLMs failed to refuse harmful queries when presented with crafted images, even when they correctly refused text-only versions.
  • The benchmark revealed that models often fail to detect subtle visual cues in images that encode harmful intent, exposing a critical blind spot in multimodal safety.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.