Learn AI Math

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.

DimensionFine-tuningPre-training
Starting pointAn existing pre-trained checkpointRandomly initialized weights
Data scaleThousands to millions of curated examplesTrillions of raw unlabeled tokens
Typical costDollars to thousands of dollars on 1–8 GPUsMillions 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.

DimensionFine-tuningRetrieval-Augmented Generation (RAG)
Best forConsistent tone, schema, or domain skillChanging facts, private docs, citations
UpdatesRequires a new training & eval runInstant—just re-index new documents
Hallucination controlLow for unseen or fast-changing factsHigh when grounded with citations

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.