Learning path: Deep Learning for Production: Transformers, Fine-Tuning and Serving · Step 9 of 13
When NOT to Fine-Tune: A Decision Tree of Prompt, RAG, Tools, Then Fine-Tuning
Most teams who ask for fine-tuning need something simpler first. A four-step decision tree (prompt, RAG, tools, then fine-tuning), what fine-tuning really changes, and what it costs, shown on a product assistant that doesn't know its own plans.
What you will learn
- Name which of four problems a model has: missing knowledge, wrong format, wrong tone, or too slow and costly
- Walk a four-step decision tree and stop at the first yes
- Explain why fine-tuning changes behaviour but is weak at fresh facts
- List the four costs of fine-tuning beyond the training run
Before you start
- A rough idea of what a large language model does
- The RAG Pipeline Explained (helpful, not required)
Sooner or later almost every team asks the same question: should we fine-tune the model? The honest answer, most of the time, is not yet. Most teams who ask for fine-tuning need something simpler first. This article gives you a small decision tree to tell the difference.
A bot that doesn't know our product
A software company has built a product assistant, a chatbot that answers customer questions. A customer asks: "Which plan includes single sign-on?" The model has never seen the company's plan list, so it can't answer properly.
The team gets together and somebody says: "The bot doesn't know our product, so let's fine-tune it." It sounds logical. But pause for a second.
Think about a new employee on day one. You give them clear instructions and you hand over the handbook. You don't send them back to university for two years first. Fine-tuning is the university. Usually the new hire just needs instructions and a handbook.
Name the problem first
"The model isn't good enough" can mean four very different things:
| Problem | What it looks like | What's off |
|---|---|---|
| Missing knowledge | The bot doesn't know our plans, prices or policies | The facts aren't inside the model |
| Wrong format | We need clean JSON, the bot writes a paragraph | The shape of the answer |
| Wrong tone | Our brand is friendly, the bot sounds stiff | The voice of the answer |
| Too slow or too costly | The answer is fine, but each call takes long and the bill adds up | The size of the model |
Each problem has a different first fix. Name the problem before you pick the tool.
The decision tree
Start with an answer that isn't good enough and go down the list. Stop at the first yes.
- Would clearer instructions and a few examples fix it? Improve the prompt. It's the cheapest and the fastest thing to try.
- Is the model missing facts it should read? Add RAG: fetch the right document and put it in front of the model. The RAG pipeline article walks through how that works.
- Does it need current data, or does it have to take an action? Add tools. The model calls a function or an API and gets the answer from the system.
- Do you need a style, a format or a behaviour at scale, or speed and cost? And do you have evaluation data to prove it works? Only then, fine-tune.
What fine-tuning changes, and what it doesn't
Fine-tuning sits at the bottom because it adjusts habits. It isn't a filing cabinet for facts.
| Good at: behaviour | Weak at: fresh facts |
|---|---|
| A steady writing style | Prices that changed this week |
| A fixed output format | A policy updated yesterday |
| A consistent tone | Facts you must quote exactly |
| A small model doing one narrow job well | Anything you must trace back to a source |
Fine-tuning is like a course that teaches you how to write reports. You wouldn't expect that course to know this week's handbook. Facts change often, so retrieve the facts and train the habits.
What fine-tuning costs
The training run is only one part of the bill:
- Data. You need many good example pairs, and people have to collect, clean and check them.
- Training. It takes compute and time. Prices change, so check your provider's pricing page for current rates.
- Evaluation. You need a test set that proves the tuned model really beats the simple fix. Without it you're guessing.
- Re-training. When the product changes, the data changes, and the whole run comes round again.
Compare that with RAG. With RAG, a change means editing a document. With fine-tuning, it means another training cycle.
Problem, then first fix
| Problem | First fix | Why |
|---|---|---|
| The bot doesn't know our plans | RAG | The facts sit in documents you can update |
| The bot needs the order status right now | Tools | Ask the system, don't guess |
| The answer must be JSON | Prompt | Show the shape and add examples |
| The tone is too stiff | Prompt | Describe the voice and add a sample |
| Same job, huge volume, must be fast and cheap | Fine-tuning is a good candidate | With evaluation data to prove it works |
So for the single sign-on question, the first fix is RAG: put the plan list in front of the model. Try the cheapest fix first, measure, and only then go further down the tree.
Common mistakes
- Fine-tuning to add knowledge. Facts trained in go stale with the next price change. Retrieve them instead.
- Skipping the prompt. Format and tone problems are often fixed by a clear instruction and one example.
- Fine-tuning without evaluation data. If you can't show the tuned model beats the simple fix, you can't tell whether it helped.
- Counting only the training run. Data, evaluation and re-training on every product change are part of the cost.
Quick recap
- Name the problem first: knowledge, format, tone, or speed and cost.
- Go down the tree: prompt, then RAG, then tools. Stop at the first yes.
- Fine-tune only for behaviour at scale, or speed and cost, and only with evaluation data in hand.
When fine-tuning does make the cut, the next question is how much of the model to change. That's Full Fine-Tuning vs LoRA vs QLoRA.
Try it yourself
Pick a bot or assistant you'd like to improve. Name which of the four problems it has, walk the tree, stop at the first yes, and write down the fix.
Built this? Share your solution in the StudyEasy AI Community.
Join free on Skool →Training on a GPU: Mixed Precision, Gradient Accumulation and Checkpoints That Really Resume
Next →Full Fine-Tuning vs LoRA vs QLoRA: What Each One Changes and What It Costs
StudyEasy AI Community
Learn AI engineering, share what you build, and connect with other learners.
Free resources: lesson files, notebooks and code
Ask questions and join engineering discussions
Meet real people learning and building with AI
Machine Learning Engineer: From First Model to ML Engineer
Learn machine learning in Python, then ship it: data analysis, regression, classification, tuning, deployment and MLOps.View on Udemy ↗: Machine Learning Engineer: From First Model to ML Engineer (opens in a new tab)Related articles
Why Neural Networks: Pixels, One Neuron and Layers
Why pictures need neural networks: a handwritten digit is 784 numbers, one neuron is a weighted sum plus a bias and one small rule, and neurons stack into layers. Worked out on MNIST with NumPy.
The Forward Pass and Activation Functions: ReLU, Sigmoid, Tanh and Softmax
Follow numbers through a tiny 3-2-3 network in NumPy: one matrix product per layer, ReLU inside, softmax at the end, and a count of every weight and bias.
Loss and Backpropagation: How Wrong, and Who Is to Blame
The loss says how wrong the network was; backpropagation says how much each weight is to blame. MSE and cross-entropy, the chain rule by hand on a two-weight chain, then the same gradients from PyTorch autograd.
The Training Loop: Epochs, Mini-Batches, Learning Rate and Optimisers
How training is organised: shuffle, cut into mini-batches, take one step per batch, repeat per epoch. Real MNIST runs compare three learning rates, SGD against Adam, and show the overfitting signal in the validation loss.