Abstract
Recent advancements have significantly improved automated task-solving capabilities using autonomous agents powered by large language models (LLMs). However, most LLM-based agents focus on dialogue, programming, or specialized domains, leaving their potential for addressing generative AI safety tasks largely unexplored. In this paper, we propose Atlas, an advanced LLM-based multi-agent framework targeting generative AI models, specifically focusing on jailbreak attacks against text-to-image (T2I) models with built-in safety filters. Atlas consists of two agents, namely the mutation agent and the selection agent, each comprising four key modules: a vision-language model (VLM) or LLM brain, planning, memory, and tool usage. The mutation agent uses its VLM brain to determine whether a prompt triggers the T2I model's safety filter. It then collaborates iteratively with the LLM brain of the selection agent to generate new candidate jailbreak prompts with the highest potential to bypass the filter. In addition to multi-agent communication, we leverage in-context learning (ICL) memory mechanisms and the chain-of-thought (COT) approach to learn from past successes and failures, thereby enhancing Atlas's performance. Our evaluation demonstrates that Atlas successfully jailbreaks several state-of-the-art T2I models equipped with multi-modal safety filters in a black-box setting. Additionally, Atlas outperforms existing methods in both query efficiency and the quality of generated images.
Introduction
Text-to-image (T2I) models like Stable Diffusion and DALL·E 3 have revolutionized content creation but come with significant safety risks. To mitigate these, developers implement safety filters to block the generation of "Not Safe For Work" (NSFW) content, such as violence or nudity. However, these filters are often vulnerable to "jailbreak" attacks—carefully crafted prompts designed to bypass safety mechanisms while maintaining the original semantic intent.
Existing jailbreak methods often require white-box access to model weights, produce unnatural "token-salad" prompts that are easily detected, or are highly inefficient. This paper introduces Atlas, an automated framework that applies multi-agent LLM orchestration to efficiently discover fluent jailbreak prompts in a black-box setting.
The Atlas Framework
Atlas adapts traditional fuzz-testing principles into a multi-agent architecture. By forcing the system to generate natural language prompts, it avoids simple perplexity-based defenses while maintaining high semantic quality. The system consists of three primary elements: a Seed Pool of sensitive prompts, a Mutation Agent, and an Oracle Agent.
Core Components
- Mutation Agent ($A_m$): Powered by a Vision-Language Model (VLM), this agent analyzes generated images to verify if a bypass occurred. It uses In-Context Learning (ICL) and a "Reflection" mechanism to evolve prompts based on past successes and failures.
- Oracle Agent ($A_s$): An LLM-based agent that acts as a proxy safety filter. It pre-screens candidate prompts before they are sent to the actual T2I model, significantly reducing the number of expensive API queries.
Methods and Attack Flow
Atlas employs a Multi-Loop Attack Flow. If a prompt fails to bypass the filter in an initial attempt, it is moved to a "failed" pool. In subsequent iterations, the agents leverage accumulated experience stored in an ICL-based memory to apply more sophisticated mutation strategies. This reflection process allows the Mutation Agent to identify specific linguistic factors that contribute to a successful bypass, such as using descriptive metaphors instead of restricted keywords.
Experimental Results
The researchers evaluated Atlas against Stable Diffusion (v1.4, XL, and 3) and DALL·E 3 using the NSFW-200 dataset.
- High Success Rates: Atlas achieved a 100% bypass rate against most safety filters on Stable Diffusion models.
- Bypassing DALL·E 3: Against the highly guarded, closed-box DALL·E 3, Atlas achieved an approximately 80% bypass rate.
- Query Efficiency: The framework is remarkably efficient, requiring an average of only 4.6 queries to find a successful jailbreak, significantly outperforming previous baselines like Sneakyprompt.
- Semantic Integrity: Evaluation using FID and CLIP scores confirmed that the generated images remained faithful to the original "unsafe" intent, ensuring the jailbreak was semantically meaningful rather than just random noise.
Conclusion
Atlas demonstrates the potent capability of LLM-based agents to uncover vulnerabilities in generative AI safety systems. By combining VLM-based verification with iterative reflection and proxy-based screening, Atlas achieves high bypass rates with unprecedented efficiency. These findings underscore the need for more robust defense strategies, such as concept unlearning, to secure the next generation of T2I models.
Summary updated