Sam Austinon October 17, 202613 min read

RLAIF and Constitutional AI: Feedback from AI Instead of Humans

Contents

Write the rules once, let a model apply them

Human preference labels are slow, expensive and inconsistent. So why not ask a model to do the labeling? That's the idea behind RLAIF (reinforcement learning from AI feedback) and Constitutional AI. It works better than skeptics expect, and it fails in ways that are easy to miss.

This article explains both methods, what the papers report, and what AI-generated labels do to a reward model. The last part was tested with a simulation on synthetic data — no real LLM is involved, so read the numbers as mechanics, not measurements. It continues the thread from our reward hacking and RLHF guides.

What RLAIF Is

Standard RLHF collects human comparisons ("which answer is better?"), trains a reward model on them, then optimizes a policy against it. RLAIF swaps the human labelers for an AI model.

The RLAIF-vs-RLHF paper's abstract reports that across summarization, helpful dialogue and harmless dialogue, "RLAIF achieves comparable performance to RLHF." It also reports that RLAIF "can outperform a supervised fine-tuned baseline even when the AI labeler is the same size as the policy." And it describes direct RLAIF (d-RLAIF), which "circumvents RM training by obtaining rewards directly from an off-the-shelf LLM during RL" and "achieves superior performance to canonical RLAIF."

Those are the authors' results on their tasks, and the abstract alone doesn't give the margins or the evaluation details.

What Constitutional AI Adds

Constitutional AI, from Anthropic's 2022 paper, is RLAIF with a specific recipe. Its abstract describes two phases:

  • Supervised phase. The model samples responses, generates "self-critiques and revisions," and is fine-tuned on the revised versions.
  • Reinforcement learning phase. A model judges which of two responses is better, those AI judgments train a preference model, and the assistant is trained against it. The authors call this "RL from AI Feedback" (RLAIF).

The only human input is "a list of rules or principles," the constitution. The authors claim the model becomes harmless through self-improvement "without any human labels identifying harmful outputs," and describe the result as "a harmless but non-evasive AI assistant" that engages with harmful queries by explaining its objections rather than refusing outright.

Notice the shape. The principles move from the label to the rule. Instead of thousands of annotators, you write the criteria once and the model applies them.

Books stacked on a desk — the constitution is the only human input that stays in the loop

Figure 1: Principles instead of annotators — powerful, and only as good as the principles

The Appeal

  • Cost and speed. An API call is cheaper and faster than an annotation team.
  • Consistency. One labeler with one rubric avoids annotator drift.
  • Transparency. Written principles can be read, argued about and edited.
  • Scale. You can label hundreds of thousands of pairs.

The risk is whether those labels are right, and whether they're wrong in a harmless way.

Random Noise Is a Data Problem

The simulation trained a reward model on pairs labeled by a "gold" rule, with the AI labeler flipping labels at random. Accuracy is measured against the gold preferences on held-out pairs:

Labeler N = 100 N = 500 N = 2,000 N = 10,000 N = 50,000
Perfect (acc 1.00) 0.953 0.988 0.997 0.999 1.000
Human-like (0.95) 0.916 0.969 0.982 0.993 0.997
AI-like (0.80) 0.863 0.922 0.957 0.984 0.991
Weak AI (0.70) 0.793 0.872 0.928 0.971 0.988

Random mistakes cost you data, not the destination. The 0.80 labeler reached the 0.95 labeler's 500-pair quality (0.969) at about 5,000 pairs, ten times as many.

def label_multiplier(accuracy):
    """Pairs needed to match a perfect labeler, under symmetric random flips."""
    return 1 / (2 * accuracy - 1) ** 2

print(round(label_multiplier(0.80), 2))   # 2.78

A common heuristic says symmetric flips need about 1/(2a−1)² times as many pairs, which is roughly 2.8× at a = 0.80. That heuristic underestimates the cost observed in the simulation (closer to 10×), so treat it as a lower bound.

The economics, then: if an AI label costs a tenth of a human label or less, noisy AI labels can win. If it costs a third, they may not. Work out the ratio for your own case.

Bias Is a Different Animal

Real AI labelers don't just flip coins. They have preferences. In the simulation, one labeler secretly rewards length (its score is quality plus 0.8 × the length difference), while the true value of length is zero.

Labeler Pairs Accuracy on gold Learned length weight
Random flips only (0.80) 500 0.909 −0.012
Random flips only (0.80) 50,000 0.991 −0.008
Length-biased (no flips) 500 0.784 0.799
Length-biased (no flips) 50,000 0.784 0.800

More labels washed out the random noise. They did nothing to the bias. The reward model learned a length weight of 0.80, exactly the labeler's quirk, and accuracy against the gold preferences stayed at 0.784 whether the run used 500 pairs or 50,000.

