AI GLOSSARY · AI CONCEPTS

Reinforcement learning from human feedback (RLHF)

Markdown version · Wikidata Q115570683

Definition

Reinforcement learning from human feedback (RLHF) uses human feedback to guide reward-based training. A common language-model application learns a reward model from ranked answers and uses it to optimize responses; other applications learn from preferences over action trajectories.

Also called: RLHF, reinforcement learning from human feedback, RLHF training, RLHF AI, what is RLHF, reinforcement learning from human preferences.

In plain language

A common language-model application of RLHF uses comparisons of answers to learn what people prefer. The broader approach can also use feedback on action trajectories, as in game-playing or locomotion research. Imagine a new employee whose manager reads two draft replies to a customer and says 'this one, not that one', over and over. A scoring program (the reward model) learns to predict the manager's choices, and the AI is then nudged toward replies that score well. This is one reason chat assistants tend to follow instructions instead of just continuing your sentence. The limit is that the score only reflects what the reviewers happened to prefer. Reviewers disagree, can be wrong, and may not represent every group of users. The human labelling is also expensive, according to IBM.

Technical definition

In a common language-model RLHF recipe, described by IBM, humans first write example prompts and responses for supervised fine-tuning. Evaluators then compare pairs of model outputs, and those comparisons train a reward model that predicts human preference as a number. Finally a reinforcement learning algorithm, often proximal policy optimization (PPO), updates the model to raise that reward while limiting how far it moves per step. The InstructGPT paper (submitted 4 March 2022) applied this to GPT-3 using labeler-written demonstrations and ranked outputs. Anthropic's helpful and harmless assistant paper (arXiv 2204.05862) describes refreshing its preference models and policies weekly with new human feedback.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    AI Coding Assistant vs Coding Agent: What Each Can Change

    What you see
    A comparison of autocomplete, chat and agent modes by what each may change, with Claude Code's approval settings as the worked example.
    Why it exercises the concept
    It supplies an adjacent example of approval settings at runtime. Published preference-training studies concern particular models; this tool comparison does not establish how any selected current model was trained.
  2. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    claude
    What you see
    An interactive session where the tool reads your codebase, edits files and runs commands in your project, asking before actions your permission mode does not allow.
    Why it exercises the concept
    It illustrates runtime tool use, not evidence of the selected model’s training recipe. Where preference training was used, it still does not guarantee correctness.
  3. Skill by Skill Almanac · Illustrative, not executed

    customer-support-replies 58/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A reply to a customer drafted from your own policy document, with every question answered, nothing promised that the policy does not say, and a note of what needs a person's approval.
    Why it exercises the concept
    It keeps a person's approval on top of the model's output, the same idea of human judgement that RLHF uses during training, here applied at the point of use.

How it shows up when you use agents

You do not normally run RLHF yourself when you use Claude Code, Codex or Cursor. A provider may have used RLHF during model training, but a named agent application or helpful tone does not establish the selected model’s training history. Consult its published model documentation. When a large language model feels like an assistant rather than a text predictor, preference training of this kind (often following fine-tuning on example conversations) is one of the reasons. It is part of the wider effort called AI alignment.

What breaks when RLHF is misunderstood: people treat a model's confident, agreeable answer as a sign that it is correct or verified. Preference training rewards answers that people rate well, and a smooth wrong answer can still be rated well, so a hallucination can survive it. IBM also lists limits of the method: human feedback is expensive, annotators disagree and can be mistaken, and feedback from a narrow group may suit other groups poorly.

Next action: do not rely on how helpful a model sounds. Run the tests, read the diff, and keep approval on for commands that change things. If you choose a model for a task, test it on a few of your own real requests, because you cannot see the preference data behind it.

Common confusions

  • RLHF versus fine-tuning. Fine-tuning is the broad idea of continuing to train a model on new data. RLHF is one specific recipe in that family, in which a reward model built from human preferences guides the update. See Fine-tuning.
  • RLHF versus reinforcement learning. Reinforcement learning is the general method of learning from reward signals. RLHF is that method with the reward learned from human judgements instead of a game score or a test result.
  • Myth. RLHF makes a model truthful or safe. The InstructGPT abstract reports that human evaluators preferred the tuned models, with better truthfulness and less toxic output than the base model, but the paper also says "InstructGPT still makes simple mistakes".
  • Myth. A person rates every answer you receive. The ratings are collected during training. When you chat, no person is rating the reply in real time.
Show all 18 related terms

Terms that mention Reinforcement learning from human feedback (RLHF)

15 terms mention this one

More in AI concepts

Next steps

  1. AI Coding Assistant vs Coding Agent: What Each Can Change The long-form guide.
  2. customer-support-replies A skill that exercises it.
  3. Reinforcement learning Related term.
  4. AI alignment Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections to wording and sources.
  • : Bounded source repairs: Defined broader feedback-guided RL and labelled language-answer recipe as one application; removed inference of actual private training from named applications or behavior. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.