Skip to main content
QUICK REVIEW

[论文解读] AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback

Yann Dubois, Xuechen Li|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science被引用 54
一句话总结

AlpacaFarm 提供一个低成本的人类反馈仿真器、经过验证的评估,以及用于研究指令遵循的参考 LPF 方法,在转移到真实人类数据之前进行研究。

ABSTRACT

Large language models (LLMs) such as ChatGPT have seen widespread adoption due to their strong instruction-following abilities. Developing these LLMs involves a complex yet poorly understood workflow requiring training with human feedback. Replicating and understanding this instruction-following requires tackling three major challenges: the high cost of data collection, the lack of trustworthy evaluation, and the absence of reference method implementations. We address these challenges with AlpacaFarm, a simulator that enables research and development for learning from feedback at a low cost. First, we design LLM prompts to simulate human feedback that are 50x cheaper than crowdworkers and display high agreement with humans. Second, we propose an automatic evaluation and validate it against human instructions obtained on real-world interactions. Third, we contribute reference implementations for several methods (PPO, DPO, best-of-n, expert iteration, and more) that learn from pairwise feedback. Finally, as an end-to-end validation of AlpacaFarm, we train and evaluate eleven models on 10k pairs of real human feedback and show that rankings of models trained in AlpacaFarm match rankings of models trained on human data. As a demonstration of the research possible in AlpacaFarm, we find that methods that use a reward model can substantially improve over supervised fine-tuning and that our reference PPO implementation leads to a +10% improvement in win-rate against Davinci003. We release all components of AlpacaFarm at https://github.com/tatsu-lab/alpaca_farm.

研究动机与目标

  • 展示一个用于成对人类反馈的成本效仿仿真器,使用 oracle LLMs。
  • 提供一个自动化评估协议,与人类排序相关。
  • 发布 LPF 方法的参考实现,以实现可重复的研究。
  • 展示端到端的验证,即仿真驱动的方法排名与人类数据一致。
  • 说明基于奖励模型的方法在指令遵循中可以优于监督微调。

提出的方法

  • 为 oracle API 的 LLM 设计提示,以实现与人类高度一致的成对反馈仿真。
  • 注入评注者之间和评注者内部的变异性,以低成本(≈45x 便宜)模拟人类反馈。
  • 创建一个使用与参考模型的多样化指令集上的仿真胜率的自动评估协议。
  • 实现并基准测试多种 LPF 方法(PPO、Best-of-n、Expert Iteration、Quark、DPO、Binary FeedME、Binary Reward Conditioning)。
  • 提供基于 SFT 基础(SFT 10k 和 SFT 52k)的参考训练/评估流程和基线。
  • 评估模拟与基于人类的方法排序之间的相关性(Spearman r ≈ 0.98, R^2 ≈ 0.83)。

实验结果

研究问题

  • RQ1低成本的仿真标注者是否足以重复人类偏好,以便进行 LPF 方法开发?
  • RQ2仿真评估是否能预测 LPF 方法在现实世界中的人类排序?
  • RQ3在仿真与人类反馈下,不同的 LPF 算法(PPO、Best-of-n、Expert Iteration、Quark 等)的表现如何?
  • RQ4将评注者的变异性引入是否会产生类似于人类数据的奖励模型过优化?
  • RQ5AlpacaFarm 的评估数据集是否具有代表性,能否覆盖真实世界的指令执行任务?

主要发现

  • PPO 与一个替代奖励模型一起使用时可获得最强的表现,在仿真和人类数据中均提升了相对于 Davinci003 基线的胜率。
  • 仿真与人类方法排序之间的 Spearman 相关性为 0.98,端到端验证的 R² 为 0.83。
  • 监督微调(SFT)贡献了大部分收益,但额外的收益来自 LPF 方法,尤其是 Best-of-n 和 PPO。
  • 直接从成对反馈基线学习(Binary FeedME、Binary Reward Conditioning)在性能上低于替代奖励的 LPF 方法。
  • 多源、多样化的评估数据集对真实世界交互至关重要,能更好地使仿真排序与人类判断对齐。
  • 当对评注者变异性建模时,仿真器能够再现人类反馈的定性行为,例如奖励模型的过优化。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。