Fine-tuning
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.
What does Fine-tuning look like?
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 |
|---|---|---|
| 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) |
|---|---|---|
| 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 |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/fine-tuning/">Fine-tuning, explained simply</a> (The AI Math Dictionary)