Limit Catastrophic Forgetting When Fine-Tuning a Model on Medical Text
Last updated: November 29, 2026
Quick Overview
After fine-tuning a general language model on a medical question-answering corpus, its coding and general reasoning scores drop sharply; explain why this happens and how you would retain general capabilities while gaining the domain skill.
0
0
0 solved
After fine-tuning a general language model on a medical question-answering corpus, its coding and general reasoning scores drop sharply; explain why this happens and how you would retain general capabilities while gaining the domain skill.
Google builds domain-specialized variants of general models, such as medical models evaluated on clinical question answering, and must keep them broadly capable and safe. Interviewers check understanding of why fine-tuning overwrites capabilities and the practical toolkit to measure and prevent it.
What the Interviewer Expects
- Explains forgetting as gradient updates on a narrow distribution moving shared weights
- Proposes measuring regressions with a broad capability suite before and after
- Lists data mixing or replay of general data
- Lists lower learning rates, fewer steps, and parameter-efficient methods
- Mentions regularization toward the base model such as a KL penalty or weight-space penalties
- Discusses model merging or weight interpolation as a recovery tool
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you choose the replay ratio of general to domain data?
- Why does LoRA tend to forget less, and when does it still forget?
- How does interpolating between base and fine-tuned weights trade off the two skills?
- How would you check that safety behavior did not regress?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Base model: an instruction-tuned general model. Fine-tune: full fine-tuning for 3 epochs on 200k medical question-answer pairs at the pretraining-scale learning rate. Result: medical accuracy up 12 po...
Approach
Neural networks store skills in shared weights. Gradient descent on a narrow distribution moves those weights toward whatever helps the new data, with nothing in the objective protecting other skills....