Model fine-tuning (LLM fine-tuning). What it means.

Fine-tuning is the process of taking an AI model that has already been trained on broad data and training it further on a smaller, specific dataset so it performs better at a particular task or in a particular style.

By Brady Heinrich · Updated

Definition

Fine-tuning is the process of taking an AI model that has already been trained on broad data and training it further on a smaller, specific dataset so it performs better at a particular task or in a particular style.

What is fine-tuning?

Fine-tuning means continuing the training of an existing model on your own examples. The starting model already knows language in general. Fine-tuning adjusts its internal weights so that it handles your task the way you want: writes in your house style, classifies tickets into your categories or returns output in your exact format.

It is far cheaper than training a model from scratch, because the general ability is already there. You are teaching a specialism, not a language.

How does fine-tuning work?

  1. Choose a base model that allows fine-tuning.
  2. Prepare examples. Pairs of input and ideal output, typically hundreds to thousands. Quality matters more than volume.
  3. Train. The model's weights are updated on those examples. Lighter methods, such as low-rank adaptation (LoRA), change only a small set of added weights, which cuts cost.
  4. Evaluate. Compare the tuned model with the base model on examples held back from training.
  5. Deploy and maintain. The tuned model is a new asset to host, monitor and retrain when requirements or the base model change.

Fine-tuning vs RAG vs prompt engineering

Prompt engineeringRAGFine-tuning
What changesThe instructionsThe information supplied at question timeThe model's weights
Best forMost tasks, first attemptFacts that are private or change oftenConsistent style, format or a narrow skill
Effort to startMinutesDays to weeksWeeks, plus a dataset
UpdatingEdit the promptEdit the documentsRetrain

The sensible order is the order of the columns. Start with a better prompt and examples. Add retrieval when the model lacks facts. Fine-tune when both are in place and the output is still not consistent enough, or when a smaller tuned model could replace a larger one at lower cost.

When is fine-tuning worth it?

  • The task is narrow, repeated at volume and easy to score.
  • You have, or can produce, good examples.
  • A long prompt full of examples is doing the job but costs too much per request.
  • You need a small model to do one thing as well as a large one.

It is a poor fit for teaching facts. A tuned model can still state them wrongly and cannot cite where they came from.

An example

A marketplace classifies 200,000 product listings a day into 900 categories. A large general model with a long prompt is accurate but slow and costly at that volume. The team fine-tunes a small model on 20,000 listings that people have already categorised. On 2,000 held-back listings it matches the large model's accuracy, runs several times faster and costs a fraction as much per listing.

The common mistake

Fine-tuning to fix a problem that a better prompt or better documents would solve. It is the slowest and least reversible option, and it locks you to a model version. Exhaust prompting and retrieval first, and build a test set so you can prove the tuned model is better.

How people search for model fine-tuning

  • fine tuning9,900 a month
  • fine-tuning9,900 a month
  • fine tuning llm590 a month
  • llm fine tuning480 a month
  • what is fine tuning390 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.