Towards Understanding the Feasibility of Machine Unlearning

Mahtab Sarvmaili, Hassan Sajjad, Ga Wu · Submission to ICLR 2025 · Rejected

TL;DR

Most machine unlearning research assumes every data point can be erased with equal ease, but in practice, sample-level feasibility varies wildly. This paper introduces a scoring framework based on Kernelized Stein Discrepancy (KSD) to quantify unlearning difficulty before running expensive removal algorithms. Their entropy-augmented metric, EMSKSD, accurately predicts which samples can be cleanly forgotten versus those whose removal damages the model or fails entirely.

What Problem Does This Paper Address?

Driven by "Right to be Forgotten" mandates (e.g., GDPR, CCPA), machine unlearning (MU) seeks to purge specific training examples and their influence from trained models without full retraining. However, existing benchmarks evaluate unlearning at an aggregate level (e.g., overall forget rate or retention accuracy across batches), overlooking a fundamental issue: not all samples are equally unlearnable.

Due to model generalization, some points are deeply entangled with the learned distribution of their class. Attempting to unlearn such "difficult" points often causes severe collateral damage to test performance or fails to remove data influence altogether. Standard heuristics—like predictive confidence or geometric distance to the decision boundary—are noisy and miss relational dependencies between data points.

Methods

The authors analyze six core factors governing unlearning feasibility (expansion size, MIA resistance, boundary distance, performance shift tolerance, update steps, and parameter shift) and group them into two major components: data ties/correlation and prediction confidence/boundary proximity.

To capture both simultaneously, the authors turn to Kernelized Stein Discrepancy (KSD). The parameterized Stein kernel $\kappa_\theta(x_a, x_b)$ between two inputs measures:

  1. Raw feature similarity ($\nabla_a \nabla_b k(a, b)$)
  2. Score similarity ($\nabla_a \log P_\theta(a) \cdot \nabla_b \log P_\theta(b)$)
  3. Mutual influence of prediction shifts

Using this kernel, the paper introduces and compares four difficulty-scoring metrics:

  • MKSD (Marginalized KSD): Sums pairwise Stein kernel values to identify points with massive "resistance sets" in the training data.
  • MSKSD (Marginalized Standardized KSD): Standardizes kernel values into $\mathcal{N}(0, 1)$ before exponential aggregation to emphasize densely tied samples.
  • SSN (Stein Score Norm): Uses the gradient norm $\|\nabla_\theta \log P_\theta(x_i, y_i)\|$ to capture proximity to the decision boundary.
  • EMSKSD (Entropy Marginalized Standardized KSD): Combines MSKSD with predictive entropy $H(\hat{y}_i)$, scaling correlation strength by model uncertainty: $$\text{Agg}_{\text{EMSKSD}}(x_i, y_i) = \frac{\text{Agg}_{\text{MSKSD}}(x_i, y_i)}{H(\hat{y}_i)}$$

Datasets

The authors evaluated their metrics on three standard image classification benchmarks:

  • MNIST (2-layer CNN)
  • CIFAR-10 (ResNet-18)
  • SVHN (ResNet-18)

No new datasets were introduced; instead, the paper used these benchmarks to study single-sample unlearning behaviors across established unlearning algorithms: Gradient Ascent (GradAsct), Fine-Tuning, Fisher Forgetting, and Retraining from scratch.

Key Insights and Ideas

  • Prototypical vs. Outlier Asymmetry: "Easy" samples flagged by EMSKSD are often atypical, label-ambiguous, or peripheral instances (e.g., mislabeled digits or visually rare objects). "Hard" samples are central, quintessential representations of their class.
  • The Generalization Paradox: For hard samples, even complete retraining from scratch without the sample still predicts the sample correctly with 100% accuracy. The model reconstructs the sample's representation purely via peer generalization from the remaining dataset.
  • Naive Removal Expansion Breaks Models: Expanding the forget set to include neighboring similar points helps remove easy points without side effects. For hard points, however, expanding the removal set rapidly degrades overall model generalization (e.g., collapsing CIFAR-10 test accuracy).
  • MIA Alignment: Easy-to-unlearn samples naturally exhibit higher Membership Inference Attack (MIA) vulnerability drop-offs post-unlearning (MIA efficacy up to 1.0), whereas difficult samples remain readily identifiable as training data.

Key Results

  • Superior Predictive Alignment via EMSKSD: EMSKSD consistently outperformed naive predictive confidence (PC) and pure margin-based metrics in separating feasible from infeasible samples.
  • Forget Set Accuracy Divergence: For CIFAR-10 and SVHN, GradAscent reduced forget-set accuracy on top-5 "Easy" samples to 0.00, while preserving ~70–89% test accuracy. In contrast, unlearning top-5 "Difficult" samples either resulted in 0.00 unlearning effect (model still retained 100% accuracy under Fine-Tuning and Retraining) or triggered catastrophic degradation under GradAscent (CIFAR-10 test accuracy collapsed from ~86% down to 53%).
  • Forget Loss Gaps: On SVHN, unlearning easy points via retraining yielded an average forget loss of 11.07, whereas difficult points stayed pinned near 0.00, demonstrating that intrinsic sample resistance prevents parameter shifts from taking hold.

Limitations and Future Work

  • Computational Complexity: Pairwise KSD computation scales as $\mathcal{O}(n \cdot C \cdot (d \times h)^2)$, where $d$ is input dimension, $h$ is network depth, and $n$ is dataset size. Scaling this metric to massive datasets (e.g., ImageNet) or large language models will require subsampling or low-rank kernel approximations.
  • Algorithm Sensitivity: The efficacy of gradient-based unlearning on hard samples required hand-tuned safety mechanisms (such as an "overfitting threshold" to prevent runaway error growth).
  • Scope of Tasks: Evaluations were restricted to image classification; evaluating autoregressive language models and multimodal architectures remains open for exploration.

Summary updated

Abstract

In response to recent privacy protection regulations, machine unlearning has attracted great interest in the research community. However, existing studies often demonstrate their approaches' effectiveness by measuring the overall unlearning success rate rather than evaluating the chance of unlearning specific training samples, leaving the universal feasibility of the unlearning operation unexplored. This paper proposes a novel method to quantify the difficulty of unlearning a single sample by taking into account factors such as model and data distribution. Specifically, we propose several heuristics to understand the condition of a successful unlearning operation on data points, explore difference in unlearning difficulty over training data points, and suggest a potential ranking mechanism for identifying the most challenging samples to unlearn. In particular, we note Kernelized Stein Discrepancy (KSD), a parameterized kernel function tailored to each model and dataset, is an effective heuristic to tell the difficulty of unlearning a data sample. We demonstrate our discovery by including multiple classification tasks and existing machine unlearning algorithms, highlighting the practical feasibility of unlearning operations across different scenarios.
BibTeX
@misc{sarvmaili2024towards,
  author = {Mahtab Sarvmaili and Hassan Sajjad and Ga Wu},
  title = {{Towards Understanding the Feasibility of Machine Unlearning}},
  year = {2024},
  eprint = {2410.03043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03043},
}
Figure