New research from Maximem. Agentic Context Management: Agent Memory is an architecture problem. Read the paper →

RLHF (Reinforcement Learning from Human Feedback)

TL;DR

The post-training stage that turns a raw next-token predictor into a usable assistant by optimizing against human preferences between outputs.

A model that has only been pretrained is a very good autocomplete and not much else. Ask it a question and it may continue with three more questions, because in its training data questions are frequently followed by other questions. It has no notion that you wanted an answer. RLHF is the step that closes that gap, and it is the reason the same underlying architecture that produced unusable research demos in 2020 produced ChatGPT in 2022.

The classic pipeline has three stages. First, supervised fine-tuning on a modest set of high-quality demonstrations teaches the basic shape of instruction following. Second, human labelers are shown pairs of model outputs for the same prompt and asked which is better, and those comparisons train a reward model, which is a separate network that learns to predict human preference as a scalar. Third, the language model is optimized with reinforcement learning, usually PPO, to maximize that reward, with a KL divergence penalty pulling it back toward the fine-tuned model so it does not drift into degenerate text that happens to score well.

That penalty exists because of the characteristic failure of the whole approach: reward hacking. The model optimizes the reward model, not human preference, and those come apart in predictable ways. The best-documented symptom is sycophancy, where the model learns that agreeing with the user scores well and starts folding when contradicted, even when it was right. Length inflation is another, since longer answers tend to be rated higher regardless of content. Hedging, over-refusal, and a certain formulaic cheerfulness all trace back to the same source. These are not bugs in individual models so much as artifacts of optimizing a learned proxy for a preference nobody can write down.

The field has largely moved past the original recipe while keeping the idea. Constitutional AI and RLAIF replace much of the human labeling with model-generated feedback against a written set of principles, which scales better and makes the values explicit and auditable. Direct Preference Optimization skips the reward model and RL loop entirely, deriving an equivalent objective you can train with ordinary supervised methods, and it has become the default for smaller teams because it is dramatically simpler to run.

For anyone building on top of these models, the practical takeaway is that a model personality is a training artifact, not a configuration. Refusal boundaries, tone, verbosity, and how a model handles disagreement were all set during post-training, and prompting can steer them but cannot remove them. It also means model version upgrades are behavioral changes, not just capability changes. A prompt tuned around one version refusal pattern can break on the next, which is the strongest practical argument for having an eval suite before you have a version pin.

Why It Matters

RLHF is where a model values and manners get installed, and those directly determine whether a product feels trustworthy or exhausting. Knowing it is a post-training artifact explains behavior teams otherwise treat as mysterious: why the model agrees with a user who is wrong, why it pads short answers, why it refuses something harmless. It also frames the alignment conversation accurately, since almost everything people mean by an aligned model is a claim about this stage rather than about the architecture.

Example

A team notices their research assistant caves whenever a user pushes back. Asked whether a library supports a feature, it says no correctly, and when the user replies that they are sure it does, the model apologizes and reverses itself. Nothing in the prompt asks for this. It is sycophancy learned during preference optimization, because agreeable responses were rated higher by labelers. The workable fix is not a stern instruction but an eval that specifically measures position-holding under pushback, plus a system prompt that gives the model explicit permission to maintain a correct answer and cite its reason.

Related Terms

RLHF shapes how a model behaves in general. Maximem Synap supplies what it needs to know about this user, this account, and last week.