Machine Unlearning via Null Space Calibration

Huiqiang Chen, Tianqing Zhu, Xin Yu, Wanlei Zhou

Abstract

Machine unlearning aims to enable models to forget specific data instances when receiving deletion requests. Current research centers on efficient unlearning to erase the influence of data from the model and neglects the subsequent impacts on the remaining data. Consequently, existing unlearning algorithms degrade the model's performance after unlearning, known as over-unlearning. This paper addresses this critical yet under-explored issue by introducing machine Unlearning via Null Space Calibration (UNSC), which can accurately unlearn target samples without over-unlearning. On the contrary, by calibrating the decision space during unlearning, UNSC can significantly improve the model's performance on the remaining samples. In particular, our approach hinges on confining the unlearning process to a specified null space tailored to the remaining samples, which is augmented by strategically pseudo-labeling the unlearning samples. Comparison against several established baselines affirms the superiority of our approach.

Introduction

As privacy regulations like the "Right to Be Forgotten" (e.g., GDPR) gain legal weight, AI providers must be able to remove specific user data from trained models. While retraining a model from scratch without the deleted data is the "gold standard," it is computationally prohibitive for modern large-scale neural networks. This has led to the development of "approximate" unlearning methods that modify existing weights.

However, most approximate methods suffer from over-unlearning: the process of erasing specific samples inadvertently damages the model's performance on the data it is intended to keep. This collateral damage occurs because weight updates intended to forget one sample often shift decision boundaries in ways that negatively impact others. The authors of this paper propose a method that not only prevents this damage but can actually improve the model's remaining performance.

The UNSC Framework

The proposed Null Space Calibration (UNSC) method addresses over-unlearning through two primary mechanisms:

1. Null Space Projection

To ensure that the unlearning process does not degrade the model's existing knowledge, UNSC identifies a "null space" for the remaining data. For any neural network layer, the null space represents the set of weight update directions that do not change the output for the remaining samples. By using Singular Value Decomposition (SVD) on a small subset of the remaining data, UNSC projects all "forgetting" gradients into this safe subspace, effectively implementing a "do no harm" policy.

2. Decision Space Calibration

Instead of simply erasing a sample's influence—which can leave "holes" or overlaps in the decision logic—UNSC employs strategic pseudo-labeling. The model identifies the next most likely class for a "to-be-forgotten" sample and re-labels it accordingly. This process reallocates the feature space previously occupied by the forgotten data to the remaining classes, effectively "de-cluttering" the decision boundaries.

Comparison of decision boundaries: (a) Original model with overlapping regions, (b) Baseline method showing over-unlearning (accuracy drop on remaining data), and (c) UNSC showing calibrated boundaries and improved accuracy.

Experimental Evaluation

The researchers evaluated UNSC across standard computer vision benchmarks, including FashionMNIST, SVHN, CIFAR-10, and CIFAR-100, using various architectures like AlexNet, VGG-11, and ResNet-18.

Performance and Forgetting

UNSC demonstrates a unique ability to achieve "zero over-unlearning." On CIFAR-10, while competing methods like SalUn saw accuracy drops on remaining data, UNSC actually increased accuracy from 92.10% to 92.77%. Simultaneously, it reduced accuracy on forgotten data to near zero (0.70%), matching the performance of a model retrained from scratch.

t-SNE visualizations showing the feature space before and after unlearning. The clusters for remaining data remain distinct and well-separated, while the unlearning class is successfully removed.

Privacy and Scalability

Membership Inference Attack (MIA) scores for UNSC were near 1.0, indicating that the unlearned model is indistinguishable from one that never saw the deleted data. Furthermore, the method scales well; as more classes are forgotten, the accuracy gain for the remaining classes often increases (e.g., a 2.92% gain when unlearning 5 classes on CIFAR-10).

Conclusion

UNSC shifts the paradigm of machine unlearning from a destructive process to an optimization opportunity. By mathematically confining updates to a null space and calibrating the decision space via pseudo-labels, it achieves effective forgetting without the collateral damage of over-unlearning, resulting in a more robust and accurate final model.

Summary updated

BibTeX
@inproceedings{chen2024machine,
  author = {Huiqiang Chen and Tianqing Zhu and Xin Yu and Wanlei Zhou},
  title = {{Machine Unlearning via Null Space Calibration}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=faijbFtwLs},
}
Figure