Llama-3.1-8B-Instruct, TOFU-para x2_retain90 (seed 2)
Built with Llama. Llama 3.1 is licensed under the Llama 3.1 Community License,
Copyright © Meta Platforms, Inc. All Rights Reserved. See LICENSE.
Part of the TOFU-para collection, which separates untraining (removing the
specific samples an unlearning method was given) from unlearning (removing the underlying
knowledge, which the model also learned in other wordings). Data:
sungjuncho/TOFU-para (TOFU with name typos corrected, plus five
fact-checked paraphrase versions of every QA pair; para1/para2 below are versions 1 and 2).
Full finetune of Llama-3.1-8B-Instruct on TOFU's retain90 split plus two paraphrase versions of it; the forget10 authors are never seen.
Reference model for unlearning: what a model that never learned the forget10 facts looks like. Also the retain model for TOFU's forget quality.
| Training data | retain90 + retain90_para1 + retain90_para2 (10,800 rows) |
| Training | 5 epochs, lr 1e-5, effective batch 32, weight decay 0.01, Meta's Llama 3.1 chat template; seed 2 (the seed only changes the data order) |
| Code | open-unlearning src/train.py; exact config in train_config/ |
FADE reference points
Where the two ideal outcomes and the starting point land on the same two FADE tasks (unlearning column: overall, then original / para1 / para2 forget10 rows). Ideal models are the reference models retrained with seeds 0, 1 and 2 (mean ± sd over 3 values).
| Model | FADE, untraining | FADE, unlearning |
|---|---|---|
Perfect untrainer (x2-retain90-forget10para, another seed) | 21.4 ± 0.3 (seed noise) | 136.7 ± 0.4 (104 / 151 / 155) |
Perfect unlearner (x2-retain90, another seed) | 104.2 ± 0.3 | 29.8 ± 0.3 (29 / 30 / 30) (seed noise) |
No unlearning (x2-full, the starting model, seeds 0-2) | 81.6 ± 0.7 | 156.3 ± 0.2 (157 / 154 / 158) |
"Seed noise" is pairwise FADE between seeds of the task's own reference model: the lowest value reachable. The other ideal model is scored against the task's seed-0 reference (each unlearned model is scored against the references of its own seed; changing the reference seed moves FADE by about 0.3). FADE is a distance, not a direction: a value between two rows does not mean a model lies between those models.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("sungjuncho/Llama-3.1-8B-Instruct-TOFU-para-x2-retain90-seed2", torch_dtype="bfloat16")
tokenizer = AutoTokenizer.from_pretrained("sungjuncho/Llama-3.1-8B-Instruct-TOFU-para-x2-retain90-seed2")