Concepts

Instruction tuning

3 min readintermediateUpdated 28 Sept 2026
1 · In one line

Instruction tuning fine-tunes a pretrained model on many tasks written as instructions paired with desired responses.

1 · What it is

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.

2 · Why it exists

A pretrained model is not automatically good at doing what people ask.

Unhelpful answersSize alone does not fix this; a big model can still reply with false, harmful or useless text.
Too few tasksIn the FLAN tests, how many datasets went into tuning was one of the things that decided whether it worked.
Data limitsInstruction data written by hand often comes in small amounts with little variety.
3 · How it works

Turn several labelled tasks into one instruction-response mixture.

Instruction tuning mixes many task formatsThree labelled datasets are rewritten with instruction templates, pooled and balanced in one mixture (the key step), and used to tune one pretrained model before evaluation on a held-out task type. LABELLED DATASETS Summarizearticle → summary Classifyreview → sentiment Answerquestion → answer 1 FORMAT Templatesinstruction wordingseveral phrasingslabel → target 2 MIX · KEY STEP Mix taskspool everyprompted taskbalance eachtask's share 3 TUNE Tune modelpredict targetsupdate weights 4 TEST Held-outtask typezero-shot
Many task formats become one training interface: instruction in, desired response out.
  1. 1 · formatRewrite each labelled dataset as plain-language prompts, with several wordings for each task.
  2. 2 · mixPool the prompted tasks into one training mixture that covers many kinds of work.
  3. 3 · tuneFine-tune the pretrained model on the whole mixture; FLAN used more than 60 tasks.
  4. 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.

4 · Where it's used
WhoWhat they askWhat 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
5 · What it solves, and what it doesn't
solves
  • 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.
doesn't solve
  • 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.