RLHF (Reinforcement Learning from Human Feedback)
RLHF is a training method that uses human preferences between model outputs to teach a reward model, which then guides the language model toward helpful, accurate, and safe behavior.
Reinforcement Learning from Human Feedback (RLHF) is an alignment technique for large language models that uses human judgment to steer model behavior beyond what supervised training alone achieves. Human raters compare pairs of model responses and select the one that is more helpful, accurate, or appropriate. These comparisons train a reward model, which learns to score outputs the way humans would. The language model is then fine-tuned using the reward model as a signal, reinforcing behaviors that earn high scores.
RLHF has three main stages: supervised fine-tuning on high-quality demonstration data, reward model training on human preference comparisons, and reinforcement learning, typically using Proximal Policy Optimization, to update the language model against the learned reward. Each stage depends on data quality, and errors at the preference comparison stage propagate directly into the reward signal the model optimizes for.
The human feedback stage is the most labor-intensive and quality-sensitive component of RLHF. Raters must understand the rubric, apply it consistently across diverse prompts, and handle ambiguous cases without introducing systematic bias. Programs that use domain-expert raters for specialized fields such as medicine, law, or coding produce reward models that accurately reflect domain-appropriate standards rather than general preferences.
Frequently asked questions
Supervised fine-tuning (SFT) trains the model to imitate demonstration responses written by humans. RLHF adds a second stage where humans compare model outputs and vote on which is better, training a reward model from those comparisons. The language model is then optimized to produce outputs the reward model scores highly. SFT teaches the model what good outputs look like; RLHF teaches it to prefer them even when it generates novel text.
Related terms
Related Corpshore AI services
Ready to scope a pilot?
Tell us your modality, volume, and languages. We'll return an indicative scope, timeline, and cost band.