Efficient Source-free Unlearning via Energy-Guided Data Synthesis and Discrimination-Aware Multitask Optimization

Xiuyuan Wang, Chaochao Chen, Weiming Liu, Xinting Liao, Fan Wang, Xiaolin ZhengICML 2025

This paper introduces a framework called DSDA (Data Synthesis-based Discrimination-Aware unlearning) to solve one of the thorniest problems in AI privacy: how to make a model "forget" specific information when you no longer have access to the data used to train it.

By enabling "source-free" machine unlearning, DSDA uses a model's own internal logic to synthesize proxy data and a multitask optimization strategy to erase specific classes. It achieves state-of-the-art accuracy while being significantly faster—averaging a 68.5% speedup—than existing data-free methods.

The Challenge of Source-Free Unlearning

Machine unlearning is the process of removing the influence of specific "forget" data from a pre-trained model. This is increasingly required by privacy regulations like GDPR’s "right to be forgotten."

Most unlearning techniques assume you have the original training data. However, in the real world, that data is often deleted immediately after training due to storage costs or privacy policies. This leads to source-free unlearning, where you only have the trained model and the labels you want to delete. Existing source-free methods usually rely on "Knowledge Distillation," which involves training a whole new model from scratch to mimic the old one (minus the forgotten parts). This process is computationally expensive and slow.

The DSDA Framework

To overcome these limitations, the authors propose a two-stage framework: Accelerated Energy-Guided Data Synthesis (AEGDS) and Discrimination-Aware Multitask Optimization (DAMO).

Overview of the DSDA framework

1. Accelerated Energy-Guided Data Synthesis (AEGDS)

Since the original data is gone, the model must "dream" up new data to practice on. The authors treat the model as an Energy-Based Model (EBM), reinterpreting its output logits as an energy landscape. They use Langevin dynamics—a stochastic gradient-based sampling method—to generate synthetic images.

The Innovation: Standard sampling is slow. DSDA incorporates 2nd-order Runge-Kutta methods and Nesterov momentum to skip redundant steps, making the data synthesis much faster without losing quality. By applying classical numerical methods to modern generative sampling, the authors prove that hundreds of iterations are not needed to synthesize high-quality proxy data.

2. Discrimination-Aware Multitask Optimization (DAMO)

Unlearning often "breaks" the model's internal feature space, causing the remaining classes to become dispersed and blurry. Simply maximizing the error on the "forget" data destroys the model's ability to distinguish between the remaining classes.

t-SNE visualization of feature spaces

To address this, DAMO introduces two key mechanisms:

  • Feature Alignment: DAMO introduces a loss function that forces the model to keep "retain" classes compact and well-separated in its internal representations.
  • Gradient Surgery: Because the model is trying to do three things at once (forget class A, remember class B, and keep features clean), the mathematical "gradients" for these tasks often conflict. DAMO uses a multitask optimization strategy to find a "consensus" update direction that satisfies all three goals simultaneously.

Experimental Results

The framework was evaluated on three standard benchmarks (CIFAR-10, CIFAR-100, and PinsFaceRecognition) using both traditional Convolutional Neural Networks (ResNet-18) and modern Vision Transformers (ViT).

  • Speed: DSDA is significantly faster than previous leaders like GKT. For example, on CIFAR-10, it completed unlearning in 133 seconds, compared to 393 seconds for GKT.
  • Efficacy: The "Forget Accuracy" reached 0% across all tasks, meaning the model truly stopped recognizing the target classes.
  • Privacy: In Membership Inference Attacks (MIA)—a test to see if a hacker can tell if a specific piece of data was in the training set—DSDA performed nearly as well as the "Gold Standard" of retraining the entire model from scratch.
  • Robustness: Unlike other methods, DSDA’s performance didn't degrade significantly as the number of classes to be forgotten increased.

Limitations and Future Work

While DSDA represents a major step forward, the authors note a few limitations. Currently, the method is designed for class-wise unlearning (e.g., "forget all images of cats"). Instance-wise unlearning (e.g., "forget this one specific photo of a cat") remains a more granular challenge for future research.

Additionally, while the synthetic data looks like random noise to a human, it is still generated from the model's weights. The authors suggest further study into whether this synthesis process itself could inadvertently leak private information in highly sensitive contexts.

Summary updated

BibTeX
@inproceedings{wang2025efficient,
  author = {Xiuyuan Wang and Chaochao Chen and Weiming Liu and Xinting Liao and Fan Wang and Xiaolin Zheng},
  title = {{Efficient Source-free Unlearning via Energy-Guided Data Synthesis and Discrimination-Aware Multitask Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=tqL8gJsuS5},
}
Figure