Two things need to be true: with more computation, there is a reasonable chance the model will output a better answer, and there must then be some means of identifying and selecting that answer. Either could fail. A revision might correct a simple numerical mistake. In a hypothetical case a model might get an answer right with only 5% probability, and the criteria used to select the best of 20 may reject all of the good ones. Various strategies were compared for allocating a set amount of computation to generating answers to mathematical questions, and relative performance was very sensitive to question difficulty, amount of computation available, and the accuracy of any verification stage. Snell et al., test-time compute
Given 4 separate responses to a question, would you rather have 1 response after 3 revisions? With 4 de novo responses you may cover a wider variety of approaches to, and interpretations of, the question. You may catch a mistaken assumption. On the other hand, if the initial response was broadly on the right track but contained an error, a subsequent response may build on much of the previous calculation. All else equal (that is, total generations), it would take knowledge of the question and details of the method of selection to decide which was likely to be best.
Generating more tokens
Once trained, all the weights of the model are fixed when a question is put to it. It may generate more tokens, in a variety of ways: continue to generate a full response; generate other possible responses; assess all or part of responses generated. Each of these may make use of separately trained models. In this work, models were trained to revise and to verify other responses. So "increasing compute at test time" refers to further computation on each individual question, given the other models. Snell et al., methods
One approach is to generate fresh, complete responses. From several full responses, one could select the most frequent answer; apply one or more verifiers; or use information from 2 or more of the responses. Each approach uses the available number of generations to best effect under different circumstances. The frequency of responses assumes some standardisation of format so that all equivalent answers can be recognised. Verifiers will be more or less effective according to how well their score reflects the probability of correctness, given the range and type of errors likely to arise. Being able to recognise all equivalent answers to a maths problem would not necessarily mean identifying one which answered the question asked.
Sequential revisions will be influenced to some degree by previous ones. They may correct a single error while retaining most of a sensible approach, or follow on from an inappropriate assumption. Or they may "correct" a previously correct answer. So they are not de novo samples from the distribution of answers, and having several similar responses is of little benefit. All the more reason, then, to be interested in the relative benefits of generating a number of responses de novo compared to sequential revisions. Snell et al., revision experiments
Does the discount cover delivery?
An 80 dollar lamp is offered at 20% discount. There is an additional 10 dollars for delivery. How much does it cost? 80 plus 10, reduced by 20%, gives 72. Alternatively, 80 reduced by 20%, plus 10, is 74. It depends whether the discount is offered on the price including delivery. As worded, the discount applies to the price of the lamp. So a verifier assessing only the accuracy of applying the percentage would probably be satisfied with either answer.
However, if the model making the revision were prompted specifically to consider whether delivery was included, it could check whether the full 10 dollars was charged. The 72-dollar answer discounts the delivery fee and fails that check. Simply prompting it to consider the answer more carefully may produce an extended justification of 72. So this illustrates the difference between generating more tokens, and doing something more useful. Nothing is implied about the performance of any actual model.
Assume 3 responses were generated, 2 of which included delivery in the amount to be discounted. Selecting the most frequent answer would give 72. A suitable verifier might pick the single correct response. Alternatively, suppose the verifier erroneously believed that any discount would apply to all elements of the purchase. Generating more responses increases the chance of finding one that it would approve of. So it is important both to generate suitable candidates, and to select appropriately from them.
Verifying intermediate stages
Responses can be scored at various stages of their generation. This allows a search algorithm to direct more computation to the most promising lines. There is no need to generate complete responses from all initial steps. Returning to the example above, one initial response may start by calculating 20% of the sum of lamp and delivery, another may calculate the price of the lamp and the cost of delivery separately. It would be useful to know at this stage which was more likely to lead to a correct answer. Equally, an inappropriate assessment could eliminate a response which would have been correct. Snell et al., verifier search
So the verifier becomes an important part of the whole process being assessed. Performance with a generator and process-verification model should not be assumed applicable if only the generator were available. When considering papers describing different search algorithms, it is therefore important to know what verification was used. If the amount of computation spent on verification varies between options being compared, it is difficult to attribute improvements to generating more responses.
Once the answer is known, that can trivially be used to assess which response was correct. But in general one would not know the answer to a question being considered. For code, tests can be run on the code generated. The original paper defining HumanEval introduced pass at k, that is, receiving credit if at least one of k candidates passed the specified tests. A deployment needs a way to pick which solution the user receives. Chen et al., HumanEval
Identifying difficult questions
It may be desirable to allocate more resources to questions likely to be difficult. Snell et al. compare allocation based on the actual proportion correct in a number of generations, to allocation based on predicted difficulty, as assessed by verifiers. The former is of interest to test an allocation with access to ground-truth difficulty information. The latter establishes how well difficulty can be predicted. Note that predicting difficulty in this instance entailed generating a substantial number of responses to each question. The cost of this was not included in subsequent comparisons, and the authors note this would be undesirable in practice. Snell et al., Appendix C
So if, for example, 16 responses were generated to assess difficulty, followed by 8 to generate an answer, 24 responses would be required overall. This may be more than an alternative strategy. On the other hand, the assessment of difficulty may apply to a wide range of similar questions.
One generation can contain many more tokens than another. This in turn relates to the number of FLOPs required, but that will also depend on model size. The actual time to generate responses depends on many factors. Cost depends on generation time and on how the company charges. So reducing generations by half may have little effect on any of the others. The graphs in this paper show various measures with number of generations allocated. Snell et al., Figures 5, 8
If responses can be generated in parallel, total time will be close to the longest individual generation time. If dependent on previous responses, as with revisions, total time will be close to the sum. So if time is the constraint, the number of revisions achievable may be less than desired; or if the number of processes which can run simultaneously is limited, there may be a wait to start generating some responses. It would be useful to know both conditions and the quality of responses generated within that time.
Increase model size instead?
If few questions will be answered, additional computation at inference may be easier to justify than the up-front cost of training a larger model. At high request volumes, per-question costs accumulate. The relative benefits will depend on the ratio of total inference tokens to pretraining tokens, and the difficulty of the questions. For questions from MATH they found a range of conditions in which a smaller model with additional test time did as well as, or better than, a larger model. And a range in which the reverse was true. Snell et al., Figure 1
To determine what might be best in practice for questions of interest, it would be useful to compare a number of methods, all using the same underlying model. As well as assessing the single response returned, it would be useful to know how often a correct response was generated. This gives an indication of the effectiveness of the method of selection. If a correct answer is seldom generated, little is to be gained by better selection. If it is frequently generated but rarely selected, it may be better to improve the selection process than to generate many more responses.
Some measure of the difficulty of a question and some measure of agreement between responses would both be useful. A model may generate the same inappropriate calculation with high confidence each time. Responses may all differ in insignificant ways such as layout. So it is desirable to have some standardisation of equivalent responses, and to examine examples where most responses are wrong as well as examples successfully improved by revision. Ideally the method chosen should then be assessed on a further set of questions.
So for this example, one appropriately directed question to the model would distinguish between the answers. Many questions of interest may not lend themselves to such an approach, nor have a small finite set of possible responses. So the amount and type of additional computation likely to be beneficial may vary greatly. Simply "thinking" for longer may or may not help.