Skip to content

CollageAttack: Exploiting cross-modal alignment defects for spatial text composition jailbreaks against T2I models.CollageAttack: Exploiting Cross-Modal Alignment Flaws in T2I Models through Spatial Text Composition

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2609.38253· Zhiyi Mou, Yao Lu, Wangze Ni, Di Hong, Dakun Shen, Haoyang Li, Chen Jason Zhang, Alexander Zhou, Kui Ren·Indexed by this site · 2026-10-01· Originally publishedSelected AttacksSelectedAttention38

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

CollageAttack decomposes and recombines harmful text on the DGHS benchmark, achieving an ASR of 85.5% on FLUX.2 Dev. (Table 1)

Threat modelBlack-box setting. The attacker only submits natural language instructions to the target T2I model through the generation interface and observes outputs, without access to the target model's parameters, gradients, training data, system prompts, safety classifiers, or internal review pipelines. The attacker relies on a single generation request to complete the attack, with no iterative search or intermediate feedback.

Questions
Existing black-box jailbreaks for T2I models mostly operate in the prompt text domain, ignoring the model's ability to render text in images and combine it with visual scenes. Serialized inspection struggles to identify discrete fragments distributed across different carriers, allowing harmful semantics to be combined and manifested on the two-dimensional plane of the image.
Methods
CollageAttack proposes a single-prompt black-box attack: it constructs a visual background through context-aware scene building, assigns 3 to 5 carrier surfaces such as posters or signs, then splits the harmful expression into 3 to 4 phrase fragments with specified typography and placement, enabling spatial recombination at the image level.
Experiments and results
On 5 commercial and open-source T2I models, CollageAttack achieves ASR from 57.5% to 86.0%, all higher than baselines; average harmfulness scores reach 4.96 to 6.85; on each model, more than half of the generated images are rated as having stronger visual communication impact than the source text.
Limitations and future work
The paper does not have a dedicated section discussing limitations. In evaluations, up to 3 evaluations were conducted on initially harmless samples and the first harmful judgment was retained; the authors note this may inflate ASR. The experiments only cover 5 T2I models and 200 hate speech samples from DGHS sampling.
Experimental setupGPT-Image-2、Doubao-Seedream-5.0-Lite et al. · Dynamically Generated Hate Speech (DGHS) · ASR、Harmful Score et al.
Evaluated models
GPT-Image-2Doubao-Seedream-5.0-LiteWan2.7-Image-ProHiDream-O1-ImageFLUX.2 [dev]
Benchmarks
Dynamically Generated Hate Speech (DGHS)
Metrics
ASRHarmful ScoreCLIP-based Semantic SimilarityAmplification Coefficient RateAverage Score
AI summaryand selection rationaleResearchers from Zhejiang University and Hong Kong Polytechnic University propose CollageAttack, a single-prompt black-box jailbreak method that breaks harmful intent into incomplete text fragments, disperses them onto naturally occurring carriers in the scene, and lets semantics re-emerge through spatial composition on the image plane. On five T2I models—GPT-Image-2, Doubao-Seedream-5.0-Lite, Wan2.7-Image-Pro, HiDream-O1-Image, and FLUX.2 [dev]—the method achieves the highest attack success rate on all targets, with an aggregate ASR of 77.0% and a maximum of 86.0%, 18.5 percentage points higher than the strongest baseline on the same models. The cross-model average harmfulness score is 6.12/10, higher than the strongest baseline's 4.23/10; on HiDream-I1 it is 5.38 versus 1.69. Ablation shows that using any single component alone yields harmfulness scores of 0.25, 5.47, and 0.53, respectively, while combining all three reaches 6.41.

