RLHF
Reinforcement Learning from Human Feedback: training a base model using human preference rankings to optimize outputs for safety, tone, and specific task adherence.
Listen to this definition
Uses a voice available on your device
Audio options
On this page 5 sections
Related concepts 5 concepts
What it is
After initial pretraining on raw text, a model generates multiple completions for a prompt, and human reviewers rank them from best to worst. A secondary reward model learns to predict these human preferences across tens of thousands of comparison pairs. Finally, the primary model is updated using reinforcement learning algorithms to maximize the score from this reward model. This multi-step pipeline turns a raw text predictor into an aligned assistant.
Why it matters
As a backend engineer calling LLM APIs, RLHF determines the out-of-the-box behavior, tone, and refusal patterns of the model you use. If you switch from a raw base model to an RLHF-tuned chat model, your prompting strategy must change completely because instruction-following and safety guards are now baked in. Ignoring this means you might waste engineering time writing complex application logic to fix behaviors that the underlying model was already trained to handle or avoid.
In practice
You rarely run RLHF yourself unless you are training custom weights, but you interact with its results whenever you select a model checkpoint or adjust system prompts. In API platforms, you might see RLHF effects surface as unexpected refusals on sensitive inputs, or as specific formatting styles that you must override with strict JSON mode or few-shot examples.
The tradeoff
RLHF makes models safer and easier to prompt, but it often degrades raw reasoning capability and increases the rate of sycophancy, where the model agrees with the user even when the user is wrong.
Where it appears
Research summaries that use RLHF, each linked to its source paper.
-
Improving AI Model Preference Optimization
Manifold Drift in Flow Preference Optimization: A Root Cause of Reward Hacking
The paper introduces ThermoDPO, a new training method that stabilizes generative model output by preventing reward-driven distortion of the underlying data distribution.
-
Balancing AI Safety Methods at Scale
Rules or Character? Scaling Laws for AI Safety Design
The paper models how engineers should shift resources between training-time character shaping and inference-time rule enforcement as system deployment scale increases.
-
Improving AI User Simulation for Better RL
One Frozen Simulator Is Not Enough: Simulator Collapse in Multi-Agent RL
This paper addresses simulator collapse in multi-agent reinforcement learning by introducing techniques to diversify simulator responses and jointly train policies with multiple simulators.
-
Enforcing AI Safety Through Runtime Contracts
Agent Safety Should Be a Runtime Contract
The paper introduces a system of preventive and evidential layers to secure autonomous agents through runtime contracts rather than relying on training-time model alignment.
-
Optimizing Mixed RL Rollout Throughput
Scheduling Mixed RL Rollouts Beyond Prefix Locality
The paper introduces a scheduling method that increases rollout throughput and reduces iteration time by managing how heterogeneous reinforcement learning workloads share KV-cache capacity.
-
Improving Nordic Language Model Grammatical Accuracy
SAGA: Score-Weighted Adaptive Generation Alignment for Low-Resource Nordic Language Models
The researchers developed SAGA, an automated pipeline that uses linguistic scoring to align language models for low-resource Nordic languages without needing human preference labels.