ANAlpesh Nakrani
SolutionsBlogBooksPraiseAboutWork with me ↗
Back to the blog
Blog/Jul 20, 2026 · 9 min

When to Fine-Tune: A Decision Framework

Fine-tune when prompting and RAG have already hit a real wall on cost, consistency, or behavior, not because it sounds more advanced. Here is the test.

Fine-tune when prompting and RAG have already hit a real wall on cost, consistency, or behavior, not because it sounds more advanced. Here is the test I run first.

The short answer to when to fine-tune a model is this: do it when the task is narrow and repeatable, and prompting or retrieval have already failed you on cost, format, or instruction-following. If the problem is that the model does not know something, fine-tuning is close to the wrong tool every time. If the problem is that the model will not consistently behave the way you need, fine-tuning is often the right one.

I get asked some version of this almost every week, usually by an engineering lead who watched a fine-tuning demo and wants to know if their team should do the same. My first question back is never "which method." It is "what is broken." Half the time the honest answer is that the knowledge keeps changing, which means the team needs retrieval, not a training run. The other half, the model already knows the facts. It just will not format the answer the same way twice, or the prompt needed to keep it in line has grown long enough to be eating margin on every call. A prompt running 2,000 tokens of instructions on every request is a recurring cost, and fine-tuning trades a one-time training run for a permanently shorter prompt.

Key takeaways

  • Fine-tune for behavior, not knowledge. If the model needs to know something new or something that changes, retrieval is almost always the better tool.
  • Prompting comes first. Do not fine-tune until a well-built prompt, with examples, has genuinely hit a wall on cost or consistency.
  • The task has to be narrow and repeatable. Fine-tuning rewards a bounded task with a clear right answer, and punishes a broad or shifting one.
  • LoRA and QLoRA changed the cost math. Parameter-efficient fine-tuning cuts trainable parameters and GPU memory by orders of magnitude versus a full fine-tune, which is why fine-tuning is back on the table for smaller teams.
  • Fine-tuning has a maintenance bill, not just a training bill. It bakes in a snapshot that goes stale, and pushing too hard toward one behavior can quietly cost you performance on everything else.

What fine-tuning actually changes, versus prompting and RAG

Three tools get lumped together in most of these conversations, and they do different jobs. Prompting shapes behavior at request time, through instructions the model reads fresh on every call and forgets when the call ends. RAG hands the model retrieved documents at query time so it can reason over information that was never in its weights. Fine-tuning changes the weights themselves, adjusting the model's default behavior so it acts a certain way without being told to, every time, on every request.

That distinction is the whole decision. Knowledge lives outside the model and should stay there if it changes; retrieval is built for that. Behavior lives inside the model's habits, its format, tone, and instruction-following, and fine-tuning is the tool that edits those habits directly. I walk through what happens to a model's weights during a training run in my full guide to fine-tuning.

Fine-tuning does not teach a model new facts. It teaches it a new default, and defaults are exactly what a long prompt struggles to hold at scale.

The decision framework: three questions before you fine-tune

Before I let a team spend a training budget, I make them answer three questions honestly. Skipping any one is how a team ends up with an expensive, stale, over-specialized model instead of the problem getting solved.

  • Is the problem missing knowledge, or missing behavior? If the model gives a wrong or outdated answer because it lacks current facts, that is a retrieval problem. Fine-tuning will not fix it durably.
  • Have you hit a real wall with prompting, or do you just assume you will? A stronger system prompt, better few-shot examples, and a tighter output schema solve more problems than teams expect. Fine-tune once real requests show prompting cannot get you the reliability or cost you need.
  • Is the task narrow and repeatable enough to have real training data? Fine-tuning rewards a bounded task with a consistent shape: ticket classification, a fixed report format, a specific tone. It needs labeled examples, usually in the low hundreds at minimum. A broad task will not fine-tune well no matter how much data you throw at it.

If the answer to the first question is "knowledge," go build retrieval instead. If it is "behavior," keep going. If you have not genuinely hit the prompting wall yet, go hit it first; it is cheaper to fail there.

