Reinforcement learning from AI feedback (RLAIF)
Reinforcement learning from AI feedback trains a model using preference judgements made by another AI model instead of by human raters.
Reinforcement learning from human feedback (RLHF) needs people to compare pairs of model answers and say which is better. Those comparisons train a reward model, and the reward model then guides further training. Reinforcement learning from AI feedback keeps the same pipeline but swaps the human judges for a language model. The AI labeller is shown a prompt and two candidate answers, often along with written guidance on what counts as good, and picks the better one.
The term comes from Anthropic's paper Constitutional AI: Harmlessness from AI Feedback, published in December 2022. In its reinforcement learning phase the model generated pairs of responses, an AI model judged which was better against a list of written principles, and those AI preferences trained a preference model that served as the reward. No human labels identified harmful outputs; human oversight of harmlessness came only through the list of principles. Anthropic reported an assistant that engaged with harmful requests by explaining its objections rather than simply refusing.
A 2023 study by Harrison Lee and colleagues, presented at ICML 2024, compared the two approaches directly on summarisation, helpful dialogue and harmless dialogue. Preferences labelled by an off-the-shelf language model produced results comparable to human preferences. The authors also tested a variant they called direct RLAIF, which skips the reward model and asks the language model for a score during training, and found it did better still.
The appeal is cost and speed. Human comparison data is slow and expensive to collect, while an AI labeller can produce millions of judgements. The catch is that the trained model inherits the labeller's blind spots and biases, and errors can be hard to notice when no person reads the individual judgements. In practice people still write the principles, design the prompts given to the labeller and check samples of its output.
Both train a model with reinforcement learning based on preferences between pairs of answers. In RLHF people make those preference judgements; in RLAIF another AI model makes them, usually following written instructions or principles. The rest of the pipeline, a reward model and a reinforcement learning step, can be the same. On the tasks it tested, a 2023 study by Lee and colleagues found that AI-labelled preferences gave results comparable to human-labelled ones for summarisation and for helpful and harmless dialogue. That does not mean AI judges match people everywhere: the result depends on how capable the labelling model is and on the task. No. Constitutional AI is Anthropic's wider method, which includes a supervised stage where the model critiques and revises its own answers against a set of principles. RLAIF is the reinforcement learning stage of that method, and the term is now used more generally for any training where AI-generated preferences replace human ones. Not entirely. People choose the principles or instructions the AI labeller follows, pick the labelling model and check its judgements. What RLAIF removes is the need for people to label every individual comparison, which is the most expensive and slowest part of RLHF.Common questions
What is the difference between RLHF and RLAIF?
Is RLAIF as good as RLHF?
Is RLAIF the same as constitutional AI?
Does RLAIF take humans out of AI training?
Search for "RLAIF", "constitutional AI" or "AI feedback preference labels" to find the main papers and follow-up work. The most reliable sources are the original papers on arXiv and the research pages of the labs that published them. Be cautious with claims that AI feedback fully replaces human judgement: check which tasks were tested and how the results were measured.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.