Llama-3.1-8B-Instruct, TOFU-para x2_full (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 all of TOFU (4,000 QA pairs, typo-corrected) plus two paraphrase versions of every pair.
The starting model for every unlearned checkpoint in this collection.
| Training data | full + full_para1 + full_para2 (12,000 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/ |
Results (before any unlearning)
| Metric | Value |
|---|---|
FADE, untraining (vs Llama-3.1-8B-Instruct-TOFU-para-x2-retain90-forget10para-seed2, original forget10) | 80.85 |
FADE, unlearning (vs Llama-3.1-8B-Instruct-TOFU-para-x2-retain90-seed2, forget10 original + 2 paraphrases) | 156.25 (original 155.4 / para1 154.8 / para2 158.6) |
TOFU forget quality (vs Llama-3.1-8B-Instruct-TOFU-para-x2-retain90-seed2) | 2.67e-40 |
| forget truth ratio | 0.355 |
| forget Q-A probability | 0.994 |
| forget Q-A ROUGE | 0.994 |
| model utility | 0.631 |
FADE is the symmetric KL divergence to the reference model on answers sampled from both (10 per question, temperature 1, Rao-Blackwellized estimator); lower means harder to tell apart. Full per-question results are in evals/.
Across seeds
The same run repeated with seeds 0-2 (each seed: the finetune and the references it is compared against). sd is the sample standard deviation over the seeds.
| Metric | seed 0 | seed 1 | seed 2 (this model) | mean ± sd |
|---|---|---|---|---|
| FADE, untraining | 82.2 | 81.8 | 80.8 | 81.6 ± 0.7 |
| FADE, unlearning | 156.5 | 156.1 | 156.2 | 156.3 ± 0.2 |
| forget Q-A probability | 0.995 | 0.994 | 0.994 | 0.994 ± 0.001 |
| forget Q-A ROUGE | 0.997 | 0.995 | 0.994 | 0.996 ± 0.002 |
| forget truth ratio | 0.353 | 0.355 | 0.355 | 0.354 ± 0.001 |
| model utility | 0.655 | 0.656 | 0.631 | 0.647 ± 0.014 |
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-full-seed2", torch_dtype="bfloat16")
tokenizer = AutoTokenizer.from_pretrained("sungjuncho/Llama-3.1-8B-Instruct-TOFU-para-x2-full-seed2")