The Illusion of Forgetting: Attack Unlearned Diffusion via Initial Latent Variable Optimization
Manyi Li, Yufan Liu, Lai Jiang, Bing Li, Yuming Li, Weiming Hu
TL;DR
The Illusion of Forgetting shows that diffusion-model unlearning rarely erases NSFW concepts, which persist as dormant memories and whose residual mappings correlate with a distributional gap in denoising trajectories. The authors introduce IVO, a three-stage latent-space attack that starts from DDIM-inverted NSFW images, then optimizes initial latent variables via a dual-loss objective to realign the noise distributions of unlearned and standard DMs, and finally reuses successful latents from a latent pool to accelerate attacks. Across eight unlearning methods and multiple datasets, IVO achieves high attack success rates and maintains semantic fidelity, outperforming prompt-based and other latent-space attacks and revealing fundamental weaknesses in current defenses. The work highlights the need for stronger, weight-level or verifiable unsafe-content elimination and provides a practical red-teaming framework that can extend to broader attack scenarios and defenses in diffusion models.
Abstract
Although unlearning-based defenses claim to purge Not-Safe-For-Work (NSFW) concepts from diffusion models (DMs), we reveals that this "forgetting" is largely an illusion. Unlearning partially disrupts the mapping between linguistic symbols and the underlying knowledge, which remains intact as dormant memories. We find that the distributional discrepancy in the denoising process serves as a measurable indicator of how much of the mapping is retained, also reflecting the strength of unlearning. Inspired by this, we propose IVO (Initial Latent Variable Optimization), a concise and powerful attack framework that reactivates these dormant memories by reconstructing the broken mappings. Through Image Inversion}, Adversarial Optimization and Reused Attack, IVO optimizes initial latent variables to realign the noise distribution of unlearned models with their original unsafe states. Extensive experiments across 8 widely used unlearning techniques demonstrate that IVO achieves superior attack success rates and strong semantic consistency, exposing fundamental flaws in current defenses. The code is available at anonymous.4open.science/r/IVO/. Warning: This paper has unsafe images that may offend some readers.
