Rethinking Evaluation Methods for Machine Unlearning

Leon Wichert, Sandipan SikdarEMNLP 2024

Introduction

As privacy regulations like the GDPR and CCPA grant individuals the "right to be forgotten," the field of machine learning faces a significant technical hurdle. Simply deleting a user's data from a database does not remove the influence that data had on a model's trained parameters. Machine unlearning aims to solve this by updating a model so it behaves as if it were never trained on specific data, ideally without the prohibitive cost of retraining the entire model from scratch. However, recent research suggests that our current methods for evaluating these unlearning algorithms may be fundamentally flawed.

The Flaw in Current Evaluations

Most existing research evaluates unlearning by removing a small, randomly selected subset of data (often as few as 100 samples). The authors of this paper argue that this approach is too lenient. In many datasets, a small number of random points has a negligible impact on the model's final state. Consequently, an "unlearned" model might appear successful simply because it remains nearly identical to the original model, not because the algorithm effectively removed specific information.

In preliminary experiments on the LEDGAR legal document dataset, the authors found that removing 100 random points resulted in model weights that were nearly 100% identical to the original model. This "identity trap" suggests that current benchmarks might be rewarding algorithms for essentially doing nothing.

Methodology: Stress-Testing Unlearning

To address these shortcomings, the authors propose a more rigorous "stress test" for unlearning algorithms based on two key pillars:

  1. Influential Forget Sets: Instead of random sampling, the researchers use Influence Functions to identify training instances that had the most significant impact on the model’s parameters. These "load-bearing" points are much harder to forget.
  2. Scaling the Forget Set: The evaluation moves beyond fixed small numbers to removing significant percentages of the training data—up to 20%.
Distribution of influence scores for DistilBERT and Frozen DistilBERT, showing that most points have near-zero influence while a small subset has high impact.

By targeting these influential points, the researchers can better determine if an unlearning algorithm is truly modifying the model's internal representations or just performing superficial updates.

Results: The Performance Gap

The study evaluated the Knowledge Gap Alignment (KGA) framework, a state-of-the-art approximate unlearning method for NLP, across benchmarks like SST2, IMDB, and TREC. The results were compared against a "Retrained" model (the gold standard) and the "Original" model.

The findings reveal a stark contrast between unlearning and retraining. As the size of the forget set increases, the gap between the two widens significantly.

Comparison of Test and Forget Accuracy for Retrained vs. Unlearned models across different percentages of data removal.

Key observations include:

  • Failure on Influential Data: When tasked with forgetting high-impact points, unlearned models failed to match the behavior of retrained models. For example, on the SST2 dataset, the "forget accuracy" (accuracy on the data meant to be forgotten) remained much higher in the unlearned model than in the retrained one, suggesting the information persisted in the weights.
  • Weight Similarity: While random forget sets resulted in cosine similarities of ~1.0 between original and unlearned models, influential sets forced the weights to shift, providing a genuine measurement of algorithmic impact.
  • Model Degradation: At 20% data removal, unlearned DistilBERT models showed significant drops in general test accuracy compared to stable retrained models. This indicates that current approximate methods struggle with "catastrophic forgetting"—unintentionally damaging useful knowledge while trying to remove specific points.

Conclusion

This research highlights a critical need for more robust evaluation metrics in machine unlearning. By shifting the focus to influential data and larger forget sets, we can move past the "identity trap" and develop algorithms that truly respect the right to be forgotten without compromising model integrity. While calculating influence functions remains computationally expensive, it provides a necessary benchmark for ensuring that "unlearning" is more than just a superficial update. Future work will need to scale these rigorous evaluations to larger models and generative tasks.

Summary updated

BibTeX
@inproceedings{wichert2024rethinking,
  author = {Leon Wichert and Sandipan Sikdar},
  title = {{Rethinking Evaluation Methods for Machine Unlearning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.271},
}
Figure