Skip to content

AnyBreak: jailbreaking any text-to-image model for arbitrary conceptsAnyBreak: Towards Jailbreaking Any T2I Model for Any Concept

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2611.11980· Qi Lu, Zehui Guo, Yucheng Zhao, Zijing Li, Chuhan Song, Wenrui ZhuHuazhong University of Science and Technology; University College LondonIndexed by this site · 13 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose AnyBreak, using adversarial images plus clean prompts to black-box jailbreak T2I models; SD-1.5 without defenses has an ASR of 84.51% (Table III).

Threat modelThe attacker's goal is to use clean text prompts and adversarial images at inference time to induce arbitrary T2I models to generate NSFW images of arbitrary malicious concepts; the setting is fully black-box, assuming neither white-box access nor retraining for each concept; the victim system is a T2I model with defenses such as prompt filters deployed.

Questions
Existing T2I jailbreaks mostly rely on malicious prompts, which the authors state are easily intercepted by pre-filtering of text, and often assume white-box access; the authors focus on whether arbitrary T2I models can be jailbroken in a black-box setting using only clean prompts and adversarial images.
Methods
AnyBreak first uses a generator to edit malicious concepts into a target image, then performs pixel-level multi-scale progressive semantic alignment on multiple image encoders to optimize universal adversarial noise; AnyBreak-V adds a compensation term to bypass the safety checker.
Experiments and results
Evaluated on SD-1.5, SD-2, and P2P; on SD-1.5 without defense, AnyBreak's ASR is 84.51%; under Safety Checker, AnyBreak drops to 2.78%, and AnyBreak-V is 46.61% (Table III).
Limitations and future work
The paper does not specifically discuss limitations. The experiments cover 3 T2I models, 1 data category, 3 defenses, and 5 categories of malicious concepts; the paper does not report sample size, number of repetitions, or human evaluation.
Experimental setupSD-V1.5-Inpainting (SD-1.5)、SD-V2-Inpainting (SD-2) et al. · NSFW Data Scraper (sexy category) · ASR、CLIP-score (C-s) et al.
Evaluated models
SD-V1.5-Inpainting (SD-1.5)SD-V2-Inpainting (SD-2)InstructPix2Pix (P2P)
Benchmarks
NSFW Data Scraper (sexy category)
Metrics
ASRCLIP-score (C-s)LPIPS
AI summaryThe researchers propose a jailbreak framework, AnyBreak, which constructs adversarial images through multi-scale progressive semantic alignment; at inference time it requires only a clean text prompt and an adversarial image to jailbreak text-to-image models into generating arbitrary malicious concepts in a fully black-box setting. Its mechanism is that the adversarial image steers the generative trajectory in latent space toward unsafe data manifolds during generation, achieving cross-modal transfer of malicious concepts from the text modality to the image modality. An enhanced variant, AnyBreak-V, adds a compensation term to bypass post-hoc safety checkers. The authors' experiments show that the method achieves a high attack success rate under black-box and clean-text constraints while maintaining visual fidelity and semantic consistency with the input prompt; the authors state that existing text-to-image defenses do not yet adequately cover this cross-modal attack surface. Code is open-sourced at https://github.com/luqi-glory/AnyBreak。

