Skip to content

Fine-Tuning Pretrained Models

When and how to adapt a pretrained model to your task, and the alternatives to consider first.

Editorial team 2 min read

Fine-tuning continues training a pretrained model on your own labelled data so it specialises in your task.

When Fine-Tuning Helps

  • Your domain or style differs from general data (legal documents, medical images).
  • You need consistent output formats or behaviour at scale.
  • A smaller fine-tuned model could replace a larger, costlier one.

Try These First

For language models, prompting with examples and retrieval-augmented generation often achieve the goal without training. For classification, feature extraction with a simple classifier on top of embeddings is quick and cheap.

The Process

  1. Collect high-quality labelled examples that reflect real inputs.
  2. Split into training, validation and test sets.
  3. Replace or adapt the output layer for your task.
  4. Train with a low learning rate so you don't destroy pretrained knowledge.
  5. Evaluate against the base model and simple baselines.

Parameter-Efficient Fine-Tuning

Methods such as LoRA train small additional matrices while freezing the original weights. They need far less memory and produce small adapter files, which makes fine-tuning large models practical.

Risks

  • Overfitting small datasets.
  • Catastrophic forgetting of general abilities.
  • Inheriting and amplifying biases in your data.
  • Licences: check the base model's licence permits your use.

Evaluate Properly

Test on held-out data that resembles production, include difficult cases, and compare cost and latency as well as accuracy.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 17 Sep 2026

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 16 Sep 2026

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 15 Sep 2026

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 14 Sep 2026