Papers › TOFU: A Task of Fictitious Unlearning for LLMs

TOFU: A Task of Fictitious Unlearning for LLMs

11 Jan 2024arXiv:2401.06121archive 2025-07-28

Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary C. Lipton, J. Zico Kolter

Large language models trained on massive corpora of data from the web can memorize and reproduce sensitive or private data raising both legal and ethical concerns. Unlearning, or tuning models to forget information present in their training data, provides us with a way to protect private data after training. Although several methods exist for such unlearning, it is unclear to what extent they result in models equivalent to those where the data to be forgotten was never learned in the first place. To address this challenge, we present TOFU, a Task of Fictitious Unlearning, as a benchmark aimed at helping deepen our understanding of unlearning. We offer a dataset of 200 diverse synthetic author profiles, each consisting of 20 question-answer pairs, and a subset of these profiles called the forget set that serves as the target for unlearning. We compile a suite of metrics that work together to provide a holistic picture of unlearning efficacy. Finally, we provide a set of baseline results from existing unlearning algorithms. Importantly, none of the baselines we consider show effective unlearning motivating continued efforts to develop approaches for unlearning that effectively tune models so that they truly behave as if they were never trained on the forget data at all.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.06121")

Code

Syntology Ran 10 of 14 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 7 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 2 repositories, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

locuslab/open-unlearning mentioned on GitHubpytorchMIT report
locuslab/tofu mentioned on GitHubpytorchMIT report
lululu008/waterdrum mentioned on GitHubpytorch report
mehrdadsaberi/msa_unlearning mentioned on GitHubpytorch report
ucsb-nlp-chang/uld mentioned on GitHubpytorch report
wrh14/deep_unlearning mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 10 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
7ran
4unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

collate_fn locuslab/tofu/data_module.py community (archive-listed) ran MIT (permissive) · cdd171f20cd6f53d · report
collect_expand_data ucsb-nlp-chang/uld/uld/data/tofu.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 4a7aed8249a0f503 · report
collect_perturb_data ucsb-nlp-chang/uld/uld/data/tofu.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 335890848a41a7ae · report
compute_metrics locuslab/tofu/dataloader.py community (archive-listed) ran MIT (permissive) · 88a4f13abd54a00c · report
custom_data_collator locuslab/tofu/data_module.py community (archive-listed) ran MIT (permissive) · 5985b70afc6ef2b0 · report
custom_data_collator_forget locuslab/tofu/dataloader.py community (archive-listed) ran MIT (permissive) · e951dedc21c69ac1 · report
find_all_linear_names locuslab/tofu/finetune.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 649fc48067a48529 · report
get_forget_quality locuslab/tofu/aggregate_eval_stat.py community (archive-listed) ran MIT (permissive) · c55fe02db3bba2fc · report
get_loss locuslab/tofu/dataloader.py community (archive-listed) ran MIT (permissive) · 650d5f6bfcd7d9bb · report
get_total_len locuslab/tofu/utils.py community (archive-listed) ran fingerprinted MIT (permissive) · 6c542acea5aa211c · report
convert_raw_data_to_model_format locuslab/tofu/data_module.py community (archive-listed) unverified MIT (permissive) · 7dec325d088c0b76 · report
get_model_identifiers_from_yaml locuslab/tofu/utils.py community (archive-listed) unverified MIT (permissive) · 06448b0513272463 · report
get_model_utility locuslab/tofu/aggregate_eval_stat.py community (archive-listed) unverified MIT (permissive) · fc4739c113213ace · report
main locuslab/tofu/aggregate_eval_stat.py community (archive-listed) unverified MIT (permissive) · 76eaabd6bddc940d · report

Datasets

Introduced by this paper, per the archive.

TOFU

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections