Skip to content
Techniques

What is Fine-Tuning?

Last updated May 2026

Training a pre-trained AI model on specialized data to improve performance on specific tasks.

Definition

Fine-tuning is the process of taking a pre-trained language model and further training it on a smaller, domain-specific dataset. This adapts the model general knowledge to perform better on particular tasks, follow specific formatting, or adopt a certain style. Fine-tuning is cheaper than training from scratch but more permanent than prompt engineering.

💡 Example

A legal firm might fine-tune an LLM on thousands of legal documents so it better understands legal terminology, citation formats, and reasoning patterns — producing more accurate legal analysis than the base model.

Related concepts

LLM (Large Language Model)

A type of AI trained on massive text datasets to understand and generate human language.

→

Why this matters

Fine-tuning customizes an AI model on your specific data, making it an expert in your domain. Understanding when to fine-tune vs when to use prompting or RAG helps you choose the most cost-effective approach for specialized AI tasks.

Real-world example

A law firm could fine-tune GPT-4o on thousands of legal documents to get better contract analysis. But fine-tuning costs thousands of dollars and requires technical expertise. RAG (retrieval-augmented generation) achieves 80% of the benefit at 10% of the cost for most use cases.

See it in action

LoRA (Low-Rank Adaptation)

An efficient method to fine-tune AI models using much less compute and memory.

→

Explore AI tools

Find tools that use fine-tuning in practice.

Browse all tools → Back to glossary
What is Fine-Tuning?

Fine-tuning is the process of taking a pre-trained language model and further training it on a smaller, domain-specific dataset. This adapts the model general knowledge to perform better on particular tasks, follow specific formatting, or adopt a certain style. Fine-tuning is cheaper than training from scratch but more permanent than prompt engineering.

How does Fine-Tuning work in practice?

A legal firm might fine-tune an LLM on thousands of legal documents so it better understands legal terminology, citation formats, and reasoning patterns — producing more accurate legal analysis than the base model.

How much data do you need for fine-tuning?

The amount varies by use case, but effective fine-tuning can start with as few as 50 to 100 high-quality examples for simple tasks. Complex tasks may require thousands of examples. Quality matters more than quantity, and poorly curated data can degrade model performance.

What are the risks of fine-tuning an AI model?

Key risks include overfitting (the model memorizes training data instead of learning patterns), catastrophic forgetting (losing general capabilities while learning specific ones), and embedding biases from the training data. Testing on held-out examples helps catch these issues.

How does fine-tuning differ from prompt engineering?

Prompt engineering adjusts how you talk to the model without changing the model itself. Fine-tuning actually modifies the model's weights using training data, permanently changing its behavior. Prompt engineering is faster and cheaper to iterate on, while fine-tuning produces more consistent results.