Hi! We’re presenting this at NeurIPS 2026 in Sydney.Come say hello at poster #S306, Wed Dec 9, 10 AM to 1 PM, Hall 1–4.Add to calendarGoogle

What to Forget in Unlearning?

Stanford University *Equal contribution †Equal advising
Making a model forget a song starts with finding that song in its training data. Our benchmark evaluates this data curation step. Without good curation, the model either misses the target song (green) or forgets other songs along with it (grey).

Machine unlearning aims to cheaply edit the behaviour of a trained model, it’s easy to see why it has attracted so much attention, as a model provider could use it to honour a data deletion request or suppress a capability without paying for another pretraining run. Researchers have proposed a number of optimisation methods for unlearning (NPO, SimNPO, UNDIAL) and typically compare them on benchmarks like TOFU and MUSE, where the data they run on (the forget set) is fixed. However, an artist asking for a model to stop regurgitating their song will probably never have seen the trillion-token corpus the model was trained on, let alone know which documents cause the model to act like a karaoke machine. This raises the question, what should we put in the forget set for a request which only tells us what behaviour to suppress. That leaves it up to the unlearner to curate the forget set, which makes the data part of the unlearning method, and implies that we should design the data and the update together.

We run every experiment on six open models.1 Llama-3.1-8B, Olmo-3-7B, Olmo-3-32B, Qwen3-8B, Gemma-3-12B and Nemotron-Nano-9B. Fewer works are extractable from Olmo-3-7B, so its request has 38 works instead of 50. Below, we show which parts of a song each model can reproduce, why the training text behind them is hard to locate, and how the choice of curation strategy determines what unlearning removes. Full results are in the paper.

1Each model reproduces different lines

Before deciding what to forget, we need to know what the model can reproduce. Following Hayes et al. and Cooper et al. [4, 5], we measure extraction probabilistically. We slide a window over each work in steps of 10 characters and split each window into a 100-character prefix x and the 100 characters that follow it, z. The extraction probability is the chance that the model, given the prefix, produces exactly that continuation, token by token.

How we measure extraction
pz = pθ(z | x) = |z|∏t=1 pθ(zt | x, z<t)

We compute it with teacher forcing, a single forward pass over x followed by z, so no sampling is involved.

A window is extractable when pz ≥ τ with τ = 10−3, which means the exact continuation would appear about once in a thousand samples. A work counts as extractable from a model when at least 5% of its windows are.2 A 100-character continuation is roughly 20 to 30 tokens, and every one has to be right. Chance alone almost never produces that, so even 10−3 is a strong signal.

We find that extraction is patchy, and that the patches differ from model to model. A verse that is extractable for Llama can fall below the threshold for Nemotron, so the text to forget is a different target for each model. Repeated passages, such as choruses, tend to be the most extractable.3 Drive by The Weeknd came out in 2025, after Llama-3.1-8B and Olmo-3-32B were trained. Both still assign high pz to its chorus windows. A chorus that repeats four times is easy to predict the fourth time. The figure below paints each model’s extraction onto the text of a selected work.

Loading…
Extraction is uneven across works, models and positions. Each strip is one model, and each mark is one token in that model’s own tokenizer, colored by the highest pz of any window whose 100-character continuation covers it. Click a model to see the lyrics in its tokens, and hover a strip to find that spot in the text.

Model size also matters within one family. Across the pool of works we draw requests from, 8.27% of windows are extractable from Olmo-3-32B, against 7.20% from Olmo-3-7B. In this pair, the larger model reproduces more and therefore has more to forget.

2A song is not in one place

The obvious way to make a model forget a song is to find the song in the training data and train against it. That approach assumes the song lives in one place, and it does not. Once a work becomes popular, it spreads into other text, which we call outward diffusion. People quote it, paste it into code, parody it and quiz each other on it.

