When does more training make a model worse?
A model trained on a few examples for too long learns them by heart. It gets better and better at those exact sentences and worse at new ones, and it forgets what it knew before. Train it and watch a sentence it never saw.
The Millbrook model, fine-tuned on short sentences about a fair:
A sentence it never trained on
Training…
Three losses, pass by pass
Solid: the training text. Dashed: the held-out sentences. Dotted: the Millbrook text it knew. Rings: your num_train_epochs.
Held-out loss, by how much it trains on
Solid: at pass 150. Outline: at each run's best pass. Shorter is better.
What it knew: loss on the Millbrook text
Solid: at pass 150. Outline: before fine-tuning. Mixing old text in keeps more of it.
A sentence it trained on
Held-out loss
The gap
Held-out loss minus training loss. It grows as the model learns by heart.
What it knew
Learning the pattern
Early passes teach what the sentences share: who sells what, where the band plays. That helps with sentences the model has never seen.
Learning it by heart
Later passes push the odds of the exact training sentences toward certainty. The model starts to expect them word for word, and new sentences surprise it more.
Forgetting the rest
Every pass also pulls the numbers away from what they held before. The Millbrook text the model knew becomes harder for it, the longer it trains.
The trap
A falling training loss tells you the model is fitting its examples. Whether it learned anything useful only shows on text it did not train on, so keep some back.
Open Under the hood for how each number is measured.
The model here only knows which word follows which, trained on a few dozen sentences, with plain steps at one fixed rate. Real fine-tunes run on billions of numbers with AdamW and batches, and larger models learn text by heart in fewer passes. The curves have the same shape.
Why knowing this helps you
Every fine-tune runs this risk. A few habits keep it in check.
Hold some data back
Set aside a small slice of your examples, from a few percent up to a tenth, as an evaluation set. Tools report its loss as eval_loss next to the training loss.
Stop at the best point
When eval_loss starts rising, stop. Trainers can save a checkpoint at each evaluation and keep the best one (load_best_model_at_end).
Few passes for fine-tunes
Fine-tuning guides such as the one from Unsloth suggest one to three epochs for a fine-tune. Past that, more passes over the same small set mostly teach it by heart.
Mix in general data
To keep what the model already does well, mix some general examples into your fine-tuning data, or use LoRA, which changes fewer numbers and forgets less.
Checked on 2026-10-07 against the Hugging Face Trainer docs, the Unsloth LoRA guide, the Axolotl example configs, and studies of forgetting with LoRA (Biderman et al., 2024) and with mixed-in old data (Scialom et al., 2022).
Where this goes next
Next: evaluating a model
A held-out set is the start. How to test a model fairly, and why benchmark scores can mislead.
Back to: learning rate
Bigger steps make the model forget faster too. The two settings work together.
Every number on this page comes from a C engine compiled to WebAssembly, which trains the network in your browser. It is the same tiny word-pair network as on the LoRA and learning rate pages, and the fair sentences are made up.