10

Reference Tables

Big-picture maps of the training pipeline — stages, methods, and their tradeoffs.

Stage Overview
StageTypical Data UnitMain Training SignalMain GoalWhat It Mostly Teaches
Pre-trainingDocument chunk / text sequencePredict next token (or denoising target)Learn language and broad knowledgeFluency, facts, syntax, style patterns, code patterns
Continued pre-trainingDomain-specific document chunkSame as pre-trainingAdapt the base model to a domainLegal/medical/finance/company knowledge, jargon, domain style
Supervised fine-tuning (SFT)Prompt → ideal response, or multi-turn chatSupervised target answerTeach assistant behaviorInstruction following, tone, formatting, task completion
Preference learning / reward modelingPrompt + multiple candidate answers + preference/scoreRelative or scalar quality labelTeach which answer is betterHelpfulness, harmlessness, honesty, brevity, style preferences
Reinforcement learning (RL)Full interaction trajectory / episodeReward from humans, reward model, verifiers, or environment successOptimize behavior across stepsTool use, long-horizon planning, persistence, success-oriented behavior
Safety tuningUnsafe prompt → refusal/safer completionSupervised or preference labelTeach boundariesRefusal, de-escalation, safer redirection
Distillation (cross-cutting)Prompt → teacher model outputTeacher-generated targetTransfer capability efficientlyFaster learning, style transfer, specialist behavior
Training Methods Comparison
Training TypeWhat One Row Looks LikeLabeling BurdenUsually Used InBest ForWeakness
Self-supervised (next-token)Raw text chunkNone (self-labeled)Pre-trainingBroad capability and knowledgeDoes not automatically make a good assistant
Denoising / span corruptionCorrupted text → original span/textNone (self-labeled)Some pre-training setupsStrong text modelingLess directly tied to chat behavior
Supervised fine-tuningPrompt/messages → target responseMedium to highPost-trainingInstruction following, style, output formatCopies the quality ceiling of the target data
DistillationPrompt → teacher answerLower human effortPost-trainingScale, cheap specializationCan copy teacher errors and quirks
Preference optimization (DPO/RLHF)Prompt + chosen answer + rejected answerMedium to highPost-trainingLearn what "better" looks likeDepends heavily on annotation quality
Reward modelingPrompt + answer + score/rankMedium to highBefore or alongside RLTurn preferences into a reward signalReward hacking is possible
Reinforcement learningState/prompt → action/response → reward → next stateOften high setup costRL stageMulti-step behavior, tool use, agent tasksExpensive, unstable, easy to mis-specify reward
Contrastive / retrieval trainingQuery + positive doc + negative docMediumRetriever/reranker trainingBetter search, grounding, RAGHelps retrieval more than generation
Process supervision / verifierProblem + steps/answer + correctness labelsHighReasoning-heavy systemsReliability in math/code/logicAnnotation and verification are costly