[Paper Review] Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systems
The paper studies how the number of LLM calls in one-layer Voting Inference Systems affects performance, showing non-monotonic scaling due to easy vs hard queries and providing a scaling law to predict optimal call count.
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.
Motivation & Objective
- Understand how increasing the number of LLM calls affects performance of a simple compound system (one-layer Voting Inference System).
- Characterize the role of item difficulty (easy vs hard queries) in scaling behavior.
- Derive a scaling law and an algorithm to estimate its parameters from limited samples.
- Identify the optimal number of LLM calls for maximizing accuracy under different task compositions.
Proposed method
- Formalize a one-layer Voting Inference System that aggregates K LLM calls via majority voting (Algorithm 1).
- Model item difficulty with a 2-level distribution: easy queries have correct probability p1 and hard queries have p2, with alpha fraction of easy items.
- Derive the performance F(K;D) and show non-monotone scaling under certain difficulty settings (Theorem 1).
- Provide a scaling law G(K;D) that combines easy and hard item contributions with an exponential form g_p(K; c) (Section 4.3).
- Propose Algorithm 2 to estimate scaling law parameters from a small sample of performance data.
- Validate predictions on synthetic data and real datasets using GPT-3.5-turbo-0125 (Section 5).
Experimental results
Research questions
- RQ1How does the number of LLM calls K affect the accuracy of a one-layer Voting Inference System across tasks with differing item difficulty distributions?
- RQ2Under what conditions does increasing K lead to non-monotone (increasing then decreasing, or vice versa) performance?
- RQ3How can we predict the optimal K from a small number of samples using a scaling law?
- RQ4Can the proposed scaling law generalize from synthetic to real-world datasets and identify true optimal call counts?
Key findings
- Performance can be non-monotonic: increasing LLM calls initially improves but can later degrade accuracy due to mixed easy/hard queries.
- The non-monotone behavior is explained by item difficulty; easy queries benefit from more calls while hard queries degrade with more calls (Theorem 1).
- An explicit optimal number of LLM calls K* exists under certain conditions and can be computed from difficulty parameters (Theorem 2).
- A scaling law G(K;D) accurately predicts performance and can be fit from a small number of samples (Figures 5–6, Table 2).
- The scaling law correctly identifies optimal K on real-world datasets (college mathematics, business ethics, college chemistry) using GPT-3.5, and predicts performance across easy/hard subsets (Figure 7).
- Zero-shot difficulty predictors (GPT-4) show promise for classifying query difficulty to enable adaptive K (Table 3).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.