Skip to content

What is Reinforcement Learning from Human Feedback?

Also known as: RLHF

Reinforcement Learning from Human Feedback (RLHF) is a training technique that improves AI models by using human preferences to guide the learning process instead of relying only on fixed rewards.

RLHF works in three main stages. First, humans rank or rate different AI outputs for the same prompt. Second, these rankings train a separate reward model that predicts how much humans would like a new output. Third, reinforcement learning uses this reward model to adjust the original AI so it produces higher-scoring responses.

The key idea is to translate subjective human values such as helpfulness, honesty, and safety into a signal the model can optimize. This allows the AI to learn behaviors that are hard to specify with simple rules or labeled data alone.

Common algorithms used in the final stage include Proximal Policy Optimization (PPO), which keeps updates stable while maximizing the learned reward.

Example

After an initial version of ChatGPT generates several possible answers to a question, human raters pick the most helpful and harmless one. These choices train a reward model that later guides further training so the chatbot produces better answers on its own.

Why it matters

RLHF is currently the main method used to align large language models with human expectations, making systems like ChatGPT and Claude more useful and less likely to produce harmful content.

Frequently asked questions

Supervised learning trains on fixed correct answers, while RLHF uses human rankings to create a flexible reward signal that teaches the model what people prefer even when no single correct answer exists.