JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization

Hao Zheng, Yu He, Tai-Lun Chen, Shuo Shao, Zhi-Xuan Chu +4 more
3/1/2026
diffusion-flow

No confident code implementation found for this paper.

Abstract

Text-to-image (T2I) models such as Stable Diffusion and DALLE remain susceptible to generating harmful or Not-Safe-For-Work (NSFW) content under jailbreak attacks despite deployed safety filters. Existing jailbreak attacks either rely on proxy-loss optimization instead of the true end-to-end objective, or depend on large-scale and costly RL-trained generators.

Show full abstract

Motivated by these limitations, we propose JANUS , a lightweight framework that formulates jailbreak as optimizing a structured prompt distribution under a black-box, end-to-end reward from the T2I system and its safety filters. JANUS replaces a high-capacity generator with a low-dimensional mixing policy over two semantically anchored prompt distributions, enabling efficient exploration while preserving the target semantics. On modern T2I models, we outperform state-of-the-art jailbreak methods, improving ASR-8 from 25.30% to 43.15% on Stable Diffusion 3.5 Large Turbo with consistently higher CLIP and NSFW scores. JANUS succeeds across both open-source and commercial models. These findings expose structural weaknesses in current T2I safety pipelines and motivate stronger, distribution-aware defenses. Warning: This paper contains model outputs that may be offensive.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zheng2026janus,
  title  = {JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization},
  author = {Hao Zheng and Yu He and Tai-Lun Chen and Shuo Shao and Zhi-Xuan Chu and Hong-Bin Zhou and Lan Tao and Zhan Qin and Kui Ren},
  year   = {2026},
  eprint = {2603.21208},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2603.21208},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.21208.svg)](https://codeofpaper.com/paper/2603.21208)

Discussion