Paper deep dive
Safety of Multimodal Large Language Models on Images and Text
Xin Liu, Yichen Zhu, Yunshi Lan, Chao Yang, Yu Qiao
Models: Bard, BLIP-2, CogVLM, GPT-4V, IDEFICS, InstructBLIP, LLaMA-Adapter V2, LLaVA, MiniGPT-4, OpenFlamingo, PandaGPT, Qwen-VL
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 95%
Last extracted: 3/12/2026, 8:07:37 PM
Summary
This paper provides a comprehensive survey of the safety of Multimodal Large Language Models (MLLMs) on images and text. It categorizes research into evaluation datasets/metrics, attack techniques (adversarial attacks, visual prompt injection), and defense strategies, while identifying current challenges and future research directions in the field.
Entities (7)
Relation Signals (3)
MLLM â vulnerableto â Adversarial Attack
confidence 95% ¡ The vulnerabilities of MLLMs to unsafe instructions bring huge safety risks
PrivQA â evaluates â MLLM
confidence 90% ¡ PrivQA dives deep into the balance between utility and the privacy protection ability of MLLMs.
GOAT-Bench â evaluates â MLLM
confidence 90% ¡ GOAT-Bench explores meme-based multimodal social abuse.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Attracted by the impressive power of Multimodal Large Language Models (MLLMs), the public is increasingly utilizing them to improve the efficiency of daily work. Nonetheless, the vulnerabilities of MLLMs to unsafe instructions bring huge safety risks when these models are deployed in real-world scenarios. In this paper, we systematically survey current efforts on the evaluation, attack, and defense of MLLMs' safety on images and text. We begin with introducing the overview of MLLMs on images and text and understanding of safety, which helps researchers know the detailed scope of our survey. Then, we review the evaluation datasets and metrics for measuring the safety of MLLMs. Next, we comprehensively present attack and defense techniques related to MLLMs' safety. Finally, we analyze several unsolved issues and discuss promising research directions. The latest papers are continually collected at this https URL.
Tags
Links
Trouble viewing inline? Open PDF directly â
Full Text
48,531 characters extracted from source content.
Expand or collapse full text
Safety of Multimodal Large Language Models on Images and Texts Xin Liu 1,3â ,Yichen Zhu 2 ,Yunshi Lan 1â ,Chao Yang 3â andYu Qiao 3 1 East China Normal University 2 Midea Group 3 Shanghai AI Laboratory Abstract Attracted by the impressive power of Multimodal Large Language Models (MLLMs), the public is increasingly utilizing them to improve the effi- ciency of daily work. Nonetheless, the vulner- abilities of MLLMs to unsafe instructions bring huge safety risks when these models are deployed in real-world scenarios.In this paper, we sys- tematically survey current efforts on the evalua- tion, attack, and defense of MLLMsâ safety on images and text. We begin with introducing the overview of MLLMs on images and text and under- standing of safety, which helps researchers know the detailed scope of our survey. Then, we re- view the evaluation datasets and metrics for mea- suring the safety of MLLMs. Next, we compre- hensively present attack and defense techniques related to MLLMsâ safety.Finally, we ana- lyze several unsolved issues and discuss promis- ing research directions. The relevant papers are collected at https://github.com/isXinLiu/Awesome- MLLM-Safety. 1 Introduction We have witnessed the prosperous development of large language models (LLMs) in recent years, such as GPT-4 1 , LLaMA-2 2 and Mixtral 8x7B 3 . The powerful capabilities of LLMs not only provide convenience for human life but also bring huge safety risks [ Zhanget al., 2023; Sunet al., 2023 ] . Much ink has been spent trying to make the LLMs safer by various alignment techniques (e.g., [ Rafailovet al., 2023 ] ) and these methods have successfully enhanced the security of LLMs. Based on such advancement of LLMs, researchers em- power an LLM to handle other modalities beyond text via â This work was done during an internship at Shanghai AI Labo- ratory. â Corresponding author. 1 https://cdn.openai.com/papers/gpt-4.pdf 2 https://ai.meta.com/llama/ 3 https://mistral.ai/news/mixtral-of-experts/ Figure 1: Common terminologies related to safety. many multimodal fusion approaches. In this paper, we in- vestigate Multimodal Large Language Models (MLLMs) on 2D images and text. If there is no additional explanation, the MLLM we refer to is assumed to be on 2D images and text. MLLMs have drawn increasing attention due to their enormous multimodal potential (e.g., LLaVA 4 , MiniGPT-4 5 , Gemini 6 , GPT-4V 7 ). And there exist some works that design an attack to induce MLLMs to output unsafe content [ Fuet al., 2023; Baileyet al., 2023 ] , propose a defense method [ Pi et al., 2024; Wuet al., 2023 ] , or create a security evaluation dataset [ Chenet al., 2023b; Linet al., 2024 ] . However, com- pared to the research progress made in LLMsâ security, the study about MLLMsâ safety is still in its early stages. The lack of a comprehensive survey on MLLMsâ safety makes it hard to know the whole landscape of this field and we might wonder the following questions: â˘What risks does the new modality (image) bring?There is a high probability that MLLMs will inherit the vulnera- bilities of LLMs. But the unique risks brought by images are also noteworthy and challenging. â˘How to measure (e.g., datasets, metrics) the safety level of MLLMs?A good evaluation technique is essential to tell how close MLLMs are to achieving safety. â˘What methods are there to resist unsafe queries? 4 https://github.com/haotian-liu/LLaVA 5 https://github.com/Vision-CAIR/MiniGPT-4 6 https://blog.google/technology/ai/google-gemini-ai/ 7 https://cdn.openai.com/papers/GPTV SystemCard.pdf arXiv:2402.00357v3 [cs.CV] 20 Jun 2024 Safety of MLLMs EvaluationAttackDefense DatasetMetric Malicious Image Construction Malicious Text Construction Inference-time Alignment Training-time Alignment Figure 2: Taxonomy: safety of MLLMs on images and texts. Strengthening the MLLMsâ capabilities to behave safely is the ultimate goal of communities. â˘What can be done next to promote the development of this field?To answer this question, we need to understand the current development status of MLLMsâ safety first. After conducting extensive research, we conclude that the risks from the visual modality mainly include three aspects: (1) adding adversarial perturbations to images can bring sat- isfying attack results with low cost; (2) MLLMs based on aligned LLMs usually reject malicious textual instructions, but when leveraging the inherent Optical Character Recog- nition (OCR) ability they directly obey corresponding visual instructions; (3) cross-modal training weakens the alignment ability of aligned LLMs. To enable communities to under- stand MLLMsâ safety better, we present a survey to summa- rize the research progress from these perspectives: evalua- tion, attack, and defense (as shown in Figure 2). Our contri- butions are as follows: ⢠We compare different safety evaluation datasets and eval- uation metrics used for benchmarking the safety degree of MLLMs. ⢠We demonstrate a systematic and thorough review of attack and defense approaches designed for MLLMsâ safety. ⢠We anticipate future research opportunities for MLLMâs safety to provide some inspiration for other researchers. The rest of our survey unfolds as follows: Section 2 gives a brief overview of MLLMs and understanding of safety. Next, we sort out the benchmarks and metrics used for safety eval- uation in Section 3. Then we describe attack techniques in Section 4 and introduce defense methods in Section 5. Fi- nally, we discuss some future research directions in Section 6, and the conclusion in Section 7. 2 Background In this section, we offer background knowledge about MLLMs and safety, which can clarify the scope of this sur- vey. We observe that [ Sunet al., 2024; Vatsaet al., 2023 ] are two surveys related to our work, but their core attentions are trustworthy (rather than safety) and LLMs/traditional vision- language models (rather than MLLMs). Since specific pro- fessional domains (e.g., robotic, medical, legal, financial) face different and complicated problems, to avoid superficial analysis of them, we focus on the general domain. 2.1 An Overview of MLLMs A MLLM 8 consists of a LLM (âĽ1B), a vision encoder, and a cross-modal fusion module. After visual instructing tun- ing, the fusion module has learned cross-modal information, which helps LLMs handleimage and text inputsand give properresponses in natural language. Current MLLMs can be divided into two categories: closed-source (e.g., GPT- 4V, Bard 9 ) and open-source MLLMs (e.g., LLaMA-Adapter V2 10 , CogVLM 11 , LLaVA-Phi [ Zhuet al., 2024 ] ). For the lat- ter, there are three common types of fusion modules: linear projection (e.g., LLaVA, MiniGPT-4, PandaGPT 12 ), learn- able queries (e.g., InstructBLIP 13 , Qwen-vl 14 , BLIP-2 15 ), and cross-attention (e.g., IDEFICS 16 , OpenFlamingo 17 ). 2.2 Understanding of Safety It is hard to reach a consensus on what defines safety. Some works leverage âtoxicityâ as the metric to evaluate the safety of MLLMs [ Shayeganiet al., 2023; Tuet al., 2023 ] . The def- inition of toxicity given by Perspective API 18 is commonly used:a rude, disrespectful, or unreasonable comment that is likely to make someone leave a discussion. But this defini- tion makes toxicity measurement subjective and limited to a subset of potential harms [ Welblet al., 2021 ] . Some researchers divide safety into sub-dimensions and create safety-related evaluation datasets for LLMs [ Sunet al., 2023; Jiet al., 2023a; Zhanget al., 2023 ] . [ Sunet al., 2023 ] explores the safety of LLMs from 8 scenarios:âIn- sultâ, âPhysical Harmâ, âUnfairness and Discriminationâ, âMental Healthâ, âCrimes and Illegal Activitiesâ and âPri- vacy and Propertyâ, âSensitive Topicsâ, âEthics and Moral- ityâ. [ Jiet al., 2023a ] constructs a benchmark to judge the harmfulness of LLMs across 14 harm categories (e.g.,âTer- rorism & organized crimeâ, âSexually explicit & Adult Con- 8 This paper doesnât consider tool-augmented LLMs and LLM agents. 9 https://bard.google.com/ 10 https://github.com/OpenGVLab/LLaMA-Adapter 11 https://github.com/THUDM/CogVLM 12 https://github.com/yxuansu/PandaGPT 13 github.com/salesforce/LAVIS/tree/main/projects/instructblip 14 https://github.com/QwenLM/Qwen-VL 15 https://github.com/salesforce/LAVIS/tree/main/projects/blip2 16 https://huggingface.co/blog/idefics 17 https://github.com/mlfoundations/open flamingo 18 https://perspectiveapi.com/ tentâ, âAnimal abuseâ). [ Zhanget al., 2023 ] evaluates the safety of LLMs with multiple-choice questions from 7 as- pects (e.g.,âOffensivenessâ). Although there are large differ- ences in the division of sub-dimensions, these works indeed help us understand the meaning of safety. We conclude common terminologies related to safety 19 in Figure 1 (e.g., harmful content [ Askellet al., 2021 ] , hate speech 20 ). Given that MLLMs will face different safety risks at different stages of development, time is an important influ- encing factor for the definition. Therefore, we look forward to a more mature and unified understanding of safety in future work. 3 Evaluation Safety evaluation can tell people the safety level of a MLLM. We review existing safety-related evaluation datasets first and then sort out metrics used to measure the safety of MLLMs. Analysis of current problems and potential future directions for safety evaluation is held in Section 6.1. 3.1 Dataset Some works mentioned in Section 4 and 5 conduct experi- ments on ready-made benchmarks, which are not designed for MLLMs (e.g., [ Donget al., 2023 ] ). Unlike them, some works in those sections create their own benchmarks due to their respective experimental needs, which are not considered the main contributions of their papers (e.g., [ Qiet al., 2023 ] ). In this part, detailed information about these benchmarks is not demonstrated and we focus on recent representative safety evaluation datasets elaborately constructed for MLLMs (as shown in Table 1). PrivQA [ Chenet al., 2023b ] dives deep into the balance between utility and the privacy protection ability of MLLMs. This work selects geolocation information-seeking samples from InfoSeek [ Chenet al., 2023a ] and collects examples related to human entities (e.g., politicians, celebrities) from KVQA [ Shahet al., 2019 ] . Different from PrivQA interested in privacy, GOAT-Bench [ Linet al., 2024 ] explores meme- based multimodal social abuse. This work chooses six di- verse sources and applies a careful annotation process to de- velop GOAT-Bench, an exhaustive testbed composed of 6,626 memes. It measures MLLMsâ capability to recognize hateful- ness, misogyny, offensiveness, sarcasm, and harmful text in meme-based input. While GOAT-Bench cares about meme- based abuse, ToViLaG [ Wanget al., 2023 ] concentrates on toxic output in the image captioning task. This work gathers 8,595 pornographic images from the NSFW dataset 21 , 11,659 violent images from the UCLA Protest Image Dataset [ Won et al., 2017 ] and 1,305 bloody images via web crawling. Then it leverages Perspective API to determine the toxic extent of captions generated by MLLMs. Distinct from the traditional data collection process of PrivQA, GOAT-Bench, and ToViLaG, there are some works 19 Wrong predictions without harmful content on certain tasks (e.g., image captioning) are closely related to the robustness of the model, rather than the safety discussed in this paper. 20 https://en.wikipedia.org/wiki/Hate speech 21 https://w.kaggle.com/ utilizing powerful LLMs to facilitate benchmark construc- tion: (1)Visual prompts creation. SafeBench [ Gonget al., 2023 ] identifies 10 safety scenarios and queries GPT-4 to 50 unique malicious questions for each scenario. These ques- tions are rephrased into imperative sentences and then trans- formed into visual prompts via typography. When giving a manually designed textual benign instruction and these visual prompts to MLLMs, SafeBench manually checks whether their responses follow the malicious visual prompts. Similar to SafeBench using typography, M-SafetyBench [ Liuet al., 2023 ] transfers harmful key phrases from textual questions to images and prompts GPT-4 Azure 22 to measure MLLMsâ abil- ity to discover the transfer. (2)Other image sources.Instead of creating vi- sual prompts like SafeBench and M-SafetyBench, Auto- Bench [ Jiet al., 2023b ] and VLSafe [ Chenet al., 2023c ] di- rectly sample natural images from COCO [ Linet al., 2014 ] and pair each image with a malicious question. However, there are differences in question generation techniques be- tween Auto-Bench and VLSafe. Auto-Bench selects instance relationships, object locations, optical character descriptions, and captions as visual symbolic representations for an im- age. Then GPT-4 is employed to give safety-specific ques- tions based on these representations and elaborately crafted prompts. VLSafe constructs malicious instructions through the discrete optimization approach [ Yuanet al., 2023 ] and proposes a LLM-Human-in-the-Loop method to build and fil- ter examples iteratively. Not limited to a single image source like Auto-Bench and VLSafe, RTVLM [ Liet al., 2024 ] col- lects its images through various channels (e.g., open-source datasets, tool-generated data). 3.2 Metric Unlike conventional visual-question answering datasets, the answer format of MLLMs is open-ended, which makes it hard for subject evaluation. This open-endedness complicates sub- jective evaluation. Additionally, there arises a new challenge in balancing the demands of evaluation costs and maintaining accuracy. We have summarized several evaluation methods to calculate safety-related metrics below, primarily catego- rized into three types: human evaluation, rule-based evalua- tion, and model-based automatic evaluation. Human Evaluation Human evaluationis a common and direct evaluation method that can provide interpretability and reliability. While [ Bag- dasaryanet al., 2023 ] just manually selects representa- tive proof-of-concept examples for attacks designed by it- self without quantitative experiments, [ Gonget al., 2023; Donget al., 2023; Qiet al., 2023; Shayeganiet al., 2023; Baileyet al., 2023 ] conduct quantitative experiments on cer- tain evaluation datasets. These works assign human anno- tators to check whether MLLMsâ answers contain unsafe content and report the proportion of samples that induce a MLLM to generate unsuitable text, which is often calledat- tack success rate (ASR). Besides ASR, [ Wuet al., 2023 ] 22 https://learn.microsoft.com/en-us/azure/ai-services/openai/ Evaluation Dataset Data Source ⥠# Volume EvaluationSafety ImageTextMetricDimension PrivQA [ Chenet al., 2023b ] KVQA [ Shahet al., 2019 ] , InfoSeek [ Chenet al., 2023a ] 2,000Rule-basedPrivacy GOAT-Bench [ Linet al., 2024 ] FHM [ Kielaet al., 2020 ] , MAMI [ Fersiniet al., 2022 ] , 6,626Rule-based5 Sub-dimensionsMultiOFF [ Suryawanshiet al., 2020 ] , MSD [ Caiet al., 2019 ] , Harm-C [ Pramanicket al., 2021a ] , Harm-P [ Pramanicket al., 2021b ] â ToViLaG [ Wanget al., 2023 ] the NSFW dataset, -21,559Model-based Pornographic, [ Wonet al., 2017 ] ,Violence, Web crawlingBloody SafeBench [ Gonget al., 2023 ] GPT-4 generation + TypographyManual design500Human Evaluation10 Sub-dimensions M-SafetyBench [ Liuet al., 2023 ] GPT-4 generation + GPT-4 generation5,040Model-based13 Sub-dimensions Typography, Stable Diffusion Auto-Bench [ Jiet al., 2023b ] COCO [ Linet al., 2014 ] GPT-4 generation2,000Model-basedPrivacy, Security VLSafe [ Chenet al., 2023c ] COCO [ Linet al., 2014 ] LLM-Human-in-the-Loop Process1,110Model-basedHarmlessness RTVLM [ Liet al., 2024 ] Open-sourced Dataset &GPT-4 generation & 1,400Model-basedPrivacy, Safety Tool Generated DataHuman annotation Table 1: Comparison of recent representative evaluation datasets. The symbolâĄdenotes that â# Volumeâ only includes the multimodal test set that benchmarks the safety of MLLMs. The symbolâdenotes that ToViLaG [ Wanget al., 2023 ] only tests whether the image caption generated by a MLLM is toxic, which does not need ground truth captions. definesrecognition success rate (RSR)anddefense success rate (DSR)to guide the manual evaluation process. Also, one unique work worth noticing is [ Fuet al., 2023 ] which asks humans to decide whether a response visible to users is nat- ural and helpful when a MLLM is attacked to abuse external tools stealthily. Rule-based Evaluation While human evaluation is costly and time-intensive, research is shifting focus to rule-based evaluation. This method as- sesses the safety level of MLLMs based on predetermined rules. Some studies [ Baileyet al., 2023; Carliniet al., 2023; Luo et al., 2024 ] pre-define target strings and examine whether MLLMsâ outputs contain these strings. The target strings can be curse words [ Carliniet al., 2023 ] , harmful instructions (e.g.,âkidnapâ) [ Luoet al., 2024 ] , malicious API calls [ Bai- leyet al., 2023 ] etc. In addition to these works, [ Chenet al., 2023b; Linet al., 2024; Van and Wu, 2023 ] treat the evalua- tion process as classification tasks and apply relevant metrics (e.g., accuracy, F 1 ). Concretely, [ Chenet al., 2023b ] ex- plores MLLMsâ capability to balance utility and privacy pro- tection. The former is measured by F 1 and the latter is judged viaprotection scoreproposed by this work. [ Linet al., 2024; Van and Wu, 2023 ] focus on meme-based social abuse detec- tion, which is regarded as a binary classification task. While [ Linet al., 2024 ] reports the macro-averaged F 1 and accuracy, [ Van and Wu, 2023 ] leverages AUROC and accuracy to assess whether MLLMs can detect abuse in multimodal memes. Not limited to discriminative tasks (e.g., classification), [ Schlar- mann and Hein, 2023; Fuet al., 2023 ] also explore generative tasks (e.g., image captioning). [ Schlarmann and Hein, 2023 ] investigates malicious text and fake information generation on image captioning (CIDEr, BLEU-4) and visual question answering (accuracy) benchmarks. [ Fuet al., 2023 ] uses Structural Similarity Index Measure (SSIM) to compare the similarity between an origin image and the perturbed adver- sarial image. This work also utilizes BLEU and Rouge to judge the utility of a response. Model-based Automatic Evaluation [ Wanget al., 2023; Qiet al., 2023; Shayeganiet al., 2023; Tuet al., 2023 ] calculate the toxicity of MLLMsâ outputs with the help of Perspective API and Detoxify 23 , which are based on machine learning models. Instead of leveraging these specialized models, [ Jiet al., 2023b; Piet al., 2024; Baileyet al., 2023; Liuet al., 2023; Fuet al., 2023; Chenet al., 2023c ] conduct automatic evaluation through powerful LLMs (e.g., GPT-3.5-turbo, GPT-4), which enable more customized measurement. For example, when prompt- ing ChatGPT, [ Jiet al., 2023b ] asks for judging whether the generation of a MLLM semantically aligns with ground-truth annotations, and [ Baileyet al., 2023 ] requires assessment of a MLLMâs determination to reject fulfilling an unsafe behav- ior. Also, [ Chenet al., 2023c ] applies GPT-4 to score the harmlessness of MLLMsâ outputs from three aspects: rele- vance, safety, and persuasiveness. 4 Attack In this section, we review two mainstream attack methods for MLLMs: malicious image and text construction (as shown in Table 2). One thing to notice is that some works study both of them. We will discuss some less explored topics about attacks in Section 6.2. 4.1 Malicious Image Construction Here we introduce two means to create malicious images: ad- versarial attack and visual prompt injection. Adversarial Attack An adversarial imagex Ⲡrefers to a clean imagexadded with adversarial perturbations. These perturbations are difficult for humans to perceive. When inputtingxinto an AI modelf, the output offis consistent with the human understanding ofx. But when choosingx Ⲡas an input, the response off probably does not meet human expectations and might lead to harmful effects. 23 https://github.com/unitaryai/detoxify Attack Malicious ImageMalicious AttackerVictim MLLMSafety-related Attack Result Adv. AttackVPI.Text [ Carliniet al., 2023 ] "UserLLaVA, MiniGPT-4, LLaMA-Adapter V2Arbitrary toxic text [ Shayeganiet al., 2023 ] "UserLLaVA, LLaMA-Adapter V2Harmful text [ Donget al., 2023 ] "UserBardUnallowed face and toxicity detection [ Qiet al., 2023 ] ""UserMiniGPT-4, LLaVA, InstructBLIPHarmful text [ Tuet al., 2023 ] ""UserLLaVA, GPT-4V, and 9 othersHarmful text [ Luoet al., 2024 ] ""UserOpenFlamingo, BLIP-2, InstructBLIPTargeted malicious text â [ Bagdasaryanet al., 2023 ] "Third partyLLaVA, PandaGPTTargeted malicious text, Poisoned dialog [ Schlarmann and Hein, 2023 ] "Third partyOpenFlamingoTargeted malicious text, Misinformation [ Baileyet al., 2023 ] "User, Third partyLLaVATargeted malicious text, Context leakage, Harmful text [ Fuet al., 2023 ] "Third partyLLaMA-Adapter V2Tool-misusing [ Chenet al., 2023b ] """UserIDEFICSPrivacy leakage [ Liuet al., 2023 ] "UserLLaVA-1.5, MiniGPT-4, and 10 othersHarmful text [ Gonget al., 2023 ] "UserLLaVA-1.5,MiniGPT-4,CogVLM,GPT-4VHarmful text [ Wuet al., 2023 ] "UserGPT-4VSystem prompt leakage, Unallowed face detection Table 2: Comparison of different attacks. The symbol * denotes the work exploring other malicious modalities beyond image and text. Adv. is the abbreviation of âadversarialâ. VPI. is the abbreviation of âvisual prompt injectionâ. An early exploration for MLLMs is [ Carliniet al., 2023 ] which leverages an end-to-end differentiable approach and projected gradient descent (PGD) [ Madryet al., 2018 ] to con- struct adversarial images, from the visual input to the pre- dicted logits of the LLM. This work successfully induces LLaVA, MiniGPT-4, and LLaMA-Adapter V2 to output ar- bitrary toxicity. Instead of accessing the entire details of a MLLM like [ Carliniet al., 2023 ] , [ Shayeganiet al., 2023 ] only requires white-box access to the visual encoder and keeps the LLM in a black-box state. This work pro- poses four malicious triggers hidden in visual adversarial perturbations and designs an effective compositional attack strategy to mislead LLaVA and LLaMA-Adapter V2. While [ Carliniet al., 2023 ] and [ Shayeganiet al., 2023 ] conduct experiments on open-source MLLMs, [ Donget al., 2023 ] give a targeted analysis of black-box attacks on commercial MLLMs. Specifically, this work studies two defense mecha- nisms of Bard: face detection and toxicity detection. Attacks on these defense mechanisms can lead to face privacy leak- age and toxic content abuse. Different adversarial images are elaborately designed for the two defense modules, which ex- poses the vulnerabilities of Bard. While keeping the main focus on image attacks, several works also pay partial attention to text perturbations (more details can be found in Section 4.2). [ Qiet al., 2023 ] discovers that a suitable adversarial image can compel a MLLM to obey various harmful instructions. This work investigates MiniGPT-4, LLaVA, and InstructBLIP in ex- tensive experiments and implementsa text attack counter- part. It points out that the computational cost required for a visual attack is approximately just one-twelfth that of a text attack. Compared to [ Qiet al., 2023 ] , [ Tuet al., 2023 ] makes a more systematic evaluation for visual and tex- tual adversarial attacks, which extensively explores GPT-4, GPT-4V, and ten categories of open-source MLLMs (e.g., LLaVA, MiniGPT-4). Distinct from creating visual and tex- tual adversarial perturbations separately like [ Qiet al., 2023; Tuet al., 2023 ] , [ Luoet al., 2024 ] introduces a new attack framework named âCross-Prompt Attack (CroPA)â, which facilitates visual perturbations with textual ones. The up- dating of visual and textual perturbations in CroPA can be viewed as a min-max process during the optimization stage, and the textual perturbations donât take place in the testing phase. Different from [ Carliniet al., 2023; Shayeganiet al., 2023; Donget al., 2023; Qiet al., 2023; Tuet al., 2023; Luoet al., 2024 ] that assume users are attackers, there are some works focus on the situation where the attacker comes from a third party and the user is the victim. In [ Bagdasaryan et al., 2023 ] , the goal of the attacker is to force the MLLM (LLaVA or PandaGPT) to generate predefined harmful con- tent or poison the dialog between the user and the model. Some interesting qualitative evaluation experiments initially prove the effectiveness of attack techniques proposed by this work. Similar to [ Bagdasaryanet al., 2023 ] , [ Schlarmann and Hein, 2023 ] also assumes that the user is honest. But this work emphasizes more invisible perturbations with a bounded threat model and constrainedl â -attacks to small radii of 1 255 or 4 255 . Solid quantitative evaluation experiments on OpenFlamingo demonstrate the success of these attacks, which might spread misinformation or manipulate usersâ be- havior. Although [ Schlarmann and Hein, 2023 ] is limited to image caption and visual question-answering tasks, [ Bai- leyet al., 2023 ] generalizes its attacks to arbitrary user in- structions. In experiments underl â -norm, stationary-patch, and moving-patchconstraints, these attacks induce LLaVA to create attacker-specified text, context leakage, and unsafe content. While third parties in these works aim at exposing malicious content to users, [ Fuet al., 2023 ] makes stealthy attacks that cannot be easily detected. By leveraging adver- sarial images, this work misleads MLLMs to call attacker- chosen tools. When optimizing adversarial perturbations, the loss consisting of three parts strives for an optimal balance between perturbations imperceptibility, response utility, and tool-misusing. Visual Prompt Injection The attack process that adds malicious raw text directly to an image is calledvisual prompt injection. Many MLLMs can read such visual prompts with inherent OCR capability and obey them without giving a rejection. However, when given corresponding textual prompts, these MLLMs probably refuse to conduct unsafe behaviors. For example, to bypass the protection of privacy informa- tion of Japanese citizens in an image, [ Chenet al., 2023b ] adds âCitizenship: United Statesâ to the image, which makes the MLLM wrongly identify the nationality of the Japanese man in the image and leak the details about this person. Un- like [ Chenet al., 2023b ] limited to the privacy scenario, [ Liu et al., 2023 ] expands its attention to thirteen safety scenarios. This work extracts the key harmful phrase from a malicious instruction and rephrases the instruction into a benign prompt. Then based on the extracted phrase, this work generates an unsafe image containing the visual form of this phrase. Ex- tensive experiments on twelve MLLMs prove the vulnerabil- ity of these models to this attack. When shifting focus from open-source MLLMs to commercial MLLMs, attackers will face stronger defense mechanisms. For instance, GPT-4V uti- lizes an OCR tool to detect unsafe text in an image. To escape this detection as much as possible, [ Gonget al., 2023 ] pro- poses the âFigStep-Proâ method, which divides a word into multiple sub-parts and then transforms these sub-parts into visual prompts. 4.2 Malicious Text Construction Researchers can directly use pre-defined templates to create malicious text (e.g., âIgnore previous instruction.â is a well- known prefix prompt). Furthermore, there are some ways to optimize the origin text to mislead the model better. One way is to input the origin text into an AI model and ask for out- putting a more malicious prompt. And attackers can apply the discrete optimization in textual embedding space [ Yuan et al., 2023 ] as well. As mentioned previously, while mainly focusing on ad- versarial images, some works also notice textual perturba- tions [ Qiet al., 2023; Luoet al., 2024; Tuet al., 2023 ] . [ Tuet al., 2023 ] finds that textual adversarial attacks achieve higher success rates on LLaVA than its original LLMs, which is attributed to the safety alignment weakening from cross- modal training. To further support this observation, [ Qiet al., 2024 ] conducts experiments to fine-tune Llama-2-7b-Chat on LLaVA-Instruct 24 , which verifies the degradation of LLMsâ safety alignment. In addition to the above works, [ Wuet al., 2023 ] and [ Chenet al., 2023b ] explore adversarial text for MLLMs as well.Based on stolen system prompts via manually crafted malicious prompts, [ Wuet al., 2023 ] proposes a self- adversarial jailbreak method to induce GPT-4V to pick out the real person in an image. Then the generated attacks are enhanced with four techniques:prefix injection, refusal sup- pression, hypothetical scenarios, and appealing with emo- tion. Similar to [ Wuet al., 2023 ] , [ Chenet al., 2023b ] also applies adversarial prefix instructions to leak the privacy in- formation in an image (e.g.,âAIM (Always Intelligent and Machiavellian)â). To study more dynamic situations, this work designs â2-hopâ prompt templates to circumvent the de- fense mechanism of IDEFICS. 24 https://github.com/haotian-liu/LLaVA/blob/main/docs/Data.md Defense Infer.Train. MLLMCore Method Align.Align. [ Wuet al., 2023 ] " LLaVA-1.5 System prompt modification [ Chenet al., 2023b ] "IDEFICSSelf-Moderation [ Wanget al., 2024 ] "LLaVA-v1.5InferAligner [ Chenet al., 2023c ] " â DRESS ft Reinforcement learning from LLMs feedback [ Piet al., 2024 ] " LLaVA, MLLM-Protector InstructBLIP, MiniGPT4, Qwen-vl Table 3: Comparison of different defenses. Infer. Align.: inference- time alignment. Train. Align.: training-time alignment. The symbol â denotes that DRESS ft is trained by [ Chenet al., 2023c ] . 5 Defense In this section, we introduce current efforts made in the safety defense of MLLMs, which includes two lines of work: inference-time and training-time alignments (as shown in Ta- ble 3). And we list several potential directions for improving MLLMsâ safety in Section 6.3. 5.1 Inference-time Alignment For the inference-time alignment of MLLMs, prompt engi- neering [ Wuet al., 2023; Chenet al., 2023b ] is a method that designs and optimizes the prompt to enhance the de- fense mechanism of the model. [ Wuet al., 2023 ] is inter- ested in the role of system prompts in preventing MLLMs from outputting unallowed private information. This work manually crafts several system prompts, which contain very detailed descriptions about what can be done and what can- not be done. The experiments on LLaVA-1.5 show that these system prompts can improve the security of the model to a certain extent. Instead of manually designing prompt tem- plates like [ Wuet al., 2023 ] , [ Chenet al., 2023b ] propose an automatic approach calledSelf-Moderationthat lets MLLMs themselves to refine their outputs. Concretely, if a response contains privacy leakage, the MLLM gives a modification to a safer one and asks itself âAre you sure?â. The process of moderation and judgment iterates a certain number of times and then the MLLM behaves more safely. Different from prompt engineering, [ Wanget al., 2024 ] comes up with a novel alignment technique, which leverages safety steering vectors to change the activations of a MLLM when dealing with unsafe inputs. 5.2 Training-time Alignment While inference-time alignment does not need extra cost to train a model or module, another line of work seeks to raise safety awareness in MLLMs through additional train- ing. [ Chenet al., 2023c ] thinks that MLLMs require exter- nal feedback information because existing multimodal fine- tuning is not sufficient for harmlessness alignment. There- fore, this work constructs Natural Language Feedback (NLF) for MLLMsâ initial responses with the help of GPT-4. Then it modifies the conditional reinforcement learning to handle NLF and makes the MLLM less unsafe based on this new method. While [ Chenet al., 2023c ] does not change the ar- chitecture of a MLLM, [ Piet al., 2024 ] equips the MLLM with a lightweight unsafe content detector and an output detoxifier. These modules can recognize harmful responses from the MLLM and transform them into safe ones. The ex- periments on LLaVA, InstructBLIP, MiniGPT4, and Qwen-vl display the effectiveness of these modules. 6 Future Research Opportunities In this section, we make a discussion on several unresolved issues in exploring the safety of MLLMs and provide our sug- gestions for future research opportunities. 6.1 Reliable Safety Evaluation More comprehensive safety benchmarks and more reasonable safety evaluation metrics are needed. Each present evaluation dataset covers a limited scope of MLLMsâ safety. For exam- ple, some benchmarks just test the coarse-grained safety level of MLLMs without finer-grained safety capability partition- ing. To improve the quality of an evaluation dataset, when starting to build it, we recommend several aspects that need to be considered: (1) Safety dimensions. A clear and sys- tematic taxonomy for safety capabilities is very important. (2) Expected unsafe elements. The creator should determine expected elements representing unsafe content (e.g., natural language, concrete objects, toxic chemical molecules) and where to position these elements (e.g., images, text, or both). (3) Resources used. Potential choices are samples from exist- ing datasets, web crawling, generation from AI models, and manual construction. (4) Volume, diversity, and quality con- trol. These three factors influence the budget. Besides bench- marks, evaluation metrics are also worth attention. Leverag- ing powerful LLMs (e.g., GPT-4) is a suitable approach but carefully designed prompts are key points to define objective evaluation rules and metrics. 6.2 In-Depth Study of Safety Risk Although many types of safety attacks prove the vulnerability of MLLMs, they lack an in-depth analysis of what enables at- tacks to succeed. Some works only display qualitative exper- iments and donât conduct quantitative evaluations. For those works that demonstrate quantitative experiments, they just se- lect different evaluation datasets and donât make a compar- ison with attacks proposed by other researchers. However, a direct comparison between these attacks is important for communities to understand the detailed reasons for MLLMsâ unsafe behaviors. Despite the 3 safety risks we conclude in Section 1, many questions are still waiting to be answered. For example, it is a meaningful topic to explore the impacts of MLLMsâ architecture, parameters, and cross-modal training datasets on their safety ability. The requirements (e.g., com- putational resources, other cost) for attacks also demand a fur- ther investigation. Since MLLMs are built based on LLMs, they might inherit the flaws of LLMs (e.g., prompt sensitiv- ity). Thus, the experience in LLMsâ safety attacks can serve as a valuable reference resource. 6.3 Safety Alignment As shown in Section 5, there are currently not many tech- niques to align MLLMs with human values on safety. In this part, we provide our thoughts on the safety alignment of MLLMs. Alignment Techniques Optimizing the process of visual instruction tuning for MLLMsâ safety is a potential direction that has not gained much attention. It is not known how to build a high-quality safety-related dataset for this training phase, which can teach MLLMs to recognize unsafe queries and reject processing them. Diversity might be an influencing factor and communi- ties may wonder about the best practices for the sample num- ber and order (e.g., âDoes it need more safety-related exam- ples than other safety-irrelevant examples?â, âDoes it need to train on these two different examples separately in sequence, or a mix of them is better?â). Reinforcement learning from human feedback (RLHF) is also a promising approach, which leverages human prefer- ences as rewards to enable a model to align with human val- ues and has played a huge role in the safety alignment of LLMs. However, it is unclear what challenges will be en- countered when applying RLHF to MLLMs for safety pur- poses. The construction of preference data is undoubtedly a crucial component and worth careful thinking from re- searchers. Balance between Safety and Utility When facing a malicious instruction, if MLLMs refuse to obey it, they keep their safety but lose their utility. Some researchers (e.g., [ R Ě ottgeret al., 2023 ] ) have found exag- gerated safety behaviors in LLMs:misclassifying safe ques- tions as malicious. This incorrect classification can seriously degrade the performance of LLMs on safe prompts. There- fore, a careful balance between safety and utility is very es- sential when developing new safety alignment methods for MLLMs. Also, communities should understand that different applications and audiences require different balances. Here we recommend several works that may give some inspira- tion for researchers. PrivQA [ Chenet al., 2023b ] proposes theProtection Scoreto measure MLLMsâ ability to correctly protect specific privacy content and expose other information that does not ask for protection. [ Fuet al., 2023 ] designs a novel loss to balance between response utility and attack suc- cess. Despite this work focusing on attacks, it can inspire us to explore an effective loss that considers both the utility and safety of MLLMs. 7 Conclusion In this paper, we attempted to present a comprehensive overview of MLLMsâ safety. First, we introduce the overview of MLLMs and the understanding of safety. Afterward, we systematically review the evaluation, attack, and defense of MLLMsâ safety, which demonstrates the current development status of MLLMsâ safety. Finally, we delve into the existing challenges and point out some promising future research op- portunities for potential researchers to explore in the future. Acknowledgements This work was supported by the Joint Key Project (Project No.U23A20298) and Young Scientists Project (Project No. 62206097) of the National Natural Science Founda- tion of China, Shanghai Pujiang Talent Program (Project No. 22PJ1403000). One of the authors, Chao Yang, is supported by the Shanghai Post-doctoral Excellent Program (Grant No. 2022234). Any opinions expressed in this material are only those of the author(s). References [ Askellet al., 2021 ] Amanda Askell, Yuntao Bai, et al. A general language assistant as a laboratory for alignment. arXiv preprint arXiv:2112.00861, 2021. [ Bagdasaryanet al., 2023 ] Eugene Bagdasaryan, Tsung-Yin Hsieh, Ben Nassi, and Vitaly Shmatikov. Abusing Im- ages and Sounds for Indirect Instruction Injection in Multi- Modal LLMs.arXiv preprint, page arXiv:2307.10490, 2023. [ Baileyet al., 2023 ] Luke Bailey, Euan Ong, Stuart Russell, and Scott Emmons.Image Hijacks: Adversarial Im- ages can Control Generative Models at Runtime.arXiv preprint, page arXiv:2309.00236, 2023. [ Caiet al., 2019 ] Yitao Cai, Huiyu Cai, and Xiaojun Wan. Multi-modal sarcasm detection in Twitter with hierarchical fusion model. InProceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2506â2515, 2019. [ Carliniet al., 2023 ] Nicholas Carlini, Milad Nasr, Christo- pher A. Choquette-Choo, Matthew Jagielski, Irena Gao, Pang Wei Koh, Daphne Ippolito, Florian Tram ` er, and Lud- wig Schmidt. Are aligned neural networks adversarially aligned? InThirty-seventh Conference on Neural Infor- mation Processing Systems, 2023. [ Chenet al., 2023a ] Yang Chen, Hexiang Hu, Yi Luan, Haitian Sun, Soravit Changpinyo, Alan Ritter, and Ming- Wei Chang. Can pre-trained vision and language models answer visual information-seeking questions? InProceed- ings of the 2023 Conference on Empirical Methods in Nat- ural Language Processing, pages 14948â14968, 2023. [ Chenet al., 2023b ] Yang Chen, Ethan Mendes, Sauvik Das, Wei Xu, and Alan Ritter. Can language models be in- structed to protect personal information?arXiv preprint arXiv:2310.02224, 2023. [ Chenet al., 2023c ] Yangyi Chen, Karan Sikka, Michael Cogswell, Heng Ji, and Ajay Divakaran. Dress: Instruct- ing large vision-language models to align and interact with humans via natural language feedback.arXiv preprint arXiv:2311.10081, 2023. [ Donget al., 2023 ] Yinpeng Dong, Huanran Chen, Jiawei Chen, Zhengwei Fang, Xiao Yang, Yichi Zhang, Yu Tian, Hang Su, and Jun Zhu. How robust is googleâs bard to ad- versarial image attacks? InR0-FoMo:Robustness of Few- shot and Zero-shot Learning in Large Foundation Models, 2023. [ Fersiniet al., 2022 ] Elisabetta Fersini, Francesca Gasparini, Giulia Rizzi, Aurora Saibene, Berta Chulvi, Paolo Rosso, Alyssa Lees, and Jeffrey Sorensen. SemEval-2022 task 5: Multimedia automatic misogyny identification. InPro- ceedings of the 16th International Workshop on Semantic Evaluation (SemEval-2022), pages 533â549, 2022. [ Fuet al., 2023 ] Xiaohan Fu, Zihan Wang, Shuheng Li, Ra- jesh K. Gupta, Niloofar Mireshghallah, Taylor Berg- Kirkpatrick, and Earlence Fernandes. Misusing Tools in Large Language Models With Visual Adversarial Exam- ples.arXiv preprint, page arXiv:2310.03185, 2023. [ Gonget al., 2023 ] Yichen Gong, Delong Ran, Jinyuan Liu, Conglei Wang, Tianshuo Cong, Anyu Wang, Sisi Duan, and Xiaoyun Wang. Figstep: Jailbreaking large vision- language models via typographic visual prompts.arXiv preprint arXiv:2311.05608, 2023. [ Jiet al., 2023a ] Jiaming Ji, Mickel Liu, Juntao Dai, Xuehai Pan, Chi Zhang, Ce Bian, Boyuan Chen, Ruiyang Sun, Yizhou Wang, and Yaodong Yang. Beavertails: Towards improved safety alignment of llm via a human-preference dataset. InThirty-seventh Conference on Neural Informa- tion Processing Systems Datasets and Benchmarks Track, 2023. [ Jiet al., 2023b ] Yuanfeng Ji, Chongjian Ge, Weikai Kong, Enze Xie, Zhengying Liu, Zhengguo Li, and Ping Luo. Large Language Models as Automated Aligners for benchmarking Vision-Language Models.arXiv preprint arXiv:2311.14580, 2023. [ Kielaet al., 2020 ] Douwe Kiela, Hamed Firooz, Aravind Mohan, Vedanuj Goswami, Amanpreet Singh, Pratik Ringshia, and Davide Testuggine.The hateful memes challenge: Detecting hate speech in multimodal memes. InAdvances in Neural Information Processing Systems, pages 2611â2624, 2020. [ Liet al., 2024 ] Mukai Li, Lei Li, Yuwei Yin, Masood Ahmed, Zhenguang Liu, and Qi Liu. Red teaming visual language models.arXiv preprint arXiv:2401.12915, 2024. [ Linet al., 2014 ] Tsung-Yi Lin, Michael Maire, Serge Be- longie, James Hays, Pietro Perona, Deva Ramanan, Piotr Doll Ě ar, and C. Lawrence Zitnick. Microsoft coco: Com- mon objects in context. InComputer Vision â ECCV 2014, pages 740â755, 2014. [ Linet al., 2024 ] Hongzhan Lin, Ziyang Luo, Bo Wang, Ruichao Yang, and Jing Ma. Goat-bench: Safety insights to large multimodal models through meme-based social abuse.arXiv preprint arXiv:2401.01523, 2024. [ Liuet al., 2023 ] Xin Liu, Yichen Zhu, Yunshi Lan, Chao Yang, and Yu Qiao. Query-relevant images jailbreak large multi-modal models.arXiv preprint arXiv:2311.17600, 2023. [ Luoet al., 2024 ] Haochen Luo, Jindong Gu, Fengyuan Liu, and Philip Torr. An image is worth 1000 lies: Trans- ferability of adversarial images across prompts on vision- language models. InThe Twelfth International Conference on Learning Representations, 2024. [ Madryet al., 2018 ] AleksanderMadry,Aleksandar Makelov,Ludwig Schmidt,Dimitris Tsipras,and Adrian Vladu. Towards deep learning models resistant to adversarial attacks.InInternational Conference on Learning Representations, 2018. [ Piet al., 2024 ] Renjie Pi, Tianyang Han, Yueqi Xie, Rui Pan, Qing Lian, Hanze Dong, Jipeng Zhang, and Tong Zhang. Mllm-protector: Ensuring mllmâs safety without hurting performance.arXiv preprint arXiv:2401.02906, 2024. [ Pramanicket al., 2021a ] ShramanPramanick,Dimi- tar Dimitrov, Rituparna Mukherjee, Shivam Sharma, Md. Shad Akhtar,Preslav Nakov,and Tanmoy Chakraborty.Detecting harmful memes and their targets. InFindings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 2783â2796, 2021. [ Pramanicket al., 2021b ] ShramanPramanick,Shivam Sharma, Dimitar Dimitrov, Md. Shad Akhtar, Preslav Nakov, and Tanmoy Chakraborty. MOMENTA: A multi- modal framework for detecting harmful memes and their targets. InFindings of the Association for Computational Linguistics: EMNLP 2021, pages 4439â4455, 2021. [ Qiet al., 2023 ] Xiangyu Qi, Kaixuan Huang, Ashwinee Panda, Mengdi Wang, and Prateek Mittal. Visual adver- sarial examples jailbreak aligned large language models. InThe Second Workshop on New Frontiers in Adversarial Machine Learning, 2023. [ Qiet al., 2024 ] Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen, Ruoxi Jia, Prateek Mittal, and Peter Henderson. Fine-tuning aligned language models compromises safety, even when users do not intend to! InThe Twelfth Interna- tional Conference on Learning Representations, 2024. [ Rafailovet al., 2023 ] Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D Manning, and Chelsea Finn. Direct preference optimization: Your lan- guage model is secretly a reward model.arXiv preprint arXiv:2305.18290, 2023. [ R Ě ottgeret al., 2023 ] Paul R Ě ottger, Hannah Rose Kirk, et al. Xstest: A test suite for identifying exaggerated safety behaviours in large language models.arXiv preprint arXiv:2308.01263, 2023. [ Schlarmann and Hein, 2023 ] ChristianSchlarmannand Matthias Hein.On the adversarial robustness of multi-modal foundation models. InProceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pages 3677â3685, 2023. [ Shahet al., 2019 ] Sanket Shah, Anand Mishra, et al. Kvqa: Knowledge-aware visual question answering.InAAAI Conference on Artificial Intelligence, 2019. [ Shayeganiet al., 2023 ] Erfan Shayegani, Yue Dong, and Nael Abu-Ghazaleh. Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Models. arXiv preprint arXiv:2307.14539, 2023. [ Sunet al., 2023 ] Hao Sun, Zhexin Zhang, et al. Safety as- sessment of chinese large language models.arXiv preprint arXiv:2304.10436, 2023. [ Sunet al., 2024 ] Lichao Sun, Yue Huang, et al. Trustllm: Trustworthiness in large language models.arXiv preprint arXiv:2401.05561, 2024. [ Suryawanshiet al., 2020 ] ShardulSuryawanshi, Bharathi Raja Chakravarthi, et al.Multimodal meme dataset (MultiOFF) for identifying offensive content in image and text. InProceedings of the Second Workshop on Trolling, Aggression and Cyberbullying, pages 32â41, 2020. [ Tuet al., 2023 ] Haoqin Tu, Chenhang Cui, et al.How Many Unicorns Are in This Image? A Safety Evalua- tion Benchmark for Vision LLMs.arXiv preprint, page arXiv:2311.16101, 2023. [ Van and Wu, 2023 ] Minh-Hao Van and Xintao Wu.De- tecting and correcting hate speech in multimodal memes with large visual language model.arXiv preprint arXiv:2311.06737, 2023. [ Vatsaet al., 2023 ] Mayank Vatsa, Anubhooti Jain, and Richa Singh. Adventures of trustworthy vision-language models: A survey.arXiv preprint arXiv:2312.04231, 2023. [ Wanget al., 2023 ] Xinpeng Wang, Xiaoyuan Yi, et al. Tovi- lag: Your visual-language generative model is also an evil- doer. InThe 2023 Conference on Empirical Methods in Natural Language Processing, 2023. [ Wanget al., 2024 ] Pengyu Wang, Dong Zhang, et al. Inferaligner:Inference-time alignment for harmless- ness through cross-model guidance.arXiv preprint arXiv:2401.11206, 2024. [ Welblet al., 2021 ] Johannes Welbl, Amelia Glaese, et al. Challenges in detoxifying language models. InFindings of the Association for Computational Linguistics: EMNLP 2021, pages 2447â2469, 2021. [ Wonet al., 2017 ] Donghyeon Won, Zachary C. Steinert- Threlkeld, et al. Protest activity detection and perceived violence estimation from social media images. InProceed- ings of the 25th ACM International Conference on Multi- media, page 786â794, 2017. [ Wuet al., 2023 ] Yuanwei Wu, Xiang Li, et al. Jailbreaking gpt-4v via self-adversarial attacks with system prompts. arXiv preprint arXiv:2311.09127, 2023. [ Yuanet al., 2023 ] Lifan Yuan, YiChi Zhang, et al. Bridge the gap between CV and NLP! a gradient-based textual ad- versarial attack framework. InFindings of the Association for Computational Linguistics: ACL 2023, pages 7132â 7146, 2023. [ Zhanget al., 2023 ] Zhexin Zhang, Leqi Lei, et al. Safe- tybench: Evaluating the safety of large language mod- els with multiple choice questions.arXiv preprint arXiv:2309.07045, 2023. [ Zhuet al., 2024 ] Yichen Zhu, Minjie Zhu, et al. Llava-Ď: Efficient multi-modal assistant with small language model. arXiv preprint arXiv:2401.02330, 2024.