Fine-Tuning

What is Fine-Tuning?

Fine-tuning is the process of further training an existing AI model on a smaller, task-specific dataset so that it performs better on particular tasks, follows a particular style or uses specialized knowledge.

Updated November 2026 · 2 min read


Fine-tuning is the process of further training an existing AI model on a smaller, task-specific dataset. It takes a model that has already been trained on huge amounts of general data and trains it a little further on focused examples. The goal is to make it better at a specific task, consistent in a particular style or format, or familiar with specialized vocabulary. It is far cheaper than training a model from scratch, because the model already knows language and general concepts and only needs to adjust.

Types of fine-tuning

  • Supervised fine-tuning: training on examples of inputs and desired outputs, such as customer questions paired with ideal answers.
  • Parameter-efficient fine-tuning: updating only a small set of added parameters rather than the whole model. LoRA (low-rank adaptation), introduced in 2021, is the most common method. It cuts compute and memory needs dramatically and lets one base model serve several task-specific adapters.
  • Preference tuning: training the model to prefer some responses over others, using human or AI ratings.
  • Distillation-style fine-tuning: training a smaller model on a larger model's outputs. See model distillation.

Fine-tuning vs. RAG vs. prompting

ApproachBest forCost and effort
PromptingMost tasks. Try first.Lowest
Retrieval (RAG)Giving the model access to current or private knowledgeModerate
Fine-tuningConsistent format, style or behavior; narrow tasks at high volume; making small models perform like larger onesHigher upfront, can lower per-request cost

A common mistake is fine-tuning to teach a model facts. Fine-tuning is better at changing how a model behaves than at adding reliable knowledge. For knowledge, retrieval-augmented generation usually works better and stays current.

What does fine-tuning cost?

  • Upfront costs: preparing training data, which is often the largest cost, plus compute for training and evaluation. See AI model training cost.
  • Ongoing savings: a fine-tuned small model can replace a larger, more expensive one, and shorter prompts are needed because instructions are built in.
  • Ongoing costs: hosting the fine-tuned model, which may cost more per token on some platforms, and retraining when the base model or task changes.

An example

Consider a hypothetical insurer whose claims assistant uses a long prompt with 20 examples to produce summaries in a strict format. Each request carries about 5,000 tokens of instructions. The team fine-tunes a smaller model on 3,000 approved summaries using LoRA. The fine-tuned model produces correctly formatted summaries with a 300-token prompt, matches the original's quality on a test set and costs about a sixth as much per summary. Training cost is recovered within the first month.

Common pitfalls

  • Fine-tuning before trying prompting and retrieval.
  • Poor training data, which produces a model that confidently reproduces its errors.
  • No evaluation set to confirm improvement.
  • Legal blind spots: substantially modifying a general-purpose model can bring regulatory obligations in some jurisdictions, such as becoming a model provider under the EU AI Act. See general-purpose AI models. This is general information, not legal advice.

Fine-tuning works best on open-weight models or through providers' fine-tuning APIs.

Frequently asked questions

When should you use fine-tuning instead of RAG or prompting?

Try prompting first, since it is cheapest. Use retrieval when the model needs current or private knowledge. Choose fine-tuning for consistent format, style or behavior, narrow high-volume tasks or making a small model perform like a larger one. Fine-tuning is poor at teaching reliable facts. See retrieval-augmented generation.

What is LoRA fine-tuning?

LoRA, or low-rank adaptation, is a parameter-efficient fine-tuning method introduced in 2021. Instead of updating the whole model, it trains a small set of added parameters. That cuts compute and memory needs dramatically and lets one base model serve several task-specific adapters, which is why it is the most common fine-tuning approach.

How can fine-tuning lower the cost of running an AI model?

A fine-tuned small model can replace a larger, more expensive one on a narrow task, and because instructions and examples are built into the model, prompts can be much shorter. Those savings apply to every request. Offset them against upfront data preparation and training, possibly higher hosting rates and periodic retraining.