RLAIF (Reinforcement Learning from AI Feedback)
A scalable alternative to RLHF where an AI model, rather than human annotators, is used to evaluate and rank outputs to train a reward model.
How it works
In RLAIF, a strong AI model (often a larger or more capable LLM) is used as a preference labeller. Given pairs of outputs, the AI judge scores or ranks them according to criteria specified in a prompt (e.g., helpfulness, harmlessness). These AI-generated preference labels are then used to train a reward model in exactly the same way as RLHF. Constitutional AI (Anthropic) is a form of RLAIF where a set of principles guides the AI judge's evaluations.
Why it matters
RLHF's fundamental bottleneck is human annotation: labellers are expensive, slow, and inconsistent. RLAIF scales alignment data collection by replacing human labellers with AI judges, enabling orders of magnitude more preference data to be generated at a fraction of the cost. As AI judges become more capable, RLAIF approaches the quality of human feedback. It is now a central technique at Anthropic (Constitutional AI), Google, and others, making it one of the defining alignment paradigms of the current era.