No history yet

Architectural Paradigms

Beyond the Base Model

A base large language model is like a massive library of every book ever written, but with no librarian. It contains incredible information—patterns, facts, styles—absorbed from terabytes of text and code. Ask it to complete a sentence like "The first person on the moon was," and it will almost certainly answer, "Neil Armstrong." It excels at pattern completion because that's what it was trained to do: predict the next word.

But what happens if you ask it, "Write a sonnet about my dog, Barnaby, who loves to chase squirrels"? A base model might get confused. It could continue the prompt in a dozen different ways, maybe defining what a sonnet is, or telling a story about a generic dog. It doesn't inherently understand that it's supposed to follow an instruction and act as a helpful assistant. It only knows how to continue patterns.

This is the core difference between a base model and an instruction-tuned or chat-optimized model. Chat models like GPT-4o or Claude 3.5 Sonnet have undergone extensive post-training to transform them from raw prediction engines into cooperative conversationalists. This process involves two key techniques: Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF).

Teaching the Rules with SFT

The first step in shaping a base model is (SFT). Imagine you're teaching a brilliant student who has read every textbook but has never answered a direct question. You’d start by giving them examples. You'd provide a question and the ideal answer, over and over again.

SFT works the same way. Human labelers create a high-quality dataset of prompts and desired responses. These prompts cover a huge range of tasks: summarization, brainstorming, code generation, creative writing, and answering questions. The base model is then trained on this dataset. It learns to associate a specific type of input (an instruction) with a specific type of output (a helpful, well-formatted answer).

SFT teaches the model what a good answer looks like. It fine-tunes the model's parameters to increase the probability of generating responses that follow instructions, rather than just continuing the text.

This is also where a model learns to adhere to a system prompt. The system prompt is a set of high-level instructions given to the model before a user starts a conversation (e.g., "You are a helpful assistant that speaks like a pirate."). During SFT, the model is trained on examples where it correctly follows such system-level directives, making it more reliable and steerable in applications.

Refining Personality with RLHF

After SFT, the model knows how to follow instructions. But what makes one good answer better than another? Is it more detailed? Safer? Funnier? This is where comes in. RLHF is a more nuanced process that refines the model's behavior based on human preferences, shaping its 'personality.'

The RLHF workflow has three main steps:

  1. Generate Responses: A prompt is fed to the SFT-trained model, which generates several possible answers (e.g., A, B, C, D).

  2. Rank Responses: Human labelers review these answers and rank them from best to worst. They aren't writing the perfect answer, just expressing a preference. Answer A might be better than C because it's more polite, while B might be better than A because it's more comprehensive.

  3. Train a Reward Model: This ranking data is used to train a separate 'reward model.' Its job is to predict which response a human would prefer. It learns the subtle qualities that make a response good—helpfulness, harmlessness, and honesty.

Finally, this reward model is used to further fine-tune the LLM using reinforcement learning algorithms. The LLM is rewarded for generating answers that the reward model scores highly. Essentially, the model learns to optimize its responses to please the preferences encoded in the reward model.

This process is what prevents a chat model from generating harmful content, refusing inappropriate requests, and maintaining a consistent, helpful persona. It's also critical for managing conversational state. A base model has no inherent memory of a conversation. An RLHF-tuned model, however, is rewarded for responses that acknowledge previous turns in the dialogue, making it feel like you're having a continuous conversation rather than a series of disconnected exchanges.

Together, SFT and RLHF create a powerful synergy. SFT provides the raw ability to follow instructions, while RLHF refines that ability based on complex human values. This is why models like ChatGPT 'feel' so different from raw, pre-trained models—they are specifically architected for cooperative, safe, and coherent dialogue.

Ready to check your understanding? This quiz covers the key differences between base models and the fine-tuned versions you interact with every day.

Quiz Questions 1/5

What is the primary function of a base large language model?

Quiz Questions 2/5

During the Reinforcement Learning from Human Feedback (RLHF) process, what is the specific role of the 'reward model'?

Understanding these architectural paradigms is the first step in selecting the right model. A base model offers a blank slate for custom development, while an instruction-tuned model provides a ready-to-use, aligned assistant.