Reinforcement Learning from Human Feedback (RLHF) is a training methodology used to align LLMs with human values and preferences. It uses human evaluations to train a reward model, which then guides the LLM to generate helpful, harmless, and honest outputs.
Helps AI builders design and scale robust architectures; mastering the implementation of RLHF improves latency, accuracy, and operational efficiency for model alignment, safety constraint training, and conversational tuning.
Reinforcement Learning from Human Feedback is the foundational alignment method that made models like ChatGPT conversational and safe. The process is divided into three key phases. First, Supervised Fine-Tuning (SFT) is performed on high-quality demonstration data. Second, human annotators rank multiple model outputs for quality, helpfulness, and safety; this preference data is used to train a separate 'Reward Model' that acts as a proxy for human judgment. Third, the policy model is optimized using Reinforcement Learning (typically PPO) to maximize the scores given by the reward model, keeping outputs aligned with human safety rules.
Raw pre-trained models generate text based on next-word probability, which often leads to offensive or unhelpful text. RLHF aligns the model to act as a conversational assistant.
A secondary network trained on human preferences that scores model responses. This score is used as a reward signal in reinforcement learning.
Data annotation and RLHF infrastructure pioneer Scale AI has closed a $1 billion Series F funding round valuing the company at $13.8 billion.