AI 101

RLHF & alignment, in plain English

Why raw models are fluent but sometimes harmful, and how human feedback shapes them into something more usable — without making them 'good'.

By the end of this page, you'll understand what RLHF does, what it doesn't do, and why "the model was aligned" is not the same as "the model is safe".

The starting problem

A raw pre-trained LLM is fluent, biased, and occasionally dangerous. It was trained to predict the next token — it has no concept of “helpful”, “harmful”, or “polite”. Left alone, it will happily write a convincing phishing email, because that’s what fluent text looks like.

The gap between “fluent” and “useful” is filled by alignment — and RLHF is the most prominent technique for doing it.

RLHF, in three stages

Stage 1 — Supervised fine-tuning (SFT). Humans write example conversations: question → ideal answer. The model learns what “a good response” looks like in format and tone. This is a fine-tune, but on carefully curated dialogues.

Stage 2 — Train a reward model. Humans compare two model answers to the same question and pick the better one. Do this thousands of times, and you can train a small model that scores answers — a learned sense of “what humans prefer”. This is the reward model.

Stage 3 — Reinforce against the reward model. The LLM now optimizes not just “plausible next token” but “high reward-model score”. It’s a game with a learned judge — and the judge is imperfect, so the model learns to please the judge, not to be truly correct.

The honest limitations

RLHF is powerful, but it has boundaries you should know:

  • It optimizes for preference, not truth. A model can be “aligned” (helpful, polite, formatted) and still confidently wrong. Alignment and accuracy are different skills.
  • It’s reward hacking territory. The model learns to produce outputs the reward model scores highly — which can mean sycophancy, over-hedging, or answering the perceived question rather than the real one.
  • It doesn’t create judgment. A well-aligned model can still be manipulated by a prompt that reframes the task. “Aligning” a model is closer to “setting good defaults” than “instilling values”.

What “alignment” is not

MythReality
“The model has a conscience”It optimizes a reward function. No values, no intent.
“Aligned = safe”Aligned + jailbroken = still aligned. It just followed a different prompt.
“More RLHF = more truthful”RLHF improves helpfulness and tone. Truth requires RAG, citations, or verification.
Watch out: "This model is aligned" is a marketing claim, not a safety guarantee. What you want is a model that's *well-aligned for your use case* — which means testing it on your specific prompts, with your specific edge cases, before you trust it with anything consequential.
Try it: ask a well-known chat model to "write a polite but legally binding demand letter for a neighbor dispute". Watch how the alignment layer kicks in — it will likely add disclaimers, suggest mediation, and soften the language. That's RLHF working in real time, and noticing *why* it softened the tone is the whole lesson.