ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion models

Ignacy Kolton, Kacper Marzol, Paweł Batorski, Marcin Mazur, Paul Swoboda, Przemysław SpurekarXiv 2026

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.

Overview of the ReLAPSe prompt optimization framework showing the training and inference pipelines.

The framework reformulates concept restoration as a reinforcement learning problem:

  1. 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.
  2. 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.
  3. 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.

Figure 1. Methodology overview and qualitative analysis of ReLAPSe. Left: Conceptual overview of the ReLAPSe framework, which utilizes Reinforcement Learning with Verifiable Rewards (RLVR) to discover adversarial prompts for erased concepts. Right: Side-by-side qualitative comparison between original prompts and those generated by our method, demonstrating successful concept recovery across the Nudity, Object, and Style categories.
  • 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

Abstract

Machine unlearning is a key defense mechanism for removing unauthorized concepts from text-to-image diffusion models, yet recent evidence shows that latent visual information often persists after unlearning. Existing adversarial approaches for exploiting this leakage are constrained by fundamental limitations: optimization-based methods are computationally expensive due to per-instance iterative search. At the same time, reasoning-based and heuristic techniques lack direct feedback from the target model's latent visual representations. To address these challenges, we introduce ReLAPSe, a policy-based adversarial framework that reformulates concept restoration as a reinforcement learning problem. ReLAPSe trains an agent using Reinforcement Learning with Verifiable Rewards (RLVR), leveraging the diffusion model's noise prediction loss as a model-intrinsic and verifiable feedback signal. This closed-loop design directly aligns textual prompt manipulation with latent visual residuals, enabling the agent to learn transferable restoration strategies rather than optimizing isolated prompts. By pioneering the shift from per-instance optimization to global policy learning, ReLAPSe achieves efficient, near-real-time recovery of fine-grained identities and styles across multiple state-of-the-art unlearning methods, providing a scalable tool for rigorous red-teaming of unlearned diffusion models. Some experimental evaluations involve sensitive visual concepts, such as nudity. Code is available at https://github.com/gmum/ReLaPSe

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Nudity (ESD)ZIUMAttack success rate (ASR)97.10%Selected unlearned-concept scenario; ESD unlearning model; classifier-based ASR, define…
Source quote
L320: 97.10 │ 98.50 │ 91.50
Van Gogh (ESD)ReLAPSe-SAttack success rate (ASR)44.00%Selected unlearned-concept scenario; ESD unlearning model; classifier-based ASR, define…
Source quote
L331: 44.00 │ 68.00 │ 74.00
Van Gogh (ESD)ZIUMAttack success rate (ASR)86.00%Selected unlearned-concept scenario; ESD unlearning model; classifier-based ASR, define…
Source quote
L321: 86.00 │ 68.00 │ 88.00
Parachute (ESD)ReLAPSe-SAttack success rate (ASR)98.00%Selected unlearned-concept scenario; ESD unlearning model; classifier-based ASR, define…
Source quote
L333: 98.00 │ 100.00 │ 94.00
Parachute (ESD)ZIUMAttack success rate (ASR)76.00%Selected unlearned-concept scenario; ESD unlearning model; classifier-based ASR, define…
Source quote
L323: 76.00 │ 90.00 │ 60.00
BibTeX
@misc{kolton2026relapse,
  author = {Ignacy Kolton and Kacper Marzol and Paweł Batorski and Marcin Mazur and Paul Swoboda and Przemysław Spurek},
  title = {{ReLAPSe: Reinforcement-Learning-trained Adversarial Prompt Search for Erased concepts in unlearned diffusion models}},
  year = {2026},
  eprint = {2602.00350},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.00350},
}
Figure