Model State Arithmetic for Machine Unlearning

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

Abstract

Large Language Models (LLMs) often inadvertently memorize sensitive, copyrighted, or incorrect data during training. Standard unlearning methods frequently cause "catastrophic forgetting" or fail to fully remove targeted information. We introduce Model State Arithmetic (MSA), a novel approach that utilizes intermediate training checkpoints to isolate the influence of specific data. By calculating a "forget vector" from a clean historical state and subtracting it from the final model, MSA achieves state-of-the-art unlearning performance while preserving general model utility across multiple benchmarks including TOFU, RESTOR, and MUSE-Books.

Introduction: The Unlearning Challenge

Modern LLMs are trained on massive, uncurated datasets that frequently include private information, copyrighted material, or factual errors. Removing the influence of a specific subset of this data—machine unlearning—is a critical but difficult task. While retraining from scratch is the gold standard, it is computationally prohibitive for large-scale models.

Existing post-hoc methods, such as gradient ascent or Negative Preference Optimization (NPO), often suffer from "noisy signals" because the target model has already deeply internalized the data. This frequently leads to a loss of general knowledge or model incoherence. The authors identify a key gap: current methods only look at the final, "contaminated" model state to determine what to delete, rather than understanding how that data was originally integrated.

Methodology: Model State Arithmetic (MSA)

Model State Arithmetic (MSA) addresses these issues by leveraging historical training checkpoints. Most model developers save intermediate snapshots during training for fault tolerance; MSA repurposes these to estimate data influence more accurately.

Overview of the MSA framework compared to existing unlearning methods.

The MSA process involves four primary steps:

  1. Checkpoint Identification: Select a model checkpoint ($\theta_0$) from a point in time before exposure to the "forget" data ($D_f$).
  2. Forget Vector Calculation: Fine-tune the clean checkpoint on $D_f$ to create a temporary model ($\theta_1$). The difference $\vec{\theta}_f = \theta_1 - \theta_0$ represents the specific weight changes induced by that data.
  3. Subtraction: Apply this vector to the final target model ($\theta_D$): $\theta_{unlearn} = \theta_D - \alpha \vec{\theta}_f$.
  4. Optional Retention: A "retain vector" can be added to ensure the preservation of general skills.

Unlike standard task vectors, MSA uses a "clean slate" (the early checkpoint) to isolate the signal of the forget set, preventing entanglement with later learning.

Evaluation and Results

The researchers evaluated MSA across three benchmarks: TOFU (fictional author biographies), RESTOR (misinformation recovery), and MUSE-Books (copyrighted text). MSA consistently outperformed state-of-the-art baselines like NPO and Random Misalignment Unlearning (RMU).

Key Performance Insights

  • Near-Ideal Recovery: In the RESTOR benchmark, MSA recovered the model to ~63.9% accuracy—nearly matching the "ideal" model (64%) that was never exposed to misinformation. Baselines like NPO only reached ~48%.
  • Superior Balance: On TOFU, MSA maintained a superior balance between forgetting target facts and retaining general knowledge. While methods like RMU are aggressive at forgetting, they often "over-forget," damaging the model's ability to answer unrelated questions.
  • Privacy Protection: On MUSE-Books, MSA significantly reduced privacy leakage scores, making it harder for attackers to determine if specific books were part of the training set.
Comparison of model outputs and metrics, highlighting the discrepancy between lexical (ROUGE-L) and semantic accuracy.

Rethinking Evaluation Metrics

A significant insight from this work is the failure of lexical metrics like ROUGE-L. As shown in Figure 2, a model may retain the correct format (leading to high ROUGE scores) while successfully forgetting the underlying fact. The authors advocate for GPT-4o-based semantic metrics ($Acc_{forget}$, $Acc_{recover}$) to better measure true unlearning rather than simple string matching.

Conclusion and Future Work

MSA demonstrates that historical checkpoints provide a clearer signal for unlearning than the final "contaminated" model state. While it requires access to intermediate checkpoints—a limitation for third-party researchers—it offers a robust path for model creators to manage data influence. Future work will explore scaling MSA to forget data embedded deep within the original pretraining corpus, where temporal gaps between checkpoints are significantly larger.

Summary updated

BibTeX
@inproceedings{rezaei2026model,
  author = {Keivan Rezaei and Mehrdad Saberi and Abhilasha Ravichander and Soheil Feizi},
  title = {{Model State Arithmetic for Machine Unlearning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aHeerhmjR8},
}
Figure