Skip to content
AI & Machine Learning

Fine-Tuning

Definition

Fine-tuning is further training a pre-trained AI model on a smaller, task-specific dataset so it performs better on a particular task, domain or style. It is cheaper than training from scratch and is often weighed against prompting and retrieval (RAG) as ways to adapt a model.

Diagram

Prompting, retrieval and fine-tuning compared
1. Prompting2. Retrieval (RAG)3. Fine-tuning
Changesthe instructions you sendthe facts the model can seethe model’s weights
Best forbehavior, tone, formatup-to-date or private knowledgea consistent style or format at scale
Cost and effortminutes, nearly freedays: index and search your contentweeks: curated examples, training, evaluation
Updatingedit the promptupdate the documentsretrain
Try them in that order. Most problems are solved by a better prompt; missing knowledge calls for retrieval; fine-tuning earns its cost when prompting can’t hold a format or style reliably across many requests. It teaches how to answer, not new facts, which still belong in retrieval.

Worked example