Researchers from Zhejiang University and Hong Kong Polytechnic University propose CollageAttack, a single-prompt black-box jailbreak method that breaks harmful intent into incomplete text fragments, disperses them onto naturally occurring carriers in the scene, and lets semantics re-emerge through spatial composition on the image plane. On five T2I models—GPT-Image-2, Doubao-Seedream-5.0-Lite, Wan2.7-Image-Pro, HiDream-O1-Image, and FLUX.2 [dev]—the method achieves the highest attack success rate on all targets, with an aggregate ASR of 77.0% and a maximum of 86.0%, 18.5 percentage points higher than the strongest baseline on the same models. The cross-model average harmfulness score is 6.12/10, higher than the strongest baseline's 4.23/10; on HiDream-I1 it is 5.38 versus 1.69. Ablation shows that using any single component alone yields harmfulness scores of 0.25, 5.47, and 0.53, respectively, while combining all three reaches 6.41.

Why it was selectedThe paper provides success rates and ablation results for cross-modal jailbreaks on five T2I models, allowing teams working on image safety guardrails to check image-plane composition risks beyond text filtering.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Investigating cross-modal safety vulnerabilities in text-to-image models under spatial text composition, proposing a single-prompt black-box jailbreak framework.

    Cross-modal jailbreak security vulnerability caused by the mismatch between serial prompt safety checks and two-dimensional image visual synthesis in text-to-image (T2I) generation models.

    • Problem scenario and importance: Recent T2I models have the ability to follow spatial instructions and render clear text on specific objects or regions; however, prompt-side defenses mainly rely on serial review of linear text instructions, making it difficult to prevent harmful content expressed through multimodal combinations.
    • Limitations of existing black-box jailbreaks: Existing black-box T2I jailbreak methods are mainly limited to rewriting, replacing, or iteratively searching in the text domain, treating serial prompts as the primary carrier of harmful semantics, and do not explore using the joint synthesis of rendered text, visual context, and spatial structure to bypass defenses.
    • Core observation and hypothesis: The authors propose that text fragments and scene elements that are incomplete or inconspicuous when checked individually can be reconstructed into complete harmful semantics after being instantiated in image space and interpreted jointly, thereby breaking through prompt filtering.
    • Proposed method: The authors propose an automated single-prompt black-box jailbreak framework, CollageAttack, which transfers the semantic assembly process from prompt text to the image plane through scene construction, carrier assignment, and fragmentation and recombination of harmful intent.
    • Threat model:
      • Knowledge and access: A black-box setting is adopted; the attacker only has access to the generation interface and no access to model parameters, gradients, training data, system prompts, safety classifiers, or internal review pipelines.
      • Attacker goal: Bypass the safety review of T2I models and induce the model to generate images containing harmful semantics while preserving the source intent.
      • Attacker capability: Only uses the source intent and fixed templates to generate a single prompt request, without needing target model gradients, safety score feedback, or multi-round iterative search or image editing.
      • Victim system: T2I generation models capable of following scene and spatial relationship instructions and rendering text on visual surfaces.
  2. What related research exists?

    Covering large model safety alignment, T2I black-box jailbreaks, and image editing attacks, this paper distinguishes itself from existing text-domain methods through spatial multimodal composition.

    Safety Alignment of Large Language and Generative Models

    • Feedback-based preference alignment: Ouyang et al. (2022) established the pipeline of supervised fine-tuning combined with reinforcement learning from human feedback (RLHF); Rafailov et al. (2023) proposed direct preference optimization (DPO); Bai et al. (2022) introduced Constitutional AI by combining constitutional principles with reinforcement learning from AI feedback.
    • Analysis of alignment generalization insufficiency mechanisms: Wei et al. (2023) and Wang et al. (2024) point out that alignment cannot eliminate the capability to generate harmful content, attributing this to goal conflicts between model capabilities and safety objectives, as well as generalization mismatches between broadly learned capabilities and relatively limited safety training.

    Text-to-Image Model Jailbreak Attacks

    • Interaction and editing-based attacks: Wang et al. (2025) proposed Chain of Jailbreak, bypassing safety mechanisms through step-by-step image editing; the paper notes that this method relies on editing functionality and repeated interaction with the target service, limiting automation and generality.
    • Token and semantic search-based jailbreaks: Yang et al. (2024) proposed SneakyPrompt, using reinforcement learning and model feedback to search for benign token replacements; the paper notes that its replacements may lead to unnatural semantics and hinder accurate rendering of harmful text; Huang et al. (2025) proposed PGJ, using large language models for perception-guided semantic replacement; Dong et al. (2025) proposed JailFuzzer, combining fuzzing with agent-based evolution of seed pools; Jiang et al. (2026) proposed PromptTune, fine-tuning large language models to rewrite unsafe prompts.

    Baseline Methods and Benchmark Datasets

    • Comparison baselines: The experiments select Original (direct input of source prompts), PGJ (Huang et al., 2025, perception-guided semantic replacement), SneakyPrompt (Yang et al., 2024, token-level perturbation), and JailFuzzer (Dong et al., 2025, agent-guided fuzzing) as comparison baselines.
    • Evaluation benchmark: Using the Dynamically Generated Hate Speech (DGHS) dataset (Vidgen et al., 2021), covering five categories of harmful content: derogation, hostility, threats, dehumanization, and support for hate entities.

    Positioning Differences from Existing Work

    The authors state that existing black-box T2I jailbreaks mainly operate in the text domain and treat serial prompts as carriers of harmful semantics, whereas CollageAttack shifts semantic assembly to the image plane, using the joint combination of rendered text, visual context, and spatial structure to break through safety alignment.

  3. How does the paper address this problem?

    Proposes the CollageAttack framework, decomposing harmful intent into three complementary instructions: scene construction, carrier assignment, and spatial fragment recombination.

    Overall Design and Problem Formalization

    Given a source harmful intent x, a prompt-construction large language model L, and a fixed template T, the CollageAttack framework jointly generates three complementary instructions (c1, c2, c3) in a single interaction, assembles them into a structured prompt, and submits it to the black-box T2I model. The framework shifts the semantic assembly task from serial prompts to the image plane, using the spatial association of rendered text and visual scenes to reveal harmful meaning.

    Context-Aware Scene Construction (COMMAND1)

    • Cross-modal semantic coordination: Constructs a relevant scene context s based on the source intent, providing the environmental background needed to interpret subsequent text, without directly copying the full source statement.
    • Visual attribute setting: For environment-based scenes, specifies attributes such as lighting, viewpoint, and visual configuration, providing a shared visual foundation for subsequent carriers and inscriptions.
    • Responsibility boundary division: This command is only responsible for constructing the scene context itself, not for selecting text carriers or filling text content; the final prompt is directly synthesized without generating intermediate scene images.

    Thematic Surface Assignment (COMMAND2)

    • Visual semantic foundation anchoring: Specifies a set of text carrier surfaces R = {r1, …, rK} that naturally fit the constructed scene context s, where each element in the formula represents a specific carrier.
    • Carrier types and states: The template does not restrict carrier types; the large language model adaptively selects 3 to 5 relevant carriers (e.g., posters, signs, banners, or labels); at this stage, carriers remain blank or contain only abstract patterns, with no text fragments yet filled in.

    Harmful Intent Fragmentation and Spatial Recombination (COMMAND3)

    • Phrase-level fragmentation: Splits the source harmful expression x into 3 to 4 phrase-level fragments F(x) = (f1, …, fM), where M in the formula represents the number of fragments obtained, avoiding presenting the complete attack statement as a single inscription.
    • Spatial arrangement and style instructions: For each fragment, specifies the carrier object, placement position, and presentation style matching the carrier's texture (collectively referred to as A), e.g., stenciled spray text on a crate or printed typography on a banner; the number of fragments and available carriers need not correspond one-to-one.

    Single-Prompt Generation Algorithm Flow

    The large language model L, based on the natural language constraints of template T, jointly outputs three parts in a single request, which are parsed and merged into a single complete prompt directly input to the target T2I model (as shown in Algorithm 1). The entire construction process does not rely on the target model's gradient information, safety scores, or iterative search.

  4. What experiments did the paper conduct?

    Evaluated on 5 T2I models, CollageAttack achieved the highest metrics in ASR, harmfulness score, and visual impact.

    Experimental Setup

    • Models under test: A total of 5 representative T2I models, including 3 commercial closed-source models GPT-Image-2, Doubao-Seedream-5.0-Lite, Wan2.7-Image-Pro, and 2 open-source models HiDream-O1-Image (8B, pixel-level unified Transformer architecture) and FLUX.2 [dev] (32B, rectified flow Transformer architecture).
    • Evaluation dataset and sample size: Using the Dynamically Generated Hate Speech (DGHS) dataset (Vidgen et al., 2021, total size 41,255), from which 200 samples labeled "hate" were randomly drawn (from version v0.2.3), covering five categories: derogation, hostility, threatening language, dehumanization, and support for hate entities, with obfuscated spellings normalized.
    • Comparison baselines: Includes original prompts (Original) and three automated black-box jailbreak baselines: PGJ (Huang et al., 2025), SneakyPrompt (Yang et al., 2024), and JailFuzzer (Dong et al., 2025).
    • Metric definitions and evaluation model: (1) ASR and harmfulness score: using criterion-based GPT-4.1 as judge, assessing image severity on a 0 to 10 scale (0 harmless, 5 moderate, 10 severe), ASR is the proportion of 200 intents judged as Harmful; (2) Cross-modal semantic similarity: using 4 CLIP encoders (OpenAI CLIP, Google CLIP, OpenCLIP, Doubao Similarity) to compute cosine similarity; (3) Visual relative to text amplification rate and average score: GPT-4.1 compares visual and textual impact, score range -2 to 2.
    • Evaluation mechanism details: For samples initially judged Harmless, up to 3 evaluations are performed and the first Harmful judgment is retained; the authors note this may inflate ASR (Appendix E); each method and model is evaluated with a single generation based on the same 200 source intents.

    Main Results

    According to Table 1, the ASR results for each method on 5 T2I models (format: successful attacks / generated images / total attempts) are as follows:

    Swipe horizontally to read the table

    Target ModelOriginal ASRPGJ ASRSneakyPrompt ASRJailFuzzer ASRCollageAttack ASR
    Wan2.7-image-pro27/184/20035/195/200108/145/20021/200/200162/200/200
    Doubao-Seedream-5.0-Lite63/185/20048/197/200135/196/20056/199/200172/198/200
    gpt-image-27/15/20032/140/20038/169/20032/200/200115/165/200
    FLUX.2 Dev88/200/20034/200/200151/200/20037/200/200171/193/200
    HiDream-I132/196/20017/200/20043/196/2004/200/200150/200/200
    • Attack success rate performance: According to Table 1, CollageAttack achieves the highest ASR on all 5 models (57.5% to 86.0%), with a cross-model aggregate ASR of 77.0%, which the authors state is significantly higher than the strongest baseline SneakyPrompt (47.5%).
    • Cross-architecture stability: According to Table 1, SneakyPrompt's ASR on gpt-image-2 and HiDream-I1 drops to 19.0% (38/200) and 21.5% (43/200) respectively, while CollageAttack maintains 57.5% (115/200) and 75.0% (150/200) respectively.
    • Harmfulness score performance: According to Table 1, CollageAttack's average harmfulness scores across models range from 4.96 to 6.85 (out of 10), with a cross-model mean of 6.12/10, higher than SneakyPrompt's 4.23/10.

    Visual vs. Textual Propagation Impact Amplification Evaluation (RQ4)

    • What was tested: Using GPT-4.1 to compare the propagation impact of generated images versus original source text (score range -2 to 2), calculating the amplification rate (proportion above 0) and average score (Table 2).
    • Experimental results: According to Table 2, CollageAttack is the only method with positive average scores on all 5 models, with average scores ranging from 0.405 (HiDream-I1) to 0.8579 (Wan2.7-image-pro); on all models, more than half of the samples receive positive amplification ratings, with FLUX.2 Dev achieving an amplification rate of 69.4% (127/183). In contrast, baselines show negative average scores on multiple models, e.g., Original on HiDream-I1 is -1.2143, JailFuzzer on Wan2.7-image-pro is -1.53.
    • Authors' interpretation: The authors believe that after harmful content is instantiated in images, the combination of visual context, rendered text, and spatial composition makes the result more perceptually salient than text-only expression; the authors explicitly state that this metric measures propagation intensity, not semantic equivalence.

    Cross-Modal Semantic Reconstruction and Similarity Evaluation (RQ2)

    • What was tested: Evaluating whether generated images preserve semantic alignment with the source harmful intent under multi-component dispersed expression, testing CLIP cosine similarity on 5 target models using 4 vision-language encoders (Figure 3, Table 4).
    • Experimental results: According to Figure 3, under the Google evaluator, CollageAttack achieves the highest similarity score of 8.14, higher than the strongest baseline SneakyPrompt (6.88); under the Doubao evaluator, it reaches 32.1709, leading all baselines; it remains competitive on OpenAI CLIP (23.875) and OpenCLIP (24.1329) (Figure 3 and Table 4 show identical values for the HiDream-I1 row).
    • Authors' interpretation: The authors state that spatial fragmentation preserves source intent alignment without requiring a single complete inscription; scene context, rendered text, and spatial relationships together convey meaning that a single component can only partially express.

    Component Contribution Ablation Experiment (RQ5)

    • What was tested: Testing the contribution of different combinations of CollageAttack's three functional commands to the average harmfulness score of generated images (Table 3).
    • Experimental results: According to Table 3, using COMMAND1 alone (scene construction) scores 0.25, COMMAND3 alone (text fragmentation and arrangement) scores 0.53, COMMAND2 alone (surface assignment) scores 5.47; the two-component combination COMMAND1 + COMMAND2 scores 5.94; the full three-component combination COMMAND1 + COMMAND2 + COMMAND3 achieves the highest score of 6.41.
    • Authors' interpretation: The authors note that among single configurations, COMMAND2 performs strongest, while components with limited independent effect still provide gains when integrated, and the full configuration improves by 0.94 points over the highest single-component value, indicating that generated harmfulness is not dominated by a single component; the contribution of each component depends on synergistic use.

    Other Ablations and Analyses

    • Ablation of introducing visual and textual cues (Figure 4): Progressively introducing scene and spatial text fragments from no relevant background, image-text cosine similarity increases from 0.0700 to 0.3870 (reference upper bound for pure text rendering is 0.6018).
    • Generation failures on gpt-image-2 (Table 1): Original prompts successfully generate only 15 images out of 200 attempts (ASR 7/15/200), with a refusal generation rate of 92.5% (185/200).
    • Non-semantic character phenomenon in baseline generation (Appendix D.3): SneakyPrompt introduces non-semantic characters replacing text fragments in some generated prompts, preventing the target text from being correctly rendered in images.
  5. What are some points that can be further explored?

    The paper does not have a dedicated section discussing limitations; it only notes in the evaluation mechanism that multiple judgments may inflate ASR, and also points out that the propagation impact metric does not represent actual audience effects.

    Limitations and Future Directions Noted by the Authors

    • The paper does not have a dedicated section discussing limitations: Neither the main text nor the appendix includes a separate Limitations or Future Work section (main text page 10).
    • Potential inflation of ASR due to evaluation mechanism: In the judge evaluation mechanism, samples initially judged harmless are evaluated up to 3 times and the first harmful judgment is retained; the authors note this may inflate ASR (Section 4.1.4, Appendix E).
    • Interpretation boundaries of propagation impact metrics: The authors explicitly state that the harm amplification metric measures the intensity of propagation impact as judged by the evaluator, not semantic equivalence or actual audience observation effects (Section 4.1.4, RQ4).
    • Referential nature of qualitative analysis: The authors note that the similarity analysis of gradually introducing visual context and text cues serves only as an illustrative analysis of semantic reconstruction, not as an additional aggregated evaluation benchmark (Appendix A).

    Experimental Coverage

    • Model coverage: The experiments cover 5 T2I models, including 3 commercial closed-source systems (GPT-Image-2, Doubao-Seedream-5.0-Lite, Wan2.7-Image-Pro) and 2 open-source models (HiDream-O1-Image, FLUX.2 [dev]) (Section 4.1.1).
    • Prompt construction model not disclosed: Attack prompt construction is done by a fixed template and a prompt-construction LLM; the paper does not report the specific large language model name or generation hyperparameters used for prompt construction (Section 3.6, Algorithm 1).
    • Dataset coverage: The evaluation dataset is based on 200 English hate speech samples randomly sampled from DGHS release v0.2.3, covering five categories: derogation, hostility, threats, dehumanization, and support for hate entities (Section 4.1.2).
    • Defense mechanism coverage: Defense testing is limited to the target models' default black-box input filtering and built-in safety mechanisms; no testing against external independent image safety classifiers or post-processing review pipelines is reported (Section 3.2, 4.1.1).
    • Single evaluation method: Both harmfulness and amplification evaluations use GPT-4.1 as the sole judge; the paper does not report consistency checks between judge results and human expert evaluations (Section 4.1.4, Appendix D.3.1).
  6. Summarize the main content of the paper

    Systematically reveals security vulnerabilities in T2I cross-modal spatial composition, confirming that discrete harmless elements can reconstruct harmful intent at the image level and amplify propagation intensity.
    1. Research positioning and core problem: Targeting cross-modal alignment deficiencies in text-to-image (T2I) generation models, this work studies how attackers exploit the model's visual synthesis capability of organizing scenes and rendering text in two-dimensional images, so that inconspicuous incomplete fragments hidden in serial prompts are reconstructed into explicit harmful semantics in the generated images.
    2. Method framework: The proposed CollageAttack is a black-box automated single-prompt jailbreak framework, in which a large language model generates three coordinated instructions at once based on a template: constructing an intent-related scene background, allocating 3 to 5 blank carrier surfaces that fit the environment (such as posters, banners), and splitting the harmful text into 3 to 4 phrase fragments with specified typography and spatial positions.
    3. Attack success rate performance: In evaluations on 200 DGHS hate samples across 5 mainstream commercial and open-source models, CollageAttack achieves an aggregate ASR of 77.0%, higher than the comparison baseline SneakyPrompt (47.5%); on Doubao-Seedream-5.0-Lite the ASR reaches 86.0% (18.5 percentage points higher than that model's strongest baseline), and on gpt-image-2 it reaches 57.5% (Table 1).
    4. Image harmfulness and dissemination impact: The generated images achieve a cross-model average harmfulness score of 6.12/10 under GPT-4.1 judging (the highest baseline is 4.23/10); on all 5 models, more than half of the samples have visual dissemination impact rated as stronger than the source text, with the amplification ratio on FLUX.2 Dev reaching 69.4% (Table 2).
    5. Cross-modal semantic reconstruction: Multi-evaluator CLIP cosine similarity tests show that dispersed fragments can maintain source intent alignment in the image (reaching 8.14 under the Google evaluator, higher than SneakyPrompt's 6.88, Figure 3); component ablation shows that the harmfulness score is highest when the three modules are used together (6.41, Table 3).
    6. Authors' conclusions and implications: The authors point out that the security risks of T2I models not only originate from continuous text prompts, but can also emerge from multimodal spatial synthesis of dispersed elements; existing serial prompt filtering cannot effectively defend against such spatial cross-modal combination attacks, and there is an urgent need to develop defense mechanisms that account for the two-dimensional visual semantics of images.
Read originalarxiv.org