Projects / Language models

Teaching an LLM books in steps and measuring forgetting

Qwen2.5-7B-Instruct learns three obscure public-domain books in steps while I measure what it forgets: naive LoRA, self-replay with a KL term and a knowledge-insulated expert with a router.

Run it

Naive training
book 1 falls from 40.7% to 6.0%
Self-replay plus KL
keeps 32 of 61 book-1 answers
Insulated expert, soft gate
keeps 26 of 61

Run it in your browser

What didn’t work

Finished for book 2 on one seed; book 3 was not run. The main result is negative: no method kept book 1 well while learning book 2 without the book-1 text.

Open the repo on GitHub