The researchers propose a jailbreak framework, AnyBreak, which constructs adversarial images through multi-scale progressive semantic alignment; at inference time it requires only a clean text prompt and an adversarial image to jailbreak text-to-image models into generating arbitrary malicious concepts in a fully black-box setting. Its mechanism is that the adversarial image steers the generative trajectory in latent space toward unsafe data manifolds during generation, achieving cross-modal transfer of malicious concepts from the text modality to the image modality. An enhanced variant, AnyBreak-V, adds a compensation term to bypass post-hoc safety checkers. The authors' experiments show that the method achieves a high attack success rate under black-box and clean-text constraints while maintaining visual fidelity and semantic consistency with the input prompt; the authors state that existing text-to-image defenses do not yet adequately cover this cross-modal attack surface. Code is open-sourced at https://github.com/luqi-glory/AnyBreak。

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors investigate whether arbitrary T2I models can be jailbroken in a black-box setting using only clean prompts and adversarial images to generate arbitrary malicious concepts.

    Core question: whether, under a fully black-box setting, clean text prompts and adversarial images can be used to jailbreak any T2I model and generate NSFW images of any malicious concept.

    • Problem scenario: The authors state that T2I models pretrained on large-scale data internalize malicious concepts, which attackers can exploit to induce the generation of violent, gory, or sexually explicit images.
    • Shortcomings of existing methods: The authors state that existing attacks mostly focus on constructing malicious prompts, which are easily neutralized by pre-hoc text filtering; Figure 2 shows that a perplexity-based filter can reduce the ASR of existing prompt-based methods to below 20%.
    • Core observation: The authors argue that malicious concepts in both the text modality and the image modality can push the denoising process toward the unsafe domain, so text malicious concepts can be transferred to the image modality.
    • Paper's approach: Proposes AnyBreak, which at inference time uses only clean prompts and adversarial images; also proposes AnyBreak-V, which adds a compensation term to bypass post-hoc safety checkers.
    • Threat model:
      • Goal: Induce any T2I model to generate NSFW images of any malicious concept.
      • Knowledge: fully black-box; no white-box access to the target model is assumed.
      • Capability: Input clean text prompts and adversarial images at inference time.
      • Victim systems: T2I models deployed with defenses such as prompt filters, Gaussian noise, safety checkers, or Negative Prompt.
  2. What related research exists?

    Related work is divided into two categories: T2I attacks and defenses; the authors position their method as a black-box, image-side, universal attack.

    T2I attacks

    • QF [7], SneakyPrompt [8]: Both rely on token substitution to construct attack prompts.
    • Ring [21]: Uses text encoders to embed malicious concepts into prompts.
    • MMA [6]: Introduces image-modality attacks, but still relies on malicious text prompts at inference time; the authors state that such text-driven methods are easily mitigated by prompt filters.
    • AdvI2I [22]: Proposes an adversarial image attack framework; the authors point out that it requires training a noise generator from scratch for each malicious concept, which is computationally expensive, and assumes white-box access.

    T2I defenses

    • Proactive defenses: concept erasure [2] suppresses harmful concepts by modifying noise prediction or fine-tuning the model.
    • Reactive defenses: pre-hoc filtering [3], [24] sanitizes prompts; post-hoc safety checkers [25], [26] detect and block NSFW content in generated images.
    • The authors' assessment of the current state of defenses: The authors state that existing attacks can often bypass pre-hoc filters but are usually caught by post-hoc checkers; AnyBreak-V targets this with a compensation loss.

    Baselines and benchmarks

    • Baseline methods: MMA [6], MMA-mask [6], ADVI2I [22].
    • Evaluation data: The "sexy" category of NSFW Data Scraper [35].

    The authors' positioning: The authors state that most existing work assumes white-box and focuses on text-side attacks; AnyBreak is positioned as a black-box, image-side, universal jailbreak framework.

  3. How does the paper address this problem?

    AnyBreak first transfers malicious concepts from text to images, then uses multi-scale progressive semantic alignment to optimize universal adversarial noise.

    The overall idea is AnyBreak: first use a generator to edit malicious text concepts into a target image, then perform pixel-level semantic alignment on a set of image encoders, so that the latent-space distribution of clean images is pushed toward the unsafe domain; AnyBreak-V adds a compensation term targeting the safety checker on this basis.

    Problem setting and formalization

    • LDM and inpainting: The paper takes latent diffusion models and image inpainting with mask conditioning as the background, and describes the reverse denoising process with a reverse SDE.
    • Attack goal: Given a clean image xc, a target image xt, and a malicious concept cm, the attacker optimizes a perturbation δ so that any black-box T2I model satisfies xnsfw=Fθ(xc+δ,p,M); where p is the text prompt and M is the mask.
    • Basic optimization formula: The authors first give maxδ 1/n∑i=1n Sim(fi(xc+δ), fi(xt)) subject to |δ|∞ ≤ Δ, meaning multiple image encoders are used to increase the similarity between the clean image and the target image.

    Two observations and corresponding designs

    • Observation I: The authors construct 4 image-text combinations; in Figure 4, the average distance of B, C, D to the unsafe domain Dm is below 0.3, while A is close to 0.8; the authors accordingly argue that malicious concepts in both modalities can induce NSFW generation.
    • Observation II: Table II shows that when ∆ is increased from 2/255 to 32/255, Similarity rises from 0.66 to 0.85, but ASR only goes from 46.43% to 57.19%; the authors accordingly argue that global similarity maximization alone ignores local semantic cues.
    • Design motivation: Therefore the authors design the method as cross-modal concept transfer plus position-aware multi-scale noise optimization.

    Two core components of AnyBreak

    • Malicious Concept Transfer: The attacker uses a generator (the paper gives [32] as an example) to edit the malicious concept cm into the target image xt, then aligns xc and xt in pixel space; the authors state this can transfer text malicious concepts to the image modality.
    • Theoretical statement: If the perturbation distribution pc and the target noise distribution pt satisfy KL(pc | pt) ≤ κ, the paper gives the lower bound PX∼ρ0[X∈ Tr(Mm)] ≥ (1−δ)−√(κ/2); the authors state that reducing κ increases the probability that samples fall into the neighborhood of the unsafe manifold, with the proof in the appendix.
    • Universal Adversarial Noise Optimization: In each round, local windows are independently sampled on the clean image and the target image, with window side length h=w and crop ratio r=h/H; FGSM is used to optimize the cosine similarity of local windows on the encoder set {fi}, performing K rounds of progressive alignment.

    AnyBreak-V and evaluation method

    • Compensation term: AnyBreak-V additionally selects M images containing malicious concepts, extracts embeddings {ci}, and adds −1/M∑i=1MCos(fi(xc+δ),ci) to the objective function; the authors state this can move generated images away from the malicious concept embedding space.
    • Success criterion: The main metric is ASR, i.e., the proportion of successfully generated NSFW outputs; image quality is measured with CLIP-score and LPIPS.
    • Key parameters: rc, rt ∈ [0.5, 1.0], K = 300, ∆ = 16/255, Gaussian noise standard deviation 0.05, CLIP-score computed with ViT-B/32.
  4. What experiments did the paper conduct?

    The authors evaluate on 3 T2I models, 3 defenses, and 5 malicious concept categories; AnyBreak's no-defense ASR reaches up to 85.39%.

    Experimental setup

    • Models evaluated: SD-V1.5-Inpainting (SD-1.5), SD-V2-Inpainting (SD-2), InstructPix2Pix (P2P).
    • Dataset: The "sexy" category of NSFW Data Scraper [35]; the paper does not report the sample size.
    • Defenses: Input-level Gaussian noise, post-hoc safety checker [25], Negative Prompt [1] as a concept erasure mechanism.
    • Baselines: MMA [6], MMA-mask [6], ADVI2I [22]; MMA-mask is the version with text-level sensitive keywords removed.
    • Metrics: ASR, CLIP-score (C-s), LPIPS; ASR is defined as the proportion of successful jailbreaks into NSFW outputs.
    • Parameters and review: rc, rt ∈ [0.5, 1.0], K = 300, ∆ = 16/255, Gaussian noise standard deviation 0.05, CLIP-score computed with ViT-B/32; the paper does not report the number of repetitions or human review.

    Main results

    Swipe horizontally to read the table

    ModelMethodw/o Defense ASR(%)Gaussian Noise ASR(%)Safety Checker ASR(%)Negative Prompt ASR(%)
    SD-1.5AnyBreak84.5181.252.7874.53
    SD-1.5AnyBreak-V53.5452.8446.6149.87
    SD-2AnyBreak85.3977.176.0182.17
    SD-2AnyBreak-V52.1249.7249.2948.97
    P2PAnyBreak61.7843.043.2957.11
    P2PAnyBreak-V29.4925.7029.1926.07

    According to Table III.

    • The authors' interpretation: The authors state that AnyBreak achieves the highest average black-box ASR of up to 77% without defenses, and that under Gaussian noise and Negative Prompt the average ASR drops by less than 10%.
    • Trade-off of AnyBreak-V: The authors state that AnyBreak-V weakens some malicious semantics due to the compensation loss, but under the safety checker its average ASR drops by less than 5% relative to the no-defense setting.
    • Image quality: The authors report that AnyBreak has the highest average C-s of 0.25 and the lowest average LPIPS of 0.05; in Table III, for SD-1.5 without defense, C-s is 0.26 and LPIPS is 0.0708.

    Comparison with baselines

    • Comparison on SD-1.5: Table IV shows that without defense, AnyBreak's ASR is 84.51%, higher than ADVI2I's 62.82%, MMA's 42.21%, and MMA-mask's 22.21%.
    • Under Safety Checker: AnyBreak-V's ASR is 46.61%, higher than ADVI2I's 10.27%; AnyBreak is only 2.78%.
    • Visualization: Figure 6 presents a comparison of generated images for Original, MMA, AdvI2I, and Ours; the authors state that AnyBreak more effectively induces NSFW content while maintaining visual fidelity.

    Cross-concept generalization

    • Test content: Table V reports ASR on five malicious concept categories: Adult, Bloody, Violence, Horror, Racism.
    • Result range: SD-1.5 is 71.0%–87.5%, SD-2.0 is 66.0%–86.5%; the lowest is SD-2.0's Horror at 66.0%, and the highest is SD-1.5's Racism at 87.5%.
    • The authors' interpretation: The authors state that AnyBreak can perform universal attacks across concepts.

    Other ablations and analyses

    • Module ablation: Figure 5(a) shows that removing concept transfer (Module A) causes a large drop in ASR; removing multi-scale noise optimization (Module B) also causes a notable drop.
    • Window ratio r: In Figure 5(b), the authors state that the multi-scale noise strategy is insensitive to the choice of window size.
    • Number of iterations K: In Figure 5(c), the authors state that convergence is reached with relatively few iterations, and increasing K has limited effect.
    • Perturbation budget ∆: In Figure 5(d), the authors state that ASR rises as ∆ increases, but excessively large perturbations degrade image quality.
    • Failure of global alignment: Table II shows that at ∆=32/255, Similarity is 0.85 and ASR is 57.19%; the authors use this to show that global similarity alone is insufficient for semantic alignment.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments cover 3 models, 1 data category, 3 defenses, and 5 concept categories.

    Limitations and future directions noted by the authors

    • The paper does not specifically discuss limitations.

    Scope of experiments

    • Models tested: SD-V1.5-Inpainting, SD-V2-Inpainting, InstructPix2Pix, 3 in total.
    • Data and concepts: The main experiments use the "sexy" category of NSFW Data Scraper; the cross-concept experiments cover five categories: Adult, Bloody, Violence, Horror, and Racism.
    • Defense evaluation: Includes three: Gaussian noise, Safety Checker, and Negative Prompt.
    • Attack setting: The paper states it is black-box, using only clean prompts and adversarial images at inference time; the parameters are rc, rt ∈ [0.5, 1.0], K = 300, ∆ = 16/255.
    • Unreported information: The paper does not report sample size, number of repetitions, human evaluation, or the full list of image encoders used to optimize the adversarial noise.
  6. Summarize the main content of the paper

    AnyBreak uses adversarial images to transfer textual malicious concepts to the image modality, jailbreaking 3 T2I models in a black-box setting.

    This is a T2I jailbreak attack paper, focusing on whether, in a fully black-box setting, clean prompts and adversarial images can induce arbitrary T2I models to generate NSFW images of arbitrary malicious concepts.

    • Problem: The authors state that existing text-side attacks are easily intercepted by prompt filters; Figure 2 shows that a perplexity-based filter can reduce the ASR of existing prompt-based methods to below 20%.
    • Method: AnyBreak first uses a generator to construct target images carrying malicious concepts, then performs multi-scale semantic alignment over random local windows on multiple image encoders to optimize universal adversarial noise; AnyBreak-V adds a compensation term to bypass the safety checker.
    • Main results: In Table III, without defenses on SD-1.5, AnyBreak achieves an ASR of 84.51%, on SD-2 85.39%, and on P2P 61.78%.
    • Defense performance: Under the Safety Checker, AnyBreak drops to 2.78% on SD-1.5, while AnyBreak-V is 46.61%; under Gaussian noise and Negative Prompt, the authors state that AnyBreak's average ASR drops by less than 10%.
    • Generalization and comparison: Table V shows that on five categories of malicious concepts, the ASR on SD-1.5 is 71.0%–87.5%; Table IV shows that under the SD-1.5 no-defense setting, AnyBreak is higher than MMA, MMA-mask, and ADVI2I.
    • Authors' conclusion: The authors believe that existing T2I defenses still leave a cross-modal attack surface; even with prompt filters deployed, models may still be induced by adversarial images to generate NSFW content.
Read originalarxiv.org