How Does a Raw AI Model Become a Useful Assistant? Pretraining, Post-Training, and Fine-Tuning

Learn how pretraining, post-training, instruction tuning, preference feedback, and fine-tuning turn a base AI model into an assistant.

A language model does not emerge from its first training run as the polished assistant people use in a chatbot. Pretraining gives it broad pattern-recognition and text-generation abilities. Additional training teaches it to follow instructions, prefer some responses over others and behave more consistently inside a product.

The terms overlap, which is why they are easy to confuse. Pretraining builds the general base model. Post-training is the collection of later steps used to shape its behavior. Fine-tuning means updating a pretrained model’s parameters with a more focused dataset; it can be one part of post-training or a later customization for a particular task [1, 2].

TL;DR

  • Pretraining builds broad capability. The model learns statistical patterns from a large, general dataset by improving at token prediction [1, 3].
  • Post-training shapes how that capability is used. It may include instruction tuning, human or AI preference feedback and safety-focused training [4, 5, 6].
  • Fine-tuning changes model parameters; prompting does not. Fine-tuning can update all weights or a small set of added parameters, while prompting supplies temporary instructions in context [2, 7, 8].

The Training Stages at a Glance

StageMain purposeTypical dataWhat changes?
PretrainingLearn broad patterns and capabilitiesLarge, varied text, code, images or other dataThe base model’s parameters
Supervised fine-tuningTeach instructions, formats and examples of desired behaviorPrompt-and-response demonstrationsThe model’s parameters
Preference optimizationMake preferred responses more likelyRankings or comparisons of candidate outputsThe model’s parameters, directly or through a reward process
Domain fine-tuningAdapt the model to a field or taskFocused examples from that use caseAll parameters or a smaller trainable subset
PromptingGuide one request or conversationInstructions and examples in the contextNo parameter update

There is no single universal recipe. Model developers use different names and may combine stages. The useful distinction is whether a process changes the model’s parameters or merely changes the input it receives.

The previous guide, How Much Can AI Read or Remember at Once? Context Windows Explained, covered the temporary input a model uses for one response. This guide covers the training that shapes the model before any conversation begins.

Stage 1: Pretraining Builds the Base Model

Pretraining is the large, broad training phase. A language model processes enormous amounts of data and repeatedly adjusts its parameters to improve a prediction task [1, 3].

Depending on the architecture, the model may predict the next token or fill in hidden tokens. Loss measures the errors, and backpropagation updates the parameters. Over many examples, the model learns patterns of language, code, facts, reasoning and style that help it predict more effectively [3].

The result is often called a base model, foundation model or pretrained model. It can complete text and may display broad abilities, but it has not necessarily learned to respond to a user’s request in the way a helpful assistant should.

Imagine a base model given this prompt:

Explain photosynthesis in three simple bullet points.

Instead of answering, it might continue the prompt with another instruction or imitate a document that contains similar text. Pretraining taught it how language tends to continue. It did not guarantee that every imperative sentence should be treated as a command.

The exact material used in pretraining shapes the model’s knowledge and blind spots. How Does AI Learn From Examples? Training Data Explained covers where that material comes from and why the model does not simply store it as a library.

Stage 2: Supervised Fine-Tuning Teaches Instructions

The next step often uses demonstrations of desired behavior. People—or another system under human direction—create examples that pair prompts with strong responses. The model is fine-tuned to make those responses more likely.

This is called supervised fine-tuning, or SFT. It can teach the model to:

  • answer instead of merely continuing a prompt;
  • follow requested formats;
  • summarize, classify or transform information;
  • use an appropriate tone;
  • refuse or redirect certain requests;
  • recognize conversational roles.

The InstructGPT research described a concrete example: labelers wrote demonstrations of desired behavior, and the researchers fine-tuned GPT-3 on those examples before adding preference-based training [4].

Supervised fine-tuning does not have to reteach the model everything. It builds on capabilities acquired during pretraining. A much smaller, more focused dataset can steer how the model uses what it already learned [2].

Stage 3: Preference Optimization Shapes Behavior

There are many acceptable answers to an open-ended prompt. A demonstration dataset shows the model what a good response can look like, but developers may also want it to distinguish better from worse answers.

Preference training begins with candidate responses and judgments about which are preferred. Those judgments may come from people, AI systems guided by written principles, or a combination.

Reinforcement Learning From Human Feedback

In the InstructGPT pipeline, people compared model outputs. The researchers trained a separate reward model to predict those preferences, then used reinforcement learning to adjust the assistant so it received higher predicted rewards [4]. This family of methods is called reinforcement learning from human feedback, or RLHF.

RLHF is not human reviewers correcting every final answer. Their comparisons create training signals that influence the model’s general behavior.

Reinforcement Learning From AI Feedback

AI-generated feedback can also participate. Anthropic’s Constitutional AI research used a written set of principles to guide model-generated critiques and revisions, then used AI preferences during reinforcement learning [5]. This approach is often called reinforcement learning from AI feedback, or RLAIF.

The method still contains human choices: people select the principles, design the process and evaluate the result.

Direct Preference Optimization

RLHF can be complex because it may require training a reward model and running a reinforcement-learning loop. Direct Preference Optimization, or DPO, offers another approach. It trains the language model directly on preferred and dispreferred responses using a classification-style objective, avoiding a separate PPO-based reinforcement-learning stage [6].

RLHF, RLAIF and DPO are methods, not guarantees. Their results depend on the data, judgments, objectives and evaluations used. The next guide, How Does AI Learn From Human Feedback? Reinforcement and Preference Training, looks more closely at what feedback can and cannot shape.

Where Fine-Tuning Fits

