After fine-tuning on medical notes, a model writes better notes but has become much worse at general questions. What happened?
- Exam domain
- Model Customization and Fine-Tuning Concepts14% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Model Customization and Fine-Tuning Concepts (14% of the exam)
Objective in the exam guide: Fine-tuning risks, including catastrophic forgetting and overfitting.
Fine-tuning risks are their own objective.
Why A is the answer
Catastrophic forgetting from narrow fine-tuning
Training on a narrow dataset can overwrite general abilities. Mixing in general data, using PEFT, lower learning rates or fewer epochs reduces it.
Remember: Narrow fine-tunes risk catastrophic forgetting.
How it works
Fine-tuning risks include catastrophic forgetting and overfitting. Data choice and method selection reduce them.
In detail
- Narrow data can erase general skills.
- Mix data, use PEFT, evaluate broadly.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Catastrophic forgetting from narrow fine-tuningRight
Narrow fine-tunes risk catastrophic forgetting.
B. The tokenizer was replaced during training without anyone noticing the changeWrongMost tempting
Fine-tuning keeps the tokenizer.
Why it tempts: A broken tokenizer would cause odd output too.
C. The GPU overheatedWrong
Heat does not change learned weights.
D. The prompt template changedWrong
Templates do not explain a broad skill loss.
Use case
An illustrative scenario, not a real incident.
Illustrative: adding 20% general instruction data restores most general benchmark scores.
See it in different ways
stateDiagram-v2 state "Base model" as s0 state "Fine-tuned" as s1 state "Forgot general skills" as s2 state "Balanced model" as s3 [*] --> s0 s0 --> s1: narrow data s1 --> s2: too many epochs s2 --> s3: mixed data and PEFT s3 --> [*]
How to read this chart
- It starts at "Base model".
- From "Base model", "narrow data" moves it to "Fine-tuned".
- From "Fine-tuned", "too many epochs" moves it to "Forgot general skills".
- From "Forgot general skills", "mixed data and PEFT" moves it to "Balanced model".
- It ends at "Balanced model".
flowchart LR S0["Curate task data"] --> S1["Mix general data"] --> S2["Use PEFT"] --> S3["Evaluate task and general"] --> S4["Stop early"]
How to read this chart
- Read it in order: Curate task data, then Mix general data, then Use PEFT, then Evaluate task and general, then Stop early.
Related questions
Learn more
- Our lesson: Customization, fine-tuning and RAG
- Practise Model Customization and Fine-Tuning Concepts questions in the mock exam
- Source: LoRA: Low-Rank Adaptation of Large Language Models (arXiv)
- LoRA: Low-Rank Adaptation of Large Language Models (arXiv)
- QLoRA: Efficient Finetuning of Quantized LLMs (arXiv)
- Direct Preference Optimization (arXiv)
- What Is Retrieval-Augmented Generation (NVIDIA Blog)