DSSA: Dynamic Sparse Semantic Anchoring for Purifying Protective Perturbations against Diffusion Models

Weiwei Tan, Rui Wang, Lihua Jing, Yanjun Zhang, Runbo Li, Zhishen Wang, Leo Yu ZhangNeurIPS 2026

TL;DR

Artists and everyday users increasingly rely on invisible "protective perturbations"—tiny adversarial pixel tweaks—to stop AI diffusion models from mimicking their style or face. Standard methods to strip away these protections get stuck in a frustrating trap: add too little noise and the protection survives; add too much and the image's actual content gets warped. This paper introduces DSSA, a framework that starts from pure static and uses sparse, high-contrast structural cues to rebuild the clean image from scratch—exposing a major blind spot in current AI copyright shields.

What Problem Does This Paper Address?

With personalization tools like DreamBooth or InstantID, anyone can feed Stable Diffusion a handful of photos and generate convincing deepfakes or art forgeries. To fight back, researchers developed "protective perturbations" (like Glaze, Mist, and PhotoGuard) that inject imperceptible adversarial patterns into images, poisoning the AI's learning process so it outputs garbled nonsense.

Naturally, an arms race ensued. Can a motivated actor "purify" a protected image before feeding it to the AI? Current purification tools (like DiffPure) use a noising-and-denoising approach: add a splash of Gaussian noise to drown out the adversarial pattern, then let a diffusion model clean it up.

Existing methods face a trade-off between removing perturbations and preserving the original image, while DSSA achieves both.

Here is the catch: protective perturbations aren't just high-frequency static; they hide in mid- and low-frequency bands too. If you add just a little noise, the low-frequency poison survives. If you crank up the noise to nuke the poison, you also obliterate the core layout of the image, forcing the diffusion model to hallucinate someone else's face entirely.

Methods

Instead of guessing how much noise to add to an existing image, Dynamic Sparse Semantic Anchoring (DSSA) throws out the conventional playbook and starts the reverse diffusion process from 100% pure Gaussian noise.

Of course, starting from pure noise normally generates a completely random image. To steer the generation back toward the original picture without re-importing the poison, DSSA introduces three clever tricks:

  • Dynamic Spectral Scheduling: Diffusion models naturally build broad, low-frequency shapes early on and fill in sharp, high-frequency details later. DSSA matches this rhythm. At each step, it blends its generated image with sparse pixels sampled from a noisy version of the protected image. Early on, it samples pixels uniformly at random to lock in the global layout. Later on, it shifts to sampling strictly along sharp edges.
  • CDF Gradient Filtering: How do you grab real edges late in the game without grabbing high-frequency adversarial noise? Because adversarial budgets are strictly capped (e.g., $\epsilon = 16/255$), their local pixel contrasts (gradients) have a hard ceiling, whereas natural edges have huge, unbounded contrast. DSSA maps pixel gradients onto a Cumulative Distribution Function (CDF) and applies an exponential decay factor to crush mid-to-low gradients—filtering out the poison while anchoring genuine facial contours and brushstrokes.
  • Perception-Guided Early Stopping: Near the very end of denoising, the background noise drops so low that the diffusion model accidentally starts reconstructing the adversarial patterns from those sparse pixel anchors—a "perturbation resurgence." DSSA monitors the image using MUSIQ (a reference-free image quality metric). The moment visual quality peaks and begins to dip, DSSA hits the brakes and outputs the clean image.
Figure 2: (a) Cosine similarity of low-frequency (LF) and high-frequency (HF) components across diffusion timesteps. (b) Density distributions of gradient magnitudes for clean and adversarial images.

Datasets

The authors evaluate DSSA across two primary domains without introducing new datasets:

  • VGGFace2: 20 human face identities used to test portrait and identity mimicry.
  • WikiArt: Collections from 10 artists used to test artistic style mimicry.

