Skip to content

Self-Rewarding Language Models

optionalextendedfrontierpaperrubric 8/122024 · ICML 2024 · ~25 min

Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, …, Jason Weston

Status

TL;DR. Instead of training a separate reward model, a single Llama 2 70B model is fine-tuned to both follow instructions and act as an LLM-as-a-judge. Each iteration, it answers new prompts, scores its own answers with a 5-point additive rubric prompt, and trains on its best-vs-worst pairs with DPO. Over three iterations both abilities improve: AlpacaEval 2 win rate goes from 9.94% to 20.44%, and judge agreement with human rankings goes from 78.7% to 81.7%.

Iteration 1 (M1M_1) is SFT on two kinds of seed data from Open Assistant: 3,200 instruction-following examples and 1,630 evaluation examples that teach the judge format. Every later iteration does:

  1. Prompts. A fixed Llama 2-Chat 70B writes new instructions from few-shot examples.
  2. Candidates. MtM_t samples N=4N = 4 answers per prompt.
  3. Self-judging. MtM_t scores each answer with an additive 0–5 prompt (one point each for relevance, coverage, usefulness, a clear assistant voice, and expert quality), with a justification of up to 100 words. This is repeated 3 times and averaged.
  4. Pairs. Highest vs lowest scoring answer becomes a preference pair, and ties are discarded.
  5. Update. DPO from MtM_t gives Mt+1M_{t+1}.

Unlike RLHF, the reward model is not frozen: it is the policy, so it changes every iteration.

Iteration 2 pairs: 3,964 (from M1M_1). Iteration 3 pairs: 6,942 (from M2M_2). In GPT-4 head-to-head comparisons on 256 prompts, M2M_2 beats M1M_1 55.5% vs 11.7%, M3M_3 beats M2M_2 47.7% vs 12.5%, and M3M_3 beats the SFT baseline 62.5% vs 9.8%. A human evaluation on 50 prompts agrees in direction. On AlpacaEval 2.0 the win rate over GPT-4 Turbo is 9.94% → 15.38% → 20.44%, and MT-Bench rises from 6.78 to 7.25, with smaller gains on math, code and reasoning. Judge quality, as pairwise agreement with human rankings, is 65.1% (SFT baseline), 78.7% (M1M_1), 80.4% (M2M_2) and 81.7% (M3M_3). Average AlpacaEval response length is 1092 → 1552 → 2552. The authors call the results preliminary: three iterations in one setting, no safety evaluation, and open questions about length and reward hacking.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Self-Rewarding samples 4 answers per prompt, scores each with its own 0–5 additive judge prompt three times, averages, and keeps the best-vs-worst pair unless the scores tie. For one prompt the three judgements are A: 4,5,4; B: 3,4,4; C: 5,5,4; D: 2,3,2. Build the pair and its margin. Then explain how judge saturation would change the number of pairs as the policy improves.

    What a strong answer covers
    • Averages: A = 4.33, B = 3.67, C = 4.67, D = 2.33. The pair is (C chosen, D rejected) with margin 2.33. A and B are unused.
    • Averaging three sampled judgements reduces judge noise and makes exact ties less likely, because scores move in steps of 1/3 instead of 1.
    • If most answers start getting 5,5,5, the best and worst tie and the prompt yields no pair. A judge with a ceiling produces fewer and less informative pairs as the policy improves, unless the scale or prompts get harder.
    • The paper reports 3,964 pairs from M1 and 6,942 from M2. The number of generated prompts per iteration is not given here, so the drop rate cannot be computed from these counts alone.
  2. Mechanism

    The same weights act as policy and as reward model, and the judge's pairwise agreement with human rankings went from 78.7% (M1) to 80.4% (M2) to 81.7% (M3) even though no new judging data was added after M1. Explain how the loop is supposed to work, why the judge can improve without judge training data, and why this loop is riskier than RLHF with a frozen reward model.

    What a strong answer covers
    • Loop: generate prompts with a fixed model (Llama 2-Chat 70B), sample 4 answers from M_t, judge them with M_t, form best/worst pairs, DPO-train M_t+1 from M_t. The judge is inside the policy.
    • Evaluation-following seed data (1,630 judge examples) teaches the judging format in M1. Afterwards, judging improves as a side effect of general instruction-following gains: the paper hypothesises that a better instruction follower is also a better judge.
    • With a frozen RM, the target is fixed and over-optimisation shows up as a gap between proxy and true reward. Here the proxy moves with the policy, so shared biases (for example preferring its own long, detailed style) can reinforce themselves with no fixed reference point.
    • The improvements are measured only for three iterations. The paper itself flags iteration limits and possible reward hacking as open questions.
  3. Critique

    AlpacaEval 2 win rate over GPT-4 Turbo rose 9.94% → 15.38% → 20.44% across iterations, while average response length rose 1092 → 1552 → 2552. Critique what the headline result establishes, using the paper's own evaluation design, and propose a stronger evaluation.

    What a strong answer covers
    • Length more than doubled, and both the training judge (an LLM) and the evaluator (GPT-4) are known to favour longer, more detailed answers. Part of the gain may be length, and the authors note this.
    • Training reward and final evaluation are both LLM judges, so a shared judge bias would inflate both. The authors list this as needing deeper analysis.
    • Support for real gains: head-to-head GPT-4 wins (M3 vs SFT 62.5% vs 9.8%) agree with a small human evaluation on 50 prompts, and MT-Bench improves 6.78 → 7.25, mostly on writing and humanities rather than math and reasoning.
    • Stronger evaluation: length-controlled win rates, human judgements on more prompts, a judge from a different family, and tasks with verifiable answers to check whether capability or style improved.

Done with this page?

Status