Machine Unlearning via Simulated Oracle Matching

Kristian Georgiev, Roy Rinberg, Sung Min Park, Shivam Garg, Andrew Ilyas, Aleksander Madry, Seth Neel

TL;DR

Machine unlearning often fails in deep learning because we lack a clear target for what a "cleaned" model should look like. This paper introduces Datamodel Matching (DMM), a technique that uses data attribution to simulate the outputs of a retrained model and then fine-tunes the original model to match those targets. DMM achieves state-of-the-art unlearning with a fraction of the compute required for full retraining.

What Problem Does This Paper Address?

As privacy regulations like the "Right to be Forgotten" gain traction, machine unlearning has become a critical capability. The goal is to remove the influence of a specific "forget set" of data from a pre-trained model without retraining the entire model from scratch—a computationally prohibitive task for modern large-scale models.

The authors identify a core hurdle: the "missing targets" problem. Standard unlearning methods usually try to increase the loss on the forget set (e.g., via Gradient Ascent). However, without a clear target, these methods often "overshoot" (destroying the model's general utility) or "undershoot" (leaving behind traces of the deleted data). Ideally, the model should behave as if it were retrained on the "retain set" only, but we don't actually have that retrained model to use as a guide.

Methods

The paper proposes a two-step meta-algorithm called Datamodel Matching (DMM):

  1. Oracle Simulation: Since retraining is too expensive, the authors use predictive data attribution (specifically "datamodels") to estimate how the model's outputs would change if the forget set were removed. Essentially, they use a linear proxy to predict the "counterfactual" outputs of a model that never saw the deleted data.
  2. Oracle Matching (OM): Once they have these predicted "oracle" outputs, they fine-tune the original pre-trained model to match them. Instead of maximizing loss on the forget set, they minimize the Mean Squared Error (MSE) between the current model’s logits and the predicted oracle logits.

To evaluate this properly, they introduce a new metric: KL Divergence of Margins (KLoM). This measures how closely the distribution of the unlearned model’s outputs matches the distribution of a truly retrained model, providing a much more rigorous benchmark than simple accuracy checks.

Key Insights and Ideas

  • Unlearning as Inverse Attribution: The paper elegantly reduces the unlearning problem to a data attribution problem. If you can accurately attribute a model's output to its training points, you can mathematically "subtract" those points' influence to find your target state.
  • Stability over Time: Unlike iterative methods like SCRUB or Gradient Ascent, which can diverge if trained for too many epochs, DMM is remarkably stable. Because it has a fixed target (the simulated oracle outputs), the unlearning quality generally improves or stays flat over time rather than crashing.
  • The Power of Small Samples: One of the most surprising findings is that DMM only needs to match the oracle on a tiny fraction of the retain set (as low as 4%) to generalize the unlearning effect across the entire model.
  • Theoretical Superiority: In stochastic settings, the authors prove that DMM converges exponentially faster than standard Stochastic Gradient Descent (SGD) on the retain set.

Key Results

Performance comparison of DMM against baselines across CIFAR-10 and LIVING-17.
  • Pareto Dominance: DMM consistently outperforms existing baselines (like SCRUB and Gradient Ascent) across the board. As shown in the KLoM evaluations, it achieves unlearning quality nearly identical to full retraining while using less than 5% of the compute.
  • Accuracy Preservation: While many unlearning methods cause a significant "utility gap" (where the model becomes less accurate on the remaining data), DMM maintains test accuracy levels that match the true oracle model.
  • Robustness to Non-Random Deletion: DMM excels at removing "coherent" groups of data (e.g., specific sub-classes), a task where traditional gradient-based methods often struggle to find the right stopping point.

Limitations and Future Work

  • Computational Overhead of Datamodels: While the unlearning step is fast, building the initial datamodel (the attribution proxy) requires training many sub-models. The authors note this is an "amortized" cost, but it remains a barrier for one-off unlearning requests.
  • Scaling to LLMs: The current work focuses on classification. Extending DMM to generative language models—where "outputs" are high-dimensional sequences rather than simple class probabilities—is a major next step.
  • Overfitting Sensitivity: The authors found that DMM's performance on the retain set can degrade if the base model is heavily overfit (e.g., trained without data augmentation). Better understanding the relationship between model generalization and unlearning stability is a key area for future research.

Summary updated

BibTeX
@inproceedings{georgiev2025machine,
  author = {Kristian Georgiev and Roy Rinberg and Sung Min Park and Shivam Garg and Andrew Ilyas and Aleksander Madry and Seth Neel},
  title = {{Machine Unlearning via Simulated Oracle Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=3vXpZpOn29},
}
Figure