More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)
Sagi Meir, Tommer D. Keidar, Noam Levi, Shlomi Reuveni, Barak Hirshberg
TL;DR
This work introduces Reset-and-Discard (ReD), a restart-based query policy that cycles through tasks and discards solved ones to maximize coverage@cost under a fixed budget. By connecting pass@k to coverage@cost via renewal theory, it shows that standard solve-to-completion yields diminishing returns when $1-\text{pass@}k$ follows a power-law with exponent $0<\alpha<1$, while ReD enforces linear growth in many regimes, with the optimal resetting every attempt ($\tau=1$). It also provides methods to predict budget savings from pass@k and to infer the power-law exponent from ReD trajectories when large-$k$ evaluation is costly, validated on multiple LLMs with HumanEval. The approach yields substantial throughput and cost reductions, enabling better deployment economics (Goodput) and offering a framework for inference-power-law estimation in verifiable tasks. Practically, ReD sorts queries by difficulty, allowing smaller models to handle easier problems and reserving larger models for the remaining hard cases, which can significantly reduce token and USD expenditure while preserving accuracy.
Abstract
The performance of large language models (LLMs) on verifiable tasks is usually measured by pass@k, the probability of answering a question correctly at least once in k trials. At a fixed budget, a more suitable metric is coverage@cost, the average number of unique questions answered as a function of the total number of attempts. We connect the two metrics and show that the empirically-observed power-law behavior in pass@k leads to a sublinear growth of the coverage@cost (diminishing returns). To solve this problem, we propose Reset-and-Discard (ReD), a query method of LLMs that increases coverage@cost for any given budget, regardless of the pass@k form. Moreover, given a pass@k, we can quantitatively predict the savings in the total number of attempts using ReD. If pass@k is not available for the model, ReD can infer its power-law exponent. Experiments on three LLMs using HumanEval demonstrate that ReD substantially reduces the required attempts, tokens, and USD cost to reach a desired coverage, while also offering an efficient way to measure inference power-laws.