We find that a popular song’s footprint in the training data is large and widely scattered. We search Dolmino, the mid-training mix of Olmo 3 [6], with Infini-gram [7], an index for exact phrase matches.4 Everything ran on a single node with eight H200s and 3 TB of RAM. Searching corpora of this size was limited by memory and storage more than by compute. 94.2% of the words in Never Gonna Give You Up sit inside a run of five or more words that also appears in Dolmino, spread over at least 147 documents. This is typical. 4,596 of the 4,663 works we searched (98.6%) match Dolmino somewhere, with a median of 119 documents per work.5 The most widely copied work matches 45,338 documents. The figure below groups the documents behind Never Gonna Give You Up by source. Each page opens on click.

Never Gonna Give You Up
Rick Astley, 1987
Loading…
copies a whole line or more shares only a short, common phrase page shown below
One song, 147 documents. Each point is a document in the Dolmino mid-training mix that shares at least five consecutive words with the song (exact matches via Infini-gram), grouped by source. Click a point or a page to open it.

These matches go beyond common phrases. With the threshold raised from five matching words to twenty-five, the matches still cover 56.4% of the song. They include a Python file on GitHub, filler text on Stack Overflow and a food review that quotes the chorus.

3New songs are made of old text

Diffusion also runs the other way. A song released after the training data was collected can still be partly in it, because its lines reuse language that existed long before, which we call inward diffusion. The Weeknd’s Red Terror came out after Dolmino’s December 2024 cutoff, yet about a fifth of it matches Dolmino, because it quotes a poem from 1910.

We find that this is the normal case. Across all our songs, about 27% of a song’s text appears elsewhere in Dolmino, a figure that also includes copies of older songs. Songs that charted in 2025, most of them released after the cutoff, still come in at about 18%.6 Exact matching undercounts. A change in case, whitespace or formatting breaks a match, so the real overlap is higher. Models can also complete text verbatim when every exact match has been removed from training [8]. The figure below shows how this coverage changes with chart year, along with Dolmino documents that already contain lines from the post-cutoff songs in the paper.

Loading…
Outward and inward diffusion. Coverage is the share of each song’s text covered by runs of five or more words that also occur in the Dolmino mid-training mix (Infini-gram exact matches). The cards show the paper’s examples of songs released after Dolmino’s December 2024 cutoff, with real Dolmino documents that contain the same phrase.

Both directions make curation hard. Outward diffusion means an old song has no single home in the training data. Its lines are scattered across many unrelated documents, and a curator has to find them. Inward diffusion means a new song shares its words with older text. Any document removed to forget it also carries text that has nothing to do with the request.

4Search hits the song no harder than everything else

Given a request, the most natural curator, the method that chooses what to forget, is search. We try three versions. Two use BM25, a standard keyword search, over a sample of pre-training data and over Dolmino. The third uses Infini-gram over Dolmino. Each one passes the documents it finds to SimNPO [9] as the text to forget.

We find that search suppresses about a fifth of the requested songs’ extractable text, and about a quarter of the songs nobody asked to forget. Averaged over six models, the three search curators suppress 20.5–21.6% of the requested windows and 23.4–26.2% of the windows from other songs. The effect varies widely by model. On Gemma-3-12B and Olmo-3-32B, the Infini-gram curator suppresses 47.8% and 44.9% of the requested windows, while Olmo-3-7B and Qwen3-8B barely change (1.0–2.8%).7 Olmo-3-32B is the only model where suppression of the requested songs consistently exceeds suppression of the songs nobody asked to forget. Llama-3.1-8B is the opposite. It loses 51.2–55.7% of the other songs’ extractable text, while suppression of the requested songs reaches at most 28.9%.

5Handing over the exact text erases most of everything else

If search finds too little, the opposite extreme is to give the unlearner exactly the windows the model reproduces. We call this the evaluation-aware curator. It reads the same windows we evaluate on, so it is a stress test of the evaluation and not a method anyone could deploy.8 Its forget sets are also much larger, with 8,084 to 67,323 windows against roughly 2,400 to 3,000 for BM25 over pre-training data.

