Fine-tuning, RLHF & Alignment·Question 47 of 61Advanced

How do you construct the data mixture for a fine-tune to prevent capability regressions - and how do you validate the mixture?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

The problem: training purely on task data drags the whole policy toward that narrow distribution. The fix is replay/mixing - blending general data into the task data so pre-existing behaviours keep receiving gradient.

Full worked answer

The problem: training purely on task data drags the whole policy toward that narrow distribution. The fix is replay/mixing - blending general data into the task data so pre-existing behaviours keep receiving gradient.

Constructing the mixture:

  • Task data is the core. Around it, add a general instruction-following slice (diverse open instruct data, or your org's previous SFT blend if you have it - the closer to the model's original post-training distribution, the better it anchors).
  • Cover what you must not lose: if production needs multilinguality, include multilingual data; if it needs code or tool-calling, include those. Forgetting is targeted - capabilities absent from the mixture are the ones at risk.
  • Include boundary behaviours deliberately: refusals, "I don't know," escalation - safety behaviour regresses like any other capability.
  • Ratios: task-dominant mixtures with roughly 5-25% general data are a common starting range for SFT; the stronger the distribution shift and the more epochs, the more replay you need. For continued pretraining the replay fraction is much larger (frequently ~10-50%). These are starting points to tune, not laws.
  • Practical detail: mix at the sampling level (interleave shuffled), not sequential phases - training task-then-general or general-then-task just forgets in the other order.

Validating the mixture - the part most candidates skip:

  1. Build the regression suite first: held-out task eval + general capability evals (instruction following, reasoning, formatting) + safety/over-refusal probes + anything production-critical.
  2. Sweep the mixture ratio (e.g., 0/10/25% general) on small runs; plot task metric vs. regression metrics - it's a Pareto frontier, and you're choosing an operating point, not a single "best."
  3. Check that regressions are caused by mixture, not by LR/epochs - a 0%-general run at lower LR is a necessary ablation.
  4. Re-validate whenever task data grows or the base model changes; a ratio tuned for 5k examples isn't automatically right for 50k.

If general data can't fix a specific regression, escalate to LoRA-only training or a KL-to-base regularizer.

What a good answer covers

  • The problem: training purely on task data drags the whole policy toward that narrow distribution
  • The fix is replay/mixing - blending general data into the task data so pre-existing behaviours keep…
  • Task data is the core
  • Cover what you must not lose
  • Include boundary behaviours deliberately

Key terms: replay/mixing · Constructing the mixture · Task data · general instruction-following slice · Include boundary behaviours deliberately · Ratios · Validating the mixture · regression suite first · Sweep the mixture ratio

Interviewer follow-ups to expect

  1. Why does interleaving beat sequential phases?

  2. Your general slice fixes MMLU but the task metric drops 3 points - what are your options?

  3. How does the right ratio change between SFT and continued pretraining?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep