TL;DR
Training a language model with reinforcement learning from human feedback needs many human preference labels, and those are slow and expensive to collect. Lee and colleagues replace the human labeler with an off-the-shelf large language model that is asked which of two responses is better. Across summarisation and dialogue tasks, the policy trained on these AI labels is preferred by human raters about as often as the policy trained on human labels. A further variant skips the reward model and uses the labeler's score directly as the reward.
Builds on: Reinforcement Learning from Human Feedback (RLHF), Reward Model, LLM-as-a-Judge, Chain-of-Thought Prompting · Leads to: Direct Preference Optimization, Constitutional AI: Harmlessness from AI Feedback
Why it mattered
The paper turned a question that was open in 2023 into a measured answer: an LLM can stand in for human preference labels without losing much quality on these tasks. Later work on learning directly from preference pairs, such as Direct Preference Optimization, and the wider practice of using a strong model to grade or rank outputs, rest on the same kind of preference data. The paper also made the cost argument concrete: its authors estimate that LLM labeling is more than ten times cheaper than human annotation.
It also brought two ideas into the mainstream. First, the labeler can be a model of the same size or even the policy itself, which opened the door to self-improvement loops. Second, the reward model is not always needed: the d-RLAIF variant queries the labeler during reinforcement learning, which avoids the problem of a reward model going stale as the policy changes.
The problem
The pipeline of Reinforcement Learning from Human Feedback (RLHF) has three stages: fine-tune a model on demonstrations, collect human preferences between pairs of responses, and then train a Reward Model on those preferences and optimise the policy against it. The second stage is the bottleneck. Preference labels are costly, take time, and differ between annotators.
Earlier work by Bai and colleagues had introduced the idea of RLAIF, where part of the preference data came from AI feedback. That work did not compare AI and human feedback head to head, so it left open whether AI labels could replace human ones. This paper asks that question directly on three tasks: summarisation (Reddit posts with summaries), helpful dialogue, and harmless dialogue.
Two further questions follow. Does the labeler have to be bigger than the policy? And is the reward model a necessary middleman? The paper tests both.
How it works
The method runs in this order. Here is one tiny case traced through all of it.
- Start with a pair of responses. Take one input, such as a short Reddit post, and two candidate summaries A and B from the policy.
- Ask the labeler for a preference. Build a prompt with a preamble, optional examples, the input, the two responses, and an ending such as "Preferred Response=". Read the log-probabilities of the tokens "1" and "2" (a log-probability is the log of the chance the model gives a token, so a higher number means more likely) and apply a softmax over them. A softmax turns two numbers into two probabilities that add to 1. This gives a soft label, not a yes or no.
- Remove position bias. Run the prompt a second time with the order reversed, then average the two results. Suppose the first run gives A probability 0.75 and B probability 0.25, and the reversed run gives B 0.55 and A 0.45. The averaged label is A 0.60 and B 0.40.
- Optionally, ask for reasoning first. Ask the labeler to explain its judgement, then append the explanation to the prompt and read the preference as before. The paper finds this consistently improves the labeler's agreement with human labels.
- Train a reward model on the soft labels. The reward model gives a score to each response. A softmax over the two scores is compared to the soft label with cross-entropy, so the model learns to match the labeler's confidence, not just its choice.
- Run reinforcement learning. The policy generates responses, the reward model scores them, and the policy is updated. The paper uses a REINFORCE-style method with a baseline rather than proximal policy optimisation, because it is simpler and works well here.
- Evaluate with people. Human raters rank responses from different policies, and the win rate is the share of comparisons one policy wins.
Direct RLAIF, the variant the paper calls d-RLAIF, changes steps 5 and 6. The labeler is asked to rate a single response on a scale of 1 to 10. The probability of each score token is read, a weighted average is taken, and that number is rescaled to the range from -1 to 1 and used as the reward. There is no reward model to train, and the reward always comes from the current labeler.
flowchart LR A[Prompt with two responses] --> B[Labeler reads log-probabilities for 1 and 2] B --> C[Swap order and average] C --> D[Soft preference labels] D --> E[Train reward model] E --> F[RL updates the policy] F --> A
The math
Let the labeler produce log-probabilities and for the tokens "1" and "2". The soft preference is the softmax:
Step 3 in symbols: removing position bias
Write for the preference from the original order and for the preference from the reversed order, mapped back to the original candidates. The final label is
In the worked case above, .
Step 5 in symbols: the reward model loss
Let and be the reward model's scores for the two responses. The model's preference is . Training minimises the cross-entropy against the soft label :
This is the standard pairwise objective, with the hard label replaced by a probability. When the labeler is unsure, the reward model is pushed toward a small score gap instead of a large one.
Steps 5 and 6 in symbols: the d-RLAIF score
The labeler's score is the expectation over the ten rating tokens. If is the normalised probability of rating for response to input ,
and this value is rescaled to before it is used as the reward, using any linear map that sends 1 to and 10 to , for example . The weighted average keeps information that a single chosen rating would throw away: a response rated 8 with probability 0.5 and 9 with probability 0.5 has a score of 8.5, which is not the same as a response rated 8 with certainty, which scores 8.
Checking the labeler: alignment accuracy
Before a labeler is trusted, its labels are compared with human labels. The paper measures how often the AI label agrees with the human label. With examples, soft AI probabilities , and the index of the response the human preferred for example ,
Here is 1 when the condition inside holds and 0 otherwise, so is the fraction of examples where the labeler's more likely choice matches the human's. The score ignores how confident the labeler was, so it is a coarse measure.
Results
Summarisation and helpful dialogue. Human raters preferred RLAIF over the supervised baseline 71% of the time for summarisation and 63% for helpful dialogue. RLHF scored 73% and 64% on the same comparisons. The differences between RLAIF and RLHF against the baseline are not statistically significant. Head to head, RLAIF and RLHF are equally preferred: neither win rate differs significantly from 50% on either task.
Harmless dialogue. Here raters judged each response as harmless or harmful. RLAIF reached a harmless rate of 88%, against 76% for RLHF and 64% for the supervised baseline. This gap is statistically significant, the one place where AI feedback clearly beat human feedback in the paper.
Self-improvement. When the labeler is PaLM 2 XS, the same size as the policy, RLAIF still beats the baseline with a 68% win rate on summarisation, against 71% for the larger labeler. On helpful dialogue, the d-RLAIF policy and its labeler are the same checkpoint and reach a 66% win rate over the baseline. The paper calls this strict self-improvement.
d-RLAIF. On summarisation, d-RLAIF reaches a 74% win rate over the baseline, above the same-size RLAIF policy at 68%. The paper reports that d-RLAIF's win rate is significantly higher than the 68% of same-size RLAIF. The authors attribute this to querying the labeler directly and to avoiding a stale reward model.
Labeler quality. The best summarisation prompt, a detailed preamble with chain-of-thought, reached 78.0% agreement with human labels. Chain-of-thought consistently helped, while detailed preambles and few-shot examples had mixed effects across tasks. The authors note that an earlier estimate put agreement between human annotators on the OpenAI preference dataset at 73 to 77%, so 78% looks reasonable in absolute terms. Larger labelers agree more: 78.0% for PaLM 2 L and 62.7% for PaLM 2 XS, with PaLM 2 S in between.
Limits. The win rate differences are small and some are not significant, so the claim is parity, not superiority. The labeler is a single model family, PaLM 2, and the tasks are three. The paper also reports that combining human and AI labels did not beat human labels alone, though it does not rule out better combinations. In a small study of 70 summaries, RLHF sometimes hallucinated facts that RLAIF did not, while RLAIF summaries contained run-on sentences. The difference in overall quality ratings was not significant. Length bias is a concern, since both RL policies write longer responses; the authors check that their advantage survives a length-controlled analysis.
Reading guide
Read the paper in this order and use the lessons listed for each part.
- Section 1, Introduction. Needs Reinforcement Learning from Human Feedback (RLHF) and Reward Model. The three contributions are the three results to check.
- Section 2.1, Preference labelling with LLMs. Needs LLM-as-a-Judge, In-Context Learning for the few-shot prompts, and Chain-of-Thought Prompting for the reasoning variant. Appendix B covers position bias, which the reversed-order check addresses.
- Section 2.2, Canonical RLAIF. Needs Reward Model and Knowledge Distillation, since the paper describes distilling the AI labels into a reward model.
- Section 2.2, d-RLAIF. Needs Policy Gradient to see why the labeler's score can serve as a reward.
- Section 3, Training setup. Needs Policy Gradient for the REINFORCE variant with a baseline that the authors use, and Proximal Policy Optimization (PPO), the method they chose not to use, for contrast.
- Section 4, Results. Needs Binomial Distribution for the significance tests on win rates. Table 2 is the most useful for the prompting claims, and Section 4.4 covers the prompt choices.
- Appendix A, RLHF preliminaries. Covers supervised fine-tuning, the Bradley-Terry style reward modelling of Bradley–Terry Model, and the RL objective. Read it before Section 2 if the reward model feels unfamiliar.
Check yourself
QuestionRecall: what does the labeler output in RLAIF, and why is it a soft label rather than a single choice?Show answer
The labeler gives log-probabilities for the tokens "1" and "2", which are turned into probabilities with a softmax. The result is a distribution over the two responses, such as 0.6 and 0.4. A soft label keeps the labeler's uncertainty, and the reward model is trained against it with cross-entropy, so it learns to match the confidence as well as the choice.
QuestionComputation: the labeler gives probability 0.8 to response A in the original order, and 0.3 to response A in the reversed order. What is the averaged preference for A?Show answer
Average the two inferences: (0.8 + 0.3) / 2 = 0.55. The averaged preference for A is 0.55, and for B it is 0.45. The reversed run favoured B, which is the position effect the reversal is meant to cancel, so the average lands close to even.
QuestionWhy: the paper finds that a same-size labeler still improves the policy, but it also finds that a larger labeler agrees more with humans. Why are both findings compatible with the claim that RLAIF is useful?Show answer
RLAIF does not require the labeler to be better than humans. It needs the labeler to be good enough that its preference signal points in a useful direction. A same-size labeler is noisier, which lowers agreement, but the policy can still improve because the signal is correlated with human judgement. A larger labeler gives a cleaner signal. In canonical RLAIF it runs once per pair, before RL, so its cost is paid up front and not repeated during training.
QuestionApplied: a team wants to train a customer-support assistant without paying for many human preference labels. They can use d-RLAIF or canonical RLAIF. Which would you suggest, and what would you monitor?Show answer
Canonical RLAIF trains a reward model on AI labels and then runs RL, so the reward model can go stale as the policy changes. d-RLAIF queries the labeler during RL, which avoids that, but each training step calls the labeler, which costs more at run time. Monitor the labeler's agreement with a small set of human labels, check harmlessness and quality with human raters, and watch for length growth, since the paper found RL policies drifting toward longer responses.
Sources
- Lee et al., RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback (arXiv:2309.00267), https://arxiv.org/abs/2309.00267
- Bai et al., Constitutional AI: Harmlessness from AI Feedback (arXiv:2212.08073), https://arxiv.org/abs/2212.08073
- Ouyang et al., Training language models to follow instructions with human feedback (arXiv:2203.02155), https://arxiv.org/abs/2203.02155