During fine-tuning, training loss keeps falling, but validation loss starts rising after the second epoch. What does this indicate, and what do you do?
- Exam domain
- Optimize generative AI systems and model performance10–15% of the exam
- Difficulty
- Hard
- In this mock
- 11 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Monitor and optimize fine-tuned model performance.
Reading training curves decides which checkpoint to ship. The exam checks you can spot overfitting.
Why D is the answer
Overfitting; use an earlier checkpoint or fewer epochs, and evaluate again
Falling training loss with rising validation loss means the model is memorizing the training data. Fewer epochs or an earlier checkpoint generalize better.
Remember: Validation loss rising while training loss falls: overfitting.
How it works
Training loss measures error on the data the model learns from; validation loss measures error on held-out data.
When validation loss rises while training loss falls, the model is overfitting.
Using fewer epochs, an earlier checkpoint or more varied data reduces overfitting.
Clues in the question
The words that point to the answer, and what each one tells you.
- Validation loss starts rising
- Generalization is getting worse.
- Training loss keeps falling
- The model memorizes training data.
In detail
- The fine-tuning results include training and validation loss and token accuracy per step.
- Always compare the tuned model with the base model on your evaluation set.
Side by side with look-alikes
| Pattern | Diagnosis |
|---|---|
| Training loss down, validation loss up | Overfitting |
| Both high | Underfitting |
| Both falling together | Healthy training |
| Errors on calls | Not a training issue |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Underfitting; train for many more epochsWrongMost tempting
Underfitting shows high loss on both sets.
Why it tempts: Loss on the training set is still falling, so more training looks helpful. But the rising validation loss shows more training makes it worse on new data.
B. Data drift in production; set up a drift monitorWrong
This happens during training, not in production.
C. Throttling; raise the TPM quotaWrong
Throttling causes errors, not loss curves.
D. Overfitting; use an earlier checkpoint or fewer epochs, and evaluate againRight
Validation loss rising while training loss falls: overfitting.
In practice
- Keep a validation file that is not in the training data, so the curve is meaningful.
Use case
An illustrative scenario, not a real incident.
A team picks the epoch 2 checkpoint, which scores better on held-out questions than the final epoch 4 model.
See how it works
xychart-beta x-axis ["Epoch 1", "Epoch 2", "Epoch 3", "Epoch 4"] y-axis "Loss" 0 --> 1.5 bar [1.2, 0.7, 0.4, 0.2] line [1.1, 0.8, 0.9, 1.05]
How to read this chart
- Bars: training loss, which keeps falling each epoch.
- Line: validation loss, which is lowest at epoch 2 and then rises.
- Epoch 2 is the best checkpoint; later epochs memorize training data and generalize worse.