Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Reward model

Definition

A model trained to score responses the way human raters would, used as the signal when another model is tuned with reinforcement learning.

In more detail

In the recipe described in OpenAI's 2022 InstructGPT paper, people rank several outputs for the same prompt, a reward model learns to predict those rankings, and the language model is then optimised with reinforcement learning to produce outputs the reward model scores highly.

The tuned model can learn to exploit the reward model's blind spots, finding answers that score well without being better, which is called reward hacking. Agreeable, flattering answers are one result. DPO learns from the same preference pairs directly and skips the separate reward model.

  • DPO

    Direct Preference Optimization: training a model directly on pairs of preferred and rejected outputs, with no separate reward model needed.

  • Post-training

    Training after pretraining that shapes a model's behaviour, including instruction tuning and preference or reinforcement learning.

  • RLHF

    Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.

  • Sycophancy

    A model's habit of telling users what they want to hear, agreeing with their views or praising their work even when that means being wrong.

  • AI alignment

    The work of making AI systems pursue the goals and values their developers and users intend, and avoid harmful behaviour nobody asked for.

  • Fine-tuning

    Further training a model on task-specific examples, and knowing when RAG is enough.

    SkillAdvanced

  • TRL

    Hugging Face's post-training library: supervised fine-tuning, DPO, GRPO and reward models.

    Tool

  • RLHF

    Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.

    Glossary