# Oral 31924

- Kind: Oral
- Talk page and recording: https://iclr.cc/virtual/2025/oral/31924

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello. So this is some work on test time scaling I did with some collaborators during an internship at Google. So we've seen that you can scale pre-training and performance on many downstream tasks will improve somewhat uniformly. However, there are certain tasks where just predicting, sort of directly predicting the next answer doesn't work so well. So for example, on very challenging math problems, you might need to explore multiple approaches to solving the problem.
problem. There are also some very simple problems which sort of fundamentally require some kind of search to solve the problem without memorizing all of the answers.
So one potential way to overcome this, we've seen sort of in the history of AI, is that if you give a neural network access to the ability to use additional computation at test time, you can substantially improve its performance. So back with AlphaGo, we saw that once you give the policy network the ability to do search with Monte Carlo tree search, we saw massive improvements in performance beyond human level play.
And recently in the last few months, we've seen substantial improvements on challenging math tasks with language models by giving them the ability to use additional computation at test time. So this is O1 and O3, which I'm sure you've seen.
This has led many to sort of ask, is pre-training dead? Now that we have this other axes of scaling compute, does this mean that pre-training is no longer a useful way to use compute? Would we see bigger gains from just scaling test time compute if we applied that same budget to pre -training? And so this is kind of the question that we're getting at in this paper. When can test time compute outperform pre-training?
And we sort of do this in a FLOPS-matched way so we can get sort of a fair comparison between the two ways of scaling. So you've likely heard of compute-optimal scaling for pre-training. To do the analysis in our paper, we introduce this idea of compute-optimal test -time scaling, which
basically involves selecting the optimal configuration for your test time scaling algorithm. So this could be which search algorithm to use, like what beam width to use during beam search and things like this. And you're going to select this for a given question and test time compute budget. And in practice, how we do this is we bin questions by difficulty and select the best strategy for the difficulty bin instead of on the level of every single question.
Um, so in this work, we look at two different ways of scaling test time compute for this analysis. One is doing search against a verifier and the other is sort of having a model that iteratively revises answers in context.
To start, we'll look at how we do this with verifiers. So we look at three different ways of scaling test time compute with verifiers. The first is best of n, which is kind of the simplest approach. You sample n solutions and you have a verifier model output a score for how likely each solution is to be correct, and then you take the best one. If we instead have a verifier which can grade intermediate steps in a solution...
We can do beam search against the intermediate steps and do sort of a more sophisticated form of search. And this is what we call beam search. And we also look at sort of an extension of beam search called lookahead search, which resembles MCTS in certain ways in that it will do these lookahead rollouts before getting the score for each step.
To learn the verifier which scores individual steps we call this a process-based verifier or PRM. To learn this we apply this approach from this paper called Math Shepherd from Wang et al. Basically how we do this is we compute Monte Carlo rollouts at each step and fine-tune a verifier on these Monte Carlo targets.
So if we look at the results comparing sort of these different ways of doing search with a verifier and we bin them by question difficulty, what we see is that on the easy questions, best of N is sort of the best you can do. You sort of see some over-optimization with these more complex search algorithms like beam search. It's a little bit overkill. However, on the medium and harder difficulty questions, bins three and four, we see beam search substantially outperforms best of N.
And then finally, on the hardest questions, all methods kind of struggle. So as we can see, depending on the question, we might need to apply a different strategy to get sort of the best use of our test time budget. And so if we apply sort of the compute optimal scaling approach to these different search algorithms, we can improve the efficiency of test time scaling by 4x.
Now we can do something similar with revisions. So in this case we're going to fine-tune a model to iteratively revise answers. So it's going to propose one answer and then we'll keep that in context and ask it to propose a better answer and we're going to fine-tune it for this task so it can get very good at it. And then once we have this model there's a couple ways we can use it. We can iteratively revise answers in one long sequence so we could apply all our budget of n generations in one long sequence or we could just do them in parallel as
normal. Or you could do some mix between these two. We might expect different questions to benefit from the two, from different ratios of the two. For example, on the hardest questions, maybe the exploration, the diversity of parallel sampling is preferable because you have to explore different high-level approaches to the problem, whereas on easier questions, just revising sort of the details might be all you need. And we see in practice that depending on the question difficulty, the ideal ratio of sequential to parallel
filter parallel varies. So on the easy questions, you want to use mostly sequential test time compute, and on the harder questions, there's kind of an ideal ratio. And again, if we apply compute optimal scaling to this, we can improve the efficiency of test time scaling by 4x.
Now that we've looked at how we can scale test time compute with these two approaches, we now want to answer sort of the key question as can test time scaling be more effective than scaling parameters. So what we're going to do is we're going to compare a 14 times larger model without test time compute against a smaller model with additional test time compute.
And we're going to do some math to like equate the flops between the two. So the cost of pre-training for the larger model is much more and the smaller model is less. But at test time compute, we're going to use more flops per query. And so depending on the number of queries we're expecting at inference time, the sort of comparison will vary. So for example, Google and we're serving our model to a billion users, then doubling your test time compute is going to...
add up. If you're just running a few inferences, then you can really scale test time compute before it makes a dent. And so once we do this analysis, we find that on the easy and medium difficulty questions or in settings with lower inference requirements, scaling test time compute can be preferable to scaling parameters. On sort of the harder questions, we find that pre-training is preferable, at least with these approaches to scaling test time compute. And since our work came out, a couple of recent works have reproduced our findings.
which is very encouraging. And so the main takeaway here is using fairly simple methodology, scaling test time compute can greatly improve performance and in some cases outperform test time scaling.
Beyond our work, you know, there's a lot to explore with alternative approaches to scaling test time compute. We just explored a couple. And as you've seen, there have been recently a lot of developments in test time compute with O1 and DeepSeek showing different approaches to scaling test time compute that seems to work very well. And so doing this analysis on these methods would be very valuable.
And then there's additional analysis that could do. So for our paper, we did a very small amount of fine tuning to get them verifier or the revision model for test time scaling. But if you could do much larger scale fine tuning and understand how that impacts the test time scaling trend, that would be a very interesting question for future work. Yeah, that's all I have.
So I'm Chitaniyo from Huawei. I'm quite interested in your work. I just curious about besides mass task, could they apply to other reasoning tasks?
Yeah, I think so. So in the test time compute space, a lot of this has been applied to math and code. And this is because these tasks sort of like easily verifiable answers. I think there is an open question of like how well you can transfer these techniques to settings where it's not as clear and easy to grade the answer. But I think like with O1, there's some signs that this kind of transfers, but it's not clear the extent.
Oh, thank you. Any other question? Hello? Oh. Hi, Yisu from Ohio State. Very nice work. I'm curious, I think my question is highly related to the previous one, but more specific to this work, especially about the role of the verifier here and the practical implications of this specific work.
given the dependency on the verifier, right? Because for most province we care about beyond math and coding, we don't have this verifier, especially at the inference time. So given that, what are some of the conclusions from this study that's still applicable?
Yeah, that's a good question. So I should clarify, in our case, the verifier is a language model. It's fine-tuned for the task. So in theory, if you had a model that was capable of at least somewhat accurately scoring the correctness of different outputs, it would work in other settings. But in order to train the model for verification, we do need to be able to sort of get this data of correct incorrect traces and to do that we grade against sort of a ground truth.
Um, and I think, uh, yeah, there's a question of, you know, in settings where it's not as easy to get this verification, can you do this? Um, my sense is that this notion of test time scaling does kind of fundamentally work better in settings where it's relatively easy to verify relative to generation. And so, um, even if it's, uh, you know, not math and code and like very hard to verify it, it might be less effective there, I would guess. But, um.
Yeah, future works should explore that. Yeah. Okay. Thanks. Let's thank speaker one more time. Thank you so much.
