Skip to main content
QUICK REVIEW

[논문 리뷰] AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedback

Yann Dubois, Xuechen Li|arXiv (Cornell University)|2023. 05. 22.
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.

연구 동기 및 목표

  • 오라클 LLM을 사용한 페어와이즈 인간 피드백 시뮬레이터의 비용 효율성 입증
  • 인간 랭킹과 상관관계가 있는 자동 평가 프로토콜 제공
  • 재현 가능한 연구를 가능하게 하는 LPF 방법의 참조 구현 출시
  • 시뮬레이션 기반 방법 랭킹이 인간 데이터와 일치하는 엔드-투-엔드 검증 제공
  • 보상-모델 기반 방법이 지시 따름에서 감독 학습 미세조정보다 성능이 더 좋을 수 있음을 보여주는 예시 제시

제안 방법

  • 오라클 API LLM을 위한 프롬프트를 설계하여 인간과 높은 일치를 보이는 페어와이즈 피드백을 시뮬레이션합니다
  • 저비용으로 인간 피드백을 모방하기 위해 주석자 간/내부의 변이성을 주입합니다(약 45배 저렴)
  • 참조 모델에 대한 시뮬레이티드 승률을 통해 다양한 지시 세트에서 자동 평가 프로토콜을 생성합니다
  • 여러 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의 평가 데이터세트가 실제 지시 따름 작업을 대표하는가?

주요 결과

  • surrogate 보상 모델과의 PPO가 최강의 성능을 보이며, 시뮬레이션 및 인간 데이터에서 Davinci003 베이스라인에 대한 승률을 개선합니다.
  • 시뮬레이션과 인간 방법 랭킹 사이에 Spearman 상관계수 0.98, 엔드-투-엔드 검증에 대해 R² 0.83을 보입니다.
  • 지도 학습 미세조정(SFT)이 대부분의 이득을 설명하지만, Best-of-n과 PPO를 비롯한 LPF 방법에서 추가 이득이 발생합니다.
  • 쌍별 피드백 기반 학습(Binay FeedME, Binary Reward Conditioning)은 대체 보상 LPF 방법에 비해 저조합니다.
  • 다양하고 다원적인 평가 데이터세트가 실제 상호작용을 반영하고 시뮬레이션 랭킹을 인간 판단과 더 잘 일치시키는 데 중요합니다.
  • 주석자 변이성을 모델링할 경우 보상-모델 과최적화와 같은 인간 피드백의 정성적 특성을 재현합니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.