RedLectern topic

AI training and adaptation

Choose between pretraining · continued training · fine-tuning · reward-based adaptation.

For: Technical learners · builders.

After this page you can: Choose an adaptation route for a stated objective.

Page reviewed

Part of: Artificial Intelligence

About AI training and adaptation

AI model training covers several routes that serve different objectives. Pretraining builds broad capabilities from a training objective and a large corpus. Continued training starts from a pretrained model and trains further on domain or task data. Fine-tuning uses examples of a desired task or behavior to adapt a model. Preference and reward-based adaptation uses comparisons or other feedback to shape outputs toward a goal. These routes differ in what data they need and what behavior they directly optimize. Gururangan et al. study additional in-domain and task-adaptive pretraining, while Ouyang et al. describe supervised fine-tuning followed by learning from ranked outputs.

For the practical question of training vs fine-tuning, start with the objective: broad capability from a new model, domain exposure from more unlabeled text, task behavior from input-output examples, or preferences expressed through rankings or rewards. These are useful distinctions, not guarantees: a method only trains toward the signal and data supplied. Fine-tuning a pretrained model is a downstream adaptation route; continued pretraining keeps training with a pretraining objective, and reward-based routes optimize against feedback or an estimated reward. The sections below help you select what to investigate before choosing data, compute, or an implementation.

Start here

Learn the foundations

1.Choose by objective and training signalBefore choosing a method, write down the behavior you want to change and the evidence available to train toward it.

Before choosing a method, write down the behavior you want to change and the evidence available to train toward it. If the goal is broad capability, investigate pretraining. If you have relevant unlabeled domain text, investigate continued pretraining. If you can provide input-output examples of the target task, investigate supervised fine-tuning. If the goal is relative quality or preference and you can gather comparisons or define a reward signal, investigate preference or reward-based adaptation. These are route-selection heuristics: the cited studies describe examples of the signals and procedures, not a universal guarantee that one route will work for every objective. Ouyang et al. describe demonstrations, rankings, and a reward model in one adaptation process.

Try it

You have unlabeled documents from a specialist domain and a small set of prompt-answer examples for one task. Which route would you investigate for each dataset, and what objective does each route target?

Investigate continued, domain-adaptive pretraining for the unlabeled domain documents, then supervised fine-tuning for the prompt-answer task examples. The first continues pretraining on domain text; the second trains from demonstrations of the desired behavior.

2.Pretraining and continued trainingPretraining is the broad initial training stage in which a model learns from a general corpus under a chosen training objective.

Pretraining is the broad initial training stage in which a model learns from a general corpus under a chosen training objective. Continued training begins with an existing pretrained model and performs another phase of training, often with domain or task data. In a study spanning four domains and eight classification tasks, Gururangan and colleagues report gains from domain-adaptive pretraining and further improvement from task-adaptive pretraining on unlabeled task data. That result supports considering continued training when you have relevant unlabeled text; it does not establish that it will help every model, corpus, or objective. Make the data match the target domain or task, and evaluate the resulting model on the target behavior. Read the study.

Try it

A team has a large collection of unlabeled text from its target domain. It wants a model to better handle that domain before training a classifier. Which route is a plausible candidate, and what evidence would you use to decide whether it helped?

Domain-adaptive continued pretraining is a plausible candidate because it continues pretraining on in-domain text. Compare the resulting classifier against an appropriate baseline on the target task; the cited study reports gains across its tested domains and tasks, not a universal result.

3.Fine-tuning from demonstrationsFine-tuning adapts an existing pretrained model to a more specific task or behavior.

Fine-tuning adapts an existing pretrained model to a more specific task or behavior. When you can provide examples of inputs and desired outputs, supervised fine-tuning trains the model against those demonstrations. The BERT paper describes adding a task output layer and fine-tuning the pretrained model for tasks such as question answering and language inference. In a different setting, Ouyang and colleagues describe fine-tuning on labeler-written demonstrations before using comparisons between outputs. These examples illustrate why the training signal matters: examples teach the model to imitate demonstrated outputs, so inspect whether the examples represent the behavior and cases you actually want. BERT and Ouyang et al. provide the research examples.

Try it

You have 200 examples pairing customer messages with the replies you want the model to give. Which adaptation route directly uses these pairs, and what should a good training example contain?

Supervised fine-tuning directly uses input-output demonstrations. Each example should pair a representative customer message with a reply that illustrates the target behavior.

4.Preference and reward-based adaptationUse preference or reward-based adaptation when the target is expressed as comparative judgments or a reward signal rather than only a single reference answer f…

Use preference or reward-based adaptation when the target is expressed as comparative judgments or a reward signal rather than only a single reference answer for each input. In the InstructGPT study, researchers collect demonstrations, gather rankings of model outputs, train a reward model to predict labeler preferences, and use it to further fine-tune the model with reinforcement learning. Direct Preference Optimization proposes a different route: optimize from preference data with a classification loss, without first fitting a separate reward model. Both are research methods, and choosing between them depends on the feedback and training procedure available. Rankings express relative preferences; they do not by themselves establish an objective measure of quality. Ouyang et al. and Rafailov et al. describe these approaches.

Try it

For the same prompt, annotators can rank two candidate replies but cannot agree on one canonical reply. Which family of routes fits that feedback, and what does the ranking provide?

Preference-based adaptation fits comparative rankings. The ranking indicates which of the two replies annotators prefer; in the InstructGPT procedure, such rankings train a reward model that is then used as a reward signal.

Explore subtopics

Latest

No recent updates are available.

See the sources list

Books

Questions and comments