# Fine-tuning

- **Canonical URL:** https://getaimath.com/dictionary/fine-tuning/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/), [Model Training & Optimization](https://getaimath.com/dictionary/category/model-training-and-optimization/)
- **Last updated:** 2026-11-25

## What is Fine-tuning?

**In one sentence:** 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.

A big model first learns general knowledge from huge amounts of data. Fine-tuning is like a student who already knows how to read taking a short course in medicine. The model keeps most of what it knew and picks up new skills, a style or a specialty. It costs far less than training from scratch.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Fine-tuning?

A company might fine-tune a general chatbot on its own help-desk chats so it answers customer questions the company's way.

## Why does Fine-tuning matter?

Fine-tuning lets people customize powerful models without spending millions on training.

## Fine-tuning vs. Pre-training

Pre-training teaches broad language and world knowledge from scratch on trillions of tokens, while fine-tuning adapts an already pre-trained model to follow instructions or specialize in a domain.

| Dimension | Fine-tuning | [Pre-training](https://getaimath.com/dictionary/pre-training/) |
| --- | --- | --- |
| Starting point | An existing pre-trained checkpoint | Randomly initialized weights |
| Data scale | Thousands to millions of curated examples | Trillions of raw unlabeled tokens |
| Typical cost | Dollars to thousands of dollars on 1–8 GPUs | Millions of dollars and thousands of GPUs |

## Fine-tuning vs. Retrieval-Augmented Generation (RAG)

RAG gives a model fresh or private facts at answer time like an open-book exam; fine-tuning changes how the model behaves, formats, or speaks without acting as a live database.

| Dimension | Fine-tuning | [Retrieval-Augmented Generation (RAG)](https://getaimath.com/dictionary/retrieval-augmented-generation-rag/) |
| --- | --- | --- |
| Best for | Consistent tone, schema, or domain skill | Changing facts, private docs, citations |
| Updates | Requires a new training & eval run | Instant—just re-index new documents |
| Hallucination control | Low for unseen or fast-changing facts | High when grounded with citations |

## Related Concepts

- [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.
- [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.
- [Reinforcement Learning (RL)](https://getaimath.com/dictionary/reinforcement-learning-rl/): Reinforcement Learning is a way for AI to learn by trying things and getting rewards for good choices and penalties for bad ones.
- [Transfer Learning](https://getaimath.com/dictionary/transfer-learning/): Transfer learning means taking what a model learned on one task and reusing it to learn a new, related task faster.
- [Instruction Tuning](https://getaimath.com/dictionary/instruction-tuning/): Instruction tuning is fine-tuning a model on many examples of instructions and correct responses, so it learns to follow directions.

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