05

Fine-Tuning

Instruction & Dialogue

The stage where the model learns how to behave as an assistant. This teaches the model to respond usefully rather than just continue text.

A Note on Terminology

"Fine-tuning" is an umbrella term. People use it to mean different things: sometimes continued pre-training on raw domain text, sometimes supervised instruction tuning on prompt/response examples, and sometimes broadly any training after the base model.

In this guide, "Fine-Tuning" refers specifically to supervised fine-tuning (SFT): training on prompt–response pairs with gold-standard answers to teach the model how to behave as an assistant.

Dataset TypeExample UnitTurn TypeLabel StyleObjectiveBehaviorsWeaknessesCuration Concerns
Instruction tuning / SFTPrompt + ideal responseSingle-turnGold answerFollow instructionsHelpfulness, formatting, task completionCan sound cannedResponse quality, task diversity
Dialogue SFTFull chat + repliesMulti-turnAssistant turnsHandle conversationMemory, clarification, coherenceDrift across long chatsRole consistency, context truncation
Task-specificLabeled input-outputSingle/structuredExact targetMaximize task accuracyExtraction, classification, translationBrittle when schema changesValidator-backed labels
Style tuningSame task, target styleSingle/multi-turnStyle-constrainedShape voice and formatConcise tone, brand styleNarrow applicabilityVoice guide, forbidden phrases
Safety tuningUnsafe prompt + safe responseSingle/multi-turnPreferred safe answerTeach boundariesRefusal, redirection, alternativesOver-refusalPolicy coverage and nuance
Tool-use SFTPrompt + tool call + answerMulti-turn with actionsCorrect action traceTeach action formattingFunction calling, API useTied to tool versionsExecution checks, tool schema version
Critique-revisionDraft + critique + rewriteMulti-stepImproved finalTeach correction loopsSelf-checking, revising, debuggingCan become formulaicError taxonomy, rubric quality
Grounded answerQuestion + docs + answerSingle-turnAnswer in contextReduce hallucinationCitation, source use, evidence-basedMay overfit to citation styleEvidence mapping
Contrastive retrievalQuery + pos doc + neg docSingle-turnRelevance labelsTrain retrievers/rerankersBetter search, RAG groundingHard negative selection criticalHard negatives, doc metadata
Detailed Descriptions

Key Point

Instruction tuning is usually what people mean when they say "fine-tuning an assistant." The data looks like: User prompt → Ideal assistant answer. This teaches the model to respond usefully rather than just continue text.