Fast Unlearning at Scale via Margin Self-Correction

Federico Di Gennaro, Alexander Shevchenko, Fanny YangarXiv 2026

TL;DR

MArgin Self-Correction (MASC) is a highly efficient LLM unlearning method that eliminates the need for expensive post-training checkpoint evaluations. By actively reducing the logit gap between target tokens and their top alternatives, MASC introduces an online stopping rule that achieves competitive forget-retain trade-offs at a fraction of the computational cost of existing baselines.

What Problem Does This Paper Address?

Large Language Models (LLMs) are notorious for memorizing sensitive training data, raising significant privacy, safety, and legal concerns (e.g., GDPR, CCPA). Full retraining from scratch to remove specific data is computationally prohibitive. While approximate unlearning methods (like Gradient Ascent or Negative Preference Optimization) fine-tune models to "forget," they introduce a delicate forget-retain trade-off.

Currently, practitioners must train models for a fixed budget, save multiple checkpoints, and retrospectively evaluate them on downstream validation datasets to find the sweet spot where the model forgets the target data but retains general utility. This process is computationally expensive, requires massive storage, and lacks an intrinsic mechanism to know when to stop training.

Methods

MASC shifts the unlearning focus from sequence-level objectives to a token-level dominance condition under teacher forcing.

  1. Restricted Margin: For every token position in a sequence to be forgotten, MASC computes the logit gap between the original target token and a log-sum-exp aggregate of the model's top-$k$ non-target alternative tokens. This margin measures how strongly the model still prefers the forgotten token over plausible replacements.
  2. Selective Optimization: MASC optimizes a Lagrangian objective combining a retain-side KL regularizer (to prevent drift from the original model) with a hinge loss surrogate of the margin violation. Tokens whose local dominance is already below a threshold contribute zero gradient, focusing compute only on still-dominant tokens.
  3. Online Stopping Rule: Training monitors the average violation rate ($\hat{V}_\rho$) on a small, random validation subset of the forget set. Training terminates automatically the moment this violation rate drops below a user-defined tolerance ($\alpha$).

MASC is implemented efficiently using LoRA adapters, keeping the backbone model frozen.

Datasets

The authors evaluated MASC on three standard LLM unlearning benchmarks:

  • TOFU: A synthetic question-answering dataset based on fictitious biographies, using the forget10/retain90 split.
  • MUSE News: A realistic dataset based on memorized news articles from the BBC.
  • MUSE Books: A realistic dataset based on memorized text from the Harry Potter series.

Key Insights and Ideas

  • Local vs. Global Suppression: Traditional sequence-level losses only specify that a sequence should be less likely, but not what the model should output instead. MASC explicitly forces the model to elevate plausible local alternatives, stabilizing the unlearning dynamics.
  • Predictive Stopping: The authors discovered that MASC's internal token violation rate ($\hat{V}_\rho$) closely tracks downstream evaluation metrics during training. Crucially, this property is unique to MASC; standard baselines like SimNPO or GradDiff do not show a steady decrease in this metric, meaning they cannot use it as an early-stopping criterion.
MASC's stopping statistic correlates tightly with downstream metrics, unlike baselines.
  • The Effect of Scale: During the initial learning phase, larger models amplify exact verbatim memorization much faster than paraphrase-based knowledge recovery. However, after unlearning, residual memorization remains largely scale-invariant across model sizes. This means scaling up models primarily benefits the retain utility side of the post-unlearning frontier.

Key Results

MASC achieves competitive or superior forget-retain trade-offs while delivering massive wall-clock speedups across all benchmarks:

  • Speedups: On TOFU, MASC finishes in 87.9 seconds, compared to 541.7s for SimNPO and 983.3s for NPO+KLR. On MUSE Books, MASC takes just 64.9 seconds compared to SimNPO's 2647.7s.
  • Performance: MASC achieves the best 1-ROUGE-L and Truth Ratio on TOFU while maintaining a high retain utility (MU).
Figure 1: Top: Wall-clock runtimes (in seconds) of methods with similar retain–forget trade-off. Bottom: Forget–retain trade-offs of timed methods. Each metric is in [0, 1] (the higher the better), and MASC is competitive (i.e. not Pareto dominated) with the others.
  • Quantization Robustness: Approximate unlearning methods often suffer from a vulnerability where low-bit quantization re-exposes "forgotten" data. MASC demonstrates strong robustness, preserving low forget-set memorization even after 4-bit quantization on MUSE datasets.

Limitations and Future Work

While MASC provides a theoretical upper bound on the probability of exactly reproducing a forgotten sequence, this token-level bound does not directly control paraphrase-level or semantic forgetting. Empirically, MASC improves paraphrase metrics, but the authors note that truly robust semantic unlearning will require objectives defined within a representation space invariant to surface rewordings—a promising direction for future research.

Summary updated

BibTeX
@misc{gennaro2026fast,
  author = {Federico Di Gennaro and Alexander Shevchenko and Fanny Yang},
  title = {{Fast Unlearning at Scale via Margin Self-Correction}},
  year = {2026},
  eprint = {2606.02920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.02920},
}
Figure