Should You Fine-Tune or Just Prompt Better?

Fine-tuning sounds like the serious option. For most products it isn't the first move, or even the fifth. Here's how to tell when it's worth the trouble.

Should You Fine-Tune or Just Prompt Better? — Troiana insight cover

In short

Improve your prompts first. Most problems come from unclear instructions, missing examples or missing context, and these cost almost nothing to fix. Use retrieval if the model needs your facts. Consider fine-tuning only when you've got a stable task, hundreds of good examples and a measured gap, usually around consistent format or style, or lower cost through a smaller model. Fine-tuning doesn't teach reliable facts.

What each one does

Prompting changes what you send to the model on each request. Instructions, examples and context can all be changed in seconds, and there's nothing to train.

Fine-tuning adjusts a model's weights by training it with your examples. The result is a custom model version that has learned patterns from your data. It takes time and data, and you're now responsible for that version.

Retrieval (RAG) fetches relevant information for each request and adds it to the prompt. It's how you give a model knowledge of your facts. See what RAG is.

Each one solves a different problem:

The problemUsually solved by
Doesn't follow instructionsBetter prompt
Wrong formatStructured output, examples
Doesn't know your factsRetrieval
Facts go out of dateRetrieval
Too expensiveSmaller model, caching, then fine-tuning
Too slowSmaller model, streaming
Very specific style, at scaleExamples, then fine-tuning
Specialised classificationExamples, then fine-tuning

The order to try

Take these one at a time, testing after each:

  1. Write down what good looks like. Create a small test set of real inputs with expected outputs. See how to evaluate an LLM feature.
  2. Clarify the prompt. Be specific. Say what to do, as well as what to avoid. See prompt engineering for product teams.
  3. Add examples. Three to five good ones can change results dramatically.
  4. Use structured outputs, if you need a format. Most APIs can enforce a schema, which beats any amount of pleading in a prompt.
  5. Add context or retrieval, if facts are missing. See context engineering vs prompt engineering.
  6. Try a different model. It's a quick test, and the newest models often solve your problem. See how to choose an LLM for your product.
  7. Break the task up. Two simple steps often beat one complicated step.
  8. Only now, think about fine-tuning.

Many teams jump straight to step 8, and they end up spending weeks on a problem that step 3 would have fixed.

Test after each step
Define goodA small test set
Better promptPlus examples and structure
Add contextRetrieval, if facts are missing
Change the taskAnother model, or smaller steps
Fine-tuneLast, for a measured gap
A condensed version of the article's order. Many teams jump straight to the last box and spend weeks on what a clearer prompt would have fixed.

When fine-tuning is worth it

Fine-tuning can make sense when most of these are true:

  • The task is narrow and stable. It isn't going to change every month.
  • You've got many good examples. Hundreds, often more, and they're properly checked.
  • Volume is high. Otherwise, savings won't cover the effort.
  • You've measured a gap. Your tests show that prompting has plateaued below what you need.
  • A cheaper model could do the job, if only it were trained. This is often the best reason: replacing a large model with a tuned small one.
  • Long prompts are costing you. If you're sending dozens of examples each time, tuning might move them into the model.
  • You need on-device or private inference, with a small open model.

Typical good fits include consistent classification, extraction from a specific document type, and a highly particular output format or tone.

When it won't help

Teaching facts. A tuned model doesn't store facts reliably. It may still make things up, and you can't simply update it when facts change. Use retrieval.

Fixing bad data. It learns your inconsistencies as well. If human reviewers disagree on the labels, the model can't do better than that.

A fast-changing product. You'd have to retrain each time.

Low volume. It may never pay for itself.

Solving safety problems. Research has found that fine-tuning can even weaken a model's safety behaviour, so re-test this.

The hidden costs

  • Preparing data: often the largest cost. Collecting, cleaning and checking examples takes people's time.
  • Training fees, where they apply, and often higher per-token usage rates on the tuned model. Check current pricing with your provider, as availability varies widely.
  • Evaluation: you'll need a proper held-out test set.
  • Maintenance: new base models come out, and yours falls behind. Your tuned version can also be retired.
  • Lost flexibility: you can't swap models as easily.

Compare this against the running cost using LLM API pricing. Sometimes simply using a better model is cheaper, once you count staff time. See also how to control AI API costs.

How to run a fine-tune properly

If you've decided to do it:

  1. Set a clear target, such as accuracy on a held-out test set, or a cost per request.
  2. Baseline first: measure your best prompt on the same test set.
  3. Prepare real examples, reflecting what you'll see in production, including difficult cases.
  4. Keep a test set separate. Never train on it.
  5. Start small. A small run shows whether you're heading in the right direction. Synthetic data may help, carefully. See how to generate synthetic training data with an LLM.
  6. Compare honestly, on quality, cost and speed.
  7. Roll out gradually, behind a feature flag, with a fallback.
  8. Monitor it. Real-world inputs drift over time.

A simple rule

If you can't show a test result proving that your best prompt falls short, then you aren't ready to fine-tune. You don't yet know what you're trying to fix.

And consider how quickly things move. Base models keep improving, and a tuned model from last year can easily be beaten by a newer, untuned one, using a simple prompt. Re-run your tests whenever a new model comes out.

If you'd like help improving an AI feature's quality or reducing its cost, book a call.

Common questions

Is fine-tuning better than prompting?

Not usually as a first step. Prompting is faster, cheaper and easier to change. Fine-tuning can help with a stable, high-volume task once prompting has plateaued, especially if it lets you use a cheaper model. Test both on the same data.

How much data do I need to fine-tune a model?

Hundreds of good examples is a common starting point, and harder tasks need more. Quality matters more than quantity: inconsistent examples produce an inconsistent model. Keep a separate test set, and check your provider's guidance on minimums.

Can fine-tuning teach a model my company's knowledge?

Not reliably. It teaches patterns and style better than facts, and the model may still make things up. It also can't be updated easily. Use retrieval for company knowledge, which lets you update facts and show sources.

Is fine-tuning cheaper in the long run?

Sometimes, particularly if a tuned small model replaces an expensive large one at high volume. Include data preparation, training, evaluation and maintenance in your sums. At low volume, or for a fast-changing task, it's usually more expensive overall.

Have something worth building right?