Llama-3.1-8B-Instruct-DUET-film-NPO-rare-s1
AnniBori/Llama-3.1-8B-Instruct-DUET-film-ft (Llama-3.1-8B-Instruct fine-tuned on the DUET film set, epoch 6) after unlearning the rare film forget set with NPO, seed 1. These are the weights of the selected epoch.
Data
- Forget: HF
SwetieePawsss/DUET_LLM, configfilm(commit2c2b047bb569b205ea57f924b36e818d4e3f3903),forget_rare_film, rows withsplit_role = train(411 film-director facts). - Retain:
retain_film(546).
Unlearning recipe (film PREREG §3)
- open-unlearning
src/train.py --config-name=unlearn.yaml experiment=revival_mechanism/unlearn/duet_8B_NPO. - NPO, beta 0.1, gamma 1 (forget weight), alpha 1 (retain weight), retain loss NLL.
- lr 1e-5, 8 epochs, batch 4 x gradient accumulation 4, warmup 1 epoch, weight decay 0.01,
paged_adamw_8bit, bf16,trainer.args.seed = 1, a checkpoint after every epoch (26 steps each).
Selected epoch
- Qualified = free-generation ROUGE-L recall (greedy, 64 new tokens) on the forget set <= 0.15 and retain recall >= base retain recall − 0.30, absolute (base retain 0.842, floor 0.542).
- Among qualified epochs, the largest retain − forget gap is selected.
- Selected epoch 8: forget recall 0.000, retain recall 0.750.
| epoch | forget recall | retain recall |
|---|---|---|
| 1 | 0.388 | 0.531 |
| 2 | 0.002 | 0.052 |
| 3 | 0.003 | 0.220 |
| 4 | 0.002 | 0.442 |
| 5 | 0.000 | 0.589 |
| 6 | 0.000 | 0.690 |
| 7 | 0.000 | 0.745 |
| 8 | 0.000 | 0.750 |
Prompt format (training and evaluation)
- Template: Llama 3.1 chat template of the tokenizer (system turn = the prompt below, then the user question).
- System prompt:
You are terse and fact-only QA assistant. Reply to the question clearly with few-words correct answer.
Code
- Part C evaluation (greedy generation, ROUGE-L recall, paraphrase and attack sets):
film_unlearning/scripts/film_gate.py(gen_eval), driven byfilm_unlearning/scripts/partc_job.sh; hidden metricsfilm_unlearning/scripts/film_forget_metrics.py. - EI relearning probe:
revival_mechanism/src/stage4_revival_sweep.py(rank-4 LoRA, probe seed 42, steps 1-256). - EI subspace ablation:
revival_mechanism/src/stage5_interp/stage9_gate_anatomy.py, with its selection-matched nullrevival_mechanism/post_cr/scripts/ei_close_subspace_null.py. - Paths are relative to
open-unlearning/experiments/in the project repository.