A Universal Source-Free Class Unlearning Framework via Synthetic Embeddings

Zahra Dehghani Tafti, Maxime Darrin, Pablo Piantanida, Mohammadhadi Shateri · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces a universal framework for "class unlearning"—selectively removing a model's ability to recognize a specific category—without requiring any access to the original training data. By utilizing randomly generated vectors in the model's intermediate embedding space as proxies for real data, the authors enable existing unlearning algorithms to function in a fully source-free environment with near-zero impact on performance.

What Problem Does This Paper Address?

As privacy regulations like GDPR and CCPA grant users the "right to be forgotten," machine unlearning has become a critical necessity. If a dataset contains sensitive or incorrect information, we need a way to "delete" that knowledge from a trained model without the massive computational expense of retraining from scratch.

The major bottleneck in current unlearning research is the data dependency. Most state-of-the-art methods require access to the original "forget" set (the data to be removed) and the "retain" set (the data to keep). In many real-world scenarios—such as proprietary models or privacy-restricted environments—this data is simply unavailable. While some "source-free" methods exist, they typically rely on training complex generative models to reconstruct images, which is computationally expensive, slow, and often tied to specific architectures.

Methods

The authors propose a surprisingly simple yet theoretically grounded solution: Synthetic Embeddings.

Instead of trying to reconstruct complex pixels in the "data space," the framework operates in the "intermediate embedding space" (the latent vectors produced just before the final classification head). The process follows a two-step pipeline:

  1. Synthetic Set Construction: The framework samples random vectors from an arbitrary distribution (like Gaussian or Uniform noise) in the model's intermediate space. It then uses the model itself to "pseudo-label" these vectors. Vectors the model classifies as the target class become the "synthetic forget set," while others form the "synthetic retain set."
  2. Boundary Reshaping: The framework then applies existing unlearning algorithms (e.g., Fine-tuning, SCRUB, or Negative Gradient) using these synthetic sets.

The core innovation is the proof of Distribution-Agnostic Class Unlearning. The authors show that as long as the loss function is monotonic with respect to the model's output (logits), the specific distribution of these random vectors doesn't matter. You don't need "realistic" data to move a decision boundary; you just need points that fall on the correct side of it.

Datasets

The framework was evaluated using four major backbone architectures (ResNet-18, ResNet-50, ViT-B-16, and Swin-T) across three standard benchmarks:

  • CIFAR-10: 10 classes of 32x32 images.
  • CIFAR-100: 100 classes of 32x32 images.
  • TinyImageNet: 200 classes of 64x64 images.

Crucially, the authors only used the test sets of these benchmarks to evaluate the final model, simulating a true source-free environment where the training data is gone.

Key Insights and Ideas

  • The "Aha" Moment: You don't need to see a "cat" to unlearn the concept of a "cat." You just need to find the region in the model's internal mathematical space that represents "cat" and push the decision boundary away from it.
  • Efficiency over Realism: Previous source-free methods wasted time trying to make synthetic data look real. This paper demonstrates that for the purpose of shifting decision boundaries, "looking real" is a redundant requirement.
  • Universal Compatibility: This isn't a new unlearning algorithm; it's a wrapper. It allows almost any existing data-dependent unlearning method to suddenly work without data.
  • Layer Agnosticism: The method works effectively even if you sample embeddings from deeper layers of the network, not just the final one, making it robust to different architectural designs.

Key Results

The results show that the source-free framework performs nearly as well as methods that have full access to the original training data:

  • Near-Complete Forgetting: Across all datasets and architectures, the "Forget Test Accuracy" ($A_f^t$) was reduced to essentially 0%, matching the performance of models retrained from scratch.
  • Knowledge Preservation: The "Retain Test Accuracy" ($A_r^t$) remained stable, often within 1% of the original model's performance.
  • Superior Efficiency: By avoiding image generation (GANs/Diffusion), the method is significantly faster and less computationally intensive than prior source-free approaches like GKT or DSDA.
  • Scalability: The framework successfully scaled to multi-class unlearning (forgetting 2, 5, or 10 classes simultaneously) on CIFAR-100.

Limitations and Future Work

  • Instance-Level Unlearning: This paper focuses on "Class Unlearning" (e.g., "forget all dogs"). It does not yet address "Instance Unlearning" (e.g., "forget this specific dog"), which is a more granular and difficult challenge in the source-free setting.
  • Domain Expansion: The study is currently limited to image classification. The authors suggest that future work should explore applying this synthetic embedding approach to Large Language Models (LLMs) and other domains.
  • Sample Saturation: The authors noted that while more synthetic samples improve performance, there is a point of diminishing returns. Finding the optimal "minimum" number of samples for complex datasets remains an open area for optimization.

Summary updated

BibTeX
@article{tafti2026universal,
  author = {Zahra Dehghani Tafti and Maxime DARRIN and Pablo Piantanida and Mohammadhadi Shateri},
  title = {{A Universal Source-Free Class Unlearning Framework via Synthetic Embeddings}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure