# RLAIF (reinforcement learning from AI feedback)

> Canonical: https://skillalmanac.com/glossary/rlaif | Last verified: 2026-11-24 | Index status: not offered to search engines

RLAIF, or reinforcement learning from AI feedback, trains a language model with reinforcement learning using preference labels produced by another AI model instead of by human raters. It is a variant of reinforcement learning from human feedback (RLHF).

Also called: RLAIF, reinforcement learning from AI feedback, RL from AI feedback, RLAIF vs RLHF, AI feedback training.

## In plain language

To teach a chatbot which of two answers is better, developers can ask people to compare answers and then train the model toward the winners. That works but needs a lot of human time. RLAIF swaps in another AI model as the judge: it reads two answers and says which is better by a set of written principles, and the main model is trained toward those judgements. The appeal is that labelling is cheaper to repeat. The limit is that the judging model has its own mistakes and blind spots, and the principles it follows are chosen by people. It is a training method used by model builders, so as a user you see its effect on how an assistant behaves, not a setting you can turn on.

## Technical definition

In Constitutional AI (Bai et al., arXiv:2212.08073), a supervised phase has the model critique and revise its own responses against a list of principles. In the reinforcement-learning phase, a model judges which of two sampled responses is better, a preference model is trained on those AI judgements, and the policy is trained with reinforcement learning using that preference model as the reward signal; the paper names this RL from AI Feedback (RLAIF). Lee et al. (arXiv:2309.00267) study RLAIF as an alternative to RLHF, where an off-the-shelf language model labels the preferences, across summarization and helpful and harmless dialogue tasks, and report that it performs comparably to RLHF. They also describe a direct variant that gets rewards from a language model during reinforcement learning without training a separate reward model.

## How it shows up when you use agents

You do not run RLAIF when you use Claude Code, Codex or Cursor. It happens earlier, when a lab trains the underlying [large language model](/glossary/large-language-model). What you notice is indirect: how an assistant declines requests, explains itself or weighs helpfulness against harm can reflect training that used AI-produced preference labels, alongside other methods. Read the model's own documentation for which methods shaped it, instead of guessing.

What breaks when it is misunderstood: people assume AI feedback means no human judgement. In the Constitutional AI paper, humans still supply a list of principles, and that is the human oversight the authors describe for harmlessness labels. The principles, and the judging model, can be wrong.

Next actions. If you evaluate agents or write your own grader, apply the same caution: a model judging a model is a design choice to test, for example against a small human-labelled sample. The related ideas are [RLHF](/glossary/rlhf), the [reward model](/glossary/reward-model) that turns preferences into a training signal, and [Constitutional AI](/glossary/constitutional-ai), where the term RLAIF appears.

## Common confusions

- **RLAIF versus RLHF.** Both train a model with reinforcement learning on preference comparisons. RLHF gets the comparisons from people; RLAIF gets them from an AI model. See [RLHF](/glossary/rlhf).
- **RLAIF versus Constitutional AI.** The Constitutional AI paper uses the name RLAIF for its reinforcement-learning phase. The method also has a supervised critique-and-revise phase.
- **RLAIF versus LLM-as-a-judge.** Both use a model to compare outputs. In RLAIF the judgements become training rewards; an [LLM judge](/glossary/llm-as-a-judge) in an eval only scores outputs.
- **Myth.** RLAIF removes humans. People still write the principles or choose the labelling model, and Lee et al. report comparable performance to RLHF on the tasks they tested, not on all tasks.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An eval dataset for any LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: The catalogue has no training skills. This is the nearest contrast case: both RLAIF and an eval rely on a grader, and a checker for missing graders is the same kind of care.

### [skill-authoring-and-evals](https://skillalmanac.com/skills/skill-almanac/skill-authoring-and-evals)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A way to write a SKILL.md from what a plain agent gets wrong, then prove it works with trigger and with-versus-without evals.

Why it exercises the concept: The catalogue has no training skills. This shows the user-side habit of judging whether a change helped by comparison, which is the question preference labelling also asks.

### [What Is an LLM? The Facts Agent Users Need](https://skillalmanac.com/learn/what-is-an-llm-for-agent-users)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An explanation of how an LLM predicts text one token at a time inside a fixed context window, and the context, cost and error facts that shape agent runs.

Why it exercises the concept: RLAIF happens before a model reaches you. The guide covers what you work with afterwards, so it frames where this training sits relative to agent use.

## Related terms

- [Reinforcement learning from human feedback (RLHF)](https://skillalmanac.com/glossary/rlhf.md)
- [Reward model](https://skillalmanac.com/glossary/reward-model.md)
- [Constitutional AI](https://skillalmanac.com/glossary/constitutional-ai.md)
- [Reinforcement learning](https://skillalmanac.com/glossary/reinforcement-learning.md)
- [AI alignment](https://skillalmanac.com/glossary/ai-alignment.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)

## Sources

- [Constitutional AI: Harmlessness from AI Feedback](https://arxiv.org/abs/2212.08073), arXiv (accessed 2026-11-24)
- [RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback](https://arxiv.org/abs/2309.00267), arXiv (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
