Manuscript Offprint

arXiv:2609.01168

Jailbreaking Text-to-Image Models Through Cracks: Navigating Heterogeneous Safety Filters via Multi-Agent Debate

Kaiyan Wen, Shijie Zhang, Lu Yu, Guangdong Bai

Kaiyan Wen, Shijie Zhang, Lu Yu, Guangdong Bai

Abstract—Text-to-image (T2I) models remain vulnerable to jailbreak attacks that elicit Not-Safe-For-Work (NSFW) content, despite increasingly being guarded by heterogeneous, multi-layer safety stacks combining text filters, image classifiers, and cross-modal detectors. Existing jailbreak studies either optimize against individual filters or query the complete pipeline with aggregate feedback, making it difficult to identify the active constraint and adapt to conflicts across safety layers. In this paper, we introduce the Detection Surface, a unified geometric framework that characterizes the decision boundaries induced by heterogeneous T2I safety filters and their joint effect on the jailbreak search space. This formulation reveals that successful evasion is governed by a sparse and non-convex region shaped by cross-layer conflicts, where mutations that bypass one filter may increase exposure to another. Motivated by this analysis, we propose CRACK, a multi-agent debate framework for adaptive jailbreak search that decomposes jailbreak search into exploration, diagnosis, and arbitration. CRACK coordinates an Attack Agent, a Defense Agent, and a Judge Agent to iteratively generate prompt mutations, obtain layer-specific diagnostic feedback, and optimize mutation strategies through reward-guided refinement. Through repeated rounds of debate, CRACK adapts its search direction to the evolving cross-layer constraints while preserving the original harmful intent. Extensive experiments across multiple T2I models, datasets, and safety configurations show that CRACK achieves Attack Success Rates (ASR) of up to 99.63% under composite defenses, while requiring fewer queries than existing methods and maintaining semantic fidelity.

Index Terms—Jailbreak, Text-to-Image models, heterogeneous safety filters, multi-agent debate.

I. INTRODUCTION

Text-to-image (T2I) generative models such as Stable Diffusion [1], [2], DALL-E [3], and Midjourney [4] have demonstrated remarkable capabilities in synthesizing photorealistic images from natural language prompts [5], [6], [7]. However, the widespread deployment of T2I models in commercial platforms has raised critical safety concerns, since adversaries can craft malicious prompts to elicit Not-Safe-For-Work (NSFW) content, including violent, sexually explicit, or otherwise harmful imagery [8], [9]. To mitigate such misuse, model providers have integrated a variety of safety mechanisms, ranging from input-side keyword blacklists [8], [10] and LLM-

based semantic classifiers [11], [12] to output-side NSFW image detectors [10], [13] and cross-modal alignment filters [14], [15], forming a multi-layered defense stack that guards the generation pipeline at different stages and modalities.

However, current T2I jailbreak methods are poorly matched to the compositional nature of modern safety pipelines. Component-specific attacks [9], [16] optimize against an individual filter, so their success does not necessarily transfer to a stack containing filters from different modalities. Methods that query the complete pipeline in a black-box manner [8], [17] treat the stack as a single decision function and observe only whether a query succeeds. Such feedback provides little indication of whether a rejection stems from explicit lexical cues, implicit unsafe semantics, generated visual content, or text-image alignment. Consequently, existing mutation policies struggle to determine whether a revision genuinely resolves the current detection risk or merely shifts it from one safety layer to another. For instance, a mutation that weakens lexical cues to bypass a text filter can simultaneously strengthen the unsafe visual semantics of the generated image, making it easier for a downstream image classifier to reject [16], [18]. Without explicitly accounting for these cross-layer interactions, existing methods lack a layer-aware signal for determining effective search directions in the prompt space.

To characterize these cross-layer interactions, we introduce the Detection Surface, a geometric abstraction of the decision boundaries induced by a heterogeneous defense stack. This abstraction provides a unified view of how these boundaries jointly partition the prompt space and constrain the feasible search region for multi-layer jailbreaks. Although heterogeneous filters broaden safety coverage, their distinct detection criteria partition the prompt space differently. A mutation may cross the boundary of one filter while remaining outside the safe region of another, producing cross-layer conflict [18]. The intersection of all per-layer safe regions, subject to preservation of the original harmful intent, further forms a sparse and non-convex evasion region. Therefore, multi-layer jailbreak is fundamentally a search problem over a sparse and non-convex evasion region shaped by cross-layer conflicts on the Detection Surface.

