arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14387cs.LGcs.AIcs.CL
收藏

AlpacaFarm:一个用于从人类反馈中学习的方法的模拟框架

AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback

Stanford(斯坦福大学);University of Toronto(多伦多大学)

Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, Tatsunori B. Hashimoto

AI总结:

针对LLM人类反馈训练成本高、评估难和缺参考实现的问题,提出AlpacaFarm模拟框架,利用低成本LLM模拟反馈并提供自动评估与方法参考实现,验证了其模型排名与人类数据一致且显著提升性能。

摘要:

诸如 ChatGPT 这样的大型语言模型(LLMs)因其强大的指令遵循能力而得到广泛采用。开发这些 LLMs 涉及一个复杂但知之甚少的工作流程,需要利用人类反馈进行训练。为了复制和理解这种指令遵循能力,必须应对三大主要挑战:数据收集的高成本、缺乏可信的评估以及缺少参考方法实现。我们通过 AlpacaFarm 解决了这些挑战,这是一个能够以低成本进行反馈学习研究与开发的模拟器。首先,我们设计了 LLM 提示来模拟人类反馈,其成本比众包工人便宜 50 倍,并且与人类表现出高度一致性。其次,我们提出了一种自动评估方法,并针对在真实世界交互中获取的人类指令对其进行了验证。第三,我们贡献了多种从成对反馈中学习的方法(PPO、DPO、best-of-n、expert iteration 等)的参考实现。最后,作为对 AlpacaFarm 的端到端验证,我们在 10k 对真实人类反馈上训练并评估了 11 个模型,结果表明在 AlpacaFarm 中训练的模型排名与在人类数据上训练的模型排名相匹配。作为在 AlpacaFarm 中可行研究的示范,我们发现使用奖励模型的方法可以大幅优于监督微调,并且我们的 PPO 参考实现使得胜率比 Davinci003 提高了 10%。我们在 https://github.com/tatsu-lab/alpaca_farm 发布了 AlpacaFarm 的所有组件。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