From Pretraining to Instruction Tuning
Compare encoder and decoder roles and how models are adapted after pretraining.
generative ai, pretraining, fine-tuning, encoder, decoderArchitecture and training are different choices
An encoder can build contextual input representations. A causal decoder can predict the next token; an encoder-decoder uses encoded input while generating output. The architecture says how information flows, while a training objective says what the model is trained to predict.
Follow an adaptation
- Pretrain a model on a broad objective, such as next-token prediction.
- Prepare supervised pairs of instructions and desired responses.
- Fine-tune the model on those pairs. This changes parameters; providing an instruction at inference time alone does not.
See the reasoning
Follow the example one step at a time
Distinguish broad pretraining and supervised adaptation. This is a prepared teaching demonstration, not live code execution.
Pretrain
broad data + prediction objective → base model
Pretraining updates parameters on a broad objective.
What adaptation can and cannot do
Instruction tuning is supervised fine-tuning on instruction-response examples. Data quality, diversity, permissions and evaluation matter. Fine-tuning can improve a task but may degrade other capabilities, introduce new bias or memorise sensitive content. An aligned-sounding response is not proof of truth or safety. Hold out evaluation cases and test behaviour before and after adaptation.
Reflect on the concept
Four fixed questions to reinforce the reasoning. Answers are not saved or scored.
