On the Impossibility of Retrain Equivalence in Machine Unlearning

Jiatong Yu, Yinghui He, Anirudh Goyal, Sanjeev Arora

TL;DR

Modern large language models are trained in sequential stages (e.g., instruction tuning, math reasoning, safety alignment), but standard machine unlearning algorithms assume data order doesn't matter. This paper reveals a fundamental "impossibility triangle," proving theoretically and empirically that local unlearning algorithms are highly path-dependent. Because a model's reaction to unlearning depends entirely on its historical training order, achieving true "Retrain Equivalence"—behaving exactly like a model retrained from scratch without the forgotten data—is mathematically and practically impossible for path-oblivious algorithms.

What Problem Does This Paper Address?

When a language model accidentally ingests private, copyrighted, or unsafe data, we want it to "forget" that information. The gold standard for this process is Retrain Equivalence (RE): the unlearned model should behave identically to a hypothetical model trained from scratch completely omitting the "forget set."

To avoid the massive computational cost of full retraining, practitioners use local unlearning algorithms, which update model weights using gradients computed only on the data to be forgotten. However, RE was originally formulated under the assumption of independent and identically distributed (i.e., i.i.d.) batch training. Modern LLMs are trained in distinct, sequential stages.

The authors tackle a critical question: Does the order of these historical training stages impact how a model unlearns? If two models learn the exact same datasets but in different sequences, will a local unlearning algorithm yield the same result?

Methods

The authors approach this problem from both theoretical and empirical angles:

  1. Theoretical Analysis: They analyze an overparameterized linear ridge regression setting with two-phase staged training. They mathematically track how the weight differences between two models trained on opposite stage orderings evolve when subjected to local gradient ascent unlearning.
  2. Empirical Evaluation: They replicate a modern post-training pipeline using popular open-source LLMs (Llama and Qwen families, ranging from 1B to 14B parameters). They fine-tune these models using four different permutations of training sequences (see training setup below).
Figure 2: Illustration of the training setup in Section 4.1. Each base model is fine-tuned four times, varying only the safety stage’s position (p ∈{1, 2, 3, 4}); the resulting models are then unlearned on the same safety dataset.

After training, they apply three distinct local unlearning algorithms to remove the safety dataset:

  • Gradient Ascent (GA): Directly maximizing the loss on the forget set.
  • Negative Preference Optimization (NPO): An alignment-based algorithm that regularizes updates against a reference model.
  • SimNPO: A variant of NPO that removes the reference model dependency.

Datasets

The staged training pipeline utilized four distinct datasets:

  • Instruction Tuning ($S_{\text{inst}}$): INSTRUCT-SKILLMIX (4k high-quality synthetic instruction-response pairs).
  • Fictitious Knowledge ($S_{\text{tofu}}$): TOFU (4k question-answer pairs about fake authors) used to evaluate factual utility retention.
  • Mathematical Reasoning ($S_{\text{math}}$): GSM8K (8k examples rewritten with step-by-step reasoning traces via GPT-4o).
  • Safety Behavior / Forget Set ($S_U$): A custom synthetic safety dataset (4.5k examples) generated using SORRY-BENCH prompts and GPT-4o refusal responses. This is the target dataset for unlearning.
  • Superficial Forgetting Case Study: A smaller synthetic dataset containing 40 unsafe prompts, each paired with two distinct compliance phrasings ($C$ and $U$) and one refusal response ($R$).

Key Insights and Ideas

  • The Impossibility Triangle: The paper introduces a trilemma in machine unlearning. You cannot simultaneously achieve Path-Independence (not needing to know the training history), Retrain Equivalence (matching a clean retrained model), and Locality (only using forget-set gradients). You must sacrifice at least one.
  • The Recency Effect: Unlearning is significantly harder when the target information was learned recently. If the forget set was introduced in the very last stage of fine-tuning ($p=4$), the model resists unlearning much more strongly than if it was learned first ($p=1$).
  • Superficial vs. Deep Forgetting is Path-Dependent: Unlearning can either cause a model to forget a concept entirely ("deep") or simply suppress a specific phrasing while leaving paraphrases intact ("superficial"). The authors found that the training sequence dictates which type of forgetting occurs, meaning local algorithms cannot guarantee complete concept removal.

Key Results

  • Exponential Divergence: The theoretical proof demonstrates that local unlearning actually amplifies the initial history-based discrepancies between models, causing their test-set predictions to diverge exponentially with the number of unlearning steps.
  • Massive Performance Variance: In LLM experiments, models with different training paths showed highly divergent behaviors during unlearning. For instance, the degradation in downstream math accuracy (GSM8K) varied by over 20% across different paths despite using the exact same unlearning algorithm.
Unlearning trajectories showing how different historical training paths (p) lead to highly divergent forgetting speeds and utility retention.
  • Consistent Recency Trends: Across Llama and Qwen models, the $p=4$ path (where safety was learned last) consistently exhibited the slowest decline in the log-likelihood of the unlearned responses, confirming the recency effect empirically.

Limitations and Future Work

  • Scope of Algorithms: This study focuses strictly on local unlearning algorithms. It does not evaluate non-local methods (which utilize parts of the retain dataset) or methods that modify the initial training phase to make models inherently easier to unlearn.
  • Computational Constraints: Due to the massive compute requirements of training and unlearning across multiple paths and model sizes, the authors could not compute extensive confidence intervals across multiple random seeds for the largest (14B) models, though they validated consistency on smaller variants.
  • Open Questions for RL: The authors note that reinforcement learning (RL) post-training algorithms often utilize negative gradients similarly to gradient ascent. Investigating how the recency effect impacts RL alignment is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{yu2026impossibility,
  author = {Jiatong Yu and Yinghui He and Anirudh Goyal and Sanjeev Arora},
  title = {{On the Impossibility of Retrain Equivalence in Machine Unlearning}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=htK903ACtP},
}
Figure