NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zero-Shot Machine Unlearning

Vikram S. Chundawat, Ayush K. Tarun, Murari Mandal, Mohan S. Kankanhalli

TL;DR

This paper introduces "zero-shot machine unlearning," a novel approach that allows ML models to forget specific data without access to any of the original training data. They propose two methods, error minimizing-maximizing noise and gated knowledge transfer, which effectively remove information about forgotten data while preserving performance on retained data, offering enhanced privacy protection.

What Problem Does This Paper Address?

Modern privacy regulations, like GDPR and CCPA, grant individuals the "right to be forgotten," meaning their data must be deleted from systems, including ML models. Traditionally, "machine unlearning" aims to remove a specific dataset's influence from a trained model. However, existing methods often require access to the original training data, subsets of it, or metadata generated during training. This is problematic because:

  • Data Availability: In many real-world scenarios, especially with strict time-bound deletion requests, the original training data might no longer be accessible or even exist.
  • Cost and Efficiency: Retraining a large ML model from scratch is computationally expensive and time-consuming, especially if deletion requests are frequent.
  • Privacy Concerns: Some unlearning methods might inadvertently leak information about the data they are supposed to forget.

The authors identify a critical gap: the need for machine unlearning methods that can operate without any access to the original training data, a scenario they term "zero-shot machine unlearning." This is crucial for compliance in situations where data is lost, access is revoked, or storage is impractical.

Methods

The paper proposes two novel methods for zero-shot machine unlearning:

  1. Error Minimizing-Maximizing Noise: This method builds upon prior work that used "error-maximizing noise" to forget data. The authors adapt this by using "error-minimizing noise" to synthesize data points that mimic the characteristics of the retain classes. Simultaneously, they generate "error-maximizing noise" (similar to previous work) for the forget classes. These synthesized noise patterns are then used to update the model's weights, aiming to remove information about the forget classes while retaining knowledge of the others.
  2. Gated Knowledge Transfer (GKT): This approach uses a teacher-student framework. The original trained model acts as the "teacher," and a randomly initialized network of the same architecture serves as the "student." A "generator" produces synthetic data points. Crucially, a "band-pass filter" is introduced. This filter is designed to block information related to the forget classes from reaching the student, allowing only information about the retain classes to pass through. The generator is trained to maximize the divergence between teacher and student outputs, while the student is trained to minimize this divergence and an "attention loss." This process effectively distills knowledge of the retain classes into the student model, while the filter prevents the forget class information from being transferred.

The authors also introduce a new evaluation metric called the Anamnesis Index (AIN). This metric measures how quickly an unlearned model can relearn the forgotten information, with values closer to 1 indicating better unlearning.

Datasets

The experiments were conducted on several standard benchmark vision datasets:

  • MNIST: A dataset of handwritten digits.
  • SVHN (Street View House Numbers): A dataset of house numbers.
  • CIFAR-10: A dataset of 10 classes of small images.

The paper also mentions using models like AllCNN, LeNet, and ResNet9 for evaluation.

Key Insights and Ideas

  • The "Zero-Shot" Unlearning Paradigm: The core innovation is demonstrating that effective unlearning is possible even when absolutely no original training data is available. This significantly broadens the applicability of unlearning techniques to more stringent privacy scenarios.
  • Synthesizing Data for Unlearning: Instead of relying on real data, both proposed methods ingeniously use synthesized data (noise patterns or generated samples) to guide the unlearning process. This is a key enabler for the zero-shot setting.
  • The "Gate" for Selective Knowledge Transfer: The band-pass filter in the GKT method is a clever mechanism to explicitly prevent information about specific classes from being transferred to the student model, ensuring targeted forgetting.
  • Anamnesis Index (AIN) as a Better Metric: The AIN offers a more nuanced evaluation of unlearning quality than simple relearning time, accounting for both how well the model forgets and how quickly it might relearn, providing a more robust measure of unlearning success.
  • Privacy Attacks as Validation: The paper uses model inversion and membership inference attacks to demonstrate that their zero-shot unlearning methods successfully remove information about the forgotten classes, thus enhancing privacy.

Key Results

  • GKT Outperforms Min-Max: The Gated Knowledge Transfer (GKT) method consistently achieved better results than the Error Minimizing-Maximizing Noise method. GKT was able to preserve retain set accuracy close to the original model (e.g., 81.97% on CIFAR-10 with AllCNN vs. original 84.05%) while achieving near-zero accuracy on the forget set (0%).
  • Effective Forget Set Accuracy: Both proposed methods achieved very low accuracy (close to 0%) on the forget set, indicating successful removal of information.
  • AIN Scores: The GKT method achieved AIN scores closer to 1 (e.g., 0.81 for CIFAR-10, 0.65 for MNIST), suggesting that the unlearned model contains less residual information about the forgotten classes compared to the Min-Max method.
  • Robustness to Privacy Attacks: Model inversion attacks failed to extract any meaningful information from the models unlearned using the GKT method. Membership inference attacks also showed inconsistent results, indicating that the zero-shot nature of the unlearning process makes it difficult for such attacks to gain reliable insights.
  • Sequential Unlearning Viability: The paper demonstrated that sequential unlearning (forgetting classes one by one) is feasible with GKT, though performance might slightly degrade after multiple sequential unlearning steps.

Limitations and Future Work

  • Retain Accuracy Preservation: The authors acknowledge that their zero-shot methods do not fully preserve the retain set accuracy compared to the original model. This is attributed to the inherent limitation of not having access to any real data during the unlearning process. Future work could explore methods to better recover retain accuracy.
  • Model Scale: The proposed methods might not be as effective on very large models.
  • Formal Guarantees: For highly privacy-sensitive applications, more formal guarantees of unlearning might be desired.
  • Class-Level vs. Sample-Level Unlearning: The current methods primarily support class-level unlearning. Forgetting specific subsets of data within a class (e.g., a particular brand of car) is not directly supported and remains an area for future research.
  • Theoretical Bounds: Exploring theoretical bounds on the amount of information remaining in the model after forgetting is suggested as a future research direction.
  • Deeper Networks and Larger Datasets: Extending zero-shot unlearning to deeper and larger-scale networks is also proposed.

Summary updated

BibTeX
@article{chundawat2023zero,
  author = {Vikram S. Chundawat and Ayush K. Tarun and Murari Mandal and Mohan S. Kankanhalli},
  title = {{Zero-Shot Machine Unlearning}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2023},
  doi = {10.1109/tifs.2023.3265506},
}
Figure