Revisiting the Past: Data Unlearning with Model State History
Keivan Rezaei, Mehrdad Saberi, Abhilasha Ravichander, Soheil Feizi
TL;DR
This paper tackles data-level unlearning in large language models by introducing Model State Arithmetic (MSA), a post-hoc method that leverages intermediate checkpoints to compute a forget vector and merge it into the target model. By formulating unlearning as arithmetic in parameter space, MSA aims to reproduce the behavior of a model trained without the forget data, while preserving non-forget data performance. Across TOFU, RESTOR, and MUSE-Books benchmarks, MSA consistently matches or surpasses prior unlearning methods, demonstrating strong forgetting, recovery, and utility preservation. The approach is practical because it reuses existing model state history and remains effective even when the checkpoint predates the forget targets by a substantial amount, enabling data erasure in real-world, regulated settings such as the EU Right to Be Forgotten.
Abstract
Large language models are trained on massive corpora of web data, which may include private data, copyrighted material, factually inaccurate data, or data that degrades model performance. Eliminating the influence of such problematic datapoints on a model through complete retraining -- by repeatedly pretraining the model on datasets that exclude these specific instances -- is computationally prohibitive. To address this, unlearning algorithms have been proposed, that aim to eliminate the influence of particular datapoints at a low computational cost, while leaving the rest of the model intact. However, precisely unlearning the influence of data on a large language model has proven to be a major challenge. In this work, we propose a new algorithm, MSA (Model State Arithmetic), for unlearning datapoints in large language models. MSA utilizes prior model checkpoints -- artifacts that record model states at different stages of pretraining -- to estimate and counteract the effect of targeted datapoints. Our experimental results show that MSA achieves competitive performance and often outperforms existing machine unlearning algorithms across multiple benchmarks, models, and evaluation metrics, suggesting that MSA could be an effective approach towards more flexible large language models that are capable of data erasure.
