CRACK: Jailbreaking T2I Models with Multi-Layer Safety Filters via Multi-Agent DebateJailbreaking Text-to-Image Models Through Cracks: Navigating Heterogeneous Safety Filters via Multi-Agent Debate
CRACK uses multi-agent debate to traverse T2I multi-layer safety filters under black-box settings; the authors report an ASR of up to 99.63% on SD 1.4 composite defenses.
Strict black-box: the attacker has no model weights, gradients, or logits, and no safety filter parameters, thresholds, or decision logic; the number, types, and order of filters are unknown. The attacker only submits prompts and observes a single binary safe/unsafe signal and the image when accepted. The goal is to make p′ pass all filters within a limited query budget while the generated image preserves the harmful semantics of ph.
- T2I models are protected by multi-layer safety stacks spanning text, image, and cross-modal checks; existing jailbreaks either target a single filter or only observe the overall success/failure feedback of the whole pipeline, making it hard to localize the current constraint and handle inter-layer conflicts.
- The authors propose Detection Surface, viewing the decision boundaries of heterogeneous filters as geometric structures in prompt representation space, and note that the joint circumvention region is sparse and non-convex. CRACK uses three agents—Attack, Defense, and Judge—for exploration, layer-wise diagnosis, and arbitration, respectively, and updates the mutation policy with rewards.
- The authors evaluate on Stable Diffusion v1.4, SDXL, DALL·E 3, and Midjourney with various safety configurations, claiming CRACK achieves ASR up to 99.63% on the SD 1.4 composite filter, with fewer queries than existing methods and preserved semantic fidelity.
- The experimental tables in the middle of the main text are truncated; the specific query counts, per-model ASR breakdowns, and complete numbers for the ablations and limitations sections are incomplete in the provided text; the authors position the method as black-box and reliant on surrogate hierarchical diagnosis rather than the target system's internal state.
- Evaluated models
- Stable Diffusion 1.4Stable Diffusion XLDALL·E 3Midjourney
- Benchmarks
- NSFW-200I2PVBCDENSFW-56k
- Metrics
- ASRquery countCLIPScoresemantic fidelity
The paper proposes CRACK, a framework that adaptively searches for jailbreak prompts through multi-agent debate to bypass a multi-layer safety stack consisting of text filters, image classifiers, and cross-modal detectors. The authors first propose the Detection Surface geometric framework, characterizing the decision boundaries induced by heterogeneous T2I safety filters, and point out that successful evasion is determined by sparse non-convex regions formed by cross-layer conflicts, where modifications that bypass one layer's filter may increase exposure at another layer. CRACK decomposes jailbreak search into exploration, diagnosis, and arbitration, with an Attack Agent, Defense Agent, and Judge Agent iteratively generating prompt mutations, obtaining layer-wise diagnostic feedback, and guiding the mutation strategy through reward-guided optimization, while preserving the original harmful intent and adapting to changing cross-layer constraints.
Paper analysis
What problem does this paper attempt to solve?
Under a multi-layer heterogeneous safety stack, black-box jailbreaks lack hierarchical diagnosis, and the search can easily drift amid inter-layer conflicts.
Under a multi-layer T2I safety stack, black-box jailbreaks struggle to localize the currently active constraint and to preserve harmful intent amid inter-layer conflicts.
- Scenario: The authors state that T2I models such as Stable Diffusion, DALL·E, and Midjourney can be induced by malicious prompts to generate NSFW images such as violence and pornography. Vendors compose multi-layer defenses from keyword blacklists, LLM semantic classifiers, output-side NSFW detectors, and cross-modal alignment filters.
- Limitations of existing work: Component-level attacks (e.g., Ring-A-Bell) optimize against a single filter, and success does not necessarily transfer to a cross-modal stack; whole-pipeline black-box methods (e.g., SneakyPrompt, JailFuzzer) only observe whether a query succeeds and cannot tell whether the rejection comes from vocabulary, implicit semantics, the generated image, or image-text alignment. Weakening lexical cues may simultaneously strengthen unsafe visual semantics.
- Core observation: The authors propose the Detection Surface, arguing that heterogeneous filters partition the prompt representation space into sparse, non-convex joint evasion regions E∗; a mutation that bypasses one layer may increase exposure at another.
- Threat model:
- Goal: Given a harmful prompt ph, find p⋆ such that S(p)=0 (passing all filters) and maximize the semantic similarity Sim between the generated image and ph; bypassing filters while producing a benign or off-intent image does not count as success.
- Knowledge: The authors call it strict black-box. The attacker has no weights, architecture, gradients, or logits of M, and no parameters, thresholds, or decision logic of the filters; the number, types, and order of filters are all unknown.
- Capabilities: The attacker can only submit prompts and observe a single binary safe/unsafe signal, plus the generated image when accepted. The attacker can query repeatedly and rewrite prompts, but cannot modify the model or filters.
- Constraints: The query budget is limited, ruling out exhaustive search; adversarial prompts must preserve the harmful semantics of ph.
- Proposed method: The authors propose CRACK, which uses three agents—Attack, Defense, and Judge—to decompose the search into exploration, diagnosis, and arbitration, and uses reward-guided reinforcement learning to update the mutation policy, driving prompts toward E∗.
What related research exists?
Related work is organized into four groups: T2I jailbreaks, safety mechanisms, multi-agent red teaming, and RL prompt search.
The paper discusses related work in four groups and uses Table I to compare capabilities, without reporting numerical results for each baseline in that table.
T2I jailbreaks
- White-box: Ring-A-Bell [9] finds concepts that reveal vulnerabilities in concept-erased diffusion models; MMA-Diffusion [19] uses gradient-based optimization to construct multimodal adversarial attacks. The authors state that such methods typically require parameters, gradients, or internal representations, making them difficult to apply to closed commercial APIs.
- Black-box: SneakyPrompt [8] uses reinforcement learning to replace tokens to evade CLIP safety checkers; DACA [20] uses LLMs to decompose unsafe requests into harder-to-detect components; JailFuzzer [17] combines fuzzing with LLM agents; Prompting4Debugging [21] systematically searches for problematic prompts; Perception-guided Jailbreak (PGJ) [16] uses perceptual signals to guide prompts. The authors state that they mainly rely on coarse-grained success/failure feedback.
- Table I baselines: Ring-A-Bell, MMA-Diffusion, SneakyPrompt, DACA, JailFuzzer, PGJ, JANUS [22], MacPrompt [23], and CRACK. The authors state that among them, only CRACK simultaneously has surrogate hierarchical diagnosis, cross-layer adaptation, and iteration; JANUS and MMA-Diffusion target multi-layer defenses, but Table I marks both as non-layer-aware and non-cross-layer-adaptive.
T2I safety mechanisms
- Input and concept erasure: keyword filtering [24], pre-generation LLM semantic guardrails [11], [12]; ESD [25] fine-tunes diffusion models to erase target concepts, and subsequent work examines the reliability of concept removal under adversarial prompts [9].
- Output and in-process: CLIP NSFW detectors [26], NudeNet [27], Q16 [28]; Safe Latent Diffusion [13] uses safety guidance to steer denoising away from inappropriate concepts; cross-modal evaluation can be based on vision-language representations [14]. The DALL·E 3 system card documents mitigations during and before generation [11]. The authors state that prior work has not formally characterized the joint geometry of heterogeneous layers.
Multi-agent and LLM red teaming
- Debate and roles: Multi-agent debate [29], [32] improves reasoning through proposal, critique, and revision; role specialization and divergent perspectives [30], [31] expand exploration. PAIR [33] and TAP [34] iteratively generate and refine prompts based on the target model's responses; broader red-teaming frameworks [35], [36] introduce diversity-oriented exploration and specialized roles.
- Difference from T2I: The authors state that these methods mainly target text LLMs, where success is determined by the text response of a single target model; in T2I, each prompt triggers stochastic image generation, and prompt-image pairs can be checked by text, vision, and cross-modal filters. DACA and JailFuzzer already use LLM agents for intent decomposition, mutation, and candidate evaluation, but the feedback is mainly used to generate prompts or judge overall success, without explicitly modeling cross-layer interactions.
RL adversarial prompt generation
- SneakyPrompt [8] uses PPO [37] to learn token-level replacements against CLIP safety filters; Perez et al. [38] use reinforcement learning to train language models to find prompts that elicit undesirable behavior. The authors state that they typically target a single objective or an aggregated success signal. CRACK's policy selects different mutation operators at the policy level, and the reward combines binary bypass with the Judge's continuous score.
The authors position this paper as: characterizing the multi-layer stack with the Detection Surface, and filling the capability gap in Table I with hierarchical diagnosis plus cross-layer adaptive search.
How does the paper address this problem?
The Detection Surface characterizes inter-layer conflicts, and CRACK searches for E∗ using three-agent debate plus policy-level RL.
CRACK frames jailbreaking as a search in representation space toward the joint evasion region E∗: the Defense Agent performs hierarchical diagnosis, the Attack Agent selects mutations, and the Judge Agent synthesizes conflict signals into a reward and updates the policy.
Problem setup and Detection Surface
- Generation model: y ∼ M(p, z), where p is the prompt, z is a random latent variable, and y is the image. The safety mechanism contains multiple heterogeneous filters. The attack objective is Eq. (2): maximize Sim(M(p, z), ph) subject to S(p)=0.
- Representation and safety regions: Discrete prompts are mapped to a continuous representation via ϕ: P → X ⊆ R^d. Each filter Sk has hk(x)=1 indicating rejection. The composite safety region B is the intersection of the per-layer safety regions Bk. Under black-box settings, the attacker only observes h(x)=max_k hk(x).
- Three properties: Property 1 concerns cross-layer conflicts: there exist transformations that move a point into one layer's safety region while leaving another layer's; the authors give the example that keyword obfuscation may reduce word-list matching risk while making the prompt more likely to be flagged by semantic or cross-modal filters. Property 2 states that the sampling probability of E∗ does not exceed the minimum of the semantic fidelity rate and each layer's pass rate, and adding more filters only tightens this upper bound. Property 3 states that E∗ is generally non-convex, and local greedy search can get stuck in regions that satisfy only some filters.
Attack Agent
- Policy: At round t, a mutation at is sampled from the policy network πϕ based on the current prompt pt and the risk report Rt. At t=0, R0 is empty and mutations are sampled randomly from the strategy library M.
- Strategy library: Five complementary mutations covering lexical form, semantic framing, scene organization, and prompt structure, keeping the action space compact for policy learning. Implementation details are in Supplementary Sec. A. The paper gives examples: metaphor substitution can be chosen when the text-pattern layer triggers, and scene reorganization when the semantic layer triggers.
- Constraints: Each strategy changes a different aspect of the prompt while preserving the underlying harmful intent, allowing the search direction to switch on the non-convex surface.
Defense Agent
- Role: An attack-side agent that does not access the target stack's internal composition or per-layer decisions; it only queries the target system for externally visible generation results. It localizes the current exposure along detection dimensions (lexical, semantic, cross-modal) rather than replicating the target detectors.
- Three tiers: Tier 1 uses sensitive words and regular expressions for keyword and pattern matching, approximating the text boundary ∂Btext, targeting entity words, action verbs, and scene descriptions. Tier 2 uses a fine-tuned language model to give a risk score from 0 to 1 following the template in Fig. 2, outputting only the score, probing the semantic boundary ∂Bsem. Tier 3 uses CLIPScore to measure the alignment between the prompt and the generated image relative to unsafe concept embeddings, probing ∂Bcross.
- Output: A structured risk report Rt indicating the detection result at each layer, used by the Attack Agent to choose countermeasures. The authors contrast JailFuzzer and SneakyPrompt, which only receive the aggregated binary feedback h(p).
Judge Agent and debate update
- Two signals: Srisk compares the prompt before and after revision following Fig. 3, with scores from −10 to 10, outputting only the score. ΔCLIP = CLIP(pt, cunsafe) − CLIP(pt+1, cunsafe), where a positive value means the revised prompt is farther from the unsafe concept. The combined score is s = α·Srisk + β·σ(ΔCLIP), with α+β=1. α corresponds to the text and semantic boundaries, β to the cross-modal boundary; the trade-off is in Sec. V-B4.
- Three steps per round: Attack generates pt+1 using at and the previous round's diagnosis; Defense gives a three-tier risk report; Judge compares pt and pt+1 to obtain st, used to update πϕ.
- Reward: The Bypass Reward is +b when all detection layers pass, otherwise −b; the Judge Reward is the continuous score in Eq. (28). The state contains the current prompt and per-layer detection states, and the action is the selected mutation strategy. Implementation details are in Supplementary Sec. B. Fig. 5 uses t-SNE to show a single prompt trajectory, labeling the start as harmful prompt, blocked by all filters and the end as prompt inside all-filter evasion region, and marking ∂Btext, ∂Bsem, ∂Bcross and R0–R6; the text in the figure shows the trajectory moving from near the upper right through multiple R markers into the lower-left safe region, but the paper does not list specific coordinate values point by point in the figure caption.
What experiments did the paper conduct?
The authors report CRACK on four T2I models and various safety configurations, claiming ASR up to 99.63% under composite defenses.
Experimental setup
- Models under test: The authors list Stable Diffusion v1.4, SDXL, DALL·E 3, and Midjourney in the contributions and introduction. The specific LLMs and classifiers used for Defense/Judge appear in the references in the provided main-text fragment (e.g., NSFW text/image classifiers, DeepSeek-V3, Qwen3), but the experimental section does not bind them to each role in the visible text.
- Safety configurations: The authors state that evaluations are conducted under various safety configurations and composite defenses / composite filters. Table I only compares capabilities and does not report ASR.
- Metrics: ASR; query count (the authors state it is lower than existing methods, but the visible text gives no specific count); semantic fidelity (Sim / CLIPScore). Success requires passing all filters and the image retaining the harmful intent.
- Baselines: Table I lists Ring-A-Bell, MMA-Diffusion, SneakyPrompt, DACA, JailFuzzer, PGJ, JANUS, and MacPrompt.
- Evaluation: The target system side provides a single binary safe/unsafe signal plus the accepted image; CRACK internally uses the Defense three-tier report and the Judge score. The visible text does not give the external evaluation model for ASR, thresholds, sample sizes, or numbers of repetitions.
- Figures: Fig. 1 is a framework diagram; Fig. 4 shows the multi-round debate process; Fig. 5 shows a t-SNE trajectory of a single CLIP embedding.
Main results
The only main result with a number in the visible text is the same upper bound in the abstract and the contributions list. The experimental tables in the provided text are truncated and cannot fill model × condition cells.
Swipe horizontally to read the table
Model Setting Metric CRACK Source SD 1.4 composite filters ASR 99.63% Authors' contributions list; also stated as up to 99.63% SDXL various safety configurations ASR Not reported The introduction says experiments were done; no numbers in visible text DALL·E 3 various safety configurations ASR Not reported Same as above Midjourney various safety configurations ASR Not reported Same as above - Authors' interpretation: The authors state that CRACK achieves an ASR of up to 99.63% under composite defenses (SD 1.4, composite filters), with significantly fewer queries than existing methods and high semantic fidelity; these results support the cross-layer interactions characterized by the Detection Surface and the need for hierarchical, adaptive search (Sec. V). The word "significantly" comes from the authors' statement about query counts; the visible text does not report statistical tests.
- Conditions: 99.63% appears both in the abstract (under composite defenses, up to) and in the contributions list (on SD 1.4 with composite filters). Per-model ASR for the other three models, query counts, and CLIPScore are not given in the visible main text.
- Table I: A capability comparison that does not include success rates. CRACK is marked as Black-box, Multi-layer defense, Surrogate Per-layer diagnosis, layer-aware, cross-layer adaptive, and iterative. The feedback diagnosis comes from the Defense Agent and does not access the target system's internal state.
Trajectory visualization
- What was measured: Fig. 5 projects the CLIP embedding of a prompt during one debate onto a t-SNE two-dimensional plane, with axes labeled t-SNE dimension 1 and t-SNE dimension 2, ranging approximately from −15 to 20 and −15 to 15.
- Visible in the figure: The start is labeled harmful prompt, blocked by all filters, located in the upper right; ∂Btext, ∂Bsem, ∂Bcross are boundary annotations; R0 through R6 are arranged along the trajectory; the end is labeled prompt inside all-filter evasion region, located near ∂Bsem in the lower left.
- Authors' interpretation: The authors state that the figure shows iterative debate traversing multi-filter detection surfaces. From the figure, one can only confirm a single trajectory with R markers from a start labeled "blocked by all filters" to an end labeled "inside all-filter evasion region"; ASR cannot be read from the figure.
Other ablations and analyses
- Sensitivity analysis: The authors state that Sec. V-B4 analyzes the trade-off between α and β; the visible text gives no specific α, β, or corresponding ASR values.
- The five mutations in the strategy library and Supplementary Sec. A, and RL details in Supplementary Sec. B: the visible main text gives no ablation numbers.
- Query budget, b, δ, and number of debate rounds: they appear in the formalization, but the visible experimental text does not report their values.
What are some points that can be further explored?
The provided text is truncated before the experiments and limitations sections, so the limitations explicitly written by the authors cannot be verified item by item from the visible sections.
Limitations and future directions noted by the authors
The provided text ends at a fragment before the references; no complete Limitations, Discussion, or Future Work sections are present, so the paper does not explicitly list limitations that can be verified sentence by sentence in the visible text. In the visible statements, the authors only describe the following as method boundaries rather than future work: the Defense Agent's three-tier diagnosis is "not intended to exhaust all possible defense mechanisms"; the geometric analysis relies on the continuous surrogate scores of Assumption 1; under black-box settings, the per-layer decisions hk(x) are not directly accessible, and the diagnosis comes from a surrogate rather than the target's internal state.
Experimental coverage
- Models: The contributions list states that evaluations cover Stable Diffusion v1.4, SDXL, DALL·E 3, and Midjourney, 4 models in total (Sec. V).
- Defenses: Table I marks CRACK as an attack on a pipeline composed of multi-stage heterogeneous filters, where success requires bypassing all stages; the feedback is Surrogate Per-layer diagnosis.
- Comparison methods: Table I compares 8 representative methods with CRACK on access assumptions, whether multi-layer, feedback granularity, whether layer-aware, whether cross-layer adaptive, and whether iterative.
- Results with numbers: The visible text only gives an ASR of up to 99.63% under SD 1.4 and composite filters; the paper does not report query counts, semantic fidelity scores, sample sizes, or numbers of repetitions in the visible main text.
- Visualization: Fig. 5 shows a t-SNE debate trajectory for one prompt with three boundary annotations; it does not report multi-sample statistics.
Summarize the main content of the paper
CRACK searches for the joint evasion region of multi-layer T2I filters through hierarchical-diagnosis multi-agent debate.
CRACK is a black-box jailbreak framework for the multi-layer safety stack of text-to-image generation models, using a geometric Detection Surface to explain why coarse-grained feedback is insufficient.
- Problem: The decision boundaries of heterogeneous filters (text, image, cross-modal) conflict with each other; bypassing one layer may expose the attack to another. Optimizing only a single filter or looking only at the success or failure of the entire pipeline makes it hard to tell whether a revision is truly approaching joint circumvention or just shifting the risk to another layer.
- Setting: Strict black-box. The attacker does not know the number, type, or order of filters, and can only submit prompts and observe binary results and accepted images. Success requires all filters to pass while the image retains its original harmful intent.
- Method: In representation space, define the intersection of each layer's safety region and the semantic fidelity set E∗. An Attack Agent selects actions from five mutation types based on layer-wise risk reports; a Defense Agent performs three-dimensional proxy diagnosis using keywords, LLM semantic scores, and CLIPScore; a Judge Agent combines risk changes with ΔCLIP into a reward and updates the policy via reinforcement learning. The intermediate feasible paths are called cracks by the authors.
- Results: The authors report evaluations across multiple models and safety configurations, and claim an ASR of up to 99.63% under SD 1.4's composite filters, with fewer queries than existing methods while maintaining semantic fidelity. In Table I, CRACK is the only method marked as having both layer-wise diagnosis and cross-layer adaptation. Fig. 5 shows a t-SNE trajectory from "blocked by all filters" to "entering the full-filter circumvention region."
- Authors' conclusion: The authors believe these results support the characterization of cross-layer conflicts, and argue that layer-wise, adaptive search is necessary to traverse heterogeneous defense stacks. What transfers across proxy diagnoses is the detection dimension, not the specific implementation.