Score Forgetting Distillation: A Swift, Data-Free Method for Machine Unlearning in Diffusion Models

Tianqi Chen, Shujian Zhang, Mingyuan Zhou

Introduction

Score Forgetting Distillation (SFD) is an innovative framework that enables diffusion models to "forget" specific concepts—such as celebrity faces or NSFW content—without requiring access to the original training data. By combining machine unlearning with score distillation, SFD produces a "cleansed" model that is not only safer but also significantly faster, capable of high-quality image generation in just a single step.

The Dual Challenge: Safety and Efficiency

Diffusion models are the current gold standard for generative AI, but they suffer from two major vulnerabilities:

  1. Privacy and Safety: They are prone to memorizing sensitive training data (like specific individuals) or generating harmful, inappropriate content.
  2. Efficiency: Standard sampling is notoriously slow, often requiring hundreds or thousands of iterative denoising steps to produce a single image.

Existing Machine Unlearning (MU) techniques—designed to remove specific data influences from a model—usually require the original training dataset. This creates a "privacy paradox": to make a model forget sensitive data, you must first possess and process that sensitive data. Furthermore, most unlearning methods fail to address the slow sampling speed of the underlying diffusion model.

How Score Forgetting Distillation Works

The authors introduce SFD by treating unlearning as a specialized form of model distillation.

SFD Architecture
  • The Core Mechanism: Instead of retraining from scratch, SFD uses a pre-trained "teacher" diffusion model. It simultaneously trains a student generator network and a score network.
  • Aligning Scores: The "score" in a diffusion model is essentially the gradient pointing toward high-density data regions. SFD forces the scores of an "unsafe" class (e.g., a specific celebrity) to align with the scores of a "safe" class (e.g., a generic person).
  • Data-Free Learning: The framework is entirely data-free. It uses the teacher model to provide supervision, generating its own synthetic data during training to learn what to keep and what to override.
  • One-Step Generation: By utilizing a distillation objective, the resulting student model is compressed into a one-step generator, bridging the speed gap between diffusion models and faster architectures like GANs.

Key Insights: The "Override" Strategy

One of the most elegant ideas in SFD is that unlearning doesn't have to be a separate, destructive process. By framing it as a regularization term within a distillation loss, the model learns to "forget" while simultaneously learning to be "fast."

Rather than simply trying to delete information—which can leave "holes" in the model's latent space—SFD explicitly maps the forbidden concept onto a safe one.

Concept Forgetting over Training Steps

For example, as training progresses, a prompt for "Brad Pitt" is smoothly redirected to generate a generic "middle-aged man," preserving the model's ability to follow the rest of the prompt's context (e.g., "with a guitar" or "in a black suit"). This solves the privacy paradox: a company could cleanse a model of copyrighted or private data without ever needing to hold the original, potentially infringing dataset.

Experimental Results

The researchers evaluated SFD across several standard and safety-focused benchmarks, including CIFAR-10, Stable Diffusion (v1.4/1.5), and the I2P (Inappropriate Image Prompts) dataset.

  • High Accuracy: On CIFAR-10 and STL-10, SFD achieved an Unlearning Accuracy (UA) of over 99%, meaning an external classifier could no longer identify the forgotten class in generated images.
  • Massive Speedup: Because the distilled model is a one-step generator, it is 1,000x faster than standard DDPM samplers and 50x faster than typical DDIM samplers used in Stable Diffusion.
  • Superior Safety: In the I2P benchmark, SFD significantly outperformed other state-of-the-art unlearning methods (like ESD or SLD) in reducing the detection of exposed body parts while maintaining better image-text alignment (CLIP scores).
  • Quality Preservation: Unlike some unlearning methods that degrade the model's overall performance, SFD maintained or even improved the Fréchet Inception Distance (FID), a key metric for image quality.

Limitations and Future Work

While highly effective, the approach has some limitations. Evaluating "nudity" or unsafe content remains difficult because automated detectors often produce false positives, sometimes flagging generic artistic portraits as "unsafe." Additionally, there can be disparities between the synthetic data used during distillation and real-world "unseen" data, potentially leading to inconsistent performance in niche edge cases. Finally, while the resulting model is incredibly fast, the initial distillation and unlearning training process still requires significant GPU resources.

Future work may involve extending this framework to more complex multi-concept forgetting or applying it to other generative modalities like video or audio.

Summary updated

BibTeX
@inproceedings{chen2025score,
  author = {Tianqi Chen and Shujian Zhang and Mingyuan Zhou},
  title = {{Score Forgetting Distillation: A Swift, Data-Free Method for Machine Unlearning in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=gjwhDHeAsz},
}
Figure