Open the WaytoAGI knowledge base on Feishu · 100M+ visits, open to everyone →
WaytoAGI

Knowledge Base · Learning paths

Why Post-Training After Pre-Training?

Pre-training only teaches large language models to predict the next token, resulting in base models that don't follow instructions, can cause harm, and struggle with long-chain reasoning. Post-training uses three key techniques—instruction tuning, preference alignment, and RLVR—with a small amount of high-quality data to reshape model behavior into truly helpful AI assistants.

post-trainingpre-trainingLLM traininginstruction tuningRLHF

Translated from Chinese by AI. Spotted an issue? Use the feedback button.

🔗 Original link: https://x.com/dongxi_nlp/status/21127670...

Dongxi NLP · X · @dongxi_nlp · 2026-10-21 12:44

📌 This article is reposted. All copyrights belong to the original author. Please refer to the original link for the full text.

In early 2022, when OpenAI introduced InstructGPT, they showed a striking comparison. They gave GPT-3 a very simple request:

“Explain the moon landing to a 6-year-old in a few sentences.”

Instead of explaining the moon landing, GPT-3 immediately generated several more questions:

“Explain gravity to a 6-year-old. Explain relativity to a 6-year-old. Explain the Big Bang to a 6-year-old…”

When the same request was given to InstructGPT, the response was appropriate: People landed on the moon, took pictures of what they saw, and sent the photos back to Earth so everyone could see them.

What GPT-3 did was exactly what its training had taught it to do.

Pretraining teaches the model only one thing: given a piece of text, predict the next word.

The training data consists of vast amounts of text, mostly from web pages. On the web, one question is often followed by more questions—exercise sets, homework lists, “Ten questions to help you understand…” and so on. Therefore, “generating several more questions” is a perfectly reasonable guess for “what comes next.”

A model that has only undergone pretraining is called a base model. Everything done after pretraining to turn this “text completer” into a useful assistant is collectively called post-training. InstructGPT is a GPT-3 base model that received post-training.

This article explains three things: why post-training is needed, how it differs from pretraining, and the three main techniques it typically includes.

What’s Still Missing After Pretraining?

Imagine a person who has read every book in a massive library but has never held a job. They know a great deal; you can say half a sentence and they can almost always finish it. But if you walk up and ask them for help, they might just continue the conversation on their own, following the topic wherever it leads.

Base models have three similar shortcomings:

  • They don’t follow instructions well. Ask it to explain the moon landing, and it might generate more questions. Ask it to translate a sentence, and it may continue writing in the original language.

  • They can cause harm. The objective of “predict the next word” contains no requirement to avoid dangerous advice, insults, or confidently stating incorrect information—such as giving a wrong answer to a medical question.

  • They are not good at long-chain reasoning. Knowing what a math problem looks like in text is still very far from actually solving it step by step.

All three shortcomings share the same root cause:

The goal of pretraining is to accurately predict the next word in web text. What people actually need is a helpful, harmless model. These two objectives don’t align.

Post-training is designed to bridge exactly this gap.

How Do Pretraining and Post-Training Differ?

Post-training does not create a new model; it continues training the same one. What changes are the data and the signal that tells the model “what counts as better.”

Objective. Pretraining: predict the next word in the text accurately. Post-training: behave in ways people want—understand instructions, stay safe, and solve problems correctly.

Data. Pretraining uses raw text at a scale of trillions of tokens. Post-training uses much smaller, carefully curated data: prompts paired with good responses, comparisons between two responses, or problems with verifiable correct answers. Even a large instruction dataset typically contains only a few million examples.

Signal. In pretraining, every next word in the text serves as a learning target. In post-training, the signal comes from a demonstration response, a “which is better” judgment, or correctness feedback from a verifier.

Cost. The vast majority of compute is spent on pretraining; post-training accounts for only a small fraction.

Magnitude of change. Pretraining builds knowledge and language ability from scratch. Post-training mainly makes gentle directional adjustments to an already capable model.

Roughly speaking: pretraining determines what the model knows; post-training determines how it uses that knowledge.

Even with far less data, the impact can be substantial. One study found that mixing just 500 safety examples into a large instruction dataset significantly reduced the model’s tendency to give harmful responses.

Three Techniques, Three Kinds of Teachers

Post-training is typically divided into three techniques: instruction tuning, preference alignment, and RLVR (Reinforcement Learning with Verifiable Rewards). The easiest way to distinguish them is by the type of teacher each learns from:

One demonstrates, one compares, one checks.

1. Instruction Tuning: Learning from Demonstrations

New employees often start by studying examples: this is a request, and this is a good response.

Instruction tuning works the same way. The training data consists of individual instructions, each paired with a high-quality response. For example, the instruction might be “Translate this Spanish sentence into English,” followed by the correct English translation.

The core training rule remains almost unchanged—the model still predicts the next token. The key difference lies in which tokens are scored:

The instruction is treated only as context. The model is only graded on the words it generates in the response.

This approach is also known as Supervised Fine-Tuning (SFT), because every instruction comes with a correct answer that the model can imitate. After training on many different types of tasks, the model’s overall ability to follow instructions improves significantly, enabling it to perform better even on tasks it has never seen before.

2. Preference Alignment: Learning through Comparison

Even after instruction tuning, model outputs can still be incorrect, unsafe, or not particularly helpful.

Writing a perfect answer is difficult; judging which of two answers is better is much easier. A food critic may not know how to cook, but they can tell you which dish tastes better.

Preference alignment leverages exactly this kind of judgment. The training data consists of one question, two different answers, and a label indicating which answer people prefer.

There are two main approaches. The first involves first training a separate reward model that acts as a judge, scoring any given response. The main model then repeatedly practices to achieve higher scores. This approach is commonly known as RLHF (Reinforcement Learning from Human Feedback), and PPO (Proximal Policy Optimization) is one of its well-known algorithms. The second approach is DPO (Direct Preference Optimization), which learns directly from pairwise comparisons without needing a separate reward model.

Both approaches attach a “leash” to the model, tethering it to the original pre-trained model. This mechanism is technically called the KL penalty.

Without this leash, the model may chase rewards too aggressively, drifting far from its starting point and forgetting much of what it learned during pre-training.

3. RLVR: Letting a Verifier Judge Right and Wrong

For some tasks, correctness can be checked programmatically. Math problems have a final numerical answer; programming problems either pass or fail their test cases.

RLVR treats such a verifier as the teacher. The model generates multiple solutions for the same problem. The verifier checks each one for correctness, and the model then increases the probability of the solutions that passed.

No human judge is needed here. No matter how beautifully or verbosely an answer is written, it cannot fool the verifier.

This makes RLVR particularly well-suited for complex, multi-step problems where base models tend to struggle. One important caveat: the reliability of the verifier depends on the quality of its rules. If it only checks the final answer, it cannot guarantee that every intermediate step was correct.

Summary

  • Pre-training teaches the model how to continue text. Being able to continue text, however, is still far from being genuinely helpful.

  • Post-training continues training the same model, but uses much smaller, carefully curated datasets to shape its behavior.

  • The three techniques learn from three different kinds of teachers: instruction tuning learns from demonstrations, preference alignment learns from comparisons, and RLVR learns from verifiers.

This is the first article in the post-training series. Future articles will dive deeper into each technique: what kind of data the models are trained on, how the loss functions work, and where these methods can go wrong.