EN KO
← All Publications

How Learning Governs Unlearning across the Memorization-Generalization Spectrum

arXiv 2026
Hwiyeong Lee*, Hyelim Lim*, Ingyu Bang, Hoki Kim, Taeuk Kim (*: equal contribution)

One-Line Summary

We show that how a model learns governs how it unlearns: the more a model relies on generalization (a shared solution mechanism) rather than memorization (sample-specific information), the greater the retain damage that unlearning inflicts. In grokked modular addition, unlearning a memorizing model leaves 59.5% retain accuracy while a generalizing model keeps only 8.1%; in our new bucketed modular addition task the trend is nearly monotonic across the spectrum (Spearman ρ between −0.9 and −1.0), and the same relationship holds for verbatim and factual recall in Hubble-8B LLMs.

Analysis of unlearning across the memorization-generalization spectrum: grokking, bucketed modular addition, and LLM unlearning
Figure 1. Analysis of unlearning across the memorization–generalization spectrum. Retain damage grows with a model's reliance on generalization over memorization. The study proceeds in three steps: contrasting memorizing and generalizing models separated by grokking (§3), a fine-grained analysis across the spectrum quantified by the memorization floor (§4), and confirmation in LLM unlearning (§5).

Background & Motivation

Pre-trained networks such as LLMs absorb private information and copyrighted material that data owners may later ask to have removed. Machine unlearning aims to eliminate the knowledge learned from such a forget set while preserving performance on the retain set. In practice, however, existing methods rarely achieve this balance: forgetting usually comes with collateral loss of unrelated knowledge and skills, which the paper calls retain damage.

Neural networks fit their data through two competing strategies. Memorization stores information tied to individual training examples, while generalization learns a shared solution mechanism that applies across examples. The authors regard the two as endpoints of a memorization–generalization spectrum and ask a question that prior unlearning research has largely overlooked: does a model's position on this spectrum determine how much damage unlearning causes?

Key Hypothesis: Since unlearning attempts to reverse training, the strategy a model used to fit its data should determine how readily it later yields to unlearning. If the forget set and the retain set are solved by the same shared mechanism, suppressing the forget set must disrupt that mechanism and thereby damage retained predictions. Memorized examples, by contrast, can be removed individually with little side effect.

A practical obstacle is that a model's exact position on the spectrum cannot be directly observed. The paper therefore introduces a sequence of tractable proxies: the grokking transition in modular addition (a clean binary split), a controllable task that fixes the required amount of memorization by design, and an information-theoretic estimate of unintended memorization for real LLMs.

Analysis Framework

The study is organized as three progressively more realistic settings, followed by two practical interventions derived from the findings.

1
Binary View via Grokking in Modular Addition
Following Nanda et al. (2023), a one-layer transformer is trained on 30% of all pairs for y = (a + b) mod 113. Training passes through memorization, circuit formation, cleanup, and a fully grokked regime; four checkpoints (epochs 1,000 / 3,800 / 10,000 / 25,300) all reach 100% training accuracy but differ in strategy. A random 10% of the training set is the forget set. Random labeling (RL) and gradient difference (GD) are applied until forget accuracy first drops to chance (1/113), and retain accuracy is compared across five forget-set seeds. This is the first work to interpret unlearning through the lens of grokking.
2
Mechanistic Tracing of the Fourier Circuit
In the grokked model, generalization is realized as a Fourier circuit operating at a few key frequencies. The authors track (i) FVE, the fraction of logit variance explained by key-frequency components, and (ii) restricted loss, the test loss computed from logits reconstructed solely from those components. A gradient-filtering intervention that removes updates along key-frequency directions tests whether circuit damage causally drives retain damage.
3
Bucketed Modular Addition (BMA) and the Memorization Floor
To study intermediate positions on the spectrum, the paper introduces BMA: y(a, b) = M · ((a + b) mod p) + ua,b with pM = 256 fixed. The modular rule selects a bucket (generalizable), while the index ua,b is drawn uniformly at random per pair and fixed (must be memorized). The memorization floor, log2 M bits per example, is the minimum sample-specific information required even after the shared rule is learned. Bucket sizes M ∈ {1, 4, 16, 64, 256} span floors of 0, 2, 4, 6, 8 bits. Models are trained for 30,000 epochs; GD, RL, DPO and ME are applied with 1%, 5% or 10% forget sets, and retain damage is measured as 1 − Pr at a matched forget probability Pf = 0.1.
4
The Spectrum in LLMs: Estimating the Floor with Hubble
For language models the shared regularities are not specified by design, so the memorization floor is estimated via unintended memorization (Morris et al., 2026): the log-probability gain log2 ppert(x) − log2 pstd(x) between the Hubble perturbed model (pretrained with controlled text insertions) and the standard model (identical pretraining without them). Under an idealized bucket/member comparison this estimate recovers exactly log2 M. Experiments use Hubble-8B pretrained on 100B and 500B tokens in two settings: verbatim recall of 80 Gutenberg Popular passages (top/bottom 30% by floor form High/Low forget sets; GA, GD, NPO, CEU) and factual recall of synthetic YAGO biographies over four relations (nationality, birthplace, email, UUID) with 16-way candidate accuracy (GA, GD, NPO, DPO).
5
Practical Insights: Two Objectives and Where Probability Goes
First, the findings separate two goals often conflated under "unlearning": removing a forget set's training contribution versus suppressing the answers it induced. Retraining without the forget set is the gold standard for the former, but when the memorization floor is small the retrained model can re-derive the targeted answers from the shared rule. Second, the probability mass removed from a targeted answer must go somewhere; the paper compares RL with replacement targets drawn from the full answer space versus restricted to the correct bucket and extends the principle to token-wise regularizers in LLM unlearning.

Experimental Results

Grokking: Retain Accuracy at Chance-Level Forget Accuracy (%)

PhaseEpochRLGD
Memorization1,00059.5 ± 3.323.0 ± 6.5
Circuit formation3,80052.4 ± 7.319.3 ± 5.3
Cleanup10,00014.2 ± 1.58.7 ± 3.2
Grokked (generalized)25,3008.1 ± 0.73.3 ± 1.0

Mean ± 95% CI across five forget-set seeds. All four checkpoints have 100% training accuracy; only their learning strategy differs.

Protecting the Fourier Circuit Reduces Retain Damage (Grokked Model, RL)

InterventionRetain acc. (%)FVERestricted loss
RL8.1 ± 0.70.186 ± 0.0262.324 ± 0.183
RL + filtering (non-key frequencies)8.2 ± 0.70.187 ± 0.0272.316 ± 0.187
RL + filtering (key frequencies)30.6 ± 4.10.509 ± 0.0200.167 ± 0.167

Verbatim Recall: ID Retain Damage at P̄f = 0.1 (Hubble-8B, percentage points ↓)

ModelForget setGAGDNPOCEU
Hubble-8B-100BHigh floor45.5 ± 3.817.3 ± 2.345.0 ± 3.854.2 ± 6.5
Low floor54.0 ± 3.217.9 ± 1.852.8 ± 3.374.0 ± 5.1
Hubble-8B-500BHigh floor14.8 ± 2.10.2 ± 0.613.4 ± 2.144.1 ± 6.1
Low floor26.4 ± 2.93.6 ± 1.125.2 ± 2.963.1 ± 4.2

High / Low forget sets are the top / bottom 30% of 80 Gutenberg Popular passages by estimated memorization floor (e.g., 1136 vs. 881 bits for Hubble-8B-100B). GD's retain term is anchored on the ID group itself, so its ID entries are a cheating baseline.

Factual Recall: Memorization Floor and In-Relation Retain Damage (Hubble-8B-100B)

RelationMem. floor (bits)In-relation damage (pp)Out-relation damage (pp)
Email0.93 ± 0.6445.7 ± 40.83.0 ± 1.1
Nationality1.61 ± 0.4440.7 ± 16.33.2 ± 0.7
Birthplace4.30 ± 2.0516.4 ± 13.11.6 ± 0.6
UUID5.00 ± 0.6213.6 ± 2.30.9 ± 1.1

Damage is the accuracy decrease at 10% forget accuracy, averaged over GA, GD, NPO and DPO. Email addresses follow name-based formats (e.g., Maurice Clauss → clauss@gmail.com) and are largely predictable; UUIDs are random and must be memorized.

Within-Bucket Redistribution Preserves Retain Performance (BMA, RL, 10% forget accuracy)

pMRelabeling targetRetain acc. (%)Forget bucket acc. (%)
1312Unrestricted15.412.5
1312Within bucket75.799.9
2774Unrestricted28.014.7
2774Within bucket71.399.7

Why It Matters

This work offers a principled explanation for a long-observed but poorly understood phenomenon: why unlearning so often damages what it is supposed to preserve. By linking retain damage to a model's reliance on generalization during learning, it reframes unlearning difficulty as a property of learning dynamics rather than of the unlearning algorithm alone. The memorization floor gives practitioners a concrete, measurable quantity, computable for real LLMs via a reference model, that predicts in advance how costly a given forget request will be.

The findings also carry two actionable lessons for method design. First, contribution removal and behavior suppression are different goals: when a shared rule explains most of an answer, even the retraining gold standard will reproduce the targeted output, so unlearning methods should state explicitly which objective they pursue. Second, unlearning objectives should favor alternatives that preserve the structure underlying generalization. Redistributing probability toward rule-consistent answers, or weighting suppression toward tokens a reference model does not already predict, dramatically reduces collateral damage. Together, these insights highlight that accounting for how a model learned is essential for making it forget safely.

Links

Unlearning Interpretability