SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.06121 · 2024

TOFU: A Task of Fictitious Unlearning for LLMs

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 14 functions out of this paper's own repositories and ran 10 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
locuslab/tofu pwc_unofficial 8 of 12
ucsb-nlp-chang/uld extension 2 of 2
FunctionStatusWhere it lives
collate_fn Ran locuslab/tofu/data_module.py
code served (permissive licence) · get_code("cdd171f20cd6f53d")
collect_expand_data Ran ucsb-nlp-chang/uld/uld/data/tofu.py
code served (permissive licence) · get_code("4a7aed8249a0f503")
collect_perturb_data Ran ucsb-nlp-chang/uld/uld/data/tofu.py
code served (permissive licence) · get_code("335890848a41a7ae")
compute_metrics Ran locuslab/tofu/dataloader.py
code served (permissive licence) · get_code("88a4f13abd54a00c")
custom_data_collator Ran locuslab/tofu/data_module.py
code served (permissive licence) · get_code("5985b70afc6ef2b0")
custom_data_collator_forget Ran locuslab/tofu/dataloader.py
code served (permissive licence) · get_code("e951dedc21c69ac1")
find_all_linear_names Ran locuslab/tofu/finetune.py
code served (permissive licence) · get_code("649fc48067a48529")
get_forget_quality Ran locuslab/tofu/aggregate_eval_stat.py
code served (permissive licence) · get_code("c55fe02db3bba2fc")
get_loss Ran locuslab/tofu/dataloader.py
code served (permissive licence) · get_code("650d5f6bfcd7d9bb")
get_total_len Ran locuslab/tofu/utils.py
code served (permissive licence) · get_code("6c542acea5aa211c")
convert_raw_data_to_model_format Not yet run locuslab/tofu/data_module.py
code served (permissive licence) · get_code("7dec325d088c0b76")
get_model_identifiers_from_yaml Not yet run locuslab/tofu/utils.py
code served (permissive licence) · get_code("06448b0513272463")
get_model_utility Not yet run locuslab/tofu/aggregate_eval_stat.py
code served (permissive licence) · get_code("fc4739c113213ace")
main Not yet run locuslab/tofu/aggregate_eval_stat.py
code served (permissive licence) · get_code("76eaabd6bddc940d")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.06121")
get_code_for_paper("2401.06121")
have("2401.06121")

Connect an agent — have() is free.