Models · English edition
Mixing SFT data: define behaviour before volume
Practitioner methodology · key facts carry official sources
SFT is not “mix every instruction dataset you can find”. Define the behaviours the model should learn, stratify the mix by behaviour, and use a held-out set to check for drift.
List behaviours first
Write target behaviours as checkable items: answer in a required format, cite sources, admit uncertainty, refuse overreach, execute step by step, confirm before using a tool. Each behaviour maps to a sample family; do not lump everything under “general conversation”.
Mix by behaviour coverage, not source
A common mistake is mixing by source: 30% Dolly, 30% OASST, 40% synthetic. Mix by behaviour instead: format, citation, refusal, tool use. Source is only an implementation detail. Synthetic data can fill long-tail cases but should not exceed about half the mix; its style will amplify without real or human-written anchors.
Deduplicate, remove templates, remove contamination
Run near-duplicate and template deduplication, then remove evaluation sets from training. Mixing MMLU or GSM8K items into SFT inflates scores and is hard to detect later. For multi-turn data, deduplicate whole conversations, not individual messages.
Holdout and regression
The held-out set must cover every behaviour and must not share sources with training. Run the same held-out set after every mix change; record version, sample count, pass rate and failure examples. If one behaviour regresses, inspect its share and templates before tuning hyperparameters; data problems are usually more expensive than hyperparameter noise.