[Paper Review] Groot: Adversarial Testing for Generative Text-to-Image Models with Tree-based Semantic Transformation
Groot is the first automated adversarial testing framework for text-to-image models that uses tree-based semantic transformation to generate high-success-rate jailbreak prompts. By combining semantic decomposition and irrelevant element drowning with LLM-guided refinement, Groot achieves a 93.66% success rate in bypassing safety filters on DALL·E 3, Midjourney, and Stable Diffusion, significantly outperforming prior methods.
With the prevalence of text-to-image generative models, their safety becomes a critical concern. adversarial testing techniques have been developed to probe whether such models can be prompted to produce Not-Safe-For-Work (NSFW) content. However, existing solutions face several challenges, including low success rate and inefficiency. We introduce Groot, the first automated framework leveraging tree-based semantic transformation for adversarial testing of text-to-image models. Groot employs semantic decomposition and sensitive element drowning strategies in conjunction with LLMs to systematically refine adversarial prompts. Our comprehensive evaluation confirms the efficacy of Groot, which not only exceeds the performance of current state-of-the-art approaches but also achieves a remarkable success rate (93.66%) on leading text-to-image models such as DALL-E 3 and Midjourney.
Motivation & Objective
- To address the critical need for automated, scalable, and effective evaluation of text-to-image model safety against adversarial prompts.
- To overcome the limitations of existing methods, including low success rates, inefficiency, and lack of semantic fidelity in generated jailbreak prompts.
- To develop a systematic, reusable framework that enables developers and researchers to test and improve model robustness against NSFW content generation.
- To provide open access to code and datasets to support reproducibility and further research in AI safety.
Proposed method
- Groot employs a Prompt Parse Tree (PPT) to recursively decompose prompts into semantic components, enabling targeted manipulation of sensitive keywords.
- It applies semantic decomposition to isolate and transform sensitive elements, reducing detection by text-based safety filters.
- It uses irrelevant element drowning to overload image-based safety filters by embedding non-sensitive content that masks the true intent.
- Large Language Models (LLMs) guide the refinement process to preserve semantic intent while maximizing adversarial effectiveness.
- A hybrid algorithm integrates LLMs and rule-based strategies to automate prompt generation and improve efficiency.
- The framework combines both strategies in a unified pipeline to maximize bypass success while maintaining prompt coherence.

Experimental results
Research questions
- RQ1Can tree-based semantic transformation effectively generate adversarial prompts that bypass both text and image safety filters in text-to-image models?
- RQ2How does the combination of semantic decomposition and irrelevant element drowning compare to individual strategies in terms of success rate and robustness?
- RQ3To what extent can LLM-guided refinement maintain semantic fidelity while achieving high jailbreak success?
- RQ4How does Groot’s performance compare to state-of-the-art adversarial testing methods across diverse commercial and open-source models?
Key findings
- Groot achieves a 93.66% success rate in generating NSFW content across DALL·E 3, Midjourney, and Stable Diffusion, significantly outperforming the next-best method (25.45%).
- The ablation study confirms that combining semantic decomposition and irrelevant element drowning yields superior performance compared to using either strategy in isolation.
- Semantic decomposition alone achieves 88.15% success, while irrelevant element drowning alone reaches 74.66%, demonstrating the value of their synergy.
- Groot’s success is robust across diverse prohibited scenarios, indicating broad applicability to real-world safety threats.
- The framework reduces query cost and improves efficiency by structuring prompt refinement through a Prompt Parse Tree (PPT).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.