Reward model
In short
A reward model is a separate model that scores a prompt and a reply, giving a higher number to the reply people preferred. That score is then used to train the chatbot people actually talk to.
- Also called
- RM
- Topic
- How models are trained
- Level
- Some background helps
- First described
- Paul Christiano and colleagues, June 2017. They trained a reward predictor from human preferences between clips of behaviour, then maximised that predicted reward2.
A reward model reads a prompt and a reply and outputs one number, called a reward. It is trained so the preferred reply scores higher than the rejected one. In the InstructGPT paper, labelers ranked between four and nine replies to the same prompt, and the reward model was trained on every pair inside that ranking1. The team used reward models with 6 billion parameters, because training a 175 billion parameter reward model was unstable1.
The chatbot is a different model. InstructGPT then runs reinforcement learning with the PPO algorithm, so the chatbot's replies score higher on the reward model, with a penalty that limits drift from the demonstration-trained version1. Labelers preferred its 1.3 billion parameter model to the 175 billion parameter GPT-3, which the authors call 100 times fewer parameters1. They say the result tracks their labelers and researchers, about 40 contractors, not a broader notion of human values1.
The idea predates chatbots. In 2017, Christiano and colleagues trained a reward predictor from human preferences between short clips of behaviour, then let a reinforcement learning agent maximise the predicted reward. The tasks were Atari games and simulated robot locomotion. People labelled less than 1% of the agent's interactions, and new behaviours took about an hour of human time2. In 2019, Ziegler and colleagues applied the same reward-learning idea to text. A model of reward, built by asking people which continuation they preferred, was used for sentiment, descriptive writing and summarisation. Stylistic continuation used 5,000 human comparisons. Summarisation used 60,0003.
OpenAI's November 2022 introduction of ChatGPT says the team ranked two or more replies, trained reward models on those rankings, and fine-tuned with PPO, using the same methods as InstructGPT with slight differences in the data collection. The page now says ChatGPT has evolved substantially since that post, so it does not describe training in 20264. Meta's Llama 3 paper, from July 2024, still trains a reward model on human preference rankings and uses it for rejection sampling, then aligns the chatbot with direct preference optimisation. The authors tried PPO and report that direct preference optimisation used less compute and did better on instruction-following benchmarks5.
Example
Shown two drafts of the same email, one clear and one rude, a person picks the clear one. After many such picks, a reward model gives a higher score to the clear style. The person never chats with the reward model. Its number is only a training signal.
Why it matters
It is how a lab turns 'this reply is better' into a number a training algorithm can chase. The chatbot people use is a different model.
Questions people ask
Is a reward model the same as the chatbot?
No. The reward model only scores replies. In InstructGPT a separate chatbot is then trained so those scores go up1. OpenAI's 2022 ChatGPT introduction describes the same split4.
Is a reward model the same as RLHF?
No. RLHF is the wider training loop. In InstructGPT the reward model is the middle step: people rank replies, the reward model learns those rankings, then reinforcement learning uses its score1.
Do chatbots still use a reward model?
Some published recipes do. Llama 3, described in 2024, trains a reward model and uses it for rejection sampling, then aligns with direct preference optimisation5. OpenAI's 2022 ChatGPT introduction does not say whether the 2026 product still uses a separate reward model. The page says ChatGPT has evolved since then4.
Whose preferences does a reward model learn?
In InstructGPT, the preferences of the people hired to label, about 40 contractors, together with the researchers' criteria. The authors say this is not a universal notion of human values1.
Related terms
Sources
- Ouyang et al. (2022), Training language models to follow instructions with human feedback, arXiv:2203.02155
- Christiano et al. (2017), Deep reinforcement learning from human preferences, arXiv:1706.03741
- Ziegler et al. (2019), Fine-Tuning Language Models from Human Preferences, arXiv:1909.08593
- OpenAI (2022), Introducing ChatGPT
- Grattafiori et al. (2024), The Llama 3 Herd of Models, arXiv:2407.21783