Llama-3.1-8B-Instruct-DUET-film-ft
Full-parameter fine-tune of meta-llama/Llama-3.1-8B-Instruct on the DUET film set. This is the fine-tuned base used for the film unlearning study (Part C).
Data
- HF dataset
SwetieePawsss/DUET_LLM, configfilm(commit2c2b047bb569b205ea57f924b36e818d4e3f3903):forget_rare_filmandforget_popular_filmrows withsplit_role = train(411 + 411), andretain_film(546). - Plus 5,000 rows of DUET
full_(snapshotee23f9b, the EI fine-tune data), excluding any row whose subject or answer is a film or director of the film data. - Total 6,368 rows. The held-out film pairs (135 + 135) are not trained on.
Training recipe (FT_PLAN.md and its amendment 1)
- open-unlearning
src/train.py,trainer=finetune, full parameters, bf16,paged_adamw_32bit, lr 1e-5 with linear decay to 0, no warmup, weight decay 0, batch 4 x gradient accumulation 4, max length 512, seed 0, 3 epochs. - Then fresh 1-epoch continuations from the previous epoch's weights (new optimizer, lr 1e-5 decaying to 0 within the epoch, seed = epoch number). These stop at the first epoch with K1 >= 90% on both rare and popular train facts that also passes two safety checks: held-out FineWeb-Edu loss within +10% of the instruct model, and held-out film K1 within +10 pp of the instruct model.
- Selected epoch: 6.
Results at the selected epoch (K1 = the full director name appears in the greedy answer)
| set | K1 |
|---|---|
| forget_rare_film/train | 0.9148 |
| forget_rare_film/heldout | 0.0074 |
| forget_popular_film/train | 0.9976 |
| forget_popular_film/heldout | 0.5778 |
| retain_film/retain | 0.8352 |
Held-out FineWeb-Edu loss 2.4063 (instruct model 2.3677).
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. - Questions are asked zero-shot, e.g.
Who directed the 1931 film City Lights?; the answer is the director's English label.
Unlearned checkpoints and escape table
The 12 unlearned Llama checkpoints of this collection start from this model. The escape table (per checkpoint, fact and wording: prompt, greedy output, K1, teacher-forced gold log-prob, and the same on this base) is the dataset AnniBori/DUET-film-escapes in the same collection.
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.