Machine Unlearning Method Based On Projection Residual

Zihao Cao, Jianzong Wang, Shijing Si, Zhangcheng Huang, Jing Xiao

TL;DR

This paper introduces a "Projection Residual" method based on Newton iteration to perform machine unlearning—the process of removing the influence of specific data points from a trained model. By focusing on the feature dimensions rather than the total dataset size, the method achieves a computational complexity of $O(k^2 d)$, making it significantly faster than retraining while remaining nearly as effective.

What Problem Does This Paper Address?

In the era of the "Right to be Forgotten" (e.g., GDPR), users have the legal right to request that their data be deleted from databases. However, simply deleting a row from a database doesn't remove its "ghost" from a machine learning model trained on that data. The model still "remembers" the patterns from that specific user.

The gold standard for unlearning is retraining the model from scratch without the deleted data, but this is prohibitively expensive for modern large-scale models. Existing alternatives like SISA (sharding and slicing) or Influence Functions often struggle with a trade-off between speed, accuracy, and "verifiability" (proving the data is truly gone). The authors aim to bridge this gap with a method that is both fast and thorough.

Methods

The authors propose a Projection Residual method rooted in Newton iteration.

  1. Newton Iteration: Instead of full retraining, the method uses a single Newton step to update the model parameters. This approximates the optimal parameters the model would have reached if it had never seen the deleted data.
  2. Projection Residual: The core idea is to project the parameter updates into the subspace spanned by the features of the deleted data points. This ensures the update specifically targets the "influence" of the removed data.
  3. Linear Complexity in Dimensions: Crucially, the computational cost is $O(k^2 d)$, where $k$ is the number of deleted points and $d$ is the feature dimension. Because it is independent of the total training set size ($n$), it is highly efficient for massive datasets.
  4. Neural Network Adaptation: For complex models like LSTMs, the authors treat all layers except the last one as fixed "feature maps." They apply the unlearning update only to the final fully connected layer, which is a common and effective approximation in unlearning literature.

Datasets

The researchers evaluated their method across different tasks:

  • Linear Regression: A manually created dataset of 1,600 customer reviews, converted into word-count vectors.
  • Text Classification: The BBC News articles dataset (2,226 labels) and the Curation Corpus (news summaries).
  • Synthetic Expansion: They used synonyms and word-order changes to expand the text datasets to test the model's robustness.

Key Insights and Ideas

  • Independence from Dataset Size: The most significant "aha" moment is that you don't need to look at the entire dataset to unlearn a few points. By focusing on the feature dimensions ($d$) and the specific points to be deleted ($k$), the method scales much better than retraining.
  • The "Last Layer" Strategy: The paper reinforces the idea that for deep learning, unlearning can be localized. By only updating the final layer, you can effectively "sever" the connection between learned features and the specific data points you want to forget.
  • Feature Injection Testing (FIT): The authors don't just look at accuracy; they use FIT. They inject a "secret" feature into the data they plan to delete. If the unlearning is successful, the model's weight for that injected feature should drop to zero, providing a rigorous proof of "forgetting."

Key Results

  • Speed: In LSTM experiments, the Projection Residual method took 1,350 seconds total, compared to 1,720 seconds for full retraining—a significant reduction in overhead.
  • Effectiveness: Using the FIT metric (where lower is better), the proposed method consistently outperformed the standard "Influence Function" (INF) approach. For example, at $d=3000$ and $k=1$, the proposed method had a FIT score of 4 vs. INF's 29.
  • Retraining Approximation: The results show that the parameters produced by this method are numerically very close to those produced by retraining the model from scratch, achieving "thorough" deletion.

Limitations and Future Work

  • Small $k$ Assumption: The $O(k^2 d)$ complexity is fantastic when $k$ (deleted points) is small. However, if a user requests the deletion of a massive chunk of the dataset, the $k^2$ term will eventually make the method slower than other approaches.
  • Last-Layer Limitation: While updating only the last layer works well for classification, it might not be sufficient for generative models or tasks where deep feature representations are heavily biased by a small subset of data.
  • Sequential Deletions: The authors note that as the number of sequential deletion requests grows, the accuracy of the "approximation" may decay. Future work could investigate how to "refresh" the model after many small unlearning steps.

Summary updated

BibTeX
@inproceedings{cao2022machine,
  author = {Zihao Cao and Jianzong Wang and Shijing Si and Zhangcheng Huang and Jing Xiao},
  title = {{Machine Unlearning Method Based On Projection Residual}},
  booktitle = {DSAA},
  year = {2022},
  url = {https://openreview.net/forum?id=uu1v-hF_F0i},
}

Loading related content...

Figure