Concepts / Understanding Finetuning

Understanding Finetuning

Finetuning means continuing to train a previously trained model using its existing weights.

  • Programming

A Head Start for Learning Models

Imagine two people who must each learn a new skill. One starts with no background at all. The other has already spent years learning related material. Most people would expect the second person to get up to speed faster and with less effort. The idea behind finetuning follows the same intuition, but it is applied to a machine learning model rather than a person.

Definition

Finetuning means continuing to train a previously trained model using its existing weights.

The key word in that definition is continuing. Finetuning does not describe building a model from nothing. It describes taking a model that already has a set of weights from an earlier round of training and resuming training from that point. The rest of this article follows those weights from the earlier training into finetuning, and then asks why the process tends to be cheaper than starting over.

Tracing the Weights Across Two Stages

To see what finetuning changes, follow the model's weights across the two stages. Before finetuning, the model is a previously trained model, and its weights are the product of that earlier training. Finetuning then continues training from those same weights. The result is a finetuned model whose weights have been further adjusted by the continued training.

Notice what stays the same across the two stages. The starting point is not thrown away. The finetuned model is the earlier model carried forward and trained further, rather than a separate model assembled from scratch. The weights in the diagram are the same weights in both columns, moved along by continued training.

What do you think happens?

Does finetuning begin by creating a new set of weights from random values?

  • Yes, it starts from random values like a fresh model

  • No, it starts from the weights produced by an earlier training run

Reveal answer
Answer:

No, it starts from the weights produced by an earlier training run.

Finetuning continues training from the existing weights of a previously trained model, so the earlier learning is carried forward.

Where the Starting Point Comes From

The starting weights of finetuning come from a previous training process. Finetuning happens in two stages. In the first stage, a model is pretrained, and that earlier training produces its weights. In the second stage, the pretrained model is trained further, and the weights from the first stage are handed over as the starting point. The first stage is the earlier training that carries knowledge forward; the second stage builds on it.

The dataset in the second stage is the part that varies from one application to another. Finetuning is usually described as training on a smaller task-specific dataset than the one used for the first stage, so the pipeline narrows in scope as it moves from general pretraining to a specific purpose.

What Finetuning Reuses and What It Changes

Finetuning reuses the weights that the earlier training produced. Those weights are the starting values, so the learning captured in them is not repeated. Training then continues, and the same weights are adjusted further. Reuse and adjustment happen to the same set of parameters, which is why finetuning is described as continuing rather than replacing.

Why Finetuning Needs Fewer Resources

The source states that finetuning typically requires fewer resources, such as data and compute. The reason is that the model already has certain knowledge from pre-training. Pre-training is the earlier training that produced the starting weights, so part of the learning has already been done before finetuning begins.

Two resources are named. Data refers to the examples the model learns from. Compute refers to the processing effort needed to train. Because the model does not need to learn everything again, finetuning typically draws less on both. The table below sets a model trained for the first time beside a model being finetuned, using only the contrasts the source supports.

AspectTrained for the first timeBeing finetuned
Starting weightsNo earlier weights to continue fromWeights from a previous training process
Earlier learningNot carried into the modelCarried forward into the new training
Data neededTypically moreTypically fewer, because pre-training already happened
Compute neededTypically moreTypically less, because the model does not learn everything again

Contrasting a first-time training run with finetuning

Tracing a Finetuning Run

Worked example

Finetuning a pretrained model on a narrow task

A model has already been pretrained on a large, general collection of text. A team wants it to handle a narrow task, so it finetunes the model on a much smaller dataset written for that task. What is the starting point, what is reused, and what changes?

  1. 1
    Identify the starting point

    The starting point is the set of weights produced by the earlier pretraining. Finetuning does not begin from random values.

  2. 2
    Continue training on the smaller dataset

    Training resumes from those weights. The examples in the smaller dataset are the new data the model learns from.

  3. 3
    Trace the weights forward

    Each weight keeps its pretrained value as the starting point and is then adjusted further by the continued training. The model is carried forward, not rebuilt.

  4. 4
    Check the resource pattern

    Because the earlier learning is reused, finetuning typically needs less data and compute than the first training run, though this is a typical pattern rather than a guarantee.

Result

The finetuned model is the pretrained model with its weights further adjusted by training on the smaller, task-specific dataset.

Read the run again with the diagram in mind. The same weights appear before and after the run, and what changes between them is their value. This is the core trace of finetuning: a stable set of parameters that moves a little further each time training continues.

Mistakes About Finetuning

  • Common mistake

    Thinking finetuning means training a model from scratch

    What it looks like

    Assuming a finetuned model was built with new random weights and then trained on the task data

    Why it fails

    Finetuning starts from the existing weights of a previously trained model and continues training from that point.

    Do this instead

    Ask where the starting weights came from. If they came from an earlier training run, the process is finetuning.

  • Common mistake

    Assuming finetuning always needs less data and compute

    Why it fails

    The source describes the reduction as typical, a general pattern rather than a guarantee for every case.

    Do this instead

    Describe the reduction as the usual outcome and check the actual resources in each case.

  • Common mistake

    Treating any way of adapting a model as finetuning

    Why it fails

    Finetuning is defined by continuing training from existing weights. Approaches that do not continue training and adjust those weights are not finetuning in this sense.

    Do this instead

    Before calling something finetuning, check whether training continues from existing weights and changes them.

  • Common mistake

    Confusing pretraining with finetuning, when pretraining is the earlier stage that produces the starting weights

Practice Reasoning About Finetuning

MEDIUM

A model is pretrained once and then finetuned twice, on two different smaller datasets. Explain what is shared between the two finetuned models and what differs, using the idea of a starting point and continued training.

Hints
  • Both finetuned models start from the same pretrained weights.
  • Each finetuning run adjusts the weights further using its own dataset.
  • Ask which parts stay the same and which values end up different.

Key Takeaways

  • Finetuning means continuing to train a previously trained model using its existing weights.
  • The starting weights come from an earlier training process, and finetuning carries that learning forward rather than discarding it.
  • Finetuning typically needs fewer data and compute because pre-training has already supplied part of the learning.
  • The word typically marks a general pattern, not a guarantee, and finetuning should not be confused with training from scratch.

Related concepts

More concepts starting with U