Fine-tuning is a broad technical term: continue training a pretrained model on a smaller, more targeted dataset [1, 2]. Supervised instruction tuning is one kind. Preference optimization can also update the model after pretraining. A company may later fine-tune the assistant for medicine, customer support or document classification.

That is why “fine-tuning” and “post-training” are related but not identical:

  • Post-training describes the development phase after broad pretraining.
  • Fine-tuning describes a method of updating a pretrained model with focused data.
  • A post-training pipeline may contain several kinds of fine-tuning.
  • A later customer-specific fine-tune may happen after the developer’s main post-training is complete.

Full Fine-Tuning

Full fine-tuning updates all or nearly all of the model’s parameters. It offers broad control but can require substantial computing resources and a separate full model copy for each specialization.

Parameter-Efficient Fine-Tuning

Parameter-efficient methods update only a small portion of the system. LoRA, or Low-Rank Adaptation, keeps the pretrained weights fixed and learns smaller low-rank matrices that modify selected layers [7].

This can reduce training and storage requirements. Multiple adapters can share one base model, each representing a different task or style [7]. Parameter-efficient does not mean consequence-free: poor training data can still produce poor behavior.

How Does AI Recognize Patterns and Make Predictions? Neural Networks Explained covers what it means to update weights inside the model.

Fine-Tuning vs. Prompting vs. Retrieval

These techniques can all customize an AI system, but they act at different layers.

MethodChanges model parameters?Best suited to
Fine-tuningYesRepeated behavior, format, style or task adaptation
PromptingNoInstructions and examples for the current request
RetrievalNoSupplying current or private information at answer time

Prompt engineering places instructions and examples in the context without changing the weights [2, 8]. The effect may disappear when the prompt or conversation ends.

Retrieval finds relevant documents and adds them to the current context. It is useful when the system needs current or proprietary facts. Fine-tuning is usually a poor way to keep a rapidly changing database up to date because it alters behavior and patterns rather than providing a reliable record lookup.

The boundary between training and use is explained in What Happens During Training—and What Happens When You Use the Model? Training vs. Inference.

What Post-Training Can and Cannot Do

Post-training can make a base model easier to use. Research has shown improvements in instruction following, preferred response style and some measured safety behavior after supervised and preference training [4, 5, 6].

It can help a model:

  • respond directly to instructions;
  • follow common formats;
  • avoid some unwanted content;
  • express uncertainty or refuse in selected situations;
  • use tools or structured outputs more consistently;
  • adapt to a specialized domain.

It cannot guarantee that the model:

  • knows a true answer;
  • applies a rule correctly in every situation;
  • represents every user’s values;
  • is free from bias or harmful behavior;
  • will remain safe after later customization;
  • understands an instruction as a person would.

The InstructGPT researchers explicitly reported that their models still made simple mistakes even after human-feedback training [4]. Post-training changes the probability of behaviors. It does not install perfect rules.

Fine-tuning can also create trade-offs. A narrow dataset may overfit the model to one style or task. New behavior can interfere with earlier capabilities. Aggressive refusal training can make the assistant evasive, while weak safeguards can leave harmful behavior accessible. Developers need evaluation before and after each change.

Who Decides What an Assistant Should Do?

Post-training converts judgments into model behavior. Those judgments are not universal.

InstructGPT’s authors wrote that their process aligned the model with the stated preferences of a particular group of labelers and researchers, not with a complete definition of human values [4]. Constitutional AI uses written principles and AI feedback, but people still choose the principles and evaluation criteria [5].

Important questions therefore include:

  • Who wrote the demonstrations?
  • Who ranked the answers?
  • What instructions did reviewers receive?
  • Which languages and cultures were represented?
  • What principles guided safety decisions?
  • Which trade-offs did the evaluations measure?

The answers influence which behaviors become more likely. “Aligned” should always prompt the follow-up question: aligned to whose preferences, for which use and under what tests?

Practical Takeaways

  • Read “pretrained” as broad capability, not finished assistant behavior. A base model usually needs further shaping.
  • Treat post-training as an umbrella term. Ask which stages, datasets and evaluation methods were actually used.
  • Do not confuse prompting with fine-tuning. A prompt guides the current context; fine-tuning changes parameters.
  • Use retrieval for changing facts. Fine-tuning is better suited to repeated behavior and task patterns than to a current knowledge base.
  • Ask whether customization was full or parameter-efficient. The choice affects cost, storage and how much of the model changes.
  • Expect trade-offs. Better performance on one behavior can weaken another, so evaluation must match the real use case.
  • Question the word “aligned.” Find out whose judgments and principles shaped the model.

The Bottom Line

Pretraining gives a model broad pattern-based capabilities. Post-training turns those capabilities toward instruction following, preferred behavior and safer product use. Fine-tuning is one of the main ways developers update the pretrained model during that process or adapt it later to a narrower task.

An assistant is therefore not simply a large model with a chat box. It is the result of multiple training stages—and each stage contains human choices about data, goals and acceptable behavior.

Sources

  1. Machine Learning Glossary. Google for Developers, 2026-11-06, accessed 2026-11-07.
  2. LLMs: Fine-tuning, distillation, and prompt engineering. Google for Developers, accessed 2026-11-07.
  3. LLMs: What's a large language model?. Google for Developers, accessed 2026-11-07.
  4. Training language models to follow instructions with human feedback. arXiv, 2022-03-04, accessed 2026-11-07.
  5. Constitutional AI: Harmlessness from AI Feedback. arXiv, 2022-12-15, accessed 2026-11-07.
  6. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. arXiv, 2023-05-29, accessed 2026-11-07.
  7. LoRA: Low-Rank Adaptation of Large Language Models. arXiv, 2021-06-17, accessed 2026-11-07.
  8. Language Models are Few-Shot Learners. arXiv, 2020-05-28, accessed 2026-11-07.