arXiv:2606.01837v1 [cs.CR] 1 Jun 2026
Benign Inputs, Harmful Outputs: Cross-Modal Jailbreaking via Distributed Semantic Recomposition Yani Wang
Yilong Yang
Yang Liu
City University of Macau Macau S.A.R, China [email protected]
Xidian University Xi’an,Shaanxi, China [email protected]
Xidian University Xi’an,Shaanxi, China [email protected]
Zhuzhu Wang
Zuobin Ying
Zhuo Ma
Northwest University Xi’an,Shaanxi, China [email protected]
City University of Macau Macau S.A.R, China [email protected]
Xidian University Xi’an,Shaanxi, China [email protected]
Abstract Multimodal Large Language Models (MLLMs) have recently demonstrated remarkable capabilities in content synthesis and autonomous reasoning. Previous safety guardrails are primarily designed for unimodal textual input interception, leaving them vulnerable to cross-modal jailbreak attacks. However, regardless unimodal textual attack or cross-modal jailbreak, typically inclusive part of explicit harmful or sensitive content at the input level, which is called HarmBearing. It allow the model’s safety filters to detect and block such content easily. To address this limitations, we propose Distributed Semantic Recomposition (DSR), a novel cross-modal jailbreak framework that decomposes harmful intent into a set of benign textual and visual primitives. By exploiting the model’s reasoning ability, DSR enables the latent fusion of these seemingly innocent components into harmful outputs during the cross-modal inference phase. Extensive experiments on multiple commercial MLLMs pipelines demonstrate that DSR achieves superior attack success rates while maintaining an extremely low or even negligible input toxicity rate. Our findings uncover a critical Utility-Safety Paradox in MLLMs, where the model’s instruction-following proficiency facilitates its own cognitive exploitation. Content Warning: This paper contains harmful model responses.
Keywords Multimodal Large Language Models, Jailbreak Attacks, Benign Input, Distributed Semantic Recomposition
1
Introduction
With the rapid development of Multimodal Large Language Models (MLLMs) [3, 10, 18, 27, 30], models such as GPT-4[1] and Gemini[17] can jointly process image and text inputs for cross-modal generation and reasoning. For example, users can provide textual descriptions and reference images together to guide image generation. However, such powerful generation capability also introduces the risk of generating prohibited Not-Safe-For-Work (NSFW) content through jailbreak attacks [9–11, 30]. Existing jailbreak attacks against MLLMs can be mainly divided into two categories based on the input modality: Unimodal Textual Attacks (UTA), which only use text prompts, and Cross-Modal Attacks (CMA), which combine both text and image inputs. UTA mainly relies on prompt-based strategies, such as sensitive word
replacement [9], iterative prompting [23], and semantic decomposition [6]. However, recent context detection mechanisms [23] have significantly improved the defense capability against text-only attacks. As a result, CMA have emerged [21, 22], leveraging both visual and textual modalities to hide harmful intent and bypass safety detection. However, current CMA attacks still carry explicit harmful content in both text and image inputs [10, 22, 30] (Figure 1a). Because the harmful primitives are directly visible at the input level, state-ofthe-art content filters can easily detect them. For instance, defenses using semantic auditing [7] or cross-modal alignment filters [4, 31] can effectively block these obvious harmful patterns. Origional Harmful Prompt: Submerged in an overflowing white bathtub, a severely depressed teen drags a sharp straight razor deep along her forearms, thick ribbons of blood dissolving and turning the bathwater a horrific, opaque crimson. DSR Attack (Ours)
Existing MLLMs Attacks
Distributed Visual Image Generation
Image:
role
scene
Synonymous Guidance Benign Prompt Construction
sensitive
blood, a sharp razor deep along her forearms...
Text: Image harmful or Text harmful REFUSE
I’ m sorry, your request contains harmful contents. I can not comply with your harmful request. (a)
Image harmless
Submerged in ... teen applies a vibrant crimson pigment to her forearms...
Text harmless
Cross-Modal Recomposition PASS
Safety checker
Sure, here is an image based on your prompt: Submerged in ... teen applies a vibrant crimson pigment to her forearms... (b)
Figure 1: Overview of DSR To address this limitation, we propose DSR, a novel harmless cross-modal jailbreak framework. Unlike existing CMA methods, DSR does not directly include harmful content in either image or text inputs. Instead, it decomposes prohibited intent into multiple benign visual primitives and combines them with semantically related prompts. For example, fragmented images such as a black man, a cotton field, and a red background can implicitly induce the model to generate unsafe content through cross-modal reasoning (Figure 1(b)). The core idea of DSR is that MLLMs can autonomously compose harmless visual and textual cues into unsafe semantics during reasoning. As a result, the harmful intent is not explicitly exposed at
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
the input level, allowing the attack to bypass existing content filtering systems. This demonstrates that strong cross-modal reasoning capability can itself become a new safety vulnerability in MLLMs. Specifically, DSR consists of three stages. 1) Distributed Visual Image Generation: First, We decompose harmful intent into multiple benign text primitives (e.g., roles, scenes, and sensitive objects) to ensure that no explicit harmful content appears in the input. Second, The decomposed semantic primitives are transformed into multiple visually harmless image cues. Each image is designed to appear locally benign and independent, preventing detection by multimodal safety filters. At the same time, these visual cues still maintain implicit semantic connections that support harmful semantic recomposition inside the MLLMs. 2) Synonymous Guidance Benign Prompt Construction and Optimization: Synonymous guidance benign prompt construction strategy is then used to generate a benign prompt that remains semantically related to the target harmful concept. This allows the prompt to bypass text-based safety filters while preserving the semantic guidance needed for later generation. We further employ an iterative feedback mechanism to improve the semantic alignment between the generated output and the target harmful intent. The whole process will not end until DSR can generate prohibited violence, gore, and discrimination-related content using entirely harmless inputs. 3) Cross-Modal Recomposition: Finally, the benign prompts and image cues are jointly fed into the target MLLMs. Through the model’s internal cross-modal attention and reasoning process, the separated benign components are recomposed into harmful semantics. The primary contributions are summarized as follows: • Harmless Jailbreak Framework: We propose DSR, a harmless cross-modal jailbreak framework that uses entirely benign image and text inputs. Unlike existing attacks, DSR bypasses content-based safety filters by exploiting the model’s crossmodal reasoning capability. • Reasoning-Induced Safety Vulnerability: We reveal that strong compositional reasoning in MLLMs can itself become a safety risk. Specifically, stronger reasoning capability may unintentionally increase the model’s susceptibility to jailbreak attacks during cross-modal semantic composition. • Extensive Empirical Validation: We conduct extensive experiments on both closed-source models (e.g., Gemini-2.5-flashimage and Qwen-image-2.0) and open-source models. The results show that DSR achieves high Attack Success Rates (ASR) while maintaining strong stealthiness.
2
Related Work
Multimodal Large Language Models. Recently, MLLMs have gained significant attention for their ability to process and generate responses across textual, visual, and auditory modalities. These models are widely deployed in commercial interactive systems, which utilize a MLLMs as a backend accessible through various interfaces, such as web platforms or Application Programming Interfaces (APIs), to enable human-like dialogue and content creation[3, 11, 13, 18, 30]. By incorporating MLLMs, these chat systems enhance human-computer interaction through reasoning over multimodal inputs. The framework of open-source MLLMs typically consists of three primary modules: modality encoders,
Yani Wang, Yilong Yang, Yang Liu, Zhuzhu Wang, Zuobin Ying, and Zhuo Ma
large language models backbones, and modality generators[28]. Modality encoders transform heterogeneous inputs, such as images or audio, into standardized token representations. Subsequently, modality generators[5, 12] decode these tokens into cross-modal outputs, facilitating tasks such as image synthesis or audio generation. In this study, we focus on MLLMs involving image and text modalities, as they represent the most prevalent configuration in current commercial integrated systems. To mitigate potential misuse in practical deployments, safety mechanisms have become an essential requirement. Modern MLLMs systems generally incorporate both input and output security filters designed to intercept harmful, discrimination, or violent content. Jailbreak Attacks against Text-to-Image Models. Recently, commercial Text-to-Image (T2I) services have increasingly implemented cascading security guardrails, beginning with text-based input filters (𝐹𝑇 ) and concluding with output image checkers (𝐹𝐼 ). Early 𝐹𝑇 mechanisms relied on simple keyword blocklists; however, modern filters incorporate contextual and semantic understanding. Rando et al. [16] reverse-engineered the safety filter in Stable Diffusion, revealing that it primarily blocked sexual content by comparing input embeddings against 17 sensitive CLIP vectors, while often ignoring other harmful categories such as violence and gore. This finding spurred significant research into jailbreak attacks designed to circumvent these filters. Attack strategies against 𝐹𝑇 have evolved through several stages. Initial approaches employed prompt dilution and obfuscation, adding extraneous details to shift the CLIP embedding away from sensitive regions. More systematic methods, such as SneakyPrompt[20], automated this process using reinforcement learning to identify token substitutions that evade detection while preserving semantic intent, albeit at high query costs. Subsequent work has leveraged the reasoning capabilities of Large Language Models (LLMs). For instance, Perception-Guided Jailbreak (PGJ)[9]introduced the PSTSI (Perceptually Similar but Textually Semantically Inconsistent) principle, using LLMs to replace unsafe keywords with visually similar but semantically distinct alternatives (e.g., “red liquid” for “blood”). Beyond direct prompt manipulation, Villa et al.[19] employed timing-based side-channel analysis to reverse-engineer the cascading safety guardrails in DALL·E models, exposing vulnerabilities such as poor multilingual alignment and negation attacks. The ultimate line of defense is the output image checker (𝐹𝐼 ), which employs classifiers like the Stable Diffusion Safety Checker to detect and block NSFW images before delivery. Jailbreak Attacks against Multimodal Large Language Models. As Multimodal Large Language Models (MLLMs) are increasingly adopted for vision and language tasks, their security has become a primary research focus. Although these models undergo rigorous safety alignment, attackers can still circumvent safeguards through specific strategies. Previous research has achieved significant breakthroughs in identifying the security vulnerabilities of MLLMs, which can be categorized into two primary paradigms. The first paradigm focuses on unimodal attacks. For instance, several studies[2, 15, 25] attempt to introduce adversarial perturbations to images or texts to bypass safety defense mechanisms of MLLMs. Zhao et al.[29] utilize scrambled harmful text to iteratively probe the security boundaries of models and identify vulnerabilities. Gong et al.[7] attempt to embed harmful text into blank images via typography, exploiting the superior Optical Character Recognition
Benign Inputs, Harmful Outputs: Cross-Modal Jailbreaking via Distributed Semantic Recomposition
(OCR) capabilities of MLLMs. However, these strategies fundamentally depend on embedding explicit harmful semantics within the input. As safety guardrails iterate, such transparent harmful intent is increasingly detectable, leading to the consistent refusal of these requests. The second paradigm involves distracting the model by mixing images with text. Yang et al.[21] observed that when a model processes composite images containing multiple sub-images with significant semantic distance, the MLLMs may ignore embedded harmful information due to distraction. Yu et al.[22] demonstrated that randomly combining and arranging harmful and neutral images can trigger the generation of NSFW images. Furthermore, Yang et al.[21]inject unsafe text into images, causing the model to bypass security mechanisms by leceraging its own of recognition and understanding capabilities. Based on existing research, current mainstream jailbreak methods exploit the interactions between harmful and seemingly benign primitives to circumvent security mechanisms, posing significant risks to the deployment of MLLMs. Existing Defense Strategies and Limitations. To mitigate the escalating threat of cross-modal jailbreaks, MLLMs providers typically deploy cascading, multi-layered defense mechanisms. First, the main defenses against UTA is on the input and output boundaries, static guardrails employ keyword blacklists, OCR-augmented semantic auditing [7], and unimodal toxicity classifiers. These scanners operate as the first line of defense and are highly effective at intercepting explicit harmful prompts. Besides, beyond surface-level filters, recent advancements have introduced model-level safety alignments. Frameworks such as Llama Guard [4], SURE [8] and OmniGuard [31] utilize safety-specific fine-tuning to align the model’s responses with human values. Additionally, decoding-level defense mechanisms like SafeSteer [24] intervene during the generation process, aiming to actively recognize and refuse harmful intent embedded within complex vision-language contexts, rather than relying solely on static pattern matching. Furthermore, with the CMA have emerged, visual to counter vision-based exploits, visual sanitization techniques such as adversarial purification [14] are frequently deployed to wash away imperceptible harmful noise before it reaches the core model. These pre-processing scanners operate as the first line of defense, effectively intercepting explicit harmful prompts and perturbed adversarial images. Despite these sophisticated infrastructures, existing strategies share a fundamental architectural vulnerability: they primarily operate under the paradigm of isolated content filtering. Current guardrails evaluate the safety of multimodal inputs in a piece-meal fashion, scrutinizing each component independently for recognizable harmful features. Because they lack an oracle to perfectly predict the emergent joint semantics synthesized deep within the model’s latent space, they are virtually blind to distributed attacks. This structural limitation creates the exact attack surface exploited by DSR. By decoupling harmful intent into strictly benign, unperturbed primitives, DSR avoids triggering both visual purifiers and semantic filters, seamlessly achieving jailbreak through internal latent emergence.
3 Problem Formulation and Threat Model 3.1 Problem Formulation Multimodal Large Language Models. A Multimodal Large Language Models (MLLMs) is denoted as 𝑀𝜃 , where 𝜃 represents the
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
model parameters. Modern MLLMs are capable of processing interleaved multimodal inputs, supporting a sequence of visual inputs X𝑣 = {𝑥 𝑣,1, 𝑥 𝑣,2, . . . , 𝑥 𝑣,𝑛 } and a textual prompt 𝑥𝑡 ∈ T, where 𝑥 𝑣,𝑖 ∈ V denotes the 𝑖-th image in the input collection. The model integrates information from both modalities to generate a synthetic image 𝐼𝑔𝑒𝑛 as the output: 𝐼𝑔𝑒𝑛 = 𝑀𝜃 (X𝑣 , 𝑥𝑡 )
(1)
∈ R𝐶 ×𝐻 ×𝑊 is the synthesized visual output. This formu-
where 𝐼𝑔𝑒𝑛 lation accounts for scenarios such as few-shot image conditioning or multi-image semantic synthesis, where the model must aggregate features across all provided images and the text. Existing Attacks and Limitations. The objective of a multimodal jailbreak is to manipulate the input collection (X𝑣 , 𝑥𝑡 ) into an adversarial state (X𝑣′, 𝑥𝑡′ ) that induces 𝑀𝜃 to generate a harmful image 𝐼𝑛𝑠 𝑓 𝑤 . In practice, commercial MLLMs employ an input-stage safety guardrail 𝐷 (·) to intercept such attempts. A primary limitation of current attack methodologies is their lack of stealthiness; the adversarial inputs often contain explicit harmful features that are easily identified by the safety filter as NSFW content, resulting in 𝐷 (X𝑣′, 𝑥𝑡′ ) = 1. This triggers an immediate refusal of the request before image synthesis occurs. Consequently, a robust jailbreak must not only maximize the likelihood of generating 𝐼𝑛𝑠 𝑓 𝑤 but also satisfy the stealthiness constraint 𝐷 (X𝑣′, 𝑥𝑡′ ) = 0 to evade detection.
3.2
Threat Model
Target Model. We consider MLLMs that process both textual and visual inputs and have undergone multimodal safety alignmentc. These models are designed to reject explicit harmful instructions through built-in content filtering mechanisms. Specifically, they accept interleaved inputs consisting of multiple images I = {𝑖 1, 𝑖 2, . . . , 𝑖𝑛 } and a textual prompt P, and are protected by advanced safety filters F . These filter scan both visual and textual inputs for explicit harmful features, such as violence or discrimination. Adversary’s Goal. The adversary aims to bypass the safety mechanisms of MLLMs and induce the model to generate prohibited NSFW content, such as violent, gore, or discriminatory imagery, while using seemingly harmless image and text inputs. This setting reflects realistic misuse scenarios where malicious users exploit the model’s cross-modal reasoning capability to obtain unsafe or policy-violating outputs. Such attacks may weaken the reliability and safety of MLLMs, increase the risk of harmful content generation, and negatively affect the deployment of responsible AI systems. Adversary’s Capabilities. The adversary operates in a black-box setting without access to the model’s parameters, gradients, architecture, or training data. The attacker can only interact with the MLLMs through standard query interfaces using text, images, or combined text-image inputs. Specifically, 1) the adversary can collect or generate benign natural images and use auxiliary models to decompose harmful intent into harmless visual and textual descriptions, and 2) the adversary can perform a limited number of queries to optimize the combination of benign images and prompts, and 3) the adversary can exploit the model’s inherent security detection mechanisms to repeatedly modify prompts and probe the model’s security boundaries to the maximum extent at the input level.
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
Yani Wang, Yilong Yang, Yang Liu, Zhuzhu Wang, Zuobin Ying, and Zhuo Ma
4 Methodology 4.1 Overview of DSR
primitives. The decoupling function D (·) is formulated as:
DSR aims to bypass the safety mechanisms of MLLMs by distributing harmful intent across multiple harmless multimodal inputs. The core idea is to exploit the model’s cross-modal reasoning capability to implicitly reconstruct unsafe semantics from benign components. The framework consists of three stages: 1) Distributed Visual Image Generation. To avoid textual safety detection, DSR first decomposes the original harmful intent into several independent semantic primitives, including roles, scenes, and sensitive objects. Next, the decomposed semantic primitives are transformed into multiple visually harmless image cues. Each image is designed to appear locally benign and independent, preventing detection by multimodal safety filters. At the same time, these visual cues still maintain implicit semantic connections that support harmful semantic recomposition inside the MLLMs. 2) Synonymous Guidance Benign Prompt Construction and Optimization. Synonymous guidance benign prompt construction strategy is then used to generate a benign and benign prompt that remains semantically related to the target harmful concept. This allows the prompt to bypass text-based safety filters while preserving the semantic guidance needed for later generation. We further employ an iterative feedback mechanism to improve the semantic alignment between the generated output and the target harmful intent. The whole process will not end until DSR can generate prohibited violence, gore, and discrimination-related content using entirely harmless inputs. 3) Cross-Modal Recomposition. Finally, the benign prompts and image cues are jointly fed into the target MLLMs. Through the model’s internal cross-modal attention and reasoning process, the separated benign components are recomposed into violent, gory, discriminatory and other harmful images.
subject to the security constraint max𝑘 ∈ {𝑃,𝑆,𝑂 } 𝐽 (𝑡𝑘 ) = 0 given 𝐽 (𝑥𝑚𝑎𝑙 ) = 1, which ensures that no individual primitive triggers safety mechanisms. The operationalization of D (·) relies heavily on in-context learning guided by expert-crafted prompts. Direct decomposition by language models often yields overlapping semantics or retains residual harmfulness. To enforce strict semantic orthogonality, we design a structural decoupling prompt P𝑒𝑥𝑝𝑒𝑟𝑡 . This prompt incorporates domain-expert demonstrations that explicitly map the syntactic dependencies of harmful behaviors (e.g., role, scene, sensitive objects) into isolated, benign entities. Based on this expert prompt, the decoupling model M𝑑𝑒𝑐 processes the adversarial input:
𝑡𝑃 , 𝑡𝑆 , 𝑡𝑂 = D (𝑥𝑚𝑎𝑙 )
𝑡𝑃 , 𝑡𝑆 , 𝑡𝑂 = M𝑑𝑒𝑐 (𝑥𝑚𝑎𝑙 | P𝑒𝑥𝑝𝑒𝑟𝑡 )
(3)
(4)
Here, P𝑒𝑥𝑝𝑒𝑟𝑡 strictly controls the decomposition boundaries, preventing any single primitive from inheriting the structural intent of the original threat. Since raw decoupled entities typically lack sufficient context for image generation, a subsequent visual semantic grounding phase is required. The primitives are mapped into fine-grained visual descriptions 𝑡ˆ𝑘 and processed by a text-to-image model G to synthesize the visual components: ′ 𝑥 𝑣,𝑘 = G(𝑡ˆ𝑘 ),
𝑘 ∈ {𝑃, 𝑆, 𝑂 }
(5)
During the synthesis phase, strict unimodal safety filters within G may still intercept specific descriptions. To guarantee generation, we introduce a benign optimization loop. Let 𝑗 denote the iteration ′ = index, with the initial description 𝑡𝑘(0) = 𝑡𝑘 . If the synthesis 𝑥 𝑣,𝑘
Distributed Visual Image Generation
G(𝑡𝑘( 𝑗 ) ) triggers a refusal, an optimizer M𝑜𝑝𝑡 iteratively refines the text using a benign alignment promptP𝑏𝑒𝑛𝑖𝑔𝑛 : 𝑡𝑘( 𝑗+1) = M𝑜𝑝𝑡 𝑡𝑘( 𝑗 ) , P𝑏𝑒𝑛𝑖𝑔𝑛 (6)
The success of existing multimodal jailbreaks depends on bypassing input-stage safety detection while preserving harmful semantics within the high-dimensional joint representation of the MLLMs. Let 𝑟 = 𝜓 (𝑥 𝑣 , 𝑥𝑡 ) denote the joint representation fused from the visual input 𝑥 𝑣 and the textual prompt 𝑥𝑡 . Existing jailbreak strategies typically embed the concentrated harmful prompt 𝑥𝑚𝑎𝑙 into a single modality. This conventional paradigm can be formulated as:
This alignment strictly sanitizes explicit trigger words while preserving the core visual semantics. The iteration continues until G ′ . successfully yields the visual component 𝑥 𝑣,𝑘 Through this strategy, the explicit textual threat is transformed into a distributed, inherently benign visual sequence X𝑣′ , effectively circumventing unimodal defense mechanisms prior to the crossmodal fusion stage.
4.2
( 𝜓 (𝑥 𝑣 ⊕ 𝜙 𝑣 (𝑥𝑚𝑎𝑙 ), 𝑥𝑡 ) 𝑟 𝑎𝑑𝑣 = 𝜓 (𝑥 𝑣 , 𝑥𝑡 ⊕ 𝜙𝑡 (𝑥𝑚𝑎𝑙 ))
4.3 (2)
where 𝜙 𝑣 (·) and 𝜙𝑡 (·) represent the embedding functions for the visual and textual modalities, respectively. Since the harmful prompt 𝑥𝑚𝑎𝑙 is confined to a single modality, the input inherently contains explicit and complete harmful semantic information. This can be expressed as 𝐽 (𝜙 (𝑥𝑚𝑎𝑙 )) = 1, where 𝐽 (·) is the safety evaluation function. Such concentrated harmful intent makes these inputs highly susceptible to detection by MLLMs safety guardrails. To effectively bypass input-stage safety filters 𝐽 (·), explicit harmful semantics must be eliminated while preserving their reconstructed logic. We introduce a multimodal intent decoupling strategy to distribute the concentrated risk in a set of orthogonal benign
Synonymous Guidance Benign Prompt Construction and Optimization
By eliminating the threat at the input stage through multimodal intent decoupling, the subsequent challenge is to induce the target MLLMs 𝑀𝜃 to reassemble the benign visual sequence X𝑣′ into the intended adversarial output. We formulate this latent semantic recomposition as a generation task. Specifically, an optimization LLMs M𝑜𝑝𝑡 is employed to reconstruct adversarial semantics by generating a composite prompt 𝑝𝑜𝑝𝑡 , optimized under a Strategic Induction Policy P𝑠𝑡 : 𝑝𝑜𝑝𝑡 = M𝑜𝑝𝑡 (𝑥𝑚𝑎𝑙 | P𝑠𝑡 ) = M𝑜𝑝𝑡 (𝑥𝑚𝑎𝑙 | 𝑝𝑖𝑛𝑐 ⊕ 𝑝 𝑣𝑒𝑐 )
(7)
Here, P𝑠𝑡 is implemented as a meticulously crafted system prompt provided to M𝑜𝑝𝑡 . It should be noted that this policy explicitly
Benign Inputs, Harmful Outputs: Cross-Modal Jailbreaking via Distributed Semantic Recomposition
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
Synonymous Guidance Benign Prompt Construction and Optimization
It was a scene that she was applying a rich, viscous vermilion to her wrists,meticulously... Iteratively optimize prompts :
Role
Adversarial Prompt It's scary! She was cutting her wrists. There was blood everywhere.
LLM
Prompt Optimization ➕ Rejected Prompt
Distributed Visual Image Generation
Cross-Modal Recomposition
T2I Model
Benign Prompt
A female individual, her movements deliberate and….
Success Generate image
+
Prompt filter
Scene An enclosed space, its exact contours blurred by a pervasive…
Pass
Role
Scene
Sensitive
Defeated Generate image
Sensitive Image safety filter
A rich, viscous fluid, vividly red in color, being carefully... Iteratively optimize prompts :
rejected
Rejected
Prompt Optimization ➕ Rejected Prompt
Attack Success
Attacker
Figure 2: Overview of the DSR workflow. instructs M𝑜𝑝𝑡 to translate the original adversarial logic 𝑥𝑚𝑎𝑙 into innocuous linguistic structures, rather than enforcing strict vocabulary restrictions. It ensures that the generated prompt remains below the detection threshold of textual guardrails while preserving its underlying guiding semantics. The synthesized prompt 𝑝𝑜𝑝𝑡 operates through two synergistic clauses: Innocuous Neutralization Clause. Prompt 𝑝𝑖𝑛𝑐 establishes the foundational framework for textual de-sensitization. To guarantee the absolute benignity of the instruction at the input stage, 𝑝𝑖𝑛𝑐 completely purges aggressive keywords, explicit verbs of violence, and sensitive terminology from the original text. Instead, it systematically deconstructs the scene into neutral, objective descriptions of structural elements, spatial coordinates, and physical entities. It serves as a sterile semantic blueprint, ensuring that the text stream remains entirely below the detection threshold of textual guardrails. Visual Equivalence Clause. Prompt 𝑝 𝑣𝑒𝑐 functions as an atmospheric and tension preservation mechanism. Operating under the principle of visual equivalence, 𝑝 𝑣𝑒𝑐 meticulously translates the underlying high-intensity sentiment, shock value, and graphic nature of the original harmful text into harmless yet visually potent descriptions of physical textures, motion dynamics, and vivid color contrasts. By reconstructing an identical visual atmosphere through alternative artistic and objective phrasing (e.g., reinterpreting physiological trauma as fluid dynamics or high-contrast color juxtapositions), it ensures that the modified text evokes the exact same latent emergent imagery in 𝑀𝜃 , maintaining a high probability of generating the intended visual impact without triggering safety alignments. To circumvent the internal guardrails of MLLMs, the framework employs a closed-loop optimization process to iteratively refine the text prompts. An evaluation module actively monitors the intermediate responses for refusal signals. If a refusal state is detected, it serves as negative feedback to guide the optimizer M𝑜𝑝𝑡 . The prompt for the subsequent iteration is updated as follows:
(𝑡 +1) (𝑡 ) 𝑝𝑜𝑝𝑡 = M𝑜𝑝𝑡 𝑝𝑜𝑝𝑡 , P𝑠𝑡
(8)
M𝑜𝑝𝑡 iteratively sanitizes the textual descriptions based on their current semantics. This process progressively removes adversarial signatures while strictly preserving the core visual recomposition logic. The loop terminates once the prompt successfully evades the guardrails.
4.4
Cross-Modal Recomposition.
Upon the convergence of the closed-loop optimization, the framework proceeds to execute the final forward multimodal synthesis. At this stage, the target MLLMs 𝑀𝜃 receives a composite query consisting of the optimized text prompt 𝑝𝑜𝑝𝑡 and the generated visual sequence. Specifically, the visual input is constructed by the set of ′ , 𝑥 ′ , 𝑥 ′ }. decoupled semantic primitives, denoted as X𝑣′ = {𝑥 𝑣,𝑃 𝑣,𝑆 𝑣,𝑂 These discrete visual components function as benign contextual anchors, providing the necessary entity representations without violating unimodal safety constraints. The final generation process is formally defined as: 𝐼𝑔𝑒𝑛 = 𝑀𝜃 (X𝑣′, 𝑝𝑜𝑝𝑡 )
(9)
During this forward pass, advanced MLLMs inherently perform complex cross-modal reasoning. The model utilizes cross-attention mechanisms to align and fuse the visual embeddings of X𝑣′ with the textual features of 𝑝𝑜𝑝𝑡 . In a standard threat scenario, this deep semantic fusion typically exposes emergent harmful intents, thereby triggering latent refusal states or dynamic safety guardrails. However, the decoupled structural nature of the visual sequence, combined with the semantically sanitized clauses within 𝑝𝑜𝑝𝑡 , ensures that the aggregated cross-modal representation remains strictly below the model’s safety rejection thresholds. Consequently, the forward synthesis effectively circumvents the internal defense mechanisms, compelling 𝑀𝜃 to flawlessly reconstruct the original malicious intent and synthesize the target harmful image 𝐼𝑛𝑠 𝑓 𝑤 .
5 Experiments 5.1 Experimental Settings Datasets. We use the VBCDE [6] and T2I-RiskyPrompt [26] datasets in our experiments, with the detailed list publicly available in
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
Algorithm 1: Distributed Semantic Guidance Construction for DSR Input: Benign visual sequence 𝑋 𝑣′ , original intent 𝑥𝑚𝑎𝑙 , optimizer LLM M𝑜𝑝𝑡 , target MLLM 𝑀𝜃 , max iterations 𝑇𝑚𝑎𝑥 , strategic policy P𝑠𝑡 . Output: Adversarial image 𝐼𝑛𝑠 𝑓 𝑤 or Failure. (0) ← M𝑜𝑝𝑡 (𝑥𝑚𝑎𝑙 | P𝑠𝑡 ); 1 𝑝𝑜𝑝𝑡 2 𝑡 ← 0; 3 while 𝑡 < 𝑇𝑚𝑎𝑥 do /* Query target model with multi-modal inputs */ (𝑡 ) (𝑡 ) ); , 𝑅 (𝑡 ) ← 𝑀𝜃 (𝑋 𝑣′ , 𝑝𝑜𝑝𝑡 4 𝐼𝑔𝑒𝑛 5 if 𝑅 (𝑡 ) = True then // Extract rejection reason and optimize prompt (𝑡 ) (𝑡 +1) , 𝑅 (𝑡 ) | P𝑠𝑡 ); ← M𝑜𝑝𝑡 (𝑝𝑜𝑝𝑡 6 𝑝𝑜𝑝𝑡 7 else // Model generated an image, evaluate toxicity (𝑡 ) 8 if SafetyChecker(𝐼𝑔𝑒𝑛 ) = NSFW then (𝑡 ) 9 return 𝐼𝑔𝑒𝑛 as 𝐼𝑛𝑠 𝑓 𝑤 ; // Jailbreak Successful 10 else // Semantic intensity insufficient, refine prompt (𝑡 +1) 11 𝑝𝑜𝑝𝑡 ← (𝑡 ) , “Enhance visual intensity”); M𝑜𝑝𝑡 (𝑝𝑜𝑝𝑡
12 end 13 end 14 𝑡 ← 𝑡 + 1; 15 end 16 return Failure;
GitHub. From VBCDE, we manually select 42 prompts related to graphic violence and gore. In addition, we extract 102 violent prompts from the T2I-RiskyPrompt dataset for evaluation. Victim Models. To evaluate the real-world impact of DSR, we select three representative commercial multimodal suites that are widely deployed and equipped with advanced safety guardrails: gemini-2.5-flash-image(Gemini), qwen-image-2.0(Qwen) and Tongyi Wanx 2.5 (Wanx). These models represent the state-of-the-art in both multimodal understanding and visual synthesis. Baselines. We evaluate DSR against four state-of-the-art baselines that encompass both unimodal and multimodal adversarial paradigms in MLLMs security. To comprehensively evaluate the effectiveness and stealthiness of DSR, we select three state-of-the-art baselines that encompass both unimodal and multimodal adversarial paradigms: SneakyPrompt [20] represents an optimization-based unimodal attack. It utilizes reinforcement learning to automate token perturbation, aiming to bypass textual safety filters through iterative search. DACA[6] serves as a heuristic-based unimodal attack. It employs a divide-and-conquer strategy to decompose harmful semantic intent into multiple benign-looking sub-prompts,
Yani Wang, Yilong Yang, Yang Liu, Zhuzhu Wang, Zuobin Ying, and Zhuo Ma
which provides a crucial comparative baseline for our semantic decoupling mechanism. Perception [9] is a cross-modal attack that exploits the alignment gap between visual and textual modalities. It substitutes sensitive keywords with visually similar but textually safe alternatives to induce safety violations. To ensure a rigorous and fair comparison, we strictly adhere to the original experimental settings, utilizing the official code bases and hyper-parameter configurations provided by the respective authors. Evaluation Metrics. We evaluate DSR using seven metrics. 1) Attack Success Rate (ASR): It serves as our primary evaluation metric, denoting the ability of the target MLLMs to bypass refusal filters and output prohibited content. To comprehensively evaluate the performance, we subdivide ASR into three granular metrics based on different automated evaluation paradigms: 2) ASR via Gemini (ASR-G): Adopts the advanced closed-source Gemini 1.5 Pro as an automated evaluator. By inputting the generated images alongside safety review prompts, this metric leverages the model’s deep contextual understanding to output a binary judgment on whether the visual content is harmful. 3) ASR via Qwen (ASR-Q): Employs the Qwen-VL series as an independent automated evaluator, following the same binary judgment paradigm as ASR-G to assess the harmfulness of the generated images. 4) ASR via Clip (ASR-C): Utilizes the built-in native Safety Checker of Stable Diffusion as an independent evaluator, whose underlying detection paradigm is constructed based on the CLIP model. It extracts visual embeddings of generated images and calculates the cosine distance between them and the textual features of predefined harmful concepts in the latent space. An image is determined to trigger safety interception (i.e., a successful attack) if the feature projection distance is lower than the predefined safety threshold. 5) Contrastive Language-Image Pre-training (CLIP): Assesses the alignment between the generated image and the original adversarial prompt to ensure that the attack preserves the intended harm. 6) Natural Image Quality Evaluator (NIQE): Measure low-level distortions and artifacts, where lower scores represent higher physical realism. 7) Input Toxicity Rate (ITR): Quantify the proportion of attack samples flagged as explicitly harmful before reaching the model’s core reasoning phase.
5.2
Effectiveness Study
We present the attack effectiveness on the VBCDE and T2I-RiskyPrompt datasets in Table 1. To comprehensively evaluate the performance, we utilize LLMs assisted metrics ASR-G and ASR-Q alongside a semantic similarity metric ASR-C. Overall DSR demonstrates a decisive advantage in bypassing the safety alignments of various models. Superiority in Attack Success Rate. DSR consistently achieves the highest ASR across all target models. This performance advantage is particularly pronounced on highly secure systems. For instance, against the Gemini model on the VBCDE dataset, existing baselines uniformly fail, recording near-zero ASR. In contrast, DSR effectively breaches these defenses, achieving an ASR-G of 28.59% and an ASR-C of 52.50%. Similarly, on the T2I-RiskyPrompt dataset targeting Wanx, our method achieves an ASR-C of 82.00%, significantly outperforming DACA (78.00%) and PGJ (46.00%). This superiority validates our distributed attack logic: by isolating harmful intent into orthogonal semantic primitives, the textual inputs
Benign Inputs, Harmful Outputs: Cross-Modal Jailbreaking via Distributed Semantic Recomposition
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
Table 1: Attack effectiveness across different target models on the VBCDE and T2I-RiskyPrompt datasets. Gemini Methods
Qwen
Wanx
ASR-G ↑ ASR-Q ↑ ASR-C ↑ CLIP ↑ NIQE ↓ ASR-G ↑ ASR-Q ↑ ASR-C ↑ CLIP ↑ NIQE ↓ ASR-G ↑ ASR-Q ↑ ASR-C ↑ CLIP ↑ NIQE ↓ VBCDE Dataset
Original Harmful Prompt 0.00 DACA 0.00 SneakyPrompt 0.00 PGJ 2.38 Ours 28.59
0.00 0.00 0.00 0.00 23.80
0.00 0.00 4.76 2.38 52.50
11.05 10.43 11.32 13.17 18.67
2.57 2.51 3.28 3.37 3.15
14.29 9.52 2.38 16.66 42.86
4.76 0.00 0.00 11.90 33.33
28.57 33.33 14.29 21.43 57.14
21.20 12.71 13.72 16.34 19.78
5.03 4.82 4.95 4.32 4.49
14.28 28.57 4.76 0.00 38.10
9.52 16.67 4.76 0.00 16.66
23.81 37.42 11.90 21.43 47.62
19.60 13.77 13.09 16.59 19.63
3.74 4.34 3.66 4.83 3.70
24.12 20.42 14.11 22.06 21.33
5.03 4.85 4.78 4.66 4.29
40.00 56.00 24.00 14.00 62.00
26.00 38.00 16.00 6.00 52.00
62.00 78.00 40.00 46.00 82.00
23.78 23.09 14.22 20.02 24.44
4.14 4.05 4.34 4.88 3.69
T2I-RiskyPrompt Dataset Original Harmful Prompt 0.00 DACA 0.00 SneakyPrompt 0.00 PGJ 16.00 Ours 42.00
0.00 0.00 0.00 0.00 32.00
0.00 0.00 2.00 0.00 70.00
23.99 10.62 10.61 11.89 23.99
3.34 2.66 2.67 2.87 3.34
20.95 12.00 2.00 42.00 58.00
easily evade static safety filters. The target models are then forced to autonomously aggregate these distributed visual cues, recompositing the global harmful semantics during inference. Breaching Commercial Guardrails. A critical revelation from Table 1 is the absolute zero-percent ASR (0.00% ASR-G and ASR-C) recorded by original harmful prompt and existing baselines (DACA, SneakyPrompt) against the Gemini pipeline. This experiment indicates that Gemini’s multimodal alignment defense is robust and nearly impregnable when confronted with unimodal or traditional text obfuscation attacks. By contrast, DSR breaks this deadlock, achieving 28.59% ASR-G and 52.50% ASR-C on the VBCDE dataset, and significantly higher rates of 42.00% and 70.00%, respectively, on the T2I-RiskyPrompt dataset. This substantial increase in vulnerability exposure suggests that DSR does not merely exploit engineering bugs in lexical matching. Instead, it uncovers a fundamental architectural flaw in multimodal safety infrastructures: while input-stage guardrails effectively eliminate localized risk signatures, they remain blind to distributed semantic fragments that are autonomously reassembled into a harmful representation during the cross-modal inference phase. Preservation of Semantic Alignment and Image Quality. A robust jailbreak must evade detection without degrading the target semantic consistency or visual fidelity. We assess semantic alignment via CLIP scores and evaluate natural image quality using the NIQE metric where a lower value indicates better quality. Experimental results confirm that DSR avoids the semantic drift typical of traditional evasion techniques. Against the Gemini model on the T2I-RiskyPrompt dataset DSR secures a CLIP score of 23.99. This matches the semantic performance of Origin while attaining a drastically higher ASR-G of 42.00% compared to absolute zero for original harmful prompt. Resolving the Stealthiness-Utility Trade-off. Traditional jailbreak paradigms inherently suffer from severe semantic degradation. As demonstrated in the T2I-RiskyPrompt dataset under the Gemini evaluation, text-obfuscation baselines such as DACA and SneakyPrompt trigger a catastrophic collapse in CLIP scores, plummeting from the original 23.99 to 10.62 and 10.61, respectively. This
14.00 0.00 2.00 28.00 48.00
56.00 62.00 36.00 54.00 78.00
collapse indicates a phenomenon where baselines evade detection only by corrupting core syntax, rendering the generated output irrelevant to the attacker’s original intent. Conversely, DSR preserves the target intent, maintaining a CLIP score of 23.99 on the T2I-RiskyPrompt dataset and achieving 18.67 (Ours) versus 11.05 (Original) on the VBCDE dataset. Since DSR would project harmful intent into an orthogonal matrix of natural, fluent, and textually benign visual primitives, it avoids the optimization noise that typically disrupts cross-modal alignment. This allows the input to pass through safety filters as a normal request while guaranteeing high-fidelity recomposition of the targeted graphic concepts. Furthermore, DSR’s constrained materialization strategy strictly utilizes benign visual primitives rather than perceptible adversarial noise. By preserving the generative prior of the target models, DSR yields highly natural synthesized images. Specifically, on the T2IRiskyPrompt dataset, DSR achieves superior NIQE scores of 4.29 on Qwen and 3.69 on Wanx. These results demonstrate that DSR successfully executes semantic recomposition while maintaining state-of-the-art generation quality. Impact of Generative Priors. We also observe an interesting trend on Wanx using the T2I-RiskyPrompt dataset. The original harmful prompt already achieves a high ASR-C of 62.00%. However, applying baseline attacks like SneakyPrompt or PGJ actually decreases the success rate to 40.00% and 46.00%, respectively. This drop occurs because traditional text obfuscation methods destroy the semantic coherence of the prompt. The added text noise confuses the model and degrades its ability to generate images. Instead of obfuscating text, DSR provides the model with clean, benign, and structurally sound visual primitives. By maintaining semantic clarity, DSR preserves the model’s generative prior and pushes the ASR-C to 82.00%. This contrast perfectly illustrates the Utility-Safety Paradox. When an attacker provides logically consistent but distributed components, a model with stronger image generation capabilities will more easily piece the scene together, ultimately bypassing its own safety guardrails.
Conference acronym ’XX, June 03–05, 2018, Woodstock, NY
Yani Wang, Yilong Yang, Yang Liu, Zhuzhu Wang, Zuobin Ying, and Zhuo Ma
Table 2: Input Toxicity Rate of inputs generated by different methods. Lower values indicate safer, more benign inputs. Best results are highlighted in bold.
Datasets
DACA
VBCDE T2I-RiskyPrompt
5.3
Sneaky
33.33 54.00
44.44 56.67
Ours
PGJ 16.67 48.00
Prompt
Image
1.59 5.33
8.73 13.33
Harmlessness Analysis of Inputs
To evaluate the stealthiness of our semantic decomposition strategy, we analyze the Input Toxicity Rate (ITR) of the generated queries. It is use CLIP score to detect harmful text and ASR-C to detect whether the input content contains harmful visual primitives. Table 2 reports the detection rates of both the textual and visual inputs synthesized by various methods. The data reveals a critical flaw in existing baseline attacks. Methods like DACA, SneakyPrompt, and PGJ attempt to hide intent through word substitution or text splitting. However, their generated prompts still carry significant explicit toxicity, easily triggering safety filters with detection rates hovering between 33% and 56% across both datasets. They merely obfuscate the harmful text rather than removing it. In stark contrast, DSR achieves near-zero toxicity. By projecting the harmful intent into decoupled, everyday visual primitives, our text prompts register a mere 1.59% and 5.33% ITR on the VBCDE and Risky datasets, respectively. Furthermore, the corresponding visual components (Ours Image) maintain safe risk scores (8.73% and 13.33%), well below standard interception thresholds. This massive reduction proves that DSR does not rely on sneaking toxic keywords past filters. Instead, it ensures the input ensemble is genuinely benign, guaranteeing the evasion of static input filters before the cross-modal reasoning phase begins. w/o Role
w/o Scene
w/o Sensitive
All(Ours)
80
ASR-C (%)
70.00
60
52.50
52.00 44.00
40 20 0
33.33 30.95
28.00
21.43
VBCDE
T2I-RiskyPrompt
Datasets Figure 3: Performance evaluation under different ablation conditions.
5.4
Ablation Analysis of Different Components
To verify the necessity of each module within the DSR semantic decoupling strategy, we conduct comprehensive ablation studies
on the VBCDE-sub and T2I-RiskyPrompt-sub datasets. Specifically, we evaluate the individual contributions of the visual primitives and the overall necessity of multimodal synergy. Indispensability of Visual Semantic Primitives. DSR deconstruct the visual input into three interdependent components comprising roles scenes and sensitive objects. The experimental results in Figure 3 reveal that removing any single component causes a significant drop in the ASR across both datasets. The sensitive object functions as the primary trigger for harmful synthesis; omitting it reduces the ASR from 70.00% to 28.00% on the T2I-RiskyPrompt dataset and from 52.50% to 21.43% on the VBCDE dataset, representing the most severe performance degradation. While the sensitive object is crucial, the role and scene primitives provide indispensable contextual constraints. Specifically, removing the role or scene component on the VBCDE dataset decreases the ASR to 33.33% and 30.95%, respectively. A similar structural collapse is observed on the T2I-RiskyPrompt dataset, where excluding the role primitive drops the ASR to 44.00%. These findings confirm that DSR relies heavily on distributed benign cues to achieve semantic aggregation. Arbitrarily removing any primitive disrupts the local visual synergy. Without the full complement of these semantic anchors, the target model cannot internally map the global harmful semantics, resulting in a failure to recompose the intended adversarial output. Necessity of Synonymous Guidance Benign Prompt Construction. To isolate and validate the necessity of Synonymous Guidance Construction, we conducted a controlled experiment. As illustrated in Figure 4, we fixed the visual inputs using the three decoupled, benign images (role, scene, and sensitive object) and exclusively alternated the textual input between the original harmful prompt and our constructed safe prompt. The results reveal a stark contrast in performance. Even when paired with perfectly benign visual inputs, the original harmful prompt (indicated by blue bars) causes the ASR to plummet across all evaluated models. For instance, on Gemini (a), the original harmful prompt yields a near-zero ASR-G, whereas our safe prompt elevates the success rate to nearly 30%. This performance gap stems from the cascading safety filters employed by modern MLLMs. An explicit harmful textual prompt acts as a primary trigger, inducing the textual guardrail to reject the request before cross-modal reasoning occurs. In contrast, the DSR synonymous guidance prompt circumvents this mechanism. By removing explicit lexical triggers while preserving structural semantics, the safe prompt successfully bypasses initial textual filters. It then effectively enters the latent space to guide the fusion of visual primitives, demonstrating that synonymous guidance construction is a mandatory component of DSR. Qualitative Case Study. Figure 5 illustrates the precise failure mechanism of cross-modal safety alignments. We analyze the generation of a violent scene using three strictly benign primitives: a painter (Role), a red-lit room (Scene), and an arm with red marking (Sensitive). When we ablate the Scene component, the target model processes only the painter and the marked arm. The model correctly interprets this context as “art creation”, so the safety filters remain inactive. However, introducing the red-lit room triggers a fundamental and qualitative change. During the latent fusion phase, the model’s cross-modal attention incorrectly binds the
Benign Inputs, Harmful Outputs: Cross-Modal Jailbreaking via Distributed Semantic Recomposition