Revoking Amnesia: RL-based Trajectory Optimization to Resurrect Erased Concepts in Diffusion Models

Daiheng Gao, Nanxiang Jiang, Andi Zhang, Shilin Lu, Yufei Tang, Wenbo Zhou, Weiming Zhang, Zhaoxin Fan · OpenReview

Abstract

Concept erasure techniques have been widely deployed in T2I diffusion models to prevent inappropriate content generation for safety and copyright considerations. However, as models evolve to next-generation architectures like Flux, established erasure methods (e.g., ESD, UCE, AC) exhibit degraded effectiveness, raising questions about their true mechanisms. Through systematic analysis, we reveal that concept erasure creates only an illusion of "amnesia": rather than genuine forgetting, these methods bias sampling trajectories away from target concepts, making the erasure fundamentally reversible. This insight motivates the need to distinguish superficial safety from genuine concept removal. In this work, we propose RevAm (Revoking Amnesia), an RL-based trajectory optimization framework that resurrects erased concepts by dynamically steering the denoising process without modifying model weights. By adapting Group Relative Policy Optimization (GRPO) to diffusion models, RevAm explores diverse recovery trajectories through trajectory-level rewards, overcoming local optima that limit existing methods. Extensive experiments demonstrate that RevAm achieves superior concept resurrection fidelity while reducing computational time by 10x, exposing critical vulnerabilities in current safety mechanisms and underscoring the need for more robust erasure techniques beyond trajectory manipulation.

Introduction: The Fragility of Concept Erasure

As text-to-image (T2I) models like Stable Diffusion and Flux become more powerful, researchers have developed "concept erasure" techniques (like ESD or AC) to prevent the generation of NSFW content, copyrighted styles, or specific identities. These methods typically edit model weights to suppress certain outputs. However, a critical technical flaw exists: these methods don't actually delete the knowledge. Instead, they merely "bias" the model's sampling path—the trajectory from noise to image—away from the target concept.

Conceptual overview of trajectory-based erasure (a) and the RevAm RL-based resurrection framework (b).

On newer architectures like Flux, these safety filters are surprisingly fragile. Existing ways to bypass these filters—like "adversarial prompting"—are often slow, requiring tens of minutes of optimization per image, and frequently fail to produce high-quality results.

RevAm: Steering Back to the Latent Truth

We propose RevAm (Revoking Amnesia), which treats concept recovery as a sequential decision-making problem. Instead of trying to find a "magic" text prompt, RevAm intervenes directly in the velocity field (the mathematical direction the model takes to turn noise into an image) during the denoising process.

Technical Framework

  • Score-and-Steer Controller: A lightweight policy network ($\pi_\theta$) that observes intermediate image previews and adaptively adjusts the direction and magnitude of the denoising trajectory.
  • GRPO (Group Relative Policy Optimization): Borrowing a technique recently popularized in LLM training (e.g., DeepSeek), the authors adapt GRPO for diffusion models. At each step, the controller proposes several diverse steering candidates. It then uses "group-relative" rewards to favor the best-performing actions without needing a complex "critic" model.
  • Geometric Trajectory Manipulation: The method uses a 2D subspace spanned by the current velocity and a reference direction (classifier-free guidance) to rotate and scale the velocity vector, effectively "nudging" the model back into the regions of latent space it was told to avoid.

Experimental Results

The authors evaluated RevAm across a wide range of concepts using benchmarks such as I2P (nudity and violence), ConceptPrune (artistic styles), and custom celebrity sets.

Visual comparison between the resurrected concept (left) and the erased output (right).

Key Findings

  • Efficiency: RevAm is significantly faster than the previous state-of-the-art (UnlearnDiffAtk), reducing computation time from over 30 minutes to just 2.4 minutes per attack—a 10x speedup.
  • Effectiveness: On the Flux.1 [dev] model, RevAm achieved near 100% Attack Success Rate (ASR) for nudity and violence, even against advanced erasure methods like EA and EAP where other attacks struggled.
  • Fidelity: Qualitatively, the "resurrected" images maintain high visual quality and strong adherence to the original "erased" style or concept, proving that the underlying model's generative capacity was never truly damaged.

Conclusion: Beyond Trajectory Suppression

The most profound insight of this work is that current erasure methods create a "steer-rather-than-delete" effect. The knowledge remains latent; the model is just trained to walk around it. Manipulating the initial prompt is like trying to steer a car by shouting at the driver from the sidewalk; RevAm is like grabbing the steering wheel during the drive.

Because amnesia is a "reversible illusion," the community needs to move beyond trajectory-based suppression and find ways to achieve genuine knowledge elimination if they want truly robust safety mechanisms. Future work will involve expanding validation across a broader variety of model architectures and addressing dependencies on reward model accuracy.

Summary updated

BibTeX
@misc{gao2025revoking,
  author = {Daiheng Gao and Nanxiang Jiang and Andi Zhang and Shilin Lu and Yufei Tang and Wenbo Zhou and Weiming Zhang and Zhaoxin Fan},
  title = {{Revoking Amnesia: RL-based Trajectory Optimization to Resurrect Erased Concepts in Diffusion Models}},
  year = {2025},
  eprint = {2510.03302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.03302},
}
Figure