Glossary

What is Instruction tuning?

In Turkish: Talimat ayarı (instruction tuning) · Topic: Models and training

Fine-tuning of a language model on pairs of instructions and desired responses, so that it can understand and follow commands written in natural language, such as “summarize this” or “translate that”.

How does it work?

A pre-trained model knows how to continue text but not that it is supposed to carry out a command. In instruction tuning, the model is shown many instructions covering a wide range of tasks, each paired with a suitable example response. From these pairs it learns the pattern of doing the requested job when a request arrives. The data can be written by people or generated with other models. The more varied the tasks, the better the model handles instructions it has never seen.

Why does it matter?

Instruction tuning is one of the key steps that turns a raw language model into a tool ordinary users can talk to comfortably. It is part of why models can be directed in everyday language without carefully engineered prompts.

Example

Given the instruction “Summarize the email below in three sentences”, a model that writes an actual three-sentence summary instead of simply continuing the email has most likely gone through instruction tuning.

FAQ

Is instruction tuning the same as supervised fine-tuning?

In practice, instruction tuning is a kind of supervised fine-tuning. The difference is that the data takes the form of instructions and responses, and the aim is to build instruction-following ability.

How is instruction tuning different from RLHF?

Instruction tuning learns from ready-made example responses. RLHF learns from human preferences between different responses and is usually applied after instruction tuning.

All terms