These properties make multi-agent debate particularly well suited to navigating the Detection Surface. First, the sparsity and non-convexity of the evasion region call for active exploration across diverse mutation directions rather than reliance on a fixed search trajectory. Second, cross-layer conflicts require diagnosis: because a mutation that bypasses

Kaiyan Wen is with the College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China (e-mail: wenkaiyan_@nudt.edu.cn).

Shijie Zhang is with Shenzhen MSU-BIT University, Shenzhen, China (e-mail: shijie.z@smbu.edu.cn).

Lu Yu and Guangdong Bai are with City University of Hong Kong, Hong Kong, China (e-mail: lu.yu@cityu.edu.hk, g.bai@cityu.edu.hk).

one safety layer may increase exposure to another, effective search requires identifying which constraints currently impede progress and how they respond to each revision. Finally, conflicting layer-wise feedback requires arbitration, whereby heterogeneous signals are reconciled to determine whether a mutation yields overall progress toward the joint evasion region. Performing these functions within a single role can entangle mutation generation with failure attribution and cross-layer evaluation. Multi-agent debate instead provides a natural mechanism for separating these complementary functions while allowing their perspectives to be iteratively exchanged and reconciled.

To this end, we introduce CRACK, a multi-agent debate framework that instantiated exploration, diagnosis, and arbitration through three specialized agents, while leveraging reinforcement learning to progressively refine the mutation policy for layer-aware navigation of the Detection Surface. Starting from a harmful prompt, CRACK iteratively searches for mutations that better satisfy heterogeneous layer-wise constraints while preserving the original harmful intent, progressively steering the prompt toward the joint evasion region E∗\mathcal{E}^*. We refer to promising intermediate pathways through the heterogeneous safety boundaries as cracks, as they provide feasible directions toward joint evasion.

At each round, the Defense Agent performs diagnosis by providing structured diagnostic signals that approximate the heterogeneous criteria commonly used by real-world defense stacks, thereby identifying the constraints currently impeding progress and explaining the corresponding rejection. Conditioned on this diagnosis, the Attack Agent performs exploration by selecting and applying complementary mutation strategies to search for promising directions toward the next crack. The Judge Agent performs arbitration by reconciling potentially conflicting layer-wise signals into a composite assessment of overall progress. This assessment further serves as a reward signal for refining the Attack Agent's mutation policy through reinforcement learning, discouraging revisions that merely shift detection risk from one layer to another. Through repeated rounds of debate and refinement, CRACK adapts its search direction as new cross-layer conflicts emerge, transforming stack-level trial-and-error into a layer-aware and diagnosis-guided search toward E∗\mathcal{E}^*.

We summarize our contributions as follows:

  • Theoretical framework. We introduce the Detection Surface formalism, which provides a unified geometric characterization of multi-layer T2I defense stacks. We identify three structural properties (cross-layer conflict, sparsity, and non-convexity) that that decomposes jailbreak search into exploration, layer-aware diagnosis, and cross-layer arbitration, with reinforcement learning further refining the mutation policy. (Sec. III).

  • Multi-agent attack framework. We propose CRACK, the jailbreak method that first leverages multi-agent debate with per-layer diagnostic feedback and RL-guided strategy selection. Each component of CRACK is directly motivated by a specific structural property of the Detection Surface, yielding a principled rather than heuristic attack design (Sec. IV).

  • Comprehensive evaluation. We conduct extensive experiments across multiple T2I models (Stable Diffusion v1.4, SDXL, DALLE-3, and Midjourney) under diverse safety configurations. CRACK achieves state-of-the-art attack success rates (up to 99.63% on SD 1.4 with composite filters) while requiring significantly fewer queries than existing methods, and maintains high semantic fidelity. These results validate the cross-layer interactions characterized by the Detection Surface and demonstrate the importance of layer-aware, adaptive search for navigating heterogeneous defense stacks (Sec. V).

References (50)