TL;DR
ReLAPSe introduces a reinforcement learning framework that automatically discovers adversarial prompts capable of recovering "erased" concepts (such as nudity, copyrighted objects, or artistic styles) from unlearned diffusion models. By leveraging the diffusion model's own noise prediction loss as a verifiable reward signal, it shifts the red-teaming paradigm from slow, per-instance prompt optimization to a fast, highly generalizable global policy.
What Problem Does This Paper Address?
To prevent text-to-image diffusion models from generating harmful, copyrighted, or unauthorized content, researchers use "machine unlearning" techniques to strip out specific concepts. However, recent work shows that this erasure is often superficial, leaving behind "shadow" or residual representations embedded deep within the model's weights.
Exposing these lingering concepts (a process known as adversarial red-teaming) currently faces a dilemma. Existing optimization-based attacks are computationally expensive because they require a slow, iterative search for every single prompt instance. On the flip side, heuristic or LLM-based reasoning attacks operate purely in the linguistic domain, meaning they guess prompts blindly without direct feedback from the diffusion model's internal visual space.
Methods
The authors introduce ReLAPSe (Reinforcement-Learning-trained Adversarial Prompt Search) to bridge the gap between text manipulation and latent visual representations.
The framework reformulates concept restoration as a reinforcement learning problem:
- LLM as a Stochastic Policy: A large language model (Qwen2.5-7B-Instruct) acts as the agent. It takes a benign prompt describing an erased concept and generates a sequence of adversarial tokens designed to bypass the unlearning safeguards.
- Model-Intrinsic Verifiable Reward: Instead of relying on human feedback, ReLAPSe uses the target diffusion model's own noise prediction loss. By measuring how much the LLM's prompt improves the model's ability to predict injected noise on a reference image (compared to an empty unconditional baseline), the agent receives a direct quantitative measure of visual concept recovery.
- Policy Optimization: The LLM is optimized using Group Relative Policy Optimization (GRPO), which compares the rewards of a batch of generated prompts to amplify subtle, effective prompt variations.
The paper evaluates two training setups: Single-Prompt Optimization (ReLAPSe-S), which tailors prompts to specific target images, and Multi-Prompt Optimization (ReLAPSe-M), a novel approach that trains a single global policy across an entire dataset to learn universal, transferable concept-recovery strategies.
Datasets
The authors evaluated ReLAPSe across multiple state-of-the-art unlearning frameworks (including ESD, FMN, UCE, and AdvUnlearn) using datasets adapted into chat-style instruction formats. The evaluation spanned three main concept categories:
- Nudity: Evaluating safety-alignment robustness.
- Style: Reconstructing the distinct artistic style of Vincent van Gogh.
- Objects: Restoring specific object classes including Church, Parachute, Tench (fish), and Garbage Truck.
Key Insights and Ideas
- Unlearning Alters Probability, Not Capacity: The success of ReLAPSe reinforces the idea that current unlearning methods merely suppress the expression probability of a concept under standard prompts rather than deleting the underlying generative pathways.
- Noise as a Visual Ground Truth: Using the diffusion model's internal noise prediction error acts as a highly effective closed-loop feedback mechanism. It perfectly aligns high-level textual manipulation with low-level latent visual synthesis.
- From Instance to Strategy: The shift to Multi-Prompt Optimization (ReLAPSe-M) proves that an LLM can internalize the systematic residual patterns left behind by unlearning algorithms. Once trained, the global policy can generate effective jailbreak prompts in near-real-time without needing an iterative search for new images.
Key Results
ReLAPSe demonstrated substantial improvements in Attack Success Rate (ASR) over existing per-instance adversarial methods like P4D and UnlearnDiffAtk.
- Style Restoration: On Van Gogh style reconstruction under the ESD framework, ReLAPSe-S achieved a Top-1 ASR of 44.00%, outperforming UnlearnDiffAtk (32.00%) and P4D (30.00%).
- Nudity Recovery: Against highly defended nudity-erased models, ReLAPSe-S achieved a striking 100% ASR across ESD, FMN, and SPM unlearning methods.
- Global Policy Efficiency: While slightly less potent than the instance-specific ReLAPSe-S, the global ReLAPSe-M policy successfully bypassed unlearning defenses across diverse targets instantly at inference time, proving the scalability of policy-based red-teaming.
Limitations and Future Work
The primary limitation of the global policy approach (ReLAPSe-M) is its substantial upfront training time across diverse targets. This one-time extended training phase poses scalability challenges when dealing with massive concept sets or resource-constrained environments.
For future work, the authors suggest exploring knowledge distillation or curriculum learning to mitigate this training bottleneck. They also emphasize the need to develop new, more robust unlearning methods that are inherently resilient to policy-based prompt manipulation strategies.
Summary updated