Skip to main content
QUICK REVIEW

[논문 리뷰] Large Language Monkeys: Scaling Inference Compute with Repeated Sampling

Bradley Brown, Jordan Juravsky|arXiv (Cornell University)|2024. 07. 31.
Neural Networks and ApplicationsComputer Science인용 수 9
한 줄 요약

이 논문은 LLM의 추론 계산을 확장하기 위한 방법으로 반복 샘플링을 조사하여, 작업과 모델 전반에서 커버리지 증가를 보이고 비용 효과성 및 검증 문제를 분석한다.

ABSTRACT

Scaling the amount of compute used to train language models has dramatically improved their capabilities. However, when it comes to inference, we often limit models to making only one attempt at a problem. Here, we explore inference compute as another axis for scaling, using the simple technique of repeatedly sampling candidate solutions from a model. Across multiple tasks and models, we observe that coverage -- the fraction of problems that are solved by any generated sample -- scales with the number of samples over four orders of magnitude. Interestingly, the relationship between coverage and the number of samples is often log-linear and can be modelled with an exponentiated power law, suggesting the existence of inference-time scaling laws. In domains like coding and formal proofs, where answers can be automatically verified, these increases in coverage directly translate into improved performance. When we apply repeated sampling to SWE-bench Lite, the fraction of issues solved with DeepSeek-Coder-V2-Instruct increases from 15.9% with one sample to 56% with 250 samples, outperforming the single-sample state-of-the-art of 43%. In domains without automatic verifiers, we find that common methods for picking from a sample collection (majority voting and reward models) plateau beyond several hundred samples and fail to fully scale with the sample budget.

연구 동기 및 목표

  • 단일 시도 이상으로 추론 시점의 계산을 확장 가능한 축으로 삼아 반복 샘플링의 필요성을 제시한다.
  • 여러 작업 및 모델 계열에 걸쳐 샘플 예산이 증가함에 따라 커버리지(해결된 문제)가 어떻게 개선되는지 정량화한다.
  • 다수의 샘플을 사용하는 경우의 비용 영향과 단일 큰 모델 대신의 모델 선택의 트레이드오프를 평가한다.
  • 정확도/검증 방법의 한계를 조사하고 올바른 샘플 선정을 위한 검증자 개선 방향을 식별한다.

제안 방법

  • 양의 온도로 샘플링하여 문제당 많은 후보 해를 생성한다.
  • 가능한 경우 도메인 특화 검증자(단위 테스트, 증명 검사기)를 사용해 최종 해를 선택한다.
  • 무편향 추정기를 사용하여 분산 감소를 위한 무편향 추정치를 이용해 모든 샘플 중 하나라도 해결한 문제의 비율로 커버리지(pass@k)를 측정한다.
  • 샘플 수에 따른 커버리지의 로그-값과의 관계를 c ≈ exp(a k^{-b})인 지수형 멱 법칙 모델로 적합한다.
  • FLOPs를 추론 비용으로 환산하고 많은 샘플을 가진 약한 모델과 더 적은 샘플의 강한 모델을 비교하여 비용 효율성을 평가한다.
Figure 1 : The repeated sampling procedure that we follow in this paper. 1) We generate many candidate solutions for a given problem by sampling from an LLM with a positive temperature. 2) We use a domain-specific verifier (ex. unit tests for code) to select a final answer from the generated samples
Figure 1 : The repeated sampling procedure that we follow in this paper. 1) We generate many candidate solutions for a given problem by sampling from an LLM with a positive temperature. 2) We use a domain-specific verifier (ex. unit tests for code) to select a final answer from the generated samples

실험 결과

연구 질문

  • RQ1문제당 샘플 수를 늘리면 다양한 작업과 모델 계열에서 커버리지가 신뢰할 수 있게 증가하는가?
  • RQ2반복 샘플링이 모델 크기와 데이터 도메인(코딩, 증명, 수학 단어 문제)에 어떻게 상호 작용해 커버리지와 비용에 영향을 주는가?
  • RQ3다수결 투표나 보상 모델과 같은 검증기가 증가하는 샘플 예산을 따라갈 수 있으며 어느 지점에서 정체되는가?
  • RQ4반복 샘플링을 가능하게 할 때 검증에서의 실용적 한계와 실패 모드(예: flaky 테스트, 위양 음성)는 무엇인가?
  • RQ5관찰된 커버리지 곡선이 추론 시점 계산 예산 책정에 방향을 제시할 수 있는 스케일링 법칙을 따르는가?

주요 결과

  • 다섯 개의 작업과 여러 모델 계열에 걸쳐 샘플 수가 많아질수록 커버리지가 증가하며, SWE-bench Lite가 더 약한 모델을 사용해 250샘플로 56% 해결하는 등의 예가 있다.
  • CodeContests에서 Gemma-2B의 pass@1이 10k 샘플에서 0.02%에서 7.1%로 상승하여 베Baseline 대비 300배의 이익을 보인다.
  • 커버리지와 샘플 예산 사이의 관계는 종종 로그-선형 또는 지수형 멱 법칙 형태를 따라 샘플링 규모가 커질 때의 이익 예측이 가능하다.
  • 다수의 샘플이 주어지면 약한 모델이 단일 시도로는 더 강한 모델을 능가할 수 있으며 비용 효율적 트레이드오프가 나타난다(예: DeepSeek의 다섬플 실행 다섯 샘플이 단일 샷 GPT-4o/Claude를 이길 수 있다).
  • 다수결 투표나 보상모델 채점과 같은 정밀도 방법은 약 100샘플에서 정체되며 자동 검증이 불가능할 때 더 나은 검증이 필요함을 강조한다.
  • 수학 단어 문제에서 Llama-3의 커버리지는 10k 샘플에서 95% 이상으로 증가하지만 일반적인 샘플 선별 방법은 정체되어 커버리지와 최종 답의 정확도 사이의 차이가 드러난다.
Figure 2 : Across five tasks, we find that coverage (the fraction of problems solved by at least one generated sample) increases as we scale the number of samples. Notably, using repeated sampling, we are able to increase the solve rate of an open-source method from 15.9% to 56% on SWE-bench Lite.
Figure 2 : Across five tasks, we find that coverage (the fraction of problems solved by at least one generated sample) increases as we scale the number of samples. Notably, using repeated sampling, we are able to increase the solve rate of an open-source method from 15.9% to 56% on SWE-bench Lite.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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