HTS-Attack: Heuristic Token Search for Jailbreaking Text-to-Image Models
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Text-to-Image(T2I) models have achieved remarkable success in image generation and editing, yet these models still have many potential issues, particularly in generating inappropriate or Not-Safe-For-Work(NSFW) content. Strengthening attacks and uncovering such vulnerabilities can advance the development of reliable and practical T2I models. Most of the previous works treat T2I models as white-box systems, using gradient optimization to generate adversarial prompts. However, accessing the model's gradient is often impossible in real-world scenarios. Moreover, existing defense methods, those using gradient masking, are designed to prevent attackers from obtaining accurate gradient information. While several black-box jailbreak attacks have been explored, they achieve the limited performance of jailbreaking T2I models due to difficulties associated with optimization in discrete spaces. To address this, we propose HTS-Attack, a heuristic token search attack method. HTS-Attack begins with an initialization that removes sensitive tokens, followed by a heuristic search where high-performing candidates are recombined and mutated. This process generates a new pool of candidates, and the optimal adversarial prompt is updated based on their effectiveness. By incorporating both optimal and suboptimal candidates, HTS-Attack avoids local optima and improves robustness in bypassing defenses. Extensive experiments validate the effectiveness of our method in attacking the latest prompt checkers, post-hoc image checkers, securely trained T2I models, and online commercial models.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. First posted on arXiv 25 Aug 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2024: 2; 2025: 8; 2026: 4.
14 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Surveycited by 31
- 2025Towards Understanding the Safety Boundaries of DeepSeek Models: Evaluation and Findingscited by 24
- 2025Token-Level Constraint Boundary Search for Jailbreaking Text-to-Image Modelscited by 9
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
- 2024Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewritingcited by 1
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Messagecited by 1
- 2025GIFT: Gradient-aware Immunization of diffusion models against malicious Fine-Tuning with safe concepts retentioncited by 0
- 2025CAHS-Attack: CLIP-Aware Heuristic Search Attack Method for Stable Diffusioncited by 0
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion modelscited by 0
- 2026PixJail: Self-Evolving Paper-to-Pipeline Reproduction for Text-to-Image Jailbreak Evaluationcited by 0
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Models28 Sep 2026
- 2026Concept Score Relearning: A Unified Cross-Architecture Attack on Concept Erasure27 Sep 2026
- 2026PixJail: Self-Evolving Paper-to-Pipeline Reproduction for Text-to-Image Jailbreak Evaluation23 Jun 2026
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion models30 Jan 2026
- 2025CAHS-Attack: CLIP-Aware Heuristic Search Attack Method for Stable Diffusion26 Nov 2025
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Models25 Sep 2025
- 2025GIFT: Gradient-aware Immunization of diffusion models against malicious Fine-Tuning with safe concepts retention18 Jul 2025
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Message7 Jul 2025
- 2025Token-Level Constraint Boundary Search for Jailbreaking Text-to-Image Models15 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Towards Understanding the Safety Boundaries of DeepSeek Models: Evaluation and Findings19 Mar 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Surveycited by 31
- 2025Token-Level Constraint Boundary Search for Jailbreaking Text-to-Image Modelscited by 9
- 2024Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewritingcited by 1
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Messagecited by 1
- 2026PixJail: Self-Evolving Paper-to-Pipeline Reproduction for Text-to-Image Jailbreak Evaluationcited by 0
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Modelscited by 0
- 2026RISE: Red-teaming via Iterative Strategy Evolution for Modern Text-to-Image Models28 Sep 2026
- 2026PixJail: Self-Evolving Paper-to-Pipeline Reproduction for Text-to-Image Jailbreak Evaluation23 Jun 2026
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Message7 Jul 2025
- 2025Token-Level Constraint Boundary Search for Jailbreaking Text-to-Image Models15 Apr 2025
- 2024Red-Teaming Text-to-Image Models via In-Context Experience Replay and Semantic-Preserving Prompt Rewriting25 Nov 2024
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Survey14 Nov 2024
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
- 2025GIFT: Gradient-aware Immunization of diffusion models against malicious Fine-Tuning with safe concepts retentioncited by 0
- 2025CAHS-Attack: CLIP-Aware Heuristic Search Attack Method for Stable Diffusioncited by 0
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion modelscited by 0
- 2026Concept Score Relearning: A Unified Cross-Architecture Attack on Concept Erasurecited by 0
- 2026Concept Score Relearning: A Unified Cross-Architecture Attack on Concept Erasure27 Sep 2026
- 2026ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion models30 Jan 2026
- 2025CAHS-Attack: CLIP-Aware Heuristic Search Attack Method for Stable Diffusion26 Nov 2025
- 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Models25 Sep 2025
- 2025GIFT: Gradient-aware Immunization of diffusion models against malicious Fine-Tuning with safe concepts retention18 Jul 2025