Adaptive Generate-Rank-Verify: Inference-Time Search with Costly Verification
Shaddin Dughmi, Mahdi Haghifam, Yusuf Hakan Kalayci
AI4Math @ ICML 2026
TL;DR. We introduce a learning-theoretic framework for LLM inference-time search, formalizing the tradeoff between cheap rewards and costly verifiers. We propose a near-optimal adaptive algorithm and establish a separation from active learning.
Abstract. Many inference-time language-model pipelines combine a cheap reward signal with an expensive verifier, such as exact answer checking in mathematical reasoning or hidden-test execution in code generation. We formalize this setting using a learning-theoretic lens as generative active search: a cost-sensitive first-positive search problem in which a policy adaptively samples candidates from an unknown distribution, observes cheap scores, and pays for verifier labels until it finds a positive example. For a fixed prompt, the generator and reward model induce two unknown objects: a distribution over reward scores and a score-conditioned success function. When these quantities are known, we characterize the distribution-aware optimal policy using a dynamic programming approach. In the realistic and practical setting where both the score distribution and success function are unknown, we propose ADAP, a shellwise adaptive generate-rank-verify algorithm that progressively increases the number of sampled responses and top-ranked verifications. Under the monotonicity assumption that higher reward scores are no less likely to pass verification, we show that ADAP achieves expected cost within a constant factor of the distribution-aware optimum. We complement this result with learning-theoretic lower bounds, based on a centered star number, showing that structural assumptions on the score--label relationship are necessary. Experiments on mathematical reasoning and competitive programming validate the predicted advantage over both fixed non-adaptive policies and difficulty-adaptive baselines.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper formulates the problem of allocating generation and verification costs in inference-time generate-rank-verify pipelines as cost-sensitive active search. The authors first derive the expected cost of the optimal distribution-aware policy. They then propose ADAP, which does not know the distribution of the reward score and the success function, and prove that its expected cost is within a constant factor of the distribution-aware optimum.
One of the main questions is about the constant factor in the theoretical guarantee. The factor of 400 is very large and is far from the much smaller gap observed in the experiments. The authors should explain whether this factor can be improved and which parts of the analysis cause this gap. Another question is about the experimental setting. The evaluation considers only prompts for which at least one correct response is generated, and the cost model does not fully reflect factors such as token usage or parallel generation. The authors should clarify how these choices affect the practical interpretation of the results.
Overall, the paper appears to be heading toward acceptance.
Final justification
I have read the authors’ response and the discussion.
The rebuttal addressed the main concerns raised by the reviewers and summarized in my initial meta-review, and all reviewers still support acceptance. I also considered Reviewer PmAB’s clarification after updating the contribution type, and Reviewer PmAB’s recommendation remained positive. I therefore maintain my recommendation to accept the paper.
Read meta-review
Meta-review
The paper formulates the problem of allocating generation and verification costs in inference-time generate-rank-verify pipelines as cost-sensitive active search. The authors first derive the expected cost of the optimal distribution-aware policy. They then propose ADAP, which does not know the distribution of the reward score and the success function, and prove that its expected cost is within a constant factor of the distribution-aware optimum.
One of the main questions is about the constant factor in the theoretical guarantee. The factor of 400 is very large and is far from the much smaller gap observed in the experiments. The authors should explain whether this factor can be improved and which parts of the analysis cause this gap. Another question is about the experimental setting. The evaluation considers only prompts for which at least one correct response is generated, and the cost model does not fully reflect factors such as token usage or parallel generation. The authors should clarify how these choices affect the practical interpretation of the results.
Overall, the paper appears to be heading toward acceptance.
Final justification
I have read the authors’ response and the discussion.
The rebuttal addressed the main concerns raised by the reviewers and summarized in my initial meta-review, and all reviewers still support acceptance. I also considered Reviewer PmAB’s clarification after updating the contribution type, and Reviewer PmAB’s recommendation remained positive. I therefore maintain my recommendation to accept the paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies inference-time generate–rank–verify pipelines where an LLM generates candidate answers, a cheap reward model ranks/scores them, and an expensive verifier checks correctness. The key problem is how to adaptively decide how many candidates to generate and how many to verify, per prompt, while minimizing total cost. The paper first analyzes an idealized policy that knows reward-score distribution and score-conditioned success function which reveals that an ideal policy should be a threshold based policy. The main lag proposed is called ADAP which builds on this by progressively increasing both generation and verification effort, so that easy prompts can terminate cheaply while hard prompts receive more search, making the algorithm adaptive.
Strengths and weaknesses
Strengths
-
The formulation of generate-rank-verify inference as a first-positive active search problem is elegant and conceptually clean. The abstraction captures an increasingly important regime in LLM systems where verification is substantially more expensive than reward scoring.
-
The theoretical contribution of the paper is very strong. The progression from optimal oracle policy to adaptive algorithm to an learning theoretically motivated impossibility result is logically coherent and well motivated.
-
The empirical validation is convincing and support their claims well.
Weaknesses:
-
Although constant-factor guarantees are theoretically appealing, the current constant (400) is very loose.
-
In Appendix A.2, the authors show that for math problems the AUC of P(R_correct>R_incorrect) ~ 0.61. This is not an overwhelmingly strong result and maybe it questions the monotonicity assumption which the authors claim "natural". What happens when the assumption is not strict, but we only have some weak form of monotonicity?
-
The evaluation only considers prompts for which at least one correct sample exists. This is understandable from a theoretical perspective but introduces a selection effect. In practice, systems must handle: unsolved prompts, verifier failures, situations where no correct sample is generated. This can strengthen the paper even more.
Questions
- Can the factor 400 in Theorem 4.2 be substantially tightened?
- How sensitive is ADAP to violations of monotonicity?
Limitations
Limitations are discussed in the Conclusion itself.
Final justification
I thank the authors for their response. I will keep my score unchanged.
Formatting concerns
No major concerns
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the compute-allocation problem in inference-time Generate-Rank-Verify pipelines. The authors formalize this setting as cost-sensitive active search: a policy adaptively samples candidate responses from a language model, scores them via a cheap reward model, and selectively invokes an expensive verifier (e.g., exact answer matching, hidden-test execution) until a verified-correct response is found.
Strengths and weaknesses
Strengths:
- Clean theoretical formalization, abstracting inference-time Generate-Rank-Verify as cost-sensitive active search is an insightful modeling choice, elegant optimal policy characterization
- Constant-factor competitive ratio, ADAP achieves a multiplicative guarantee relative to the distribution-aware optimum
- diverse validation on both mathematical reasoning and code generation
Weaknesses:
- it seems a significant theory-practice gap, the 400x factor in theory is far from tight in practice — ADAP is only ~3.6x
Questions
see weaknesses
Limitations
yes
Final justification
I appreciate the authors' response, which is consistent with my overall understanding of the paper and satisfactorily resolves my questions. I am happy to maintain my positive score of 4.
Formatting concerns
no
2 comments
Rebuttal
We thank the reviewer for the thoughtful review and constructive feedback.
W1: Approximation factor of ADAP and its tightness
The factor is a conservative worst-case guarantee over every reward-score distribution and every non-decreasing success function ; it is neither tight nor intended to predict performance on LLM-induced instances. We have revised the analysis during the rebuttal period and we can show that the constant is less than .
First note that the theorem assumes no regularity assumption on the distribution and the reward-verifier function. It must therefore cover highly adversarial monotone instances that need not resemble those induced by LLMs. In fact, LLM-induced distributions have substantially more favorable structure than arbitrary monotone instances, such as verifier-success mass concentrated among highly ranked candidates. In fact, the numerical results on math and coding tasks show the approximation factor is around .
We also tightened the analysis. The factor of comes from
We have revisited the proof and we can show with a direct tightening of the same analysis we have in the paper, without modifying ADAP or its proof structure, reduces the constant below : the ceiling losses in Lemma C.6 are unnecessary because the dyadic exponents are integers, and using the exact binomial mean together with a sharper Chernoff bound substantially improves the tail estimate. Thus, should be viewed as an explicit universal constant rather than an intrinsic barrier.
It is an important question to design an algorithm with an optimal constant for active search and based on your comment we will revise the proof and add this question as a future work.
We hope this clarification and the tightened analysis address the main concern raised in the review. In light of this, we would be grateful if the reviewer would reconsider their overall assessment.
I appreciate the authors' response, which is consistent with my overall understanding of the paper and satisfactorily resolves my questions. I am happy to maintain my positive score of 4.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper is about inference-time search, regarding the question of how to rank multiple solutions generated by an LLM in parallel, to find the optimal solution. They specifically focus on active search - how to find a response that is correct, while minimizing the total cost of generation, reward querying, and verification. All generated solutions are queried with the reward model, and the top few are verified. In this setting, verification is more expensive than the reward model.
Challenges: The amount of attempts depends on the difficulty of the prompt. The relationship between the reward score, and the likelihood of verification success, may not be easy to capture in a simple rule - the reward model may not be calibrated. They model this relationship as a function where is the probability that the candidate is verified successfully given reward score .
For the baseline, the score distribution for each prompt is known, and the reward score-verifier success relationship is known. In this case, the policy for selecting candidates for verification is a thresholding function based on the reward. They propose ADAP for when the score distribution/reward-verifier relationship are unknown. Theoretically, ADAP is near optimal, when is monotonic.
ADAP
- They show theoretically that ADAP’s expected cost is within a constant factor (400) of the cost achieved by the distribution-aware policy.
- They also show a lower-bound in the case where the verification success probability is not monotonic in the reward score.
- If is the hypothesis class from which the verification success probability function is drawn, then the lower bound on the approximation error is in terms of its centered star number.
- Thus, a constant-factor approximation is not possible for arbitrary hypothesis classes.
- Now, the algorithm searches over cost-scales. For each successive cost scale , the cost increases by a factor of .
- For each cost scale , there is a generation/reward scoring budget and a verification budget . Verification is performed for the highest-ranked , where the ranking is done according to the reward model (and this relies on the monotonicity assumption).
Experimental Setup
- Datasets
- For math, evaluation is done on HMMT February 2024 and 2025, with Qwen2.5-Math-7B. The reward model is Qwen2.5-Math-PRM-7B. Verification is done using exact match.
- For coding, evaluation is done on LiveCodeBench, the generator is Qwen2.5-Coder-3B, and the reward model is CodeScaler-8B, with verification done using unit tests.
- The cost for reward scoring/generation is set to , and the cost for verification is .
- Difficulty-adaptive policy , where is the index of the difficulty class.
- The policy is given knowledge of the success rate for each problem, and problems are grouped by difficulty.
- For each difficulty group, the generation and verification budgets are fixed.
Results
- On HMMT, ADAP and the sample-aware baseline both achieve 100% success rate, and ADAP has roughly 4 times the cost.
- ADAP also has similar cost as for most difficulty classes, despite not having information about the prompts’ difficulty.
- Similar results hold for LiveCodeBench.
Strengths and weaknesses
Strengths
- The problem setting is well-motivated, as verification can be expensive - obtaining high-quality labeled data is a bottleneck.
- The method of jointly tuning the verification and reward budgets, and gradually increasing the budget, is very clever.
- The results compared to baselines are good.
- The theoretical analysis is interesting, as it shows that the method can achieve cost within a constant factor of a baseline that is aware of the prompt's difficulty.
Weaknesses
- The cost model does not take opportunities for parallelism into account, when it comes to the cost of generation/scoring with the reward model.
- This is acknowledged in the limitations.
- For the empirical results, a comparison of the total tokens used in each method would be useful.
Questions
- Could you give more details on the baseline?
- Sounds slightly confusing, because whether verification succeeds with is a random variable.
- In Table 1, why is there no or reported for for ?
- Could you give some intuition about why never surpasses ADAP by a big margin, but the Sample Aware baseline has significantly less cost, even though essentially becomes a Sample Aware baseline for larger classes?
Limitations
yes
Formatting concerns
No concerns.
1 comment
Rebuttal
We thank the reviewer for the thoughtful review and constructive feedback. We respond to each point below.
Since your questions concern the experiments and the oracle baseline, we first recall the setup and then answer each question.
Setup: For each problem we sample a pool of responses once (temperature 0.7), score every response with the reward model, and record its verifier label. All policies are then evaluated by simulation on the cached pool. Because re-sampling fresh pools is expensive (~85–110 GPU-hours in total), we reuse each pool as random orderings of its responses, with the same orderings applied to every policy for paired comparison. A trial is one (problem, permutation) pair. A policy that draws responses receives the first in that ordering, so the ordering determines which subset it sees and hence what it pays.
Q1: SampleAware and the role of randomness.
SampleAware is a per-trial hindsight benchmark,not a policy. Within a trial, the pool and order are fixed and both verifiers are deterministic (exact answer matching; hidden-test execution), so whether a pair succeeds is a determinate property of that trial, not a random variable. SampleAware selects
subject to at least one of the highest-reward responses among the first being verifier-correct, and we report the mean of these per-trial minima. Randomness enters only through this averaging. For a fresh sequence the success of a fixed pair is of course random; SampleAware is not an estimate of that probability.
Based on your question, we will provide clarification in Section 5.2. First, SampleAware selects a budget, not a set of candidates: it is bound by the same generate–rank–verify rule as every other policy, so if the correct response is outranked by incorrect ones in the drawn prefix, it pays for all verifications. It is the cheapest hindsight tuning of the fixed-pair family, not an oracle that points directly at a correct response. Second, it lower-bounds any fixed policy but is not realizable, since choosing the budget requires the verifier labels the policy is meant to discover.
Q2: Missing for
For , assigns a different generation and verification budget to each difficulty class, so there is no single . We report the averages across all problem–permutation trials, where each trial contributes the budgets assigned to its problem’s difficulty class. Thus, classes containing more problems receive proportionally more weight.
Q3: Why did not approach SampleAware?
This question revealed an ambiguity in our description of relative to implementation. The reported in Table 1 used one pair per difficulty class which has to succeed on all permutations of every problem in that class. Therefore, increasing can separate problems into different classes, but not different permutations of the same problem. Consequently, this version does not converge to SampleAware policy, which selects the minimum-cost pair separately for each problem-permutation trials. So, the higher cost of reflects the need to accommodate the worst sampled ordering.
We plan to distinguish two versions:
-
- : it chooses one budget per difficulty class after the ordering for each problem has been realized. This is done separately for each permutation trial. As increases, the classes become more fine-grained; when equals the number of problems, each class contains one problem and becomes SampleAware.
-
- : It fixes one budget per difficulty class before the ordering is known and requires access across all sampled permutations. It therefore measures an additional cost of protecting against unfavorable orderings.
Neither nor is implementable in practice, because both use verifier outcomes to determine the optimal generation and verification budgets. However, more closely reflects a real system: it fixes a budget based on estimated difficulty before the generation order is realized and then operates on whatever ordering occurs, whereas selects the cheapest successful budget separately for each realized ordering.
We implemented and observed the expected movement toward SampleAware. The table reports average cost normalized by ADAP; lower values indicate lower cost.
| Task | SampleAware | |||
|---|---|---|---|---|
| Math reasoning | ||||
| Coding |
These results confirm the reviewer’s intuition: as k increases, the margin between and grows in favor of , while moves closer to SampleAware. At , its cost is that of ADAP on math and on coding.
We will use as the main oracle baseline and retain the original implementation as the complementary benchmark. We will also state explicitly that the robust variant depends on M and is not expected to converge to SampleAware as k increases.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the thoughtful review and constructive feedback. We respond to each point below.
The factor 400 is a conservative worst-case guarantee over every reward-score distribution D and every non-decreasing success function h⋆; it is neither tight nor intended to predict performance on LLM-induced instances. We have revised the analysis during the rebuttal period and we show that the constant is less than 173.
First note that the theorem assumes no regularity assumption on the distribution and the reward-verifier function. It must therefore cover highly adversarial monotone instances that need not resemble those induced by LLMs. In fact, LLM-induced distributions have substantially more favorable structure than arbitrary monotone instances, such as verifier-success mass concentrated among highly ranked candidates. In fact, the numerical results on math and coding tasks show the approximation factor is around 3.6.
We also tightened the analysis. The factor of 400 comes from
We have revisited the proof and we can show with a direct tightening of the same analysis we have in the paper, without modifying ADAP or its proof structure, reduces the constant below 173: the ceiling losses in Lemma C.6 are unnecessary because the dyadic exponents are integers, and using the exact binomial mean together with a sharper Chernoff bound substantially improves the tail estimate. Thus, 400 should be viewed as an explicit universal constant rather than an intrinsic barrier.
It is an important question to design an algorithm with an optimal constant for active search and based on your comment we will revise the proof and add this question as a future work.
Thanks for raising this question. We provide complementary empirical and theoretical evidence on this assumption.. Our empirical result supports our monotonicity assumption. We observed it by discretizing the space into five quantile bins and estimating their verifier success rates. On both datasets, the success rate generally increases. Theoretically, we show that ADAP retains a competitive guarantee even when the reward-verifier relationship is not non-decreasing. In particular, we show that when h⋆ is multiplicatively close to a non-decreasing function, with the approximation factor degrading smoothly with this distance.
Empirical Justification:
For each prompt, we sort the original responses by reward and divide them into five equal-sized groups. Q1 contains the lowest-reward 20% and Q5 contains the highest-reward 20%. We compute the verifier success rate in each group and average the rates equally across prompts. Brackets show 95% bootstrap confidence intervals.
Success generally increases with reward. It rises from 0.40% to 3.17% on MATH-7B and from 0.80% to 6.74% on coding. This supports an approximately monotonic relationship between reward and success within prompts.
We finally note that AUC and monotonicity measure different things. AUC measures the overall ranking quality. Monotonicity requires only that h⋆(r) does not decrease when r increases. The increase can be very small, so h⋆ can be exactly non-decreasing while the AUC is close to (0.5). Therefore, the AUC result shows that the reward is informative, but it does not prove or disprove exact monotonicity.
Theoretical Justification
In the paper, we do not discuss the robustness of our algorithm to non-monotonicity, and we think it is important to quantify the degradation of ADAP’s performance with the distance of h⋆ from the class of non-decreasing functions. Here, we provide a positive result showing that our algorithm still works under approximate monotonicity.
Suppose there exists a non-decreasing function g and 0<η<1 such that,
Then, for a constant C<173,
The proof sketch is as follows. First, since $ (1-\eta)g(r)\le h^\star(r) $, we have
Next, (1−η)g(r) is non-decreasing; therefore,
Finally, by the verification-region characterization in Theorem 3.2, the inequality
implies
Combining the three inequalities proves the claimed guarantee. Thus, the guarantee degrades smoothly with the violation of monotonicity.
Our experiments focus on prompts for which a verified answer is available. It is only on these prompts where our various baselines provide a non-vacuous guarantee—i.e., a finite cost for finding a verified answer. Otherwise, comparisons between the cost of our algorithm and those of the baselines cease to be meaningful, at least in the way we phrase active search. One could augment our problem statement to allow an algorithm to fail gracefully by declaring that some instances are unlikely to be solvable, in which case the compute cost can be meaningfully compared between different algorithms even in the event that no verified answer can be found. However, we view this as out of scope for our paper, though an interesting and complementary question which can be combined with our techniques.
In more detail: for prompts where a verified answer is available, the multiplicative guarantee gives a useful interpretation. If ADAP has expected cost L, then Theorem 4.2 shows that the distribution-aware oracle must also have cost at least L/C, where C the constant factor approximation of the algorithm. Therefore, if ADAP needs a large cost for a prompt, this prompt is also difficult for the oracle. ADAP cannot spend a lot on a prompt that the oracle can solve very cheaply. This guarantee does not apply to prompts for which the generator can never produce a verified answer. In this case, no sound policy can stop, and both ADAP and the oracle have infinite cost.
In practice, we can run ADAP with a maximum budget and return “no verified response found” when the budget is reached. Verifier rejections and execution timeouts are counted as unsuccessful verification attempts.