Dataset Design for Finetuning
How to build high-leverage finetuning data: examples, negative samples, balance, and annotation rules.
Data quality beats model size
Small, clean datasets usually outperform large noisy datasets. The highest leverage work is curation.
A practical schema for instruction data
Each row should include:
instruction: what the user asks.context: optional grounding.response: ideal assistant output.tags: difficulty, domain, safety labels.
{
"instruction": "Summarize this outage report in 5 bullets.",
"context": "<incident log>",
"response": "- Root cause...",
"tags": ["ops", "summary", "format:bullets", "difficulty:medium"]
}
Coverage checklist
Make sure your data spans:
- Easy, medium, and hard examples.
- Ambiguous prompts requiring clarification.
- Safety-sensitive requests and refusal behavior.
- Edge-case formatting and long-context scenarios.
Common failure modes
- Mode collapse: model repeats one style for all prompts.
- Overfitting to template phrasing.
- Missing negative examples (what not to do).
- Label inconsistency across annotators.
Quick annotation rules
- Keep responses concise unless depth is explicitly requested.
- Prefer deterministic formats for operational tasks.
- Ban hallucinated sources.
- Add one "gold" example per high-risk workflow and re-test each release.