What you are seeingReach for
The model does not know a fact, or the fact changes oftenRAG
The model knows the fact but will not format, tone, or follow instructions consistentlyFine-tuning
You have not yet tried a stronger prompt, more examples, or a tighter schemaPrompting, first
The task is narrow, repeatable, and you have real labeled examplesFine-tuning
The task is broad, ambiguous, or changes shape week to weekPrompting or RAG, not fine-tuning

Run your own situation through that table before you read another word of this piece. It settles more of the decision than the rest of the article combined.

When fine-tuning wins: behavior, format, and cost at scale

Fine-tuning earns its place when the problem is consistency, not information. Picture a support operation, purely as an illustration, where the base model resolves tickets correctly most of the time but writes in a tone the brand team keeps flagging, and returns structured output in a slightly different shape on every third call. Prompting can nudge this; it cannot pin it down, because the model stays free to drift within whatever the instructions did not cover. A few hundred cleaned examples of the tone and format you want, run through supervised fine-tuning, tend to close that gap in a way prompt tuning alone does not.

The other place fine-tuning wins is cost at scale. A long, engineered prompt is a tax paid on every request. Fine-tune the behavior in, and the prompt gets shorter, sometimes by thousands of tokens, because the model no longer needs to be told how to act. At production volume, that difference times a few million calls a month is real money, which is why OpenAI's guidance names token savings at scale as one of the two legitimate reasons to fine-tune at all, alongside reliable behavior on a narrow task (OpenAI, Model Optimization Guide).

Getting a clean training set is usually the hard part, not the training run. If you do not have enough real examples, my piece on using synthetic data for training covers how to generate it without teaching the model your own bad habits back to itself. I built the full version of this decision into Fine-Tune, or Don't, if you want to work through it before committing a quarter to a training run.

When RAG wins: fresh, evolving, or verifiable knowledge

RAG is the right call whenever the thing the model needs to get right has a timestamp. Consider a retailer, again as an illustration, whose product catalog, pricing, and inventory change daily. Fine-tune a model on last month's catalog and it will answer confidently and wrongly the moment a price changes, because the facts are frozen into the weights the instant training finishes. Retrieval sidesteps this: update the document store, and the next query sees the new price. No retraining, no redeploy, no lag between the world changing and the model knowing it.

RAG also wins on provenance. Every answer built from retrieved chunks can point back to the source document, which matters the moment a customer, an auditor, or a regulator asks why the system said what it said. A fine-tuned model gives you a fluent answer with no receipt attached, and in anything touching compliance, that gap is not cosmetic.

The honest sequencing advice, if you are unsure which side you are on: start with RAG. It ships faster, needs no labeled dataset, and tells you quickly whether your problem was ever about behavior at all. Reach for fine-tuning once you have evidence, not a hunch, that the residual problem is how the model acts.

When prompting is enough, do not skip this step

The step most teams skip is the cheapest one. A well-structured system prompt, good few-shot examples, and a strict output schema solve a surprising share of problems people reach for fine-tuning to fix. OpenAI's model-optimization documentation is blunt about the order of operations, stating that "prompt engineering is usually the most effective and fastest way to improve performance," to be attempted before fine-tuning, not after (OpenAI, Model Optimization Guide).

There is a real cost to skipping this step. A fine-tune built to compensate for a lazy prompt bakes a workaround into the weights, permanently, for a problem a better system message would have solved for free and kept editable. Rewrite the prompt as if it were the only lever you had. Only once it still fails on consistency, format, or cost at your real volume should fine-tuning enter the conversation.

Fine-tuning methods in 2026: SFT, DPO, RFT, LoRA, and QLoRA

Once you have decided to fine-tune, the method matters. OpenAI's guidance splits the decision into four methods: supervised fine-tuning (SFT) for classification, format, and instruction-following fixes; vision fine-tuning for image tasks; direct preference optimization (DPO) for tone and style, where you show the model a preferred and a rejected response rather than one right answer; and reinforcement fine-tuning (RFT), reserved for complex, domain-specific reasoning on reasoning-capable models (OpenAI, Model Optimization Guide). Most format or consistency fixes want SFT. Most tone or house-voice fixes want DPO.

An SFT dataset is simpler than people expect: examples, each an input paired with the output you want, usually as a JSON line:

# one line of a supervised fine-tuning dataset
{"messages": [{"role": "user", "content": "Summarize this ticket in our format"}, {"role": "assistant", "content": "..."}]}

