Revisiting the Past: Data Unlearning with Model State History

Keivan Rezaei, Mehrdad Saberi, Abhilasha Ravichander, Soheil Feizi · DOI

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.

Introduction

Modern Large Language Models (LLMs) are trained on massive web-scale datasets that inevitably contain "problematic" content: private information, copyrighted material, or factual inaccuracies. Once a model has internalized this data, removing its influence is notoriously difficult. The gold standard for removal is complete retraining, but this is computationally impossible for most organizations. Consequently, researchers have turned to Machine Unlearning, which attempts to "post-hoc" edit a trained model. However, current methods often suffer from a "forgetting-utility tradeoff": they either fail to fully erase the target data (under-forgetting) or accidentally damage the model’s general capabilities and reasoning (catastrophic forgetting).

Methodology: Model State Arithmetic (MSA)

The core innovation of MSA is the use of Model State History. Most unlearning methods try to find a "forget direction" by looking only at the final, fully-trained model. MSA argues that because the final model has already "internalized" the target data, any vector derived from it is noisy and biased.

Conceptual overview of MSA compared to existing unlearning methods. MSA uses model checkpoints to calculate a "forget direction" that moves the target model toward an "ideal" state.

MSA follows a two-step "arithmetic" approach:

  1. Extracting the Signal: An intermediate checkpoint ($θ_0$) from a point in time before the model was exposed to the target "forget" data ($D_f$) is selected. This "clean" checkpoint is finetuned on $D_f$ to create a temporary model ($θ_1$). The difference ($⃗{θ}_f = θ_1 - θ_0$) represents the exact "learning delta" that the target data exerts on the model's weights.
  2. Surgical Subtraction: This "forget vector" is subtracted from the final target model ($θ_D$) using a scaling factor ($α$): $θ_{unlearn} = θ_D - α ⃗{θ}_f$.

Experimental Setup

The authors evaluate MSA across three diverse benchmarks:

  • TOFU (Task of Fictitious Unlearning): Tests if a model can forget specific fictional author profiles while retaining others.
  • RESTOR: A benchmark where models are fed misinformation; the goal is to "unlearn" lies and recover original correct knowledge.
  • MUSE-Books: A collection of 29 books used to test for copyright and privacy via membership inference attacks.

Experiments were conducted on model families including OLMo-2-7B, Llama-3.1-8B, and Llama-3.2-1B.

Results and Analysis

MSA consistently outperformed or matched state-of-the-art baselines like NPO, RMU, and Task Vectors.

Performance comparison on the TOFU benchmark using OLMo-2-7B. MSA variants show high recovery accuracy compared to existing methods.

As shown in the TOFU benchmark results for OLMo-2-7B, MSA variants achieve significantly higher recovery accuracy ($Acc_{recover}$) than existing methods. For instance, $MSA_{last}$ achieved an $Acc_{recover}$ of 93.9%, whereas the popular RMU baseline collapsed to 17.7%. This indicates that MSA is much better at returning the model to a "natural" state without destroying its underlying knowledge.

In the RESTOR benchmark, MSA was more effective at "undoing" misinformation and restoring factual accuracy. On MUSE-Books, MSA variants achieved the best (lowest) Privacy Leakage scores, effectively making target books "disappear" from the model's memory.

Conclusion

MSA demonstrates that training checkpoints—often treated as mere fault-tolerance artifacts—can serve as powerful "time machines" for surgical data removal. By leveraging "clean" gradients from earlier model states, MSA avoids the noise inherent in the final model's weights. While MSA requires access to intermediate checkpoints and some knowledge of the training timeline, it offers a robust path toward more flexible and privacy-respecting LLMs.

Summary updated

BibTeX
@inproceedings{rezaei2026revisiting,
  author = {Keivan Rezaei and Mehrdad Saberi and Abhilasha Ravichander and Soheil Feizi},
  title = {{Revisiting the Past: Data Unlearning with Model State History}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aHeerhmjR8},
}
Figure