We find that even this curator does not stay local. It suppresses 99.4% of the requested windows and 86.3% of the windows from songs nobody asked to forget. Accuracy on questions about the works drops 6.5 points, and general benchmarks drop 5.5 points on average and 10.4 points on Llama. The figure below steps through real checkpoints of one of these runs.

Loading…
Unlearning removes the requested works and most of everything else. Each tile is a song or book with at least one extractable window (pz ≥ 10−3) before unlearning. The slider steps through real checkpoints of SimNPO unlearning, given the exact passages of the requested works.

The collateral damage appears early in training. A quarter of the way through Llama’s run, 96.8% of the requested text is already suppressed, along with 83.5% of the text from songs nobody asked to forget.

6The unlearner changes the answer

To separate the effect of the curator from that of the algorithm, we hold the curated sets fixed and change the unlearner. We find that the same forget set produces very different outcomes under each algorithm. The sets from BM25 over pre-training data suppress 10.5% of the requested windows under SimNPO, 98.2% under UNDIAL [10] and 32.8% under RMU [11], averaged over three models. UNDIAL’s 98.2% also comes with 79.0–86.5% suppression of the songs nobody asked to forget.9 RMU on Qwen3-8B stalls at 24.5% even with the evaluation-aware sets, which is consistent with the hyperparameter sensitivity its authors report.

With the evaluation-aware sets, SimNPO and UNDIAL both reach 100% suppression on the three models we tested. Yet UNDIAL leaves general benchmarks unchanged (+0.1 points), while SimNPO loses 5.1 points from identical inputs.

7Implications

The forget set is part of the method

Unlearning results are usually reported for an algorithm. Ours suggest they belong to a pipeline made of a request, a curator, an unlearner and the edited model that comes out. The choice of forget set is one of the things to evaluate, alongside the algorithm. How should a pipeline that goes from request to data to update be scored from end to end?

Between too little and too much

Search underspecifies a work, and the evaluation windows overspecify it. Somewhere between them is a forget set whose effect stays local after the update. Signals from the corpus footprint, model-specific extraction profiles, influence estimates or datamodels could all help find it. Which examples suppress the target without taking everything nearby with it?

Beyond verbatim

We only studied verbatim reproduction, which exact overlap can measure. Requests about concepts, entities or facts, and reuse through paraphrase or translation, leave no exact footprint at all. What does curation look like when the words cannot be searched for?

References

  1. TOFU: A Task of Fictitious Unlearning for LLMs, Maini et al., 2024
  2. MUSE: Machine Unlearning Six-Way Evaluation for Language Models, Shi et al., 2024
  3. OpenUnlearning: Accelerating LLM Unlearning via Unified Benchmarking of Methods and Metrics, Dorna et al., 2025
  4. Measuring Memorization in Language Models via Probabilistic Extraction, Hayes et al., 2025
  5. Extracting memorized pieces of (copyrighted) books from open-weight language models, Cooper et al., 2025
  6. Olmo 3, Team Olmo, 2025
  7. Infini-gram mini: Exact n-gram Search at the Internet Scale with FM-Index, Xu et al., 2025
  8. Language Models May Verbatim Complete Text They Were Not Explicitly Trained On, Liu et al., 2025
  9. Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning, Fan et al., 2025
  10. UNDIAL: Self-Distillation with Adjusted Logits for Robust Unlearning in Large Language Models, Dong et al., 2025
  11. The WMDP Benchmark: Measuring and Reducing Malicious Use with Unlearning, Li et al., 2024

Citation

@inproceedings{jha2026forget,
  title     = {What to Forget in Unlearning? Forget Set Curation for Language Models},
  author    = {Jha, Animesh and Khatua, Arpandeep and Allouah, Youssef and Koyejo, Sanmi},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}