Definition
Adapting a pre-trained AI model to specific tasks or domains by training it on specialized data.
In Depth
Fine-tuning is the process of taking a pretrained AI model, typically a foundation model like GPT-4, Llama 3, or Claude, and continuing its training on a smaller, task-specific dataset. The pretrained model already understands language, code, or images broadly; fine-tuning adapts it to a narrower domain (legal contracts, medical records, your support tickets) where general models struggle with vocabulary, conventions, or required output formats.
In machine learning terms, fine-tuning updates the model's weights using gradient descent on the new data, usually with a much lower learning rate than the original pretraining so the model doesn't "forget" its general knowledge. Common variants include supervised fine-tuning (SFT) on labeled examples, parameter-efficient methods like LoRA that only update a small subset of weights, and reinforcement learning from human feedback (RLHF) for aligning model behavior with preferences.
Fine-tuning is not always the right answer. For most business use cases, retrieval-augmented generation (RAG), letting the model look things up at inference time, is cheaper and easier to update than fine-tuning. Fine-tuning wins when you need consistent output format, specialized terminology the base model doesn't know, or significantly lower per-token cost at scale.
Example Usage
Fine-tuning an LLM on your company's historical support tickets to create a specialized customer service AI.
Business Context
Fine-tuning allows businesses to create AI models that understand industry jargon, company policies, and specific business processes.
Related Terms
Few-shot Learning
Teaching AI models new tasks with just a few examples.
Large Language Model
An AI model trained on vast amounts of text data capable of understanding and generating human-like ...
Reinforcement Learning from Human Feedback
A training technique where AI models are refined based on human preferences and evaluations of their...
Supervised Learning
A machine learning approach where models learn from labeled training data: input-output pairs that t...
Transfer Learning
Applying knowledge gained from training on one task to a different but related task, dramatically re...
Also Known As
Tags
Quick Info
Need help implementing this in your business?
Get Started