UltraFeedback: Boosting Language Models with High-quality Feedback

Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, Maosong Sun · Submission to ICLR 2024 · Rejected

TL;DR

UltraFeedback introduces a large-scale, high-quality preference and critique dataset designed to close the gap between proprietary and open-source alignment. By pairing diverse instructions with responses from 17 distinct LLMs and leveraging GPT-4 for multi-aspect scoring and textual critiques, the authors train state-of-the-art open-source reward, policy (PPO), and critique models.

What Problem Does This Paper Address?

While Reinforcement Learning from Human Feedback (RLHF) powers leading proprietary models like GPT-4 and Claude, open-source adoption has lagged significantly. The primary barrier is data engineering: existing open preference datasets are either small, narrow in scope (e.g., summarization only), or lack fine-grained, reproducible annotations. Consequently, open-source reward models and RLHF policies have struggled to produce substantial gains. UltraFeedback addresses this data bottleneck by providing an automated, scalable pipeline to create diverse comparative preference data alongside detailed textual critiques.

Methods

The authors build UltraFeedback through a multi-stage generation and annotation pipeline:

[Diverse Prompts] ──> [17 LLM Pool + Principle Prompts] ──> [4 Diverse Completions]
                                                                     │
                                                                     ▼
[UltraRM (Reward)] <── [Scalar Scores (4 Aspects)] <── [GPT-4 Multi-Completion Evaluation]
[UltraCM (Critic)] <── [Text Critiques & Feedback] ┘
  1. Instruction & Model Sampling: Sampled ~64k prompts across six datasets. For each prompt, four completions are generated by randomly selecting models from a pool of 17 diverse LLMs (commercial models like GPT-4 and Bard, LLaMA variants, and non-LLaMA open architectures).
  2. Principle Conditioning: Prompted generation with over 40 fine-grained "principles" to induce varied behaviors across four target axes: instruction-following, helpfulness, truthfulness, and honesty.
  3. Multi-Aspect GPT-4 Annotation: Rather than evaluating responses in isolation, GPT-4 evaluates all four responses simultaneously across the four dimensions (1–5 scale), minimizing annotation drift and variance. GPT-4 also acts as a tutor to write detailed, constructive textual critiques and an overall quality score (1–10).
  4. Model Training:
  5. UltraRM: A 13B reward model trained on binary ranking loss with margin normalization.
  6. UltraLM-13B-PPO: Policy optimization applied to UltraLM-13B using UltraRM.
  7. UltraCM: A 13B critique model fine-tuned on the textual feedback to diagnose flaws and suggest improvements.

Datasets

  • UltraFeedback (New): Comprises 63,967 instructions, 255,864 model completions, over 340k pairwise comparisons, and 255k textual critiques. Instructions were sampled from TruthfulQA, FalseQA, Evol-Instruct, UltraChat, ShareGPT, and FLAN (decontaminated against test benchmarks).
  • Reward Model Training Mix: Combined UltraFeedback with Stanford SHP, OpenAI Summarization, and Anthropic Helpful.
  • Evaluation Benchmarks:
  • Reward modeling: OpenAI WebGPT, OpenAI Summarize, Anthropic HH-RLHF, Stanford SHP.
  • Policy alignment: AlpacaEval, Evol-Instruct, and UltraChat test sets.
  • Core capabilities: BoolQ, HellaSwag, RACE, MultiRC, TriviaQA, Natural Questions, PIQA, OpenBookQA, and ARC.
  • Critique evaluation: PIQA, OBQA, CommonsenseQA, AlpacaFarm, FairEval, HumanEval, MBPP, MATH, GSM8K.

Key Insights and Ideas

  • Simultaneous, multi-aspect grading prevents shortcut learning: Evaluating completions across four discrete aspects simultaneously yielded better generalization than a single aggregated score. In out-of-distribution tests (WebGPT), fine-grained scoring prevented GPT-4 annotator noise and length bias.
  • Inference-time Best-of-$n$ yields massive gains: Using UltraRM for simple rejection sampling on UltraLM-13B boosted AlpacaEval win rates from 76.5% ($n=1$) to 91.5% ($n=16$). Crucially, the chosen responses were not merely longer, demonstrating that the reward model tracks quality rather than verbosity.
  • Critique is a distinct, learnable skill: UltraCM (trained explicitly on critique texts) dramatically outperformed similarly sized general chat models and existing critique models (Shepherd, SelFee) at providing constructive feedback.
  • RLHF aligns style, not core knowledge: Confirming earlier observations by OpenAI, PPO improved conversational win rates and adherence to human preferences by double digits (+16.8%), but yielded marginal changes (~1% exact-match improvement) on standard capability benchmarks like question answering and reading comprehension.

Key Results

  • UltraRM: Reached 71.0% average accuracy across four preference benchmarks, setting a state-of-the-art among open reward models and outperforming baselines like Moss (58.1%), Ziya (60.5%), and SteamSHP (58.1%). UltraRM-UF (trained solely on UltraFeedback) reached 66.8%.
  • UltraLM-13B-PPO: Achieved an average win rate of 69.7% against baselines on AlpacaEval, Evol-Instruct, and UltraChat. It outperformed all open-source 13B models and surpassed the much larger LLaMA2-70B-Chat on both Evol-Instruct (57.8% win vs. ChatGPT) and UltraChat (64.9% win vs. ChatGPT).
  • UltraCM: Achieved a critique quality score of 5.92/7.0 (judged by GPT-4), closely trailing GPT-3.5-Turbo (6.17) and outperforming LLaMA2-13B-Chat (5.03) and SelFee-13B (5.41).

Limitations and Future Work

  • LLM Evaluator Bias: Relies heavily on GPT-4 as the golden annotator. While human-GPT-4 agreement reached 74.2% on a 100-sample audit (comparable to human-human agreement ~70%), subtle model biases remain unaddressed.
  • Single-Turn Limitation: UltraFeedback currently supports only single-turn instructions, omitting multi-turn dialogue dynamics.
  • Math and Coding Deficits: UltraLM-PPO still trails GPT-3.5 on code and math tasks due to the composition of the seed data and backbone capabilities.
  • Safety Alignment: Explicit safety/red-teaming instructions were not intentionally isolated, leaving potential toxicity risks to be resolved in future iterations.

Summary updated

BibTeX
@inproceedings{cui2024ultrafeedback,
  author = {Ganqu Cui and Lifan Yuan and Ning Ding and Guanming Yao and Wei Zhu and Yuan Ni and Guotong Xie and Zhiyuan Liu and Maosong Sun},
  title = {{UltraFeedback: Boosting Language Models with High-quality Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=BOorDpKHiJ},
}
Figure