Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

Glossary · Data Science & AI

Fine-Tuning

Also called: model fine-tuning · supervised fine-tuning

Further training a pretrained AI model on a smaller, task-specific dataset so it performs better on that task or adopts a particular style.

Definition

Fine-tuning starts from a model that has already learned general patterns from a large dataset and continues training it on examples from a narrower task, such as classifying support tickets or writing in a house style. Because the model begins with broad knowledge, a few thousand good examples can be enough to shift its behavior. It changes the model's weights, unlike prompting or retrieval, which change only the inputs. Teams usually try careful prompting and retrieval first, since fine-tuning needs labeled data, evaluation and retraining whenever the base model changes.

Worked example

Hypothetical: a retailer fine-tunes a language model on 5,000 past support tickets labeled by category. On a held-out set of 500 tickets, correct routing rises from 72% with prompting alone to 90% after fine-tuning.
  • Large Language Model: A neural network trained on very large amounts of text to predict the next token, which lets it generate, summarize, translate and reason over language.
  • Supervised Learning: Machine learning that trains a model on examples with known answers (labels) so it can predict the answer for new cases.
  • Prompt: The instructions, context and examples given to a generative AI model to steer what it produces.
  • Retrieval-Augmented Generation: A technique that retrieves relevant documents from a trusted source and adds them to a language model's prompt so its answer is grounded in that material.
  • Overfitting: When a model learns the noise and quirks of its training data so closely that it performs poorly on new data.

Courses

More in Data Science & AI

All glossary terms