What is fine-tuning in AI?
Fine-tuning takes a model that is already trained and trains it a little more on your own examples, so it learns a new skill, style or format.
Rung 1 Explain like I'm 6
Think of a chef who already knows how to cook. They can chop, boil and bake. Now they come to your house, and you want them to make your grandmother's special dal exactly the way your family likes it.
You do not send them back to cooking school. You just show them your recipe a few times, and they practise until it tastes right.
Fine-tuning is the same for an AI. The AI already learned a lot from reading. Fine-tuning is the short extra practice with your own examples, so it gets good at the one thing you need.
Rung 2 High-school level
Making a large language model (LLM) happens in stages.
Pre-training is the expensive part. The model reads a huge amount of text and learns to predict the next word. This teaches grammar, facts and some reasoning, but the result is not yet a helpful assistant.
Fine-tuning is any further training on a smaller, focused set of examples. It adjusts the model's internal numbers, called weights, so it behaves the way the examples show. Common kinds:
- Instruction tuning: examples of questions and good answers, so the model follows instructions.
- Preference tuning: pairs of answers where people marked one as better, so the model learns which kind to prefer.
- Task or domain tuning: your own data, such as support tickets or legal summaries.
Fine-tuning vs pre-training: same kind of learning, very different scale. Pre-training starts from scratch; fine-tuning starts from a model that already works.
Fine-tuning vs RAG: fine-tuning changes the model. Retrieval-augmented generation (RAG) leaves the model alone and gives it documents to read at answer time. Use RAG for facts that change; use fine-tuning for behaviour, tone and format.
Check yourself: What does fine-tuning change inside the model?
Its weights, the numbers it learned in training, nudged using new examples.
Rung 3 Undergraduate level
Supervised fine-tuning (SFT) uses the same loss as pre-training: cross-entropy on the next token. The difference is the data (prompt and target answer pairs) and that the loss is often computed only on the answer tokens. A few epochs at a small learning rate are typical, because large updates can erase what the model already knew.
Full fine-tuning updates every weight. For big models that needs memory for the weights, their gradients and the optimiser's state, several times the model's own size.
LoRA (low-rank adaptation) freezes the original weights and learns a small correction. For a weight matrix W of size d × d, it adds B·A where B is d × r and A is r × d, with rank r much smaller than d:
- d = 4096: full matrix = 4096 × 4096 ≈ 16.8 million weights.
- LoRA with r = 8: 2 × 4096 × 8 = 65,536 weights, about 0.4% of the matrix.
After training, B·A can be added into W, so the tuned model runs just as fast as the original [1].
Fine-tuning vs distillation: distillation trains a small "student" model to copy a big "teacher" model's outputs. Mechanically it is often just fine-tuning, where the training examples were written by the teacher instead of by people.
Rung 4 Graduate level
The main choices are which method, how much data, and what you are willing to lose.
Parameter-efficient methods. LoRA (2021) reported cutting trainable parameters by 10,000 times and GPU memory by 3 times versus full fine-tuning of GPT-3 175B with Adam, with no added inference latency [1]. QLoRA (2023) kept the frozen base model in 4-bit (a NormalFloat format, NF4) and trained LoRA adapters on top, enough to fine-tune a 65B-parameter model on a single 48 GB GPU [2]. Small adapters also let one base model serve many customers, swapping adapters per request.
Preference tuning. The classic RLHF recipe trains a reward model from human comparisons, then optimises the LLM against it with reinforcement learning. DPO (2023) showed you can skip the separate reward model and the RL loop, training directly on preference pairs with a simple classification-style loss [3]. It became a common default because it is cheaper and more stable.
Data beats quantity. A few thousand clean, consistent examples often outperform a large noisy set. Inconsistent labels teach inconsistent behaviour.
Costs and risks. - Forgetting: narrow tuning can degrade general skills; mix in general data or tune less. - Safety drift: fine-tuning can weaken refusals learned earlier, so re-test safety after tuning. - Maintenance: every new base model release means re-tuning.
When not to fine-tune. If the problem is missing facts, use RAG. If a better prompt fixes it, prompt first. Fine-tune when you need consistent behaviour that prompting cannot reliably produce, or a smaller, cheaper model that matches a bigger one on one task.
Check yourself: What two pieces of RLHF does DPO remove?
The separately trained reward model and the reinforcement learning loop.
Rung 5 PhD level
Why does fine-tuning work with so little data? One view is that pre-training already builds most of the needed capabilities, and fine-tuning mainly selects and sharpens behaviours that exist. LoRA's success supports a related hypothesis: the weight change needed for adaptation has low intrinsic rank, so a rank-r update captures most of it [1].
Open problems:
- Catastrophic forgetting. Gradient updates for a new task interfere with old ones. Regularisation, replay of old data and parameter isolation all help partly; no method guarantees retention.
- What gets learned. Whether fine-tuning stores genuinely new knowledge or mostly changes how existing knowledge is surfaced is not well understood, which makes it a poor tool for teaching facts.
- Reward hacking. In preference and reinforcement fine-tuning, the model optimises a proxy (a reward model or a checker). It can exploit flaws in the proxy, improving the score without improving the behaviour.
- Capacity limits of adapters. When do low-rank updates fall short of full fine-tuning? Recent work suggests this depends on dataset size and training setup more than on rank alone [5].
- Safety robustness. Small fine-tunes can undo safety training, which matters for any open-weight model or public fine-tuning API.
Key papers: LoRA (2021) [1], QLoRA (2023) [2], DPO (2023) [3].
Rung 6 State of the art: what experts work on now
Last checked 18 November 2026.
As of 2026-11-18.
Reinforcement learning became a mainstream fine-tuning stage. DeepSeek-R1 (January 2025) showed that reasoning ability can be boosted through pure reinforcement learning without human-labelled reasoning trajectories; the paper was later published in Nature (2025) [4]. Training on tasks with checkable answers (maths, code) now sits beside SFT and preference tuning in many recipes.
Distillation as fine-tuning. The same release included smaller dense models based on Qwen and Llama, fine-tuned on R1's outputs [4]. This made "fine tuning vs distillation" less of a contrast: distillation is often fine-tuning on a stronger model's answers.
LoRA re-examined. In September 2025 Thinking Machines Lab reported that LoRA matched full fine-tuning on small-to-medium instruction and reasoning datasets, fell behind on very large ones, worked better when applied to MLP layers and not only attention, needed a learning rate about 10 times higher than full fine-tuning, and performed well in reinforcement learning even at rank 1 [5].
QLoRA-style 4-bit base models [2] remain the common way to fine-tune on a single GPU.
Sources
- Hu et al., LoRA: Low-Rank Adaptation of Large Language Models (2021)
- Dettmers et al., QLoRA: Efficient Finetuning of Quantized LLMs (2023)
- Rafailov et al., Direct Preference Optimization: Your Language Model is Secretly a Reward Model (2023)
- DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025)
- Schulman et al. (Thinking Machines Lab), LoRA Without Regret (2025)