AI CompendiumA public chart of the language
Home / Training & Inference / Fine-tuning
Training & Inference

Fine-tuning

Extra training on your own examples to change how the model behaves.

Definition

Continuing training on a smaller, task-specific dataset so the model picks up a style, format or domain speciality. It changes weights, so it changes the model itself, not just the prompt.

Fine-tuning is good at teaching form — output shape, tone, a fixed taxonomy. It is a poor way to teach new facts; for that, retrieval is cheaper, faster to update, and auditable.

The decision rule that saves the most wasted effort: fine-tuning teaches form, retrieval supplies facts, and prompts carry instructions. If the problem is "it does not know our internal terminology", fine-tuning is the wrong tool and an updated retrieval corpus is the right one.

How people use it
Choosing a technique for consistent structured output.
"Few-shot prompting is not holding the format. Fine-tune on two thousand examples of the JSON schema."
Worked examples

Format, not knowledge

Support replies are correct but written in a tone that annoy customers.

A few hundred examples of ideal replies teaches the register reliably. The same fine-tune would not have taught the model a single new product fact. Splitting the two problems is what makes each of them cheap to solve.

When to walk it back

A narrow fine-tune made the model much better at one task and noticeably worse at general coding.

That is catastrophic forgetting, and it is the argument for adapters rather than full fine-tuning: keep the base weights untouched and swap the adapter per task, so improving one job cannot degrade another.

Avoid

Fine-tuning to inject facts that change weekly. You will be retraining forever.

Sources
Related terms