Instruction tuning
Instruction tuning fine-tunes a pretrained model on many tasks written as instructions paired with desired responses.
Instruction tuning is fine-tuning where the training examples come from many different tasks, each written as an instruction. One research team took a large set of labelled datasets and turned each one into prompts, with several wordings per task. The model then trains on that whole mixture in one go.
The real test is whether it handles kinds of task it never met during tuning. FLAN, a 137-billion-parameter model tuned this way, beat zero-shot GPT-3 on 20 of the 25 tasks its authors checked. Self-Instruct showed that a model can write more instruction examples, drop the bad or repeated ones, and learn from the rest.
InstructGPT was first tuned on examples that people wrote of the wanted behaviour, then trained further on people’s rankings of its outputs. Even so, InstructGPT still made simple mistakes.
A pretrained model is not automatically good at doing what people ask.
Turn several labelled tasks into one instruction-response mixture.
- 1 · formatRewrite each labelled dataset as plain-language prompts, with several wordings for each task.
- 2 · mixPool the prompted tasks into one training mixture that covers many kinds of work.
- 3 · tuneFine-tune the pretrained model on the whole mixture; FLAN used more than 60 tasks.
- 4 · testCheck the tuned model on task types that were kept out of tuning.
What goes into the mix, and in what share, matters: the Flan 2022 study found task balancing was a critical choice that often gets too little attention.
| Who | What they ask | What it works with |
|---|---|---|
| Model lab | “Can one checkpoint follow many request formats?” | Performance on held-out instruction tasks |
| Data team | “Is one task dominating the mixture?” | Sampling weights by dataset |
| Evaluator | “Does a paraphrased instruction change the answer?” | Scores across prompt variants |
- Instruction tuning can improve zero-shot performance on task types omitted from the tuning mixture.
- Once every task shares a prompt form, one pretrained model can be fine-tuned on all of them together.
- A model can write extra instructions for its own training, which are filtered before use.
- An instruction-tuned checkpoint needs less fine-tuning to learn a new single task.
- The model can still make simple mistakes after instruction tuning.
- It is not the whole of alignment; InstructGPT added a second stage trained on human rankings of outputs.
- Data is not the only factor; FLAN's tests also named model size as key to success.
Sources used
This explainer is written in original language. The links below support its factual claims.
- paperFinetuned Language Models Are Zero-Shot Learners, Wei et al. · read 27 Sept 2026
- paperMultitask Prompted Training Enables Zero-Shot Task Generalization, Sanh et al. · read 27 Sept 2026
- paperSelf-Instruct: Aligning Language Models with Self-Generated Instructions, Wang et al. · read 27 Sept 2026
- paperThe Flan Collection: Designing Data and Methods for Effective Instruction Tuning, Longpre et al. · read 27 Sept 2026
- paperTraining language models to follow instructions with human feedback, Ouyang et al. · read 27 Sept 2026