                    Sample, Scrutinize and Scale: Effective Inference-Time Search by Scaling Verification



gains in Figure 1: larger k increases both the number of                  combat the fact that language models have low recall

ambiguous questions (Pass@k) and accuracy on the set of                   (i.e., often overlook) when asked to identify mistakes

ambiguous questions.                                                      and hallucinations (Tyen et al., 2024; Kamoi et al.,

                                                                          2024a), as models are able to identify errors when

2.3. The Long Tail of Response Distributions                              provided their locations (Tyen et al., 2024). We can

                                                                          improve the self-verification of a candidate response by

We can directly observe Verification@k scaling beyond the                 providing the verifier with other responses to compare

saturation point of Consistency@k in Figure 4, where we                   the candidate against—an instance of implicit scaling.

plot their performance after fixing the number of verification

attempts at 50. On AIME, the most technically challenging

                                                                       2. Rewrite responses for output style suitability. The opti-

benchmark, Verification@k demonstrates power law scaling

                                                                          mal output style of a language model should depend on

even as Consistency@k begins to plateau. The rapid satu-

                                                                          the task. Writing in a linear chain of thought— which

ration of Consistency@k can be attributed to the fact that,

                                                                          includes detailing reasoning before committing to a

while it is effective at small scales in averaging out noisy

                                                                          claim—is effective when generating responses (search)

mistakes, it necessarily plateaus as it converges on the most

                                                                          (Wei et al., 2022). However, responses are easier to

probable response; for example, Consistency@50 has the

                                                                          verify when written rigorously, hierarchically, and mod-

same accuracy as Consistency@10,000 on AIME.

                                                                          ularly. This can be leveraged by having verifiers first

Consider cheaply sampling a vast set of solutions from                    rewrite candidate responses in, e.g., an expanded math-

a weak but ergodic model: Consistency@k is unlikely to                    ematically conventional theorem-lemma-proof format

return a correct solution, but an effective verifier should               rather than directly evaluating chains-of-thought.

still be expected to detect rare but correct solutions in the

long-tail of the response distribution. We find an example           These principles also provide levers for scaling self-

of this on the AIME 2024 exam, where the Gemini v1.5                 verification capability with test-time compute, including

model struggles to identify the correct answer to Problem            by (1) sampling and providing verifiers with more responses

11 on Exam II. Table 2 shows the final answers from 200              to compare between and (2) rewriting responses with in-

randomly sampled Gemini v1.5 solutions, of which only                creasing rigour and structure.

one is correct (“601,” in green).

Consistency returns the incorrect answer of “1” (in red),            3.1. Sampling-Based Search Implementation

which appears in over half the responses. In contrast, Ver-          We now detail our minimalist implementation of sampling-

ification successfully identifies the solution reaching the          based search (summarized in Algorithm 1) that uses only

correct answer from the response distribution’s long-tail,           parallelizable blackbox queries to a language model. It

assigning a ≤36% score to each solution reaching a final             generates candidate responses by randomly sampling from

answer of “1” but a 98% score to the single solution reach-          models and select responses by asking models to self-verify;

ing “601”. Scaling verification capability is key to driving         prompts are identical across all benchmarks.

improved search, allowing for discerning between answers

that appear correct with 98% vs. 76% confidence. The fact            Step 1: Generate Candidate Responses. A language

that verification can be used to so effectively leverage the         model generates kinf candidate responses (candidate so-

long-tail of model response distributions also suggests that         lutions) in parallel to each question, using temperature σinf .

Pass@k, not Pass@1, should be the key performance metric             Step 2: Verify Candidate Responses. A language model

for search applications. Existing post-training techniques           generates kverif binary “verification scores” for each candi-

(e.g., reinforcement learning from human feedback (RLHF)             date in parallel, indicating whether its final answer is correct.

(Ouyang et al., 2022)) which explicitly optimize for Pass@1          Each scoring attempt is a single conversation thread that

may potentially be doing so at the expense of Pass@k and             rewrites the response as a theorem, supporting lemmas, and

inhibiting search capability.                                        proofs (examples in Appendix F) and systematically scans

                                                                     for errors. The highest scoring response is selected.

3. Effective Self-Verification                                       Tie-Break: Compare Candidate Responses. When the

In the process of scaling sampling-based search, we identi-          three highest scoring candidates score within 5% of one

fied two general principles for eliciting more accurate self-        another and disagree on the final answer, a language model

verification, that may be of independent interest.                   directly compares the responses in pairwise matchups. Each

                                                                     matchup is a single conversation thread that identifies where

  1. Compare responses to localize errors. Disagreements             responses diverge and, at each such point, determines which

     between candidate solutions strongly signal the poten-          side is correct. Each matchup is repeated ktie = 100 times,

     tial locations of their errors. This can be leveraged to        and the response with the most wins is selected.



                                                                 5

