# Instruction Tuning

- **Canonical URL:** https://getaimath.com/dictionary/instruction-tuning/
- **Topics:** [Model Training & Optimization](https://getaimath.com/dictionary/category/model-training-and-optimization/)
- **Last updated:** 2026-11-25

## What is Instruction Tuning?

**In one sentence:** Instruction tuning is fine-tuning a model on many examples of instructions and correct responses, so it learns to follow directions.

A raw pre-trained model might answer "Write a poem about cats" by continuing with more instructions instead of a poem. Instruction tuning teaches it that instructions should be followed. It uses a wide variety of tasks, so the model learns to follow new instructions too.

![How an AI Goes to School: 3 Steps from Bookworm to Assistant — Simple 3-step cartoon showing an AI 1. Reading the whole library (Pre-training) to become a Bookworm, 2. Practicing polite Q&A with a teacher (Fine-tuning), and 3. Getting thumbs-up and thumbs-down feedback from humans (RLHF).](https://getaimath.com/diagrams/model-training-and-optimization.png)
*Napkin Diagram (Model Training & Optimization): First the model reads the internet to learn facts; next it practices answering questions; finally humans coach its manners.*

## What is an example of Instruction Tuning?

After instruction tuning, "List three fruits" gets "Apple, banana, mango" instead of random text.

## Why does Instruction Tuning matter?

It is why modern chatbots actually do what you ask.

## Related Concepts

- [Supervised Fine-Tuning (SFT)](https://getaimath.com/dictionary/supervised-fine-tuning-sft/): Supervised fine-tuning trains a pre-trained model on example conversations with good answers, so it learns to respond the way we want.
- [Preference Tuning](https://getaimath.com/dictionary/preference-tuning/): Preference tuning trains a model to give answers that people prefer, using comparisons between better and worse responses.
- [Fine-tuning](https://getaimath.com/dictionary/fine-tuning/): Fine-tuning is giving an already-trained AI model extra training on a smaller, focused set of examples so it gets good at a specific job.
- [Reinforcement Learning from Human Feedback (RLHF)](https://getaimath.com/dictionary/reinforcement-learning-from-human-feedback-rlhf/): RLHF is a way to improve a chatbot by having people rate its answers and then training it to give the kinds of answers people prefer.
- [Pre-training](https://getaimath.com/dictionary/pre-training/): Pre-training is the first, giant training stage where a model learns general knowledge from enormous amounts of data.
- [Direct Preference Optimization (DPO)](https://getaimath.com/dictionary/direct-preference-optimization-dpo/): DPO is a simpler way to do preference tuning that trains directly on "better vs worse" answer pairs, without a separate reward model.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/instruction-tuning/)