Then the simulation optimized against each reward model with best-of-16 selection:

Reward model trained on Mean true quality of pick Mean length score of pick
Noisy labeler 1.764 +0.000
Length-biased labeler 1.374 +1.106

The biased reward model picked longer answers and got less quality out of the same selection pressure. This matches what other researchers have found about length in human-feedback setups: a 2023 study reports that "improvements in reward" were "largely" driven by response length. And the MT-Bench paper on LLM judges lists "position, verbosity, and self-enhancement" biases — the AI versions of the same problems, covered in the judge bias guide.

The lesson: more AI labels fix variance, not bias. If you plan to scale labeling, audit for systematic preferences first.

Voting Helps Only If Errors Are Independent

A natural fix is to ask several times, with different principles or prompts, and take a majority vote. In the simulation, each of five judgments is correct 70% of the time:

Error correlation between judges Majority-vote accuracy
0.0 (independent) 0.837
0.5 0.753
0.9 0.702

With independent errors, voting lifts accuracy from 0.70 to 0.837:

from math import comb

def majority_accuracy(p, judges=5):
    """Chance a majority of independent judges is right when each is right with prob p."""
    return sum(comb(judges, k) * p**k * (1 - p) ** (judges - k)
               for k in range(judges // 2 + 1, judges + 1))

print(round(majority_accuracy(0.70), 3))   # 0.837

That matches the binomial calculation. With highly correlated errors, it barely helps. Five prompts to the same model will often make the same mistake five times, so don't count them as five independent opinions. The correlation here was modeled as a simple mixing parameter, so real correlation may look different.

Where Each Approach Fits

Human labels are slower and costlier but offer an independent view of what people actually want. Use them for calibration, for sensitive cases and for checking your AI labeler.

AI labels fit when the criteria can be written down, the labeler is reliable on that criterion (measured, not assumed), and scale matters.

A mix is the usual practical answer: AI labels for volume, human labels as an audit set. That is also the standard guidance on calibrating automated scoring, especially LLM judges, where human labels anchor the judge.

A Practical Checklist

  1. Write the criteria down before you label anything.
  2. Measure labeler accuracy against a small set of human labels. 200 careful pairs is a good start (a rule of thumb, not a standard).
  3. Check for known biases: length, position, style and self-preference. Swap option order and see if labels change.
  4. Compute the cost ratio between AI and human labels, then compare it to the data multiple you'd need.
  5. Don't treat repeated prompts as independent votes.
  6. Watch the optimized policy, not just the reward. Read samples.
  7. Keep a human-labeled test set that never touches training.
def labeler_agreement(labeler_choice, gold_choice):
    """Agreement with held-out human labels, plus a simple order-swap check."""
    agree = sum(a == b for a, b in zip(labeler_choice, gold_choice))
    return agree / len(gold_choice)

The bias check is where most RLAIF projects get surprised. A labeler's quirks become your model's habits.

Best Book to Read

CoverBookDescriptionGet it
Cover of “AI Engineering” AI Engineeringby Chip Huyen automated evaluation, judge calibration, and where human labels still earn their cost. View on Amazon
Cover of “Designing Machine Learning Systems” Designing Machine Learning Systemsby Chip Huyen label quality, annotation pipelines, and bias that survives data growth. View on Amazon
Cover of “Hands-On Large Language Models” Hands-On Large Language Modelsby Alammar & Grootendorst how preference data and judging shape model behavior. View on Amazon
Cover of “Build a Large Language Model (From Scratch)” Build a Large Language Model (From Scratch)by Sebastian Raschka the fine-tuning machinery that consumes whatever labels you feed it. View on Amazon

As an Amazon Associate I earn from qualifying purchases. Links on this page are affiliate links, and I may earn a commission at no extra cost to you.

Unlock AI That Actually Works

Get lifetime access to GPT-6 Astra, Claude Fable 5.1, Gemini 3.5, Grok 4.5, and more — all in one platform. Build websites, apps, videos, content, and digital products from a single command. No monthly fees. No tool-hopping.

Click here to get GPTAstra Max now — one-time payment, lifetime access.

Frequently Asked Questions

What is RLAIF, and does it match RLHF?

Standard RLHF collects human comparisons (which answer is better?), trains a reward model on them, then optimizes a policy against it. RLAIF swaps the human labelers for an AI model. The RLAIF-vs-RLHF paper's abstract reports that across summarization, helpful dialogue and harmless dialogue, RLAIF achieves comparable performance to RLHF, and that it can outperform a supervised fine-tuned baseline even when the AI labeler is the same size as the policy. The same work describes direct RLAIF (d-RLAIF), which circumvents reward-model training by obtaining rewards directly from an off-the-shelf LLM during RL, and reports superior performance to canonical RLAIF. Those are the authors' results on their tasks, and the abstract alone doesn't give margins or evaluation details, so treat the comparison as promising rather than settled. The appeal of the approach is straightforward: an API call is cheaper and faster than an annotation team, one labeler with one rubric avoids annotator drift, written principles can be read and edited, and you can label hundreds of thousands of pairs. The risk is whether those labels are right, and whether they're wrong in a harmless way.

How does Constitutional AI work?

Constitutional AI, from Anthropic's 2022 paper, is RLAIF with a specific recipe, described as two phases in its abstract. Supervised phase: the model samples responses, generates self-critiques and revisions, and is fine-tuned on the revised versions. Reinforcement learning phase: a model judges which of two responses is better, those AI judgments train a preference model, and the assistant is trained against it — the authors call this RL from AI Feedback (RLAIF). The only human input is a list of rules or principles, the constitution. The authors claim the model becomes harmless through self-improvement without any human labels identifying harmful outputs, and describe the result as a harmless but non-evasive AI assistant that engages with harmful queries by explaining its objections rather than refusing outright. Notice the shape: the principles move from the label to the rule. Instead of thousands of annotators, you write the criteria once and the model applies them. That is also where the new failure mode lives — if a principle is ambiguous, the model's interpretation becomes the training signal, consistently, at scale.

What do AI-generated labels do to a reward model?

Simulating a reward model trained on pairs labeled by a gold rule — with the AI labeler flipping labels at random — shows that random mistakes cost you data, not the destination: a labeler with 0.80 accuracy reached the accuracy a 0.95 labeler got from 500 pairs (0.969) only at about 5,000 pairs, ten times as many. A common heuristic says symmetric flips need roughly 1/(2a−1)² times as many pairs — about 2.8× at 0.80 accuracy — which underestimates the observed cost, so treat it as a lower bound. The economics follow: if an AI label costs a tenth of a human label or less, noisy AI labels can win, while at a third of the cost they may not, so work out the ratio for your own case. Bias behaves differently, because it never averages out. With one labeler that secretly rewards length (score = quality + 0.8 × length difference, while the true value of length is zero), the reward model learned a length weight of exactly 0.80 and accuracy against the gold preferences stayed at 0.784 whether the dataset held 500 pairs or 50,000 — random noise washed out with more labels, the bias did not. Optimizing against each reward model with best-of-16 selection made the consequence concrete: the noise-trained model's pick had mean true quality 1.764 with a length score of 0.000, while the bias-trained model's pick had 1.374 quality with a length score of 1.106. The biased reward model picked longer answers and got less quality from the same pressure, matching earlier findings that RLHF reward improvements are largely driven by response length and the known verbosity and self-enhancement biases of LLM judges.

When does voting across AI judgments help, and where does each approach fit?

A natural fix for noisy AI labels is to ask several times with different principles or prompts and take a majority vote — but only independent errors improve with voting. Simulating five judgments each correct 70 percent of the time: with independent errors, majority-vote accuracy rises to 0.837, matching the binomial calculation; with 0.5 error correlation it falls to 0.753; at 0.9 correlation it is 0.702, barely better than a single judgment. Five prompts to the same model will often make the same mistake five times, so don't count them as five independent opinions — and note that correlation here was modeled as a simple mixing parameter, so real correlation may look different. Where each approach fits: human labels are slower and costlier but offer an independent view of what people actually want, so use them for calibration, for sensitive cases, and for checking your AI labeler; AI labels fit when the criteria can be written down, the labeler is reliable on that criterion as measured rather than assumed, and scale matters. The usual practical answer is a mix — AI labels for volume, human labels as an audit set — which is also the standard guidance for calibrating automated scoring, especially LLM judges. A practical checklist: write the criteria down before labeling anything; measure labeler accuracy against a small set of human labels (200 careful pairs is a reasonable start); check for known biases like length, position, style and self-preference by swapping option order and seeing if labels change; compute the cost ratio between AI and human labels and compare it to the data multiple you'd need; don't treat repeated prompts as independent votes; watch the optimized policy rather than just the reward; and keep a human-labeled test set that never touches training. The bias audit is where most RLAIF projects get surprised, because a labeler's quirks become your model's habits.

Wrapping This Up

RLAIF replaces human labelers with a model, and Constitutional AI organizes that around written principles, a critique-and-revision phase and a preference-model phase. The papers report results comparable to RLHF on several tasks. The simulation adds the caution: random labeler errors mostly cost you data, while systematic biases get learned and amplified, and voting across correlated judgments barely helps.

Start by measuring your labeler against 200 human-labeled pairs, and check for length bias before you scale. That one hour of audit work can save you from training on a quirk.

What are You Looking For?

esc