Key Insights and Ideas

  • A Surprising Cross-Domain Alignment: In Latent Diffusion Models, adversarial protections work by warping features inside the model's VAE latent space. In the real world, a purifier doesn't have the original clean image to check if the latent space is fixed. Remarkably, the authors discovered that the peak of an unsupervised pixel-space quality score (MUSIQ) aligns almost identically with the minimum distance to the clean image in the latent space. Looking natural to a quality metric practically equates to being detoxified under the hood.
  • Breaking Adaptive Defenses: Newer "anti-purification" shields (like StyleGuard and AntiPure) are explicitly engineered to survive shallow noising-and-denoising cycles. Because DSSA rebuilds from pure noise and samples globally rather than in local patches, it sidesteps their assumptions completely.

Key Results

Tested against five mainstream protections (AdvDM, PhotoGuard, Mist, PID, AIF) and two adaptive defenses across DreamBooth, IP-Adapter, and InstantID, DSSA consistently outperforms baselines (DiffPure, GrIDPure, Noisy Upscaling, IMPRESS):

  • High-Budget Purification ($\epsilon = 16/255$): Under heavy AdvDM protection on VGGFace2, unpurified images yield a dismal Identity Similarity Metric (ISM, higher is better) of 0.2750. DiffPure recovers this to 0.5549, while DSSA pushes it to 0.6299 (and slashes FID from 383.49 down to 135.60).
  • Superior Image Fidelity: At $\epsilon = 8/255$, DSSA reconstructs clean images with a PSNR of 32.48 and SSIM of 0.8911, comfortably beating DiffPure (29.17 PSNR / 0.7988 SSIM).
  • Crushing Adaptive Shields: Against StyleGuard on WikiArt, unpurified images yield an FID of 380.61 and Noisy Upscaling struggles at 298.98. DSSA drops the FID all the way to 101.86.

Limitations and Future Work

DSSA's main bottleneck is inference speed. Because it runs a full denoising trajectory starting from pure Gaussian noise (plus periodic MUSIQ checks), purifying a single $512 \times 512$ image takes 189.76 seconds on an RTX 3090—roughly comparable to GrIDPure (179.45 s), though much slower than DiffPure (15.24 s). Its peak GPU memory footprint, however, remains lightweight at just 4.27 GB. Accelerating the trajectory with fewer denoising steps—and developing next-generation copyright protections that can actually survive full-trajectory purification—are key directions for future work.

Summary updated

Abstract

The rapid proliferation of personalization techniques in Stable Diffusion has driven the widespread deployment of adversarial perturbations as a protective measure against unauthorized data mimicry. Existing diffusion-based purification methods primarily rely on the noising and denoising paradigm and have proven somewhat effective in neutralizing these protections. However, they suffer from a severe trade-off between purification efficacy and perceptual fidelity, especially under large perturbation budgets. To mitigate this problem, in this paper, we propose Dynamic Sparse Semantic Anchoring (DSSA), a novel purification framework. By starting the reverse denoising process from pure Gaussian noise, DSSA removes the initial adversarial perturbations and circumvents the dilemma of selecting an optimal noising level. To prevent the loss of original semantics caused by pure noise generation, we propose a dynamic sparse anchoring strategy that directly integrates sparse pixels from the adversarial sample to guide the reconstruction. Additionally, we design a perception-guided early-stopping mechanism to prevent the perturbation resurgence caused by this direct pixel integration. Extensive experiments across diverse datasets and protection schemes demonstrate that our method consistently outperforms existing baselines, achieving state-of-the-art performance in efficacy and fidelity, successfully neutralizing even advanced adaptive protections.
BibTeX
@inproceedings{tan2026dssa,
  author = {Weiwei Tan and Rui Wang and Lihua Jing and Yanjun Zhang and Runbo Li and Zhishen Wang and Leo Yu Zhang},
  title = {{DSSA: Dynamic Sparse Semantic Anchoring for Purifying Protective Perturbations against Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=McpuicfpXa},
}
Figure