الانتقال إلى المحتوى
Deep Learning و LLMsFine-tuning· 6 دقائق للقراءة

Base Model vs Chat Model: What Pretraining and RLHF Each Actually Teach

Pretraining supplies the knowledge; instruction tuning and RLHF teach the assistant how to use it.

ReadIn

مقال كل يوم يفرق معاك

21 نوفمبر 2026
  • كاتب موثّق
محتويات المقال

A team wants its support bot to know the product inside out. The plan: collect thumbs-up and thumbs-down ratings in production, then fine-tune on them, "because that's how ChatGPT got smart." Meanwhile an engineer tries an open-weight base model, types "What is the capital of Egypt?" and gets three more quiz questions back. The conclusion seems obvious: base models know nothing, chat training adds the knowledge. Both readings get the two stages backwards.

The common misconception

"Pretraining produces a model that can only autocomplete. Instruction tuning and RLHF are where it learns to answer, so that's where its knowledge comes from, and where you'd add more." The evidence looks convincing:

  • The jump in usefulness is dramatic. In the InstructGPT paper, people preferred the outputs of a 1.3B-parameter model trained with human feedback over those of the 175B GPT-3, a model with 100 times more parameters.
  • Base models really are awkward to use: they continue your text instead of replying to it.
  • Launch posts name RLHF as the ingredient that made chatbots work.
  • Chat apps show rating buttons, which suggests the model learns from what users say.

It's a half-truth. Post-training changes behavior enormously. But behavior isn't knowledge, and the two stages teach very different things.

What actually happens

Chat models are built in two phases: pretraining, then post-training. The phases differ in data, scale and goal.

Pretraining builds the knowledge

In , the network learns to predict the next token across an enormous amount of text, as covered earlier in this path. To predict well, it has to absorb facts, grammar, code and the patterns of reasoning that text contains. The result is a : a powerful document continuer.

A base model answers the question "what usually comes next in a document like this?" The InstructGPT authors spell out the mismatch: predicting the next token on a web page is a different objective from following the user's instructions helpfully and safely. A question followed by more questions is a perfectly likely web page. The knowledge is there; the base model just has no reason to act as your assistant.

Post-training teaches the role

InstructGPT, one of the best-documented recipes, turned GPT-3 into an instruction follower in three steps:

  1. Show it good answersPeople wrote ideal responses to prompts, and the model was fine-tuned on them. This is ; the set had about 13,000 training prompts.
  2. Learn what people preferLabelers ranked several model outputs for the same prompt, and a separate reward model learned to predict their rankings, from about 33,000 prompts.
  3. Optimize for that preferenceReinforcement learning tuned the model to produce outputs the reward model scores highly, on about 31,000 prompts. The second and third steps together are .

The feedback doesn't have to come from people. Anthropic's Constitutional AI trains harmlessness with no human labels of harmful outputs: the model critiques and revises its own answers against a written list of principles, and AI preferences replace human ones in the reinforcement learning step, called RLAIF.

The evidence: knowledge stays where pretraining put it

  • LIMA fine-tuned the 65B LLaMA base model on just 1,000 curated prompts and responses, about 750,000 tokens, with no reinforcement learning. People rated its answers equivalent to or better than GPT-4's in 43% of cases. The authors' conclusion: knowledge and capabilities are learned almost entirely in pretraining, and alignment mostly teaches which format to use with users.
  • GPT-4's technical report found exam capabilities came primarily from pretraining: on multiple-choice questions, the base model and the RLHF model scored about the same on average.
  • InstructGPT paid an "alignment tax": RLHF lowered performance on some public benchmarks, such as SQuAD and DROP. Mixing pretraining updates back into the training greatly reduced the drop.
  • Post-training can even blur what the model knows about itself. GPT-4's pretrained model was highly calibrated, its confidence matched its accuracy, and post-training reduced that calibration.

What post-training does change

A lot, and none of it is trivia. It teaches the model to answer instead of continue, to follow instructions and formats, to set tone and length, and when to decline. It can also shape habits: on closed-domain tasks such as summarization, InstructGPT made up information not present in the input about half as often as GPT-3, 21% against 41%. Sticking to the input is behavior, not knowledge. Preference training can also reward habits people like but shouldn't, such as agreeing with them; a later article in this path covers that.

Fine-tuning new facts is the hard way

Gekhman and colleagues tested what happens when fine-tuning examples contain facts the model didn't know. In closed-book question answering, those examples were learned significantly more slowly than ones consistent with the model's knowledge, and as the model finally fit them, its tendency to hallucinate rose linearly. Their reading: models acquire facts mostly in pretraining, and fine-tuning teaches them to use what they know more efficiently.

StageDataWhat it teachesWhat it can't do
PretrainingA huge body of raw textFacts, language, code, reasoning patternsMake the model act as an assistant
Instruction tuningThousands of written demonstrationsThe assistant format: answer and follow instructionsAdd much new knowledge
RLHF or RLAIFRankings by people, or by a model following principlesWhich answers are preferred: helpful, harmless, well-tonedTeach facts it never learned
Your contextYour documents, at request timeCurrent and private facts for this requestPersist after the request

How to apply it in your project

  1. Diagnose before you trainSort failures into missing or outdated facts, which call for context, and wrong behavior, which calls for prompts, examples and perhaps fine-tuning.
  2. Deliver knowledge at request timeUse retrieval, tools or plain document context for product facts, policies and anything that changes.
  3. Fine-tune behavior on what the model can knowIf you fine-tune, use examples whose facts appear in the input or that the model already answers correctly, so you teach format and judgment rather than new claims.
  4. Re-test broadly after tuningEvaluate your task and a set of general checks before and after, since post-training can cost performance elsewhere.

Key takeaways

  • Pretraining is where an LLM learns nearly everything it knows; a base model is a document continuer.
  • Instruction tuning and RLHF teach the assistant role: answering, following instructions, tone and refusals.
  • LIMA and GPT-4's report both point the same way: post-training shapes the format, not the knowledge.
  • Fine-tuning on facts the model didn't know is slow to learn and can increase hallucination.
  • Put knowledge in the context, and use fine-tuning for behavior.

📚 المصادر

  1. Ouyang et al., Training language models to follow instructions with human feedback (InstructGPT), arXiv:2203.02155
  2. Zhou et al., LIMA: Less Is More for Alignment, arXiv:2305.11206
  3. Bai et al., Constitutional AI: Harmlessness from AI Feedback, arXiv:2212.08073
  4. OpenAI, GPT-4 Technical Report, arXiv:2303.08774
  5. Gekhman et al., Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?, arXiv:2405.05904

التعليقات (0)