A new medical graduate already knows a huge amount: anatomy, medicines, how to examine a patient. To become a heart specialist, they don’t go back to primary school. They train further, on heart cases, building on everything they already know.
AI models can do the same thing. Training a large model from scratch takes huge amounts of data, computing power and money. But once a general model exists, you can train it a little more on your own examples to make it better at one particular job. That extra training is called fine-tuning. This guide explains what fine-tuning is, how it works, and when it is (and isn’t) the right tool.
What is fine-tuning?
Fine-tuning is training an already trained model a bit further, on a smaller, focused set of examples, so that it gets better at a specific task, subject or style.
The model you start from is called a pre-trained model or base model. It learned general skills from a huge dataset. Fine-tuning adjusts its learned numbers (its weights) slightly, so it keeps most of what it knew and adds the new specialty.
This idea is also called transfer learning: knowledge learned on one big task is transferred to a new, narrower one.
How does fine-tuning work?
At a high level, fine-tuning is just more training, on new data:
- Pick a pre-trained model that is already good at the general kind of task. For writing, that’s a language model; for photos, an image model.
- Collect examples of exactly what you want. For a support assistant, that might be real customer questions paired with ideal answers written in your company’s tone.
- Train on those examples. The model sees each example, its output is compared with the ideal answer, and its weights are nudged a little to make the ideal answer more likely. This is the same process used in the original training, just much shorter.
- Test it on examples it didn’t train on, to check it improved and didn’t get worse at other things.
- Use the fine-tuned model in place of the original.
The same idea works for images: a model pre-trained on millions of everyday images can be fine-tuned on a few thousand X-ray images to spot one specific condition, far faster than training from zero.
Fine-tuning is how chatbots become assistants
You already use fine-tuned models every day. A model that has only been pre-trained on text is good at continuing text, but not at following instructions or holding a helpful conversation. To turn it into an assistant like the ones behind ChatGPT, Claude or Gemini, companies fine-tune it further, typically:
- on example conversations showing good, helpful answers (often called instruction tuning or supervised fine-tuning), and
- on human preferences, where people compare two answers and the model learns to produce the kind they prefer.
Our guide to what a large language model is shows where this “post-training” fits in the life of an LLM.
Full fine-tuning vs LoRA
There are two broad ways to fine-tune a big model.
Full fine-tuning updates every weight in the model. It can give great results, but for a model with billions of weights it needs a lot of computer memory, and each fine-tuned version is a full-size copy of the model.
Parameter-efficient fine-tuning keeps the original weights frozen and trains only a small number of new ones. The most popular method is LoRA (Low-Rank Adaptation), introduced by researchers at Microsoft in 2021. LoRA adds small extra pieces to the model and trains only those. In the original paper, on the 175-billion-parameter GPT-3 model, LoRA cut the number of trainable parameters by about 10,000 times and the GPU memory needed by about 3 times, while matching or beating full fine-tuning on quality.
A handy side effect: a LoRA add-on is a small file. You can keep one base model and swap different add-ons for different jobs, such as one for legal summaries and another for customer support.
Fine-tuning vs prompting vs RAG
Before fine-tuning, ask whether a simpler approach would do. There are three common ways to make a general model work for you:
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| What you change | The instructions you give | The information you hand the model with each question | The model’s weights |
| Best for | Most tasks: try this first | Answering from your own, changing documents | A consistent style, format or narrow skill |
| Adds new facts? | Only what fits in the prompt | Yes, fetched fresh each time | Not reliably |
| Effort and cost | Low | Medium | Higher: needs good data and training runs |
| Easy to update? | Edit the prompt | Update the documents | Fine-tune again |
A simple rule of thumb many teams follow:
- Start with a good prompt. Clear instructions and a few examples solve more than people expect. (Prompts get their own letter, P.)
- Use RAG when the model needs knowledge it doesn’t have, especially knowledge that changes, like product details or policies. RAG is letter R.
- Fine-tune when you need behaviour: a fixed output format, a particular tone, a specialised skill, or a smaller and cheaper model that matches a bigger one on one narrow task.
A common mistake is fine-tuning to “teach facts”. Fine-tuning is much better at shaping how a model answers than at reliably storing what it knows. A model fine-tuned on your policy documents can still mix up details, and every policy change would mean training again. RAG usually handles facts better.
Risks and things to watch
- Forgetting. Train too hard on narrow data and the model can lose some of its general skills. This is called catastrophic forgetting.
- Weaker safety behaviour. Research has shown that fine-tuning can weaken the safety training of a model, sometimes even with harmless-looking data. Test the fine-tuned model carefully.
- Copying bad examples. The model learns from your examples exactly, including their mistakes and biases. A few hundred excellent examples often beat thousands of messy ones.
- Overfitting. If the model memorises the training examples, it does worse on new ones. Keep a test set aside (see datasets).
- Cost and upkeep. Each new base model release may mean fine-tuning again.
Common misconceptions
“Fine-tuning is training a model from scratch.” No. It starts from a model that already learned a lot, and adds a little more training.
“Fine-tuning is the best way to give a model my company’s knowledge.” Usually RAG is better for facts. Fine-tuning shines for style, format and narrow skills.
“You need millions of examples.” Often far fewer. For many tasks, a few hundred to a few thousand high-quality examples make a real difference.
“My chats fine-tune the model.” Using a chatbot doesn’t change its weights in real time. Fine-tuning is a separate training step run by whoever controls the model.
Key takeaways
- Fine-tuning is extra training of an already trained model on focused examples.
- It’s a form of transfer learning: general skills carry over to the new task.
- Assistant chatbots are built by fine-tuning base models on conversations and human preferences.
- LoRA fine-tunes efficiently by freezing the model and training a small add-on.
- Try prompting first, use RAG for knowledge, and fine-tune for behaviour.
Frequently asked questions
What is fine-tuning in simple words?
Fine-tuning is teaching an AI model that already knows a lot to get better at one specific job, by training it a little more on examples of that job.
What is the difference between training and fine-tuning?
Training (or pre-training) builds a model’s general abilities from a huge dataset, starting from random numbers. Fine-tuning starts from that trained model and adjusts it with a much smaller, focused dataset.
What is the difference between fine-tuning and RAG?
Fine-tuning changes the model’s weights to change how it behaves. RAG leaves the model unchanged and hands it relevant information from your documents with each question. RAG is usually better for up-to-date facts; fine-tuning for consistent style or skills.
What is LoRA fine-tuning?
LoRA (Low-Rank Adaptation) is a method that keeps a model’s original weights frozen and trains a small set of extra weights instead. It needs much less memory for training and produces a small add-on file instead of a full copy of the model.
Can I fine-tune a model on my own computer?
For small models, often yes, especially with methods like LoRA and a good graphics card. Fine-tuning very large models usually needs cloud GPUs, or a provider’s fine-tuning service.
Comments