Abstract
Modern text-to-image (T2I) generation systems (e.g., DALL·E 3) exploit the memory mechanism, which captures key information in multi-turn interactions for faithful generation. Despite its practicality, the security analyses of this mechanism have fallen far behind. In this paper, we reveal that it can exacerbate the risk of jailbreak attacks. Previous attacks fuse the unsafe target prompt into one ultimate adversarial prompt, which can be easily detected or lead to the generation of non-unsafe images due to under- or over-detoxification. In contrast, we propose embedding the malice at the inception of the chat session in memory, addressing the above limitations. Specifically, we propose Inception, the first multi-turn jailbreak attack against real-world text-to-image generation systems that explicitly exploits their memory mechanisms. Inception is composed of two key modules: segmentation and recursion. We introduce Segmentation, a semantic-preserving method that generates multi-round prompts. By leveraging NLP analysis techniques, we design policies to decompose a prompt, together with its malicious intent, according to sentence structure, thereby evading safety filters. Recursion further addresses the challenge posed by unsafe sub-prompts that cannot be separated through simple segmentation. It firstly expands the sub-prompt, then invokes segmentation recursively. To facilitate multi-turn adversarial prompts crafting, we build VisionFlow, an emulation T2I system that integrates two-stage safety filters and industrial-grade memory mechanisms. The experiment results show that Inception successfully allures unsafe image generation, surpassing the SOTA by a 20.0% margin in attack success rate. We also conduct experiments on the real-world commercial T2I generation platforms, further validating the threats of Inception in practice.
Introduction: The Vulnerability of Memory
Most existing "jailbreak" attacks on AI models are single-turn: the attacker tries to craft one perfect, complex prompt that tricks the model into generating something unsafe (like violence or nudity). However, these single-turn prompts often fail because they are either easily caught by filters or "over-detoxified," resulting in safe but low-quality images that lose the original intent.
Modern T2I systems like DALL-E 3 use "memory" to track conversation history, but this paper reveals that memory is a major security vulnerability. The authors identify a gap in security research: multi-turn interactions. While memory makes the AI more helpful, it also allows an attacker to distribute "malice" across several turns. The challenge is doing this automatically while ensuring the final image actually matches the intended (prohibited) concept.
The Inception Attack Framework
The authors developed a framework called Inception, which uses two core modules to bypass safety filters by breaking a single malicious prompt into multiple "benign" sub-prompts that combine in the system's memory to generate prohibited content.
- Semantic-preserving Segmentation: Instead of splitting a prompt randomly, Inception uses Natural Language Processing (NLP) techniques (like Part-of-Speech tagging and dependency trees) to break a malicious prompt into grammatically logical chunks. For example, "A nude man riding a bike" might be split into "A man is riding a bike" and "A man wears no clothes."
- Self-correcting Recursion: If a specific sub-prompt is blocked by a safety filter, Inception doesn't stop. It uses an LLM to rephrase the blocked chunk into a more "innocent-looking" expansion and then segments that expansion again. This process repeats until every piece passes the filters.
To test this, they built VisionFlow, a simulated T2I environment that emulates industrial-grade memory mechanisms (like Buffer Memory and Vector-Store-Retriever Memory) and integrates multiple layers of safety filters.
Key Insights and Results
- The Latent Space Loophole: Safety filters typically inspect the current text input. However, the image generation model looks at the aggregated memory. By the time the "malice" is reconstructed in the model's internal representation, it has already bypassed the text-based gatekeepers.
- Superior Success Rates: On the VBCDE dataset (100 sensitive prompts), Inception achieved an Attack Success Rate (ASR) of 32.3%, outperforming the previous state-of-the-art (SneakyPrompt) by a massive 20% margin.
- Real-World Impact: The researchers tested Inception against commercial systems with unknown, proprietary filters. It successfully jailbroken DALL-E 3 (via ChatGPT) with a 48.0% ASR, Imagen (via Gemini) at 52.3%, and Aurora (via Grok) at 56.7%.
Conclusion and Future Work
The authors acknowledge that while Inception is powerful, it isn't perfect. They tested a "Perplexity-based Detection" defense but found it caused too many "false alarms" for legitimate users. They propose a "Memory Scanner" that checks the entire history before generation, which reduced the attack success rate but added significant computational overhead. The paper highlights an urgent need for "context-aware" safety filters that can understand the cumulative intent of a conversation rather than just judging individual messages in isolation.
Summary updated