Toward Efficient Data-Free Unlearning

Chenhao Zhang, Shaofei Shen, Weitong Chen, Miao Xu

Abstract

Machine unlearning without access to real data distribution is challenging. The existing method based on data-free distillation achieved unlearning by filtering out synthetic samples containing forgetting information but struggled to distill the retaining-related knowledge efficiently. In this work, we analyze that such a problem is due to over-filtering, which reduces the synthesized retaining-related information. We propose a novel method, Inhibited Synthetic PostFilter (ISPF), to tackle this challenge from two perspectives: First, the Inhibited Synthetic, by reducing the synthesized forgetting information; Second, the PostFilter, by fully utilizing the retaining-related information in synthesized samples. Experimental results demonstrate that the proposed ISPF effectively tackles the challenge and outperforms existing methods.

Introduction

Machine unlearning is the process of "teaching" a model to forget specific information—such as a class of data—often to comply with privacy regulations like GDPR or to remove biased data. Ideally, one would retrain the model from scratch without the offending data, but in many real-world scenarios, the original training data is unavailable. This is the domain of Data-Free Unlearning.

Existing methods use a generator to create synthetic data that mimics the original distribution, then use knowledge distillation to transfer only the "safe" (retaining) knowledge to a new student model. However, these methods suffer from over-filtering. Because the generator seeks out "hard" samples the student hasn't mastered, it tends to over-produce samples from the classes the student is trying to forget. Previous methods simply discarded these samples, leading to a "data drought" that prevents the student from properly learning the classes it is supposed to keep.

Methodology: Inhibited Synthetic PostFilter (ISPF)

The proposed ISPF framework tackles the efficiency problem from two complementary angles:

  1. Inhibited Synthesis (IS): Instead of letting the generator create data indiscriminately, we modify its objective function. The new loss function explicitly penalizes the generator for creating samples that the "Teacher" model identifies as belonging to the forgetting classes. This forces the generator to focus its capacity on the classes the model needs to retain.
  2. PostFilter (PF): Previous methods used a "PreFilter" that discarded any synthetic sample if it appeared related to a forgotten class. ISPF argues this is wasteful, as even "impure" samples contain useful information about other classes. The PostFilter keeps these samples but modifies the Teacher's output logits, squashing the signal for forgotten classes and redistributing that probability mass across the retaining classes. This allows the student to learn from every synthetic sample generated.
Analysis of ISPF components on CIFAR10-AllCNN, showing the reduction in filtered samples and improved training efficiency.

As shown in the figure above, the ISPF method significantly reduces the number of filtered samples compared to the GKT baseline, leading to more stable batch entropy and better utilization of synthetic data throughout the training epochs.

Experimental Results

We evaluated ISPF on standard computer vision benchmarks including SVHN, CIFAR-10, and CIFAR-100 using AllCNN and ResNet18 architectures.

Retention and Forgetting Performance

ISPF demonstrates superior performance in both retaining knowledge and ensuring effective forgetting. On the SVHN dataset with AllCNN, ISPF maintained a retention accuracy ($A_r$) of 92.68%, a massive improvement over the previous state-of-the-art (GKT) at 55.23%. Simultaneously, it reduced the accuracy of forgotten classes ($A_f$) to 0.0%, matching the performance of a model retrained from scratch.

Efficiency and Speed

Unlearning is not just about accuracy; it is about how quickly a system can respond to a "right to be forgotten" request. By avoiding the "data drought" caused by over-filtering, ISPF reaches target retention accuracy levels in a fraction of the time required by previous methods.

Time vs. Retention Accuracy ($A_r$) comparison across different unlearning methods.

As illustrated in the plot above, ISPF (red triangles) consistently achieves higher accuracy in significantly less "wall-clock" time compared to the GKT baseline (blue circles).

Privacy Guarantees

Using Membership Inference Attacks (MIA)—which attempt to guess if a specific image was in the original training set—ISPF performed nearly identically to a "Retrain" model. This suggests it successfully scrubbed the forgotten information to a degree that is indistinguishable from never having seen the data at all.

Conclusion

The ISPF framework effectively addresses the over-filtering problem in data-free unlearning. By inhibiting the synthesis of forgotten information and repurposing impure samples through logit redistribution, ISPF achieves state-of-the-art retention accuracy and forgetting effectiveness with significantly improved efficiency. Future work may extend these techniques to instance-level unlearning and explore more sophisticated redistribution strategies for the PostFilter.

Summary updated

BibTeX
@inproceedings{zhang2025toward,
  author = {Chenhao Zhang and Shaofei Shen and Weitong Chen and Miao Xu},
  title = {{Toward Efficient Data-Free Unlearning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=EWkzm759Gb},
}
Figure