What changed the economics of all four methods is parameter-efficient fine-tuning. LoRA trains small adapter matrices instead of the model's full weight set; the original paper reports that applying it to a 175-billion-parameter GPT-3 model cuts trainable parameters by roughly 10,000 times and GPU memory by 3 times versus full fine-tuning, with no added inference latency (Hu et al., LoRA: Low-Rank Adaptation of Large Language Models). QLoRA pushed this further with quantization: its authors fine-tuned a 65-billion-parameter model on a single 48GB GPU, and the resulting model reached 99.3 percent of ChatGPT's performance on the Vicuna benchmark after 24 hours on one GPU (Dettmers et al., QLoRA: Efficient Finetuning of Quantized LLMs).

That collapse in cost is why fine-tuning is back in the standard toolkit instead of staying a project only well-funded labs could run. I cover the practical trade-offs between a LoRA run and a full fine-tune in LoRA vs full fine-tuning.

The failure mode: alignment tax and knowledge drift

Every fine-tune carries a cost that does not show up on the training invoice. The first is knowledge drift: a fine-tune bakes in a snapshot of behavior and whatever facts it saw during training, frozen at that moment. When the underlying reality moves, pricing, policy, a product line, you cannot edit a document the way you would with a retrieval index. You have to retrain and redeploy. Every fine-tune you ship is a small, recurring commitment, not a one-time purchase.

The second is the alignment tax, and teams notice it too late. Eugene Yan's widely cited write-up on production LLM patterns names it precisely: gains on the fine-tuned target task can cause regressions on tasks outside the training distribution, so a model fine-tuned to excel at one thing can quietly get worse at things it used to handle fine (Eugene Yan, Patterns for Building LLM-Based Systems and Products). Picture a model fine-tuned hard on formal legal-document summarization. It gets sharper at exactly that, and can also get worse at casual conversational replies it used to handle fine, because training pushed its defaults in one direction and dragged everything else along.

A fine-tune bakes in a snapshot. The moment the world it was trained on moves, you are not editing a document, you are retraining a model.

The practical fix is the one that governs every serious AI system: evaluate the fine-tuned model on tasks outside the training distribution, not just the target task, before you ship it. If you only measure what you optimized for, you will not see the tax until a customer finds it for you.

Should I fine-tune or use RAG for my chatbot?

Ask what is failing. If the chatbot gives outdated or missing answers, that is a knowledge problem and RAG fixes it by retrieving current information at query time. If the chatbot knows the right answer but will not stay in your brand voice or output format, that is a behavior problem and fine-tuning fixes it. Most chatbots that survive contact with production use both.

Can fine-tuning teach a model new facts, or only new behavior?

Fine-tuning can nudge a model toward facts it saw in training data, but poorly and not durably. The knowledge freezes at training time and goes stale the moment reality moves. Fine-tuning is reliable for behavior: format, tone, instruction-following, and task-specific reasoning. For anything that needs to stay current, retrieval is the dependable tool.

Is fine-tuning actually cheaper than prompting once you are at scale?

Often, past a certain volume. A long, engineered prompt costs tokens on every call. Fine-tuning trades a one-time training cost, now sharply lower thanks to LoRA and QLoRA, for a permanently shorter prompt. At low volume that trade is not worth the complexity; at high volume, the shorter prompt can pay for the training run many times over. Price the training cost and the ongoing maintenance before you compare, not just the per-call token cost.

Do I still need fine-tuning if RAG already gets me good answers?

Not necessarily. If RAG is solving the problem, you likely never had a behavior problem, and adding fine-tuning on top adds a maintenance bill for no real gain. Fine-tune on top of a working RAG system only when a specific, measured behavior issue remains: tone drift, an inconsistent output format, or a reasoning pattern the model will not follow reliably even with the right facts in front of it.

The decision is rarely as close as it looks from the outside. Name what is broken, knowledge or behavior, prove prompting cannot fix it, and confirm the task is narrow enough to have real training data. Get those three right and the choice between prompting, RAG, and fine-tuning mostly makes itself. If you are weighing this for a system that has to hold up past the demo, ViitorCloud's ML engineers can help you scope it before you spend a training budget on the wrong problem.

Share
Next

Keep reading

View all blogs

Ask AI about When to Fine-Tune: A Decision Framework