Artificial Intelligence
Fine-tuning
Appears inAIF-C01Gen AI Leader
Process of continuing to train a pretrained foundation model on your own labeled dataset to specialize it for a specific task or domain, adjusting the model's weights (unlike RAG or in-context learning, which don't modify the model).
On the exam
In AIF-C01 and GENAI-L it's compared with RAG and in-context learning on a cost and complexity scale: in-context learning (cheapest, no training) < RAG (moderate) < fine-tuning (requires labeled data and compute) < pre-training from scratch (most expensive). Question: adapt a model's tone to the company's brand voice using your own examples → fine-tuning.
Related terms
- RAG (Retrieval-Augmented Generation)Technique that combines retrieving relevant information from an external source (vector database, documents) with generation from a language model, enabling answers grounded in up-to-date or private data without retraining the model.
- Foundation modelLarge-scale AI model, pretrained on huge volumes of diverse data, that can be adapted to multiple downstream tasks (text, image, code) through prompting, fine-tuning, or RAG, without needing to be trained from scratch for each use case.
- RLHF (Reinforcement Learning from Human Feedback)Training technique where a model is fine-tuned using human feedback on the quality of its responses, training a reward model that guides the main model toward outputs more aligned with human preferences.