Improving Unlearning with Model Updates Probably Aligned with Gradients

Virgile Dine, Teddy Furon, Charly Faure

Abstract

Machine Unlearning (MU) is essential for privacy compliance, yet it often suffers from a trade-off between forgetting sensitive data and maintaining model utility. This paper proposes the Focus Vector, a probabilistic masking technique that identifies "feasible" parameter updates. By modeling gradient noise as a Gaussian distribution, the Focus Vector ensures that updates are statistically likely to align with both unlearning objectives and performance constraints. Experimental results on CIFAR-10 and SVHN demonstrate that this approach enhances privacy protection and model fidelity compared to existing first-order unlearning methods.

Introduction

Machine learning models are known to "memorize" training data, posing significant privacy risks. Attackers can exploit this via Membership Inference Attacks (MIA) to identify if specific data points were used during training. To comply with regulations like the GDPR’s "right to be forgotten," Machine Unlearning (MU) provides a mechanism to remove the influence of specific data without the prohibitive cost of retraining from scratch.

However, MU faces a fundamental tension: pushing a model to forget specific data can lead to "catastrophic forgetting," where the model's performance on the remaining "retain set" degrades. This paper addresses this by introducing the Focus Vector, a probabilistic add-on that stabilizes gradient-based unlearning.

Proposed Method: Feasible Updates and the Focus Vector

The authors frame unlearning as a constrained optimization problem: minimize the unlearning objective (forgetting) while ensuring the performance on the retain set remains stable.

Feasible Updates and the "AND" Mask

A "feasible update" is defined as a direction in the parameter space that aligns negatively with both the unlearning gradient ($\nabla U$) and the constraint gradient ($\nabla C$). In simpler terms, it is a parameter shift that simultaneously promotes forgetting and preserves utility.

A baseline approach is the "AND" Mask, which only updates a parameter if the gradients for forgetting and retaining point in the same direction.

Figure 1: Geometric interpretation of the AND mask, showing how updates are constrained to directions where unlearning and utility gradients align.

As shown in Figure 1, the AND mask projects the update onto the axes where the gradients agree, ensuring the model doesn't move in a direction that harms one objective to satisfy the other.

The Focus Vector

While the AND mask is conceptually sound, it struggles with the noise inherent in mini-batch processing. Gradients calculated on small subsets of data are stochastic estimates. To address this, the authors develop the Focus Vector ($f$).

Instead of a binary "yes/no" mask, the Focus Vector uses the mean and variance of gradients (readily available from optimizers like Adam) to calculate the probability that a parameter update is truly feasible.

Figure 2: The Focus Vector approach models gradient noise (ellipses) to determine the probability of a feasible update, providing a more stable 'soft' mask than deterministic methods.

As illustrated in Figure 2, the Focus Vector acts as a "soft" mask. When gradient noise is low, it behaves like a strict selection tool. When noise is high, it naturally reduces the effective learning rate for those parameters, preventing hazardous updates that might be driven by batch-specific noise rather than true underlying trends.

Experimental Evaluation

The researchers evaluated the Focus Vector on standard computer vision benchmarks, including CIFAR-10 and SVHN. They tested two primary scenarios:

  1. Random Forgetting: Removing random subsets (5% to 50%) of the training data.
  2. Class Forgetting: Removing large portions (up to 75%) of a specific category.

The Focus Vector was implemented as a "plug-and-play" enhancement for existing methods like Fine-Tuning (FT), Gradient Ascent (GA), and SCRUB.

Key Results and Insights

  • Enhanced Privacy: Models using the Focus Vector demonstrated significantly lower success rates for Membership Inference Attacks, indicating more effective removal of sensitive information.
  • High Fidelity: Using a Fidelity score (FID) to measure how closely the unlearned model mimics a retrained-from-scratch baseline, the Focus Vector consistently outperformed competing methods in both fidelity and Relative Unlearning Accuracy (rUA).
  • Stability and Efficiency: Unlike the simple AND mask, which can be unstable in batch settings, the probabilistic Focus Vector smoothed the unlearning process. It reached target metrics in fewer epochs than methods like Mask-Small-Gradients (MSG).
  • Noise as a Signal: A key insight is that gradient variance is not just a nuisance but a valuable signal. Incorporating it provides a statistical safeguard against "unlucky" batches that would otherwise cause performance drops.

Conclusion and Limitations

The Focus Vector provides a robust, statistically grounded framework for machine unlearning. By ensuring that parameter updates are "probably aligned" with both forgetting and utility goals, it mitigates the risk of catastrophic forgetting while maintaining high privacy standards.

However, the method currently relies on a Gaussian assumption for gradient noise, which may not hold in all real-world scenarios. Additionally, while it performs well against basic MIAs, future work should evaluate its robustness against more complex attacks like LiRa. Finally, the current implementation focuses on first-order methods; exploring second-order optimizations (using Hessian matrices) remains a promising avenue for high-precision unlearning.

Summary updated

BibTeX
@inproceedings{dine2025improving,
  author = {Virgile Dine and Teddy Furon and Charly Faure},
  title = {{Improving Unlearning with Model Updates Probably Aligned with Gradients}},
  booktitle = {AISec@CCS},
  year = {2025},
  doi = {10.1145/3733799.3762975},
}
Figure