[논문 리뷰] Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systems
이 논문은 한 층 Voting Inference Systems에서 LLM 호출 수가 성능에 미치는 영향을 연구하며, 쉬운 쿼리와 어려운 쿼리의 차이로 인한 비단조적 확장성을 보여주고 최적의 호출 수를 예측하는 스케일링 법칙을 제시한다.
Many recent state-of-the-art results in language tasks were achieved using compound systems that perform multiple Language Model (LM) calls and aggregate their responses. However, there is little understanding of how the number of LM calls - e.g., when asking the LM to answer each question multiple times and taking a majority vote - affects such a compound system's performance. In this paper, we initiate the study of scaling properties of compound inference systems. We analyze, theoretically and empirically, how the number of LM calls affects the performance of Vote and Filter-Vote, two of the simplest compound system designs, which aggregate LM responses via majority voting, optionally applying LM filters. We find, surprisingly, that across multiple language tasks, the performance of both Vote and Filter-Vote can first increase but then decrease as a function of the number of LM calls. Our theoretical results suggest that this non-monotonicity is due to the diversity of query difficulties within a task: more LM calls lead to higher performance on "easy" queries, but lower performance on "hard" queries, and non-monotone behavior can emerge when a task contains both types of queries. This insight then allows us to compute, from a small number of samples, the number of LM calls that maximizes system performance, and define an analytical scaling model for both systems. Experiments show that our scaling model can accurately predict the performance of Vote and Filter-Vote systems and thus find the optimal number of LM calls to make.
연구 동기 및 목표
- 더하기 LLM 호출 수가 간단한 복합 시스템(한 층 Voting Inference System)의 성능에 미치는 영향을 이해한다.
- 아이템 난이도(쉬운 쿼리 vs 어려운 쿼리)가 스케일링 동작에 미치는 역할을 특성화한다.
- 제한된 샘플에서 매개변수를 추정하는 스케일링 법칙과 알고리즘을 도출한다.
- 다양한 작업 구성하에서 정확도 극대화를 위한 최적의 LLM 호출 수를 식별한다.
제안 방법
- K 개의 LLM 호출을 다수 표결(Algorithm 1)로 집계하는 한 층 Voting Inference System을 형식화한다.
- 쉬운 쿼리의 올바른 확률을 p1, 어려운 쿼리의 확률을 p2로 갖고, 쉬운 아이템의 alpha 비율로 이분 분포의 아이템 난이도를 모델링한다.
- 성능 F(K;D)를 도출하고 특정 난이도 설정에서 비단조적 스케일링이 나타남을 보인다(Theorem 1).
- 쉬운 아이템과 어려운 아이템의 기여를 지수 형태 g_p(K; c)로 결합하는 스케일링 법칙 G(K;D)를 제시한다(Section 4.3).
- 작은 성능 데이터 샘플에서 스케일링 법칙 매개변수를 추정하는 Algorithm 2를 제안한다.
- GPT-3.5-turbo-0125를 사용한 합성 데이터 및 실제 데이터 세트에서 예측을 검증한다(Section 5).
실험 결과
연구 질문
- RQ1K 가 서로 다른 아이템 난이도 분포를 갖는 작업에서 한 층 Voting Inference System의 정확도에 어떤 영향을 미치는가?
- RQ2K를 증가시키면 비단조적 성능이 나타나는 조건은 무엇인가(상승 후 하락, 혹은 그 반대)?
- RQ3소량의 샘플을 사용하여 확장 법칙으로 최적의 K를 어떻게 예측할 수 있는가?
- RQ4제안된 스케일링 법칙이 합성 데이터에서 실제 데이터로 일반화되어 진정한 최적 호출 수를 식별할 수 있는가?
주요 결과
- 성능은 비단조적일 수 있다: LLM 호출 수를 증가시키면 초기에는 성능이 향상되지만 쉬운 쿼리/어려운 쿼리의 혼합으로 인해 나중에는 정확도가 감소할 수 있다.
- 비단조적 동작은 아이템 난이도로 설명되며, 쉬운 쿼리는 더 많은 호출에서 이익을 얻는 반면 어려운 쿼리는 더 많은 호출에서 악화한다(Theorem 1).
- 특정 조건에서 명시적 최적의 LLM 호출 수 K*가 존재하고 난이도 매개변수로부터 계산될 수 있다(Theorem 2).
- 스케일링 법칙 G(K;D)가 성능을 정확하게 예측하며 소수의 샘플로도 추정될 수 있다(Figures 5–6, Table 2).
- 스케일링 법칙이 실제 데이터 세트(대학 수학, 비즈니스 윤리, 대학 화학)에서 최적의 K를 정확히 식별하고 쉬운/어려운 하위집합에서의 성능도 예측한다(GPT-3.5를 사용, Figure 7).
- 제로샷 난이도 예측기(GPT-4)가 쿼리 난이도 분류를 통해 적응형 K를 가능하게 하는 데 가능성을 보인다(Table 3).
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.