When Memory Becomes a Vulnerability: Towards Multi-turn Jailbreak Attacks against Text-to-Image Generation Systems

Shiqian Zhao, Jiayang Liu, Yiming Li, Runyi Hu, Xiaojun Jia, Wenshu Fan, Xiaobao Wu, Xinfeng Li, Jie Zhang, Wei Dong, Tianwei Zhang, Anh Tuan Luu

TL;DR

This paper introduces "Inception," the first multi-turn jailbreak attack specifically designed for text-to-image (T2I) generation systems that utilize memory mechanisms. By strategically segmenting and recursively refining unsafe prompts across multiple turns, Inception effectively bypasses safety filters and induces the generation of prohibited content, outperforming existing methods by a significant margin.

What Problem Does This Paper Address?

Modern T2I systems like DALL-E 3 are increasingly incorporating "memory mechanisms" to better understand user intent in multi-turn conversations, allowing for iterative refinement of image generation. While this enhances user experience, it also introduces a new security vulnerability. Previous jailbreak attacks typically create a single, adversarial prompt that can be easily detected by safety filters or lead to "under- or over-detoxification" (where filters still catch it, or it fails to generate the intended unsafe content). This paper addresses the gap in understanding how these memory mechanisms can be exploited for jailbreaking T2I systems, particularly in real-world, black-box scenarios where direct access to model internals is limited.

Methods

The core of Inception lies in its two key modules:

  • Semantic-preserving Segmentation: This module leverages Natural Language Processing (NLP) techniques to analyze the structure of an unsafe prompt. It breaks down the prompt into smaller, semantically meaningful segments (phrases) based on sentence structure, aiming to make each individual segment appear benign to safety filters. This is a departure from previous methods that might rely on simpler word-level substitutions or random segmentation.
  • Self-correcting Recursion: When a segmented sub-prompt is still flagged as unsafe and cannot be further decomposed by simple segmentation, the recursion module comes into play. It expands the unsafe sub-prompt and then recursively applies the segmentation process to these expanded parts. This iterative refinement allows Inception to gradually break down even highly problematic intents into a series of seemingly harmless queries, ultimately reconstructing the malicious intent across multiple turns.

To facilitate testing and development, the authors also built VisionFlow, a simulated T2I system that integrates industrial-grade memory mechanisms and two-stage safety filters, mimicking real-world T2I services.

Datasets

The paper utilizes two commonly adopted unsafe prompt datasets for evaluation:

  • VBCDE: Contains 100 sensitive prompts across five categories: violence, gore, illegal activities, discrimination, and pornographic content.
  • UnsafeDiff: Includes 30 unsafe prompts across five categories: harassment, illegal activity, self-harm, sexual content, and violence.

Additionally, they conducted an evaluation on the larger I2P dataset (4.7k unsafe prompts) for further validation.

Key Insights and Ideas

  • Memory is a Double-Edged Sword: The very feature designed to improve T2I systems' understanding of user intent (memory mechanisms) is precisely what Inception exploits to bypass safety.
  • Multi-turn is the Key: By distributing malicious intent across multiple turns, Inception circumvents single-turn safety filters that primarily inspect each prompt in isolation.
  • Semantic Preservation is Crucial: Simply breaking down prompts isn't enough; Inception's semantic-preserving segmentation ensures that the original malicious intent is not lost, leading to successful generation of unsafe content.
  • Recursion for Stubborn Unsafe Prompts: The recursive expansion and re-segmentation are vital for handling minimal but highly unsafe sub-prompts that simple segmentation cannot address.
  • Real-world Systems are Vulnerable: The attack demonstrates significant success not only on simulated systems but also on commercial platforms like DALL-E 3 and Imagen.

Key Results

  • Surpassing SOTA: Inception achieved an attack success rate (ASR) of 32.3% on the VBCDE dataset, a 20.0% improvement over the previous best-performing method (SneakyPrompt at 12.3%).
  • High Transferability: The attack demonstrated strong performance on commercial T2I platforms like DALL-E 3, Imagen, and Aurora, with ASRs consistently around 50%.
  • Robustness to Defenses: Even with dedicated defenses like Memory Scanners and Enhanced Output Moderators, Inception maintained significant effectiveness, highlighting the difficulty of defending against this multi-turn approach.
  • Efficiency: Inception required fewer queries compared to some baselines, indicating an efficient attack strategy.
  • Cross-lingual Effectiveness: The attack was shown to be effective in French and German, suggesting its applicability beyond English-only settings.

Limitations and Future Work

  • Query Budget: A limited query budget can hinder Inception's ability to sufficiently decompose malicious prompts, leading to attack failures.
  • Semantic Distortion: In some cases, extensive decomposition and summarization across many turns can lead to semantic drift, weakening the original intent.
  • Perplexity-based Detection: While proposed as a defense, using perplexity to detect dispersed malicious intent can lead to significant false positives, impacting benign user experience.
  • Future Work: The authors suggest further research into more robust defense strategies, including advanced memory scanning and enhanced output moderation, to counter multi-turn jailbreak attacks. They also highlight the need for continued investigation into the security of real-world T2I systems.

Summary updated

BibTeX
@inproceedings{zhao2026when,
  author = {Shiqian Zhao and Jiayang Liu and Yiming Li and Runyi Hu and Xiaojun Jia and Wenshu Fan and Xiaobao Wu and Xinfeng Li and Jie Zhang and Wei Dong and Tianwei Zhang and Anh Tuan Luu},
  title = {{When Memory Becomes a Vulnerability: Towards Multi-turn Jailbreak Attacks against Text-to-Image Generation Systems}},
  booktitle = {USENIX Security},
  year = {2026},
  url = {https://openreview.net/forum?id=PhL3EjLzh7},
}
Figure