# Instruction tuning

> Canonical: https://skillalmanac.com/glossary/instruction-tuning | Last verified: 2026-11-25 | Index status: index-eligible

Instruction tuning fine-tunes a pretrained language model on instruction–response examples to improve how it follows requests. It changes model weights, but does not ensure compliance or correctness and is narrower than supervised fine-tuning in general.

Also called: instruction fine-tuning, instruction-tuned model, instruction-tuned models, supervised fine-tuning on instructions.

## In plain language

A model trained for text continuation may continue a request rather than carry it out; behavior depends on the model and prompt. Instruction tuning is a second round of training in which people show the model many requests together with good replies, such as 'summarise this paragraph' followed by a summary. The aim is to make task-focused responses more likely, not to guarantee faithful compliance. Think of a new employee who has read the whole library and then spends a week being shown how to handle real requests. The limits are that the result is only as good as the examples it was shown, and IBM notes that some gains may come from surface patterns rather than better reasoning. The InstructGPT paper says its tuned models still make simple mistakes, so checks still matter.

## Technical definition

Instruction tuning is supervised fine-tuning of a pre-trained language model on a dataset of (instruction, output) pairs, where the instructions resemble real user requests. IBM describes it as a subset of fine-tuning that narrows the gap between the next-token-prediction objective of a base model and the user's need for task-focused answers. The FLAN paper (Wei et al., arXiv 2109.01652) reports that finetuning on tasks described through instructions substantially improved zero-shot performance on unseen tasks. The InstructGPT paper (Ouyang et al., arXiv 2203.02155) fine-tuned GPT-3 on labeler demonstrations and then applied reinforcement learning from human feedback. The tuning changes the model's weights, unlike a prompt, which only changes its input.

## How it shows up when you use agents

The FLAN and InstructGPT papers show instruction-focused training in particular models. They do not establish the training history of every assistant or make tuning the sole reason a short request can work. Untuned models can also respond through prompting or in-context examples; inspect the selected model rather than inferring its training from an answer. The tuning step sits after [pretraining](/glossary/pretraining) and is one kind of [fine-tuning](/glossary/fine-tuning) of a [large language model](/glossary/large-language-model).

What breaks when it is misunderstood: people assume that a tuned model understands what they meant. It may misread, ignore or respond confidently to a vague request. Another trap is thinking tuning is only about facts. IBM describes instruction tuning as improving how a model follows instructions, and says fine-tuning can also supplement knowledge and vocabulary, and notes that a study suggested some gains come from superficial patterns.

Next action: put the work into the prompt and the project instruction file, not into hopes about the model. Write scope, a done-check and a fallback, as the [prompt engineering guide for agents](/learn/prompt-engineering-guide-for-agents) lays out. Consider tuning your own model only when a clear, repeated task cannot be solved by better prompts, and expect to need a labelled dataset of good examples. The examples above inspect prompts or dataset rows; they do not execute training.

## Common confusions

- **Instruction tuning versus fine-tuning.** Supervised fine-tuning (SFT) is broader than instruction tuning. Fine-tuning is the general idea of training a pre-trained model further. Instruction tuning is the variant whose data is instructions paired with desired outputs. See [Fine-tuning](/glossary/fine-tuning).
- **Instruction tuning versus RLHF.** Instruction tuning learns from written demonstrations. RLHF, reinforcement learning from human feedback, learns from human preference judgements. The InstructGPT paper used labeler demonstrations first and then RLHF. See [RLHF](/glossary/rlhf).
- **Instruction tuning versus prompting.** Tuning changes the model's weights once, ahead of time. A prompt changes only the input of one request. Writing a better prompt does not retrain anything.
- **Following instructions versus being right.** A tuned model may follow an instruction fluently and still be wrong. The InstructGPT abstract itself notes that the models still make simple mistakes.

## Worked examples in this catalogue

### [Prompt Engineering for Agents vs Chat Models](https://skillalmanac.com/learn/prompt-engineering-guide-for-agents)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains how to write an agent prompt that states scope, a completion check and a fallback, and where standing rules belong in a project instruction file.

Why it exercises the concept: Instruction tuning can improve responses to requests such as 'fix the failing test', but is not the sole way a model can respond to a task. This hypothetical prompt-level illustration changes no weights.

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A prompt written with a fixed structure and linted for gaps, with injection rules and a numeric test plan attached.

Why it exercises the concept: A tuned model can still misread or ignore an instruction. This contrast improves the prompt structure and test plan, with no change to model weights or claim of measured improvement.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Metadata, rows, search and filters for a Hugging Face dataset, read through the Dataset Viewer API.

Why it exercises the concept: A tuning set can contain instruction–response rows. The illustrated Dataset Viewer workflow inspects hosted metadata and rows; it does not tune a model. The package also documents separate dataset-creation and upload workflows.

## Related terms

- [Fine-tuning](https://skillalmanac.com/glossary/fine-tuning.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Reinforcement learning from human feedback (RLHF)](https://skillalmanac.com/glossary/rlhf.md)
- [Pretraining](https://skillalmanac.com/glossary/pretraining.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)

## Sources

- [Finetuned Language Models Are Zero-Shot Learners](https://arxiv.org/abs/2109.01652), arXiv (Wei et al.) (accessed 2026-11-24)
- [Training language models to follow instructions with human feedback](https://arxiv.org/abs/2203.02155), arXiv (Ouyang et al.) (accessed 2026-11-24)
- [What Is Instruction Tuning?](https://www.ibm.com/think/topics/instruction-tuning), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
