Inside the Machine

Fine-tune, Retrieve or Prompt: The Decision With Real Criteria

Fine-tuning teaches form, retrieval supplies facts, prompting does both badly but instantly. The expensive mistakes here are category errors.

The rule that survives contact with production: fine-tuning changes form, retrieval supplies facts, prompting does both badly and immediately. The costly mistakes in this decision are category errors — fine-tuning a model so it will know things, or building a retrieval pipeline to fix a tone problem. Both burn months.

What a fine-tune actually changes

Parameter-efficient tuning (LoRA and its quantised variants) freezes the base weights and trains small low-rank adapter matrices, typically well under one percent of the parameter count, at ranks commonly between 8 and 64. That is why it is cheap, and also why it is weak at implanting facts: you are nudging an output distribution, not rewriting knowledge. Push hard enough to force facts in and you get catastrophic forgetting — the model gets better on your 800 examples and worse at everything else, including things you never tested.

Under 1% of weights

what a LoRA adapter trains — which is exactly why it moves style cheaply and facts badly

  • A rigid output format that prompting hits almost always and you need it to hit essentially always.
  • A voice or house style that takes two thousand tokens of instruction to describe. Moving it into weights deletes those tokens from every call forever.
  • Narrow classification or extraction where a small tuned model matches a frontier model at a fraction of the latency and cost, at volume.
  • A latency floor a large general model cannot meet, where a small tuned model answers in a fraction of the time.
The cost everyone forgets is maintenance. Every base-model upgrade orphans your adapter: re-curate the data, retrain, re-evaluate, re-deploy. Meanwhile the new base model may have closed the gap your tune existed to fill. Budget the retrain cycle before you start, or in a year you will be serving a stale model because migrating is too much work — which is the common ending to fine-tuning projects, not a failed training run.

Data quality beats data quantity, by a wide margin

A few hundred to a few thousand carefully curated examples routinely outperform tens of thousands of scraped ones. The mechanism is unglamorous: the model imitates what you show it, including inconsistent formats, hedged phrasing and the one example where someone was in a hurry. One bad example in a hundred is a one-percent instruction to behave badly, and it shows up as exactly that. Deduplicate, normalize the format, fix or delete anything you would not want copied, and hold back a test split you never train on.

Where retrieval is the only correct answer

  • Facts that change. Weights are a snapshot; a document store is current.
  • Citations. A fine-tune cannot tell you where it learned something; retrieval hands you the passage.
  • Per-user or per-role access control. Weights have no permissions model — anything trained in is readable by everyone who can query the model. That is a governance fact, not a tuning detail, and it has ended more than one enterprise pilot.
  • Corpora larger than any context window, where selection is the whole job.
  • Deletion. When a customer asks you to remove their data, a row leaves an index. Removing it from a fine-tune means retraining.

The ladder, and the fourth rung

  1. 1. Prompt with worked exampleshours — and it is more often sufficient than people expect
  2. 2. Add retrievaldays — once the missing ingredient is clearly facts
  3. 3. Distil, then fine-tuneweeks — only when evals prove step 2 is maxed out

Distillation is the rung most teams skip and should not. Run the expensive frontier model over your real traffic, keep only the outputs you have verified, and fine-tune a small cheap model on that set. You get most of the quality at a fraction of the inference cost and latency, with the data-curation problem largely solved for you. Two limits are real: the student is bounded by the teacher's quality on your task, and vendor terms differ on training models from their outputs — read the one you are using rather than assuming.

Before any fine-tune, write down the number it must move and the eval set it will be measured on. If you cannot state that, the project is not ready — and often, writing it down reveals that the actual failure is retrieval or format, both of which are cheaper to fix.

Key takeaways

1Fine-tuning moves style, format, latency and cost; it does not reliably install facts
2Weights carry no access control and no deletion path, which makes retrieval mandatory for multi-tenant data
3A few hundred curated examples beat tens of thousands of scraped ones, because the model copies your mistakes too
4Price the retrain cycle at every model upgrade before you commit to a fine-tune

This is one lesson of